openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
[gnulib.git] / ChangeLog
1 2010-03-21  Bruno Haible  <bruno@clisp.org>
2
3         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4         * lib/openpty.c (openpty): New replacement function.
5         * lib/pty.in.h: Include <termios.h>.
6         (openpty): Update declaration. Add comments.
7         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8         is not declared, arrange to provide the replacement. Check for _getpty
9         and posix_openpt.
10         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
12         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13         * modules/pty-tests (test_pty_c___LDADD): New variable.
14         * doc/glibc-functions/openpty.texi: More supported platforms.
15
16 2010-03-21  Bruno Haible  <bruno@clisp.org>
17
18         setenv: Tweaks.
19         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20         the test program.
21         * doc/posix-functions/setenv.texi: Update platforms list.
22
23 2010-03-21  Bruno Haible  <bruno@clisp.org>
24
25         New module 'unlockpt'.
26         * lib/unlockpt.c: New file, from glibc with modifications.
27         * m4/unlockpt.m4: New file.
28         * modules/unlockpt: New file.
29         * lib/stdlib.in.h (unlockpt): New declaration.
30         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33         HAVE_UNLOCKPT.
34         * doc/posix-functions/unlockpt.texi: Mention the new module.
35         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36         * config/srclist.txt: Add unlockpt.c (commented).
37
38 2010-03-21  Jim Meyering  <meyering@redhat.com>
39
40         maint.mk: prohibit inclusion of "intprops.h" without use
41         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
42
43 2010-03-21  Bruno Haible  <bruno@clisp.org>
44
45         New module 'grantpt'.
46         * lib/grantpt.c: New file, from glibc with modifications.
47         * m4/grantpt.m4: New file.
48         * modules/grantpt: New file.
49         * lib/stdlib.in.h (grantpt): New declaration.
50         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
51         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
53         HAVE_GRANTPT.
54         * doc/posix-functions/grantpt.texi: Mention the new module.
55         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
56         * config/srclist.txt: Add grantpt.c (commented).
57
58 2010-03-21  Bruno Haible  <bruno@clisp.org>
59
60         New module 'pt_chown'.
61         * lib/pt_chown.c: New file, from glibc with modifications.
62         * lib/pty-private.h: New file, from glibc with modifications.
63         * modules/pt_chown: New file.
64         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
65
66 2010-03-21  Bruno Haible  <bruno@clisp.org>
67
68         Tests for module 'ptsname'.
69         * modules/ptsname-tests: New file.
70         * tests/test-ptsname.c: New file.
71
72         New module 'ptsname'.
73         * lib/ptsname.c: New file, from glibc with modifications.
74         * m4/ptsname.m4: New file.
75         * modules/ptsname: New file.
76         * lib/stdlib.in.h (ptsname): New declaration.
77         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
78         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
79         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
80         HAVE_PTSNAME.
81         * doc/posix-functions/ptsname.texi: Mention the new module.
82         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
83         * config/srclist.txt: Add ptsname.c (commented).
84
85 2010-03-21  Bruno Haible  <bruno@clisp.org>
86
87         Tests for module 'ttyname_r'.
88         * modules/ttyname_r-tests: New file.
89         * tests/test-ttyname_r.c: New file.
90
91         New module 'ttyname_r'.
92         * lib/ttyname_r.c: New file.
93         * m4/ttyname_r.m4: New file.
94         * modules/ttyname_r: New file.
95         * lib/unistd.in.h (ttyname_r): New declaration.
96         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
97         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
98         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
99         HAVE_TTYNAME_R.
100         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
101         * doc/posix-functions/ttyname_r.texi: Mention the new module.
102
103 2010-03-20  Bruno Haible  <bruno@clisp.org>
104
105         signal: Undefine macro definitions in C++ mode.
106         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
107         sigfillset): Undefine macro definitions from the system header in C++
108         mode.
109         Reported by John W. Eaton <jwe@gnu.org>.
110
111 2010-03-20  Bruno Haible  <bruno@clisp.org>
112
113         Ensure no #include statements inside extern "C" { ... }.
114         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
115         contain #include statements.
116         * lib/time.in.h: Likewise.
117
118 2010-03-20  Bruno Haible  <bruno@clisp.org>
119
120         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
121         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
122         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
123         Reported by John W. Eaton <jwe@gnu.org>.
124
125 2010-03-20  Bruno Haible  <bruno@clisp.org>
126
127         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
128         Reported by Jim Meyering.
129
130 2010-03-20  Bruno Haible  <bruno@clisp.org>
131
132         pipe: Set errno upon failure.
133         * lib/pipe.h: Specify that when -1 is returned, errno is set.
134         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
135         errno value in error message.
136
137 2010-03-20  Bruno Haible  <bruno@clisp.org>
138             Jim Meyering  <meyering@redhat.com>
139
140         lchown: Avoid "unused variable" warning.
141         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
142
143 2010-03-20  Bruno Haible  <bruno@clisp.org>
144
145         Work around unlink() bug on MacOS X 10.5.6.
146         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
147         attempting to unlink a parent directory.
148         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
149         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
150         activate for the replacement function.
151         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
152
153 2010-03-20  Bruno Haible  <bruno@clisp.org>
154
155         Fix link errors on Solaris 8.
156         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
157         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
158
159 2010-03-19  Jim Meyering  <meyering@redhat.com>
160
161         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
162         The _LIBC implementation of build_range_exp correctly honors the
163         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
164         However, the non-_LIBC implementation would ignore that syntax-bit
165         flag and return REG_ERANGE unconditionally.
166         This change makes it honor that flag.
167         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
168         Make two pointer parameters "const".
169         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
170         (parse_bracket_exp): Update caller.
171
172         regex.m4: correct the reversed range endpoint ([b-a]) test
173         * m4/regex.m4: When requiring that [b-a] evoke failure,
174         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
175         test pass once again for x86-based systems.
176
177 2010-03-19  Bruno Haible  <bruno@clisp.org>
178
179         scandir: Fix link error on Solaris 8.
180         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
181         macros.
182
183 2010-03-19  Bruno Haible  <bruno@clisp.org>
184
185         getusershell: Fix documentation.
186         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
187         module.
188         * doc/glibc-functions/setusershell.texi: Likewise.
189
190         getusershell: Provide declaration, missing on Solaris 9.
191         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
192         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
193         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
194         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
196         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
197         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
198         HAVE_GETUSERSHELL.
199         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
200
201 2010-03-19  Bruno Haible  <bruno@clisp.org>
202
203         wctype: Provide iswblank function.
204         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
205         exists and is fine.
206         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
207         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
208         * tests/test-wctype.c (main): Re-enable the iswblank tests.
209         * doc/posix-functions/iswblank.texi: Update.
210
211 2010-03-19  Bruno Haible  <bruno@clisp.org>
212
213         Tests of module 'pty' in C++ mode.
214         * modules/pty-tests: New file.
215         * tests/test-pty-c++.cc: New file.
216         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
217
218 2010-03-19  Eric Blake  <eblake@redhat.com>
219
220         logb: fix documentation
221         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
222         1.5 declaration bug.
223
224         forkpty, openpty: prefer glibc's const-safe prototype
225         * lib/forkpty.c (rpl_forkpty): New file.
226         * lib/openpty.c (rpl_openpty): Likewise.
227         * modules/forkpty (Files): Distribute it.
228         * modules/openpty (Files): Likewise.
229         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
230         check...
231         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
232         replacement for for non-const BSD signature.
233         * modules/pty (Makefile.am): Substitute witnesses.
234         * lib/pty.in.h (forkpty, openpty): Declare replacements.
235         * tests/test-forkpty.c: Update signature check.
236         * tests/test-openpty.c: Likewise.
237         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
238         * doc/glibc-functions/openpty.texi (openpty): Likewise.
239
240         forkpty, openpty: split functions into new modules
241         * modules/pty (Makefile.am): Substitute new witnesses.
242         (Libraries): Move library detection...
243         * modules/forkpty: ...into new module.
244         * modules/openpty: Another new module.
245         * modules/pty-tests: Rename and split...
246         * modules/forkpty-tests: ...to this...
247         * modules/openpty-tests: ...and this.
248         * tests/test-pty.c: Rename and split...
249         * tests/test-forkpty.c: ...to this...
250         * tests/test-openpty.c: ...and this.
251         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
252         (gl_PTY): Split library searching...
253         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
254         (gl_FORKPTY, gl_OPENPTY): New macros.
255         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
256         * NEWS: Mention the split.
257         * MODULES.html.sh (Misc): Document the modules.
258         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
259         * doc/glibc-functions/openpty.texi (openpty): Likewise.
260
261         pty: improve replacement header
262         * lib/pty.in.h: New file.
263         * modules/pty (Files): Ship it.
264         (Makefile.am): Always build replacement.
265         * m4/pty.m4: Rename...
266         * m4/pty_h.m4: ...to this.
267         (gl_PTY): Modernize setting of witness macros; update check of
268         forkpty to take proper advantage of cache.
269         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
270
271         getopt: avoid compiler warning
272         * lib/getopt.c (attribute_hidden): Remove unused macro.
273
274 2010-03-18  Bruno Haible  <bruno@clisp.org>
275
276         Fix link errors on Solaris 8.
277         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
278         * modules/search-tests (test_search_c___LDADD): Likewise.
279         * modules/signal-tests (test_signal_c___LDADD): Likewise.
280         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
281         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
282         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
283         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
284         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
285         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
286
287 2010-03-18  Bruno Haible  <bruno@clisp.org>
288
289         Fix bug introduced on 2010-03-14.
290         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
291         (gl_SPAWN_H): Require it.
292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
293         Reported by Simon Josefsson.
294
295 2010-03-18  Bruno Haible  <bruno@clisp.org>
296
297         Fix typo introduced on 2009-12-31.
298         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
299         posix_spawn_file_actions_adddup2.
300
301 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
302         and Eric Blake  <eblake@redhat.com>
303
304         test-vc-list-files-git: make more robust
305         * tests/test-vc-list-files-git.sh: Unset problematic environment
306         variables.  Chain commands together.
307
308 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
309
310         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
311         `AC_CHECK_DECL' invocation.
312
313 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
314
315         * lib/inttostr.c (inttostr): Make sure the invocation of verify
316         appears before executable statements. Suggested by Petr Sumbera
317         <Petr.Sumbera@Sun.COM>.
318
319 2010-03-14  Bruno Haible  <bruno@clisp.org>
320
321         * tests/test-flock.c (test_exclusive): Comment out a test that causes
322         portability problems. Instead use a simpler test.
323         (main): Check that invalid arguments are rejected only on Linux.
324
325 2010-03-14  Bruno Haible  <bruno@clisp.org>
326
327         Fix bug introduced on 2009-12-31.
328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
329         gl_PREREQ_SYS_H_WINSOCK2 always.
330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
331         SYS_SOCKET_H variable.
332         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
333         Update comments.
334         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
335         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
336         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
337         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
338         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
339
340 2010-03-14  Bruno Haible  <bruno@clisp.org>
341
342         Fix values returned by sinl, cosl.
343         * lib/trigl.h: Add specification comments.
344         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
345         that combines the values from the precomputed table with the values of
346         the Chebyshev polynomials.
347
348 2010-03-14  Bruno Haible  <bruno@clisp.org>
349
350         Fix compilation error when modules 'posix_spawn[p]' are not used.
351         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
353
354 2010-03-14  Bruno Haible  <bruno@clisp.org>
355
356         Fix compilation error on mingw when module 'time_r' is not used.
357         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
358         is 1.
359         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
360         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
361         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
363
364 2010-03-14  Bruno Haible  <bruno@clisp.org>
365
366         Fix compilation error with Sun C.
367         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
368         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
369         instead of GCC specific ULONG_LONG_MAX.
370         * lib/xstrtoll.c: Likewise.
371         * lib/xstrtoull.c: Likewise.
372
373 2010-03-13  Bruno Haible  <bruno@clisp.org>
374
375         Allow the user to disable C++ code and tests.
376         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
377         (gl_PROG_ANSI_CXX): Require it.
378
379 2010-03-13  Bruno Haible  <bruno@clisp.org>
380
381         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
382         cases.
383
384 2010-03-13  Bruno Haible  <bruno@clisp.org>
385
386         Test that gnulib does not break the standard C++ headers.
387         * tests/test-locale-c++2.cc: New file.
388         * modules/locale-tests (Files): Add it.
389         (Makefile.am): Compile it for test-locale-c++.
390         * tests/test-math-c++2.cc: New file.
391         * modules/math-tests (Files): Add it.
392         (Makefile.am): Compile it for test-math-c++.
393         * tests/test-signal-c++2.cc: New file.
394         * modules/signal-tests (Files): Add it.
395         (Makefile.am): Compile it for test-signal-c++.
396         * tests/test-stdio-c++2.cc: New file.
397         * modules/stdio-tests (Files): Add it.
398         (Makefile.am): Compile it for test-stdio-c++.
399         * tests/test-stdlib-c++2.cc: New file.
400         * modules/stdlib-tests (Files): Add it.
401         (Makefile.am): Compile it for test-stdlib-c++.
402         * tests/test-string-c++2.cc: New file.
403         * modules/string-tests (Files): Add it.
404         (Makefile.am): Compile it for test-string-c++.
405         * tests/test-time-c++2.cc: New file.
406         * modules/time-tests (Files): Add it.
407         (Makefile.am): Compile it for test-time-c++.
408         Reported by John W. Eaton <jwe@gnu.org>.
409
410 2010-03-13  Bruno Haible  <bruno@clisp.org>
411
412         * gnulib-tool (func_usage): Clarify which options are available for
413         --create-testdir and --create-megatestdir.
414
415 2010-03-13  Bruno Haible  <bruno@clisp.org>
416
417         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
418         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
419         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
420         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
421         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
422         when appropriate.
423         Reported by Jim Meyering.
424
425 2010-03-12  Simon Josefsson  <simon@josefsson.org>
426
427         * gnulib-tool (func_import): Explain origin of code.
428
429 2010-03-12  Bruno Haible  <bruno@clisp.org>
430
431         Fix problem with automake's definition of CXXLINK.
432         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
433         Reported by Simon Josefsson and Ludovic Courtès.
434
435 2010-03-12  Bruno Haible  <bruno@clisp.org>
436
437         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
438         stable releases.
439
440 2010-03-11  Bruno Haible  <bruno@clisp.org>
441
442         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
443         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
444         whether the system provides one variant or multiple variants of the
445         function.
446         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
447         C++ compilers.
448         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
449         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
450         Reported by Jim Meyering.
451
452 2010-03-09  Simon Josefsson  <simon@josefsson.org>
453
454         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
455
456 2010-03-08  Bruno Haible  <bruno@clisp.org>
457
458         gnulib-tool: Add support for --libtool in --create-testdir.
459         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
460         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
461
462 2010-03-08  Eric Blake  <eblake@redhat.com>
463
464         gnulib-tool.texi: mention possibility of git submodule
465         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
466         submodules.
467         * doc/.gitignore: Ignore another generated file.
468
469 2010-03-08  Karl Berry  <karl@gnu.org>
470
471         * doc/gnulib-tool.texi (VCS Issues): Mention third option
472         of committing gnulib files while skipping others.
473
474 2010-03-07  Bruno Haible  <bruno@clisp.org>
475
476         Tests of module 'wctype' in C++ mode.
477         * tests/test-wctype-c++.cc: New file.
478         * modules/wctype-tests (Files): Add it and tests/signature.h.
479         (Depends-on): Add ansi-c++-opt.
480         (Makefile.am): Arrange to compile and run test-wctype-c++.
481
482         Tests of module 'wchar' in C++ mode.
483         * tests/test-wchar-c++.cc: New file.
484         * modules/wchar-tests (Files): Add it and tests/signature.h.
485         (Depends-on): Add ansi-c++-opt.
486         (Makefile.am): Arrange to compile and run test-wchar-c++.
487         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
488         gl_MODULE_INDICATOR.
489
490         Tests of module 'unistd' in C++ mode.
491         * tests/test-unistd-c++.cc: New file.
492         * modules/unistd-tests (Files): Add it and tests/signature.h.
493         (Depends-on): Add ansi-c++-opt.
494         (Makefile.am): Arrange to compile and run test-unistd-c++.
495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
496         gl_MODULE_INDICATOR.
497
498         Tests of module 'time' in C++ mode.
499         * tests/test-time-c++.cc: New file.
500         * modules/time-tests (Files): Add it and tests/signature.h.
501         (Depends-on): Add ansi-c++-opt.
502         (Makefile.am): Arrange to compile and run test-time-c++.
503         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
504
505         Tests of module 'sys_time' in C++ mode.
506         * tests/test-sys_time-c++.cc: New file.
507         * modules/sys_time-tests (Files): Add it and tests/signature.h.
508         (Depends-on): Add ansi-c++-opt.
509         (Makefile.am): Arrange to compile and run test-sys_time-c++.
510         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
511         gl_MODULE_INDICATOR.
512
513         Tests of module 'sys_stat' in C++ mode.
514         * tests/test-sys_stat-c++.cc: New file.
515         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
516         (Depends-on): Add ansi-c++-opt.
517         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
519         gl_MODULE_INDICATOR.
520
521         Tests of module 'sys_socket' in C++ mode.
522         * tests/test-sys_socket-c++.cc: New file.
523         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
524         (Depends-on): Add ansi-c++-opt.
525         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
526         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
527         gl_MODULE_INDICATOR.
528
529         Tests of module 'sys_select' in C++ mode.
530         * tests/test-sys_select-c++.cc: New file.
531         * modules/sys_select-tests (Files): Add it and tests/signature.h.
532         (Depends-on): Add ansi-c++-opt.
533         (Makefile.am): Arrange to compile and run test-sys_select-c++.
534         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
535         gl_MODULE_INDICATOR.
536
537         Tests of module 'sys_ioctl' in C++ mode.
538         * tests/test-sys_ioctl-c++.cc: New file.
539         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
540         (Depends-on): Add ansi-c++-opt.
541         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
542         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
543         gl_MODULE_INDICATOR.
544
545         Tests of module 'string' in C++ mode.
546         * tests/test-string-c++.cc: New file.
547         * modules/string-tests (Files): Add it and tests/signature.h.
548         (Depends-on): Add ansi-c++-opt.
549         (Makefile.am): Arrange to compile and run test-string-c++.
550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
551         gl_MODULE_INDICATOR.
552
553         Tests of module 'stdlib' in C++ mode.
554         * tests/test-stdlib-c++.cc: New file.
555         * modules/stdlib-tests (Files): Add it and tests/signature.h.
556         (Depends-on): Add ansi-c++-opt.
557         (Makefile.am): Arrange to compile and run test-stdlib-c++.
558         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
559         gl_MODULE_INDICATOR.
560
561         Tests of module 'stdio' in C++ mode.
562         * tests/test-stdio-c++.cc: New file.
563         * modules/stdio-tests (Files): Add it and tests/signature.h.
564         (Depends-on): Add ansi-c++-opt.
565         (Makefile.am): Arrange to compile and run test-stdio-c++.
566         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
567         gl_MODULE_INDICATOR.
568
569         Tests of module 'spawn' in C++ mode.
570         * tests/test-spawn-c++.cc: New file.
571         * modules/spawn-tests (Files): Add it and tests/signature.h.
572         (Depends-on): Add ansi-c++-opt.
573         (Makefile.am): Arrange to compile and run test-spawn-c++.
574         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
575         gl_MODULE_INDICATOR.
576
577         Tests of module 'signal' in C++ mode.
578         * tests/test-signal-c++.cc: New file.
579         * modules/signal-tests (Files): Add it and tests/signature.h.
580         (Depends-on): Add ansi-c++-opt.
581         (Makefile.am): Arrange to compile and run test-signal-c++.
582         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
583         gl_MODULE_INDICATOR.
584
585         Tests of module 'search' in C++ mode.
586         * tests/test-search-c++.cc: New file.
587         * modules/search-tests (Files): Add it and tests/signature.h.
588         (Depends-on): Add ansi-c++-opt.
589         (Makefile.am): Arrange to compile and run test-search-c++.
590         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
591         gl_MODULE_INDICATOR.
592
593         Tests of module 'math' in C++ mode.
594         * tests/test-math-c++.cc: New file.
595         * modules/math-tests (Files): Add it and tests/signature.h.
596         (Depends-on): Add ansi-c++-opt.
597         (Makefile.am): Arrange to compile and run test-math-c++.
598         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
599
600         Tests of module 'locale' in C++ mode.
601         * tests/test-locale-c++.cc: New file.
602         * modules/locale-tests (Files): Add it and tests/signature.h.
603         (Depends-on): Add ansi-c++-opt.
604         (Makefile.am): Arrange to compile and run test-locale-c++.
605         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
606         gl_MODULE_INDICATOR.
607
608         Tests of module 'langinfo' in C++ mode.
609         * tests/test-langinfo-c++.cc: New file.
610         * modules/langinfo-tests (Files): Add it and tests/signature.h.
611         (Depends-on): Add ansi-c++-opt.
612         (Makefile.am): Arrange to compile and run test-langinfo-c++.
613         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
614         gl_MODULE_INDICATOR.
615
616         Tests of module 'iconv-h' in C++ mode.
617         * tests/test-iconv-h-c++.cc: New file.
618         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
619         (Depends-on): Add ansi-c++-opt.
620         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
621
622         Tests of module 'glob' in C++ mode.
623         * tests/test-glob-c++.cc: New file.
624         * modules/glob-tests (Files): Add it.
625         (Depends-on): Add ansi-c++-opt.
626         (Makefile.am): Arrange to compile and run test-glob-c++.
627
628         Tests of module 'fcntl-h' in C++ mode.
629         * tests/test-fcntl-h-c++.cc: New file.
630         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
631         (Depends-on): Add ansi-c++-opt.
632         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
633         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
634         gl_MODULE_INDICATOR.
635
636         Tests of module 'dirent' in C++ mode.
637         * tests/test-dirent-c++.cc: New file.
638         * modules/dirent-tests (Files): Add it and tests/signature.h.
639         (Depends-on): Add ansi-c++-opt.
640         (Makefile.am): Arrange to compile and run test-dirent-c++.
641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
642         gl_MODULE_INDICATOR.
643
644         New module 'ansi-c++-opt'.
645         * modules/ansi-c++-opt: New file.
646         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
647
648         Document C++ namespace mode.
649         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
650
651         wctype: Avoid #define replacements in C++ mode.
652         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
653         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
654         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
655         In C++, define a namespaced alias symbol.
656         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
657         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
658         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
659         rule.
660
661         wchar: Avoid #define replacements in C++ mode.
662         * lib/wchar.in.h: Include c++defs.h.
663         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
664         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
665         symbol.
666         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
667         * modules/wchar (Depends-on): Add c++defs.
668         (Makefile.am): Update wchar.h rule.
669
670         unistd: Avoid #define replacements in C++ mode.
671         * lib/unistd.in.h: Include c++defs.h.
672         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
673         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
674         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
675         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
676         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
677         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
678         symbol.
679         (environ): Update.
680         * modules/unistd (Depends-on): Add c++defs.
681         (Makefile.am): Update unistd.h rule.
682
683         time: Avoid #define replacements in C++ mode.
684         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
685         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
686         define a namespaced alias symbol.
687         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
688         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
689         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
690         * modules/time (Depends-on): Add c++defs, warn-on-use.
691         (Makefile.am): Update time.h rule.
692         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
693         * modules/nanosleep (configure.ac): Likewise.
694         * modules/strptime (configure.ac): Likewise.
695         * modules/timegm (configure.ac): Likewise.
696
697         sys_time: Avoid #define replacements in C++ mode.
698         * lib/sys_time.in.h: Include c++defs.h.
699         (gettimeofday): In C++, define a namespaced alias symbol.
700         * modules/sys_time (Depends-on): Add c++defs.
701         (Makefile.am): Update sys/time.h rule.
702
703         sys_stat: Avoid #define replacements in C++ mode.
704         * lib/sys_stat.in.h: Include c++defs.h.
705         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
706         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
707         namespaced alias symbol.
708         In C++, define a namespaced alias symbol.
709         * modules/sys_stat (Depends-on): Add c++defs.
710         (Makefile.am): Update sys/stat.h rule.
711
712         sys_socket: Avoid #define replacements in C++ mode.
713         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
714         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
715         definitions also when the system has a <sys/socket.h>.
716         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
717         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
718         In C++, define a namespaced alias symbol.
719         * modules/sys_socket (Depends-on): Add c++defs.
720         (Makefile.am): Update sys/socket.h rule.
721
722         sys_select: Avoid #define replacements in C++ mode.
723         * lib/sys_select.in.h: Include c++defs.h. Enable the function
724         definitions also when the system has a <sys/select.h>.
725         (select): In C++, define a namespaced alias symbol.
726         * modules/sys_select (Depends-on): Add c++defs.
727         (Makefile.am): Update sys/select.h rule.
728
729         sys_ioctl: Avoid #define replacements in C++ mode.
730         * lib/sys_ioctl.in.h: Include c++defs.h.
731         (ioctl): In C++, define a namespaced alias symbol.
732         * modules/sys_ioctl (Depends-on): Add c++defs.
733         (Makefile.am): Update sys/ioctl.h rule.
734
735         string: Avoid #define replacements in C++ mode.
736         * lib/string.in.h: Include c++defs.h.
737         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
738         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
739         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
740         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
741         strsignal, strverscmp): In C++, define a namespaced alias symbol.
742         * modules/string (Depends-on): Add c++defs.
743         (Makefile.am): Update string.h rule.
744
745         stdlib: Avoid #define replacements in C++ mode.
746         * lib/stdlib.in.h: Include c++defs.h.
747         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
748         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
749         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
750         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
751         symbol.
752         * modules/stdlib (Depends-on): Add c++defs.
753         (Makefile.am): Update stdlib.h rule.
754
755         stdio: Avoid #define replacements in C++ mode.
756         * lib/stdio.in.h: Include c++defs.h.
757         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
758         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
759         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
760         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
761         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
762         namespaced alias symbol.
763         * modules/stdio (Depends-on): Add c++defs.
764         (Makefile.am): Update stdio.h rule.
765
766         spawn: Avoid #define replacements in C++ mode.
767         * lib/spawn.in.h: Include c++defs.h.
768         (posix_spawn, posix_spawnp, posix_spawnattr_init,
769         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
770         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
771         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
772         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
773         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
774         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
775         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
776         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
777         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
778         In C++, define a namespaced alias symbol.
779         * modules/spawn (Depends-on): Add c++defs.
780         (Makefile.am): Update spawn.h rule.
781
782         signal: Avoid #define replacements in C++ mode.
783         * lib/signal.in.h: Include c++defs.h.
784         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
785         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
786         namespaced alias symbol.
787         * modules/signal (Depends-on): Add c++defs.
788         (Makefile.am): Update signal.h rule.
789
790         search: Avoid #define replacements in C++ mode.
791         * lib/search.in.h: Include c++defs.h.
792         (_gl_search_compar_fn, _gl_search_action_fn): New types.
793         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
794         symbol.
795         * modules/search (Depends-on): Add c++defs.
796         (Makefile.am): Update search.h rule.
797
798         math: Avoid #define replacements in C++ mode.
799         * lib/math.in.h: Include c++defs.h.
800         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
801         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
802         trunc, truncl): In C++, define a namespaced alias symbol.
803         * modules/math (Depends-on): Add c++defs.
804         (Makefile.am): Update math.h rule.
805
806         locale: Avoid #define replacements in C++ mode.
807         * lib/locale.in.h: Include c++defs.h.
808         (duplocale): In C++, define a namespaced alias symbol.
809         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
810         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
811         * modules/locale (Depends-on): Add c++defs.
812         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
813
814         langinfo: Avoid #define replacements in C++ mode.
815         * lib/langinfo.in.h: Include c++defs.h.
816         (nl_langinfo): In C++, define a namespaced alias symbol.
817         * modules/langinfo (Depends-on): Add c++defs.
818         (Makefile.am): Update langinfo.h rule.
819
820         iconv-h: Avoid #define replacements in C++ mode.
821         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
822         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
823         symbol.
824         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
825         whenever iconv is present.
826         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
827         (Makefile.am): Update iconv.h rule.
828
829         glob: Avoid #define replacements in C++ mode.
830         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
831         (_gl_glob_errfunc_fn): New type.
832         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
833         symbol.
834         * modules/glob (Depends-on): Add c++defs, warn-on-use.
835         (Makefile.am): Update glob.h rule.
836
837         fcntl-h: Avoid #define replacements in C++ mode.
838         * lib/fcntl.in.h: Include c++defs.h.
839         (fcntl, open, openat): In C++, define a namespaced alias symbol.
840         * modules/fcntl-h (Depends-on): Add c++defs.
841         (Makefile.am): Update fcntl.h rule.
842
843         dirent: Avoid #define replacements in C++ mode.
844         * lib/dirent.in.h: Include c++defs.h.
845         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
846         namespaced alias symbol.
847         (dirfd): Update declaration.
848         * modules/dirent (Depends-on): Add c++defs.
849         (Makefile.am): Update dirent.h rule.
850
851         ctype: Make it usable in C++ code.
852         * lib/ctype.in.h: Include c++defs.h.
853         (isblank): Declare as extern "C".
854         * modules/ctype (Depends-on): Add c++defs.
855         (Makefile.am): Update ctype.h rule.
856
857         New module 'c++defs'.
858         * modules/c++defs: New file.
859         * build-aux/c++defs.h: New file.
860         Reported by John W. Eaton <jwe@gnu.org>.
861
862 2010-03-07  Bruno Haible  <bruno@clisp.org>
863
864         logb: Provide missing declaration for Cygwin.
865         * lib/math.in.h (logb): New declaration.
866         * m4/logb.m4: New file.
867         * modules/logb (Files): Add m4/logb.m4.
868         (Depends-on): Add math.
869         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
870         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
872         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
873         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
874
875 2010-03-07  Bruno Haible  <bruno@clisp.org>
876
877         Fix test-cond link error.
878         * tests/test-cond.c: Include <stdio.h>.
879
880 2010-03-07  Bruno Haible  <bruno@clisp.org>
881
882         Fix test-dirent-safer link error.
883         * modules/dirent-safer-tests (Makefile.am): Define
884         test_dirent_safer_LDADD.
885
886 2010-03-07  Bruno Haible  <bruno@clisp.org>
887
888         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
889         among default module list.
890
891 2010-03-07  Bruno Haible  <bruno@clisp.org>
892
893         Fix link error on platforms with GNU libiconv.
894         * modules/unistr/u8-strcoll-tests (Makefile): Define
895         test_u8_strcoll_LDADD.
896         * modules/unistr/u16-strcoll-tests (Makefile): Define
897         test_u16_strcoll_LDADD.
898         * modules/unistr/u32-strcoll-tests (Makefile): Define
899         test_u32_strcoll_LDADD.
900
901 2010-03-07  Bruno Haible  <bruno@clisp.org>
902
903         Use POSIX declarations for socket functions.
904         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
905         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
906         rpl_sendto): Change declaration to match POSIX.
907         * lib/connect.c (rpl_connect): Likewise.
908         * lib/accept.c (rpl_accept): Likewise.
909         * lib/bind.c (rpl_bind): Likewise.
910         * lib/getpeername.c (rpl_getpeername): Likewise.
911         * lib/getsockname.c (rpl_getsockname): Likewise.
912         * lib/recv.c (rpl_recv): Likewise.
913         * lib/send.c (rpl_send): Likewise.
914         * lib/recvfrom.c (rpl_recvfrom): Likewise.
915         * lib/sendto.c (rpl_sendto): Likewise.
916
917 2010-03-06  Bruno Haible  <bruno@clisp.org>
918
919         Clarify access, euidaccess, faccessat.
920         * doc/posix-functions/faccessat.texi: Mention security problem under
921         "Other problems", not "Portability problems".
922         * doc/posix-functions/access.texi: Likewise. Mention a related security
923         problem.
924         * doc/glibc-functions/euidaccess.texi: Mention security problems.
925         * lib/euidaccess.c: Add comments about platforms.
926         * lib/unistd.in.h (access, euidaccess): Add warnings.
927
928 2010-03-07  Bruno Haible  <bruno@clisp.org>
929
930         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
931         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
932         (POSIX_SPAWN_SETSCHEDULER): Likewise.
933         (POSIX_SPAWN_USEVFORK): Define in a way that works when
934         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
935         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
936         declare when POSIX_SPAWN_SETSCHEDULER is zero.
937         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
938         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
940         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
941         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
942         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
943         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
944         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
945         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
946         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
947         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
948         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
949         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
950         Likewise.
951         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
952         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
953         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
954         Likewise.
955         * tests/test-spawn.c (main): Make it work when
956         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
957
958 2010-03-07  Bruno Haible  <bruno@clisp.org>
959
960         Fix incorrect Makefile.am generation in German locale.
961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
962         Execute sed command with character range in C locale.
963
964 2010-03-06  Bruno Haible  <bruno@clisp.org>
965
966         Tests for module 'iconv-h'.
967         * modules/iconv-h-tests: New file.
968         * tests/test-iconv-h.c: New file.
969
970         New module 'iconv-h'.
971         * modules/iconv-h: New file.
972         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
973         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
974         (configure.ac): Remove gl_ICONV_H.
975         (Makefile.am): Remove rule for iconv.h.
976
977 2010-03-06  Bruno Haible  <bruno@clisp.org>
978
979         More consistent naming of *.m4 files.
980         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
981         * modules/wctype (Files): Update.
982
983         More consistent naming of *.m4 files.
984         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
985         * modules/wchar (Files): Update.
986
987 2010-03-06  Jim Meyering  <meyering@redhat.com>
988
989         euidaccess: relax license to LGPLv2+
990         * modules/euidaccess (License): Relax to LGPLv2+.
991
992 2010-03-06  Bruno Haible  <bruno@clisp.org>
993
994         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
995         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
996         (Makefile.am): Augment lib_SOURCES instead.
997
998 2010-03-04  Jim Meyering  <meyering@redhat.com>
999
1000         utime: remove obsolete module
1001         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1002         unnecessary for years, and has been marked as obsolete for 10 months.
1003         * modules/utime: Remove file.
1004         * lib/utime.c: Remove file.
1005         * m4/utime.m4: Remove file.
1006         * m4/utimes-null.m4: Remove file.
1007         * doc/posix-functions/utime.texi (utime): Remove reference to
1008         the module.  Move the sole "fixed by gnulib" item into the
1009         "problems not fixed by Gnulib" list.
1010         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1011
1012 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1013
1014         * modules/exit (License): Relax license to LGPLv2+.
1015         (Status): Mark as obsolete.
1016         * NEWS: Mention deprecated 'exit' module.
1017         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1018         of now obsolete 'exit'.
1019
1020 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1021
1022         fts-lgpl: remove unused module
1023         * modules/fts-lgpl: Remove.
1024         * MODULES.html.sh (func_all_modules): Adjust.
1025         * check-module (find_included_lib_files): Adjust.
1026         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1027
1028 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1029
1030         copy-acl: enhance Solaris ACL error handling
1031         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1032         * lib/set-mode-acl.c (qset_acl): Likewise.
1033
1034 2010-03-02  Bruno Haible  <bruno@clisp.org>
1035
1036         spawn: Don't override the system defined values on FreeBSD 8.
1037         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1038         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1039         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1040         if HAVE_POSIX_SPAWN is 1.
1041         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1042
1043 2010-03-01  Bruno Haible  <bruno@clisp.org>
1044
1045         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1046         regarding Automake.
1047
1048 2010-02-25  Bruno Haible  <bruno@clisp.org>
1049
1050         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1051         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1052         setting, not afterwards.
1053         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1054
1055 2010-02-24  Eric Blake  <eblake@redhat.com>
1056
1057         bootstrap, git-version-gen: use timestamp
1058         * build-aux/git-version-gen (scriptversion): Force UTC.
1059         * build-aux/bootstrap (scriptversion): New variable.
1060
1061         bootstrap: allow older git
1062         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1063         older than 1.6.4.  Requested by the libvirt project.
1064
1065 2010-02-23  Eric Blake  <eblake@redhat.com>
1066
1067         warn-on-use: work with old autoconf
1068         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1069         AS_VAR semantics of autoconf 2.60.
1070         Reported by Bruno Haible.
1071
1072         bootstrap: improve some comments
1073         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1074         clarification comments.
1075
1076         gettimeofday: provide correct function
1077         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1078         when replacement is declared, otherwise provide gettimeofday.
1079         Reported by Michael Goffioul.
1080
1081 2010-02-23  Jim Meyering  <meyering@redhat.com>
1082
1083         lib-ignore: relax license to "unlimited", not LGPLv2+
1084         * modules/lib-ignore (License): Relax to "unlimited".
1085
1086 2010-02-23  Jim Meyering  <meyering@redhat.com>
1087
1088         lib-ignore: relax license to LGPLv2+
1089         * modules/lib-ignore (License): Relax to LGPLv2+.
1090
1091 2010-02-22  Eric Blake  <eblake@redhat.com>
1092
1093         lseek: avoid bash 3.2 broken pipe bug
1094         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1095         warning from bash 3.2.
1096         Reported by Ben Pfaff, with analysis from Bruno Haible.
1097
1098         bootstrap: support non-FSF copyright holder
1099         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1100         bootstrap.conf override of COPYRIGHT_HOLDER.
1101         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1102
1103         bootstrap: interoperate with gettext 0.14.1
1104         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1105
1106         bootstrap: allow for alternate submodule location
1107         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1108         hardcoding submodule location.
1109         (gnulib_mk): Allow direct use of Makefile.am.
1110
1111         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1112         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1113         rather than reconfiguring where the submodule points.
1114
1115         gettimeofday: restore support for platforms that lack function
1116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1117         replacement if function is missing.
1118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1119         * modules/sys_time (Makefile.am): Substitute it.
1120         * lib/sys_time.in.h (gettimeofday): Check it.
1121         Reported by Michael Goffioul.
1122
1123 2010-02-21  Bruno Haible  <bruno@clisp.org>
1124
1125         * lib/stdio.in.h (obstack_printf): Fix typo.
1126
1127 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1128
1129         vc-list-files: use bzr ls's -R option
1130         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1131         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1132
1133 2010-02-21  Jim Meyering  <meyering@redhat.com>
1134
1135         init.sh: fix EXEEXT shims to work also for names like test-prog
1136         * tests/init.sh: Re-exec a better shell, when needed.
1137         If the current shell lacks support for posix $(...), an init.sh-using
1138         test will now try to find a shell that supports that.  If EXEEXT is
1139         nonempty, we also require support for hyphen-in-alias-name and shell
1140         substitutions like ${var#glob}.  Failure to find such a shell results
1141         in a skipped test.
1142
1143 2010-02-21  Bruno Haible  <bruno@clisp.org>
1144
1145         Really work around around "broken pipe" error message from bash 3.2.
1146         * gnulib-tool (func_reset_sigpipe): Remove function.
1147         (echo): In bash 3.2, define to a function that uses printf.
1148         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1149
1150 2010-02-20  Bruno Haible  <bruno@clisp.org>
1151
1152         Restore support for automake 1.9.6 with autoconf 2.61.
1153         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1154         Reported by James Youngman <jay@gnu.org>.
1155
1156 2010-02-20  Bruno Haible  <bruno@clisp.org>
1157
1158         Improve *printf warning condition.
1159         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1160         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1161         and the function is overridden due to SIGPIPE emulation.
1162
1163 2010-02-20  Bruno Haible  <bruno@clisp.org>
1164
1165         * lib/stdio.in.h: Tweak comments.
1166
1167 2010-02-19  Bruno Haible  <bruno@clisp.org>
1168
1169         Make it easier to find modules. New gnulib-tool option '--find'.
1170         * gnulib-tool: New option --find.
1171         (func_usage): Document it.
1172         (func_sanitize_modulelist): New function, extracted from
1173         func_all_modules.
1174         (func_all_modules): Invoke it.
1175         * doc/gnulib-tool.texi (Which modules?): New node.
1176
1177 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1178
1179         * lib/sys_select.in.h: Provide select replacement even if
1180         sys/select.h exists on a system, for Interix.
1181
1182 2010-02-18  Jim Meyering  <meyering@redhat.com>
1183
1184         init.sh: don't use $(...) just yet
1185         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1186         to accommodate e.g., Solaris' /bin/sh.
1187
1188 2010-02-17  Bruno Haible  <bruno@clisp.org>
1189
1190         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1191         Reported by Ludovic Courtès <ludo@gnu.org>.
1192
1193 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1194
1195         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1196         linking with -lintl.
1197
1198 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1199
1200         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1201         if not provided by the system's netdb.h.  Reported by
1202         ludo@gnu.org (Ludovic Courtès).
1203
1204 2010-02-15  Jim Meyering  <meyering@redhat.com>
1205
1206         init.sh: improve portability and efficiency
1207         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1208         "dummy" in a for loop.
1209         Use '!', not '^' to select the complement of a character set used
1210         in a "case" statement.
1211         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1212         Suggestions from Eric Blake.
1213
1214         init.sh: automatically accommodate programs with the .exe suffix
1215         Automatically arrange for an invocation of "prog" to execute the
1216         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1217         may use the simpler "prog", yet still work when built on a system
1218         that requires specifying the added suffix.
1219         Do this by constructing a function named "prog" that invokes
1220         "prog.exe" for each .exe file in selected directories.
1221         * tests/init.sh (find_exe_basenames_): New function.
1222         (create_exe_shim_functions_): New function.
1223         (path_prepend_): Use it.
1224
1225         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1226         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1227         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1228
1229 2010-02-14  Jim Meyering  <meyering@redhat.com>
1230
1231         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1232         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1233         (sc_prohibit_hash_pjw_without_use): New rule.
1234
1235         maint.mk: allow the default upload destination dir to be overridden
1236         * top/maint.mk (upload_dest_dir_): Define with a default that
1237         preserves the status quo.
1238         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1239         Reported by Peter Simons.
1240
1241         maint.mk: prohibit inclusion of "hash.h" without_use
1242         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1243
1244 2010-02-10  Jim Meyering  <meyering@redhat.com>
1245
1246         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1247         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1248
1249 2010-02-09  Eric Blake  <ebb9@byu.net>
1250         and Bruno Haible  <bruno@clisp.org>
1251
1252         obstack-printf-posix: ensure declaration
1253         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1254         extracted from gl_FUNC_OBSTACK_PRINTF.
1255         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1256         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1257         Likewise.
1258         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1259         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1260         0.
1261
1262 2010-02-08  Bruno Haible  <bruno@clisp.org>
1263
1264         gnulib-tool: Fix typo in 2010-02-07 commit.
1265         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1266         Reported by Eric Blake.
1267
1268 2010-02-07  Bruno Haible  <bruno@clisp.org>
1269
1270         gnulib-tool: Fix up caching patches.
1271         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1272         option --no-cache. Use associative arrays when supported by the shell.
1273         (sed_comments): New variable.
1274         (modcache): Renamed from do_cache.
1275         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1276         abbreviate unnecessarily.
1277         (have_associative): New variable.
1278         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1279         way also for ksh and zsh.
1280         (func_init_sed_convert_to_cache_statements): New function, extracted
1281         from func_cache_lookup_module. Add support for associative arrays.
1282         Don't set the c_MODULE_cached variable here. Ignore all lines before
1283         the first field header. Remove only the final newline, not all trailing
1284         newlines. Support empty fields correctly. Limit the use of 'eval' to
1285         assignments.
1286         (func_get_description, func_get_status, func_get_notice,
1287         func_get_applicability, func_get_filelist, func_get_dependencies,
1288         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1289         func_get_automake_snippet, func_get_include_directive,
1290         func_get_link_directive, func_get_license, func_get_maintainer):
1291         Update documentation. List the unoptimized code first. Add support for
1292         associative arrays. Limit the use of 'eval' to assignments.
1293         (func_get_applicability): Undo stylistic pessimisations.
1294         (func_get_automake_snippet, func_get_include_directive): Reduce code
1295         duplication.
1296         (func_modules_transitive_closure, func_modules_add_dummy,
1297         func_modules_notice, func_modules_to_filelist, func_add_file,
1298         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1299         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1300         func_create_testdir, func_create_megatestdir): Update documentation.
1301
1302 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1303
1304         * gnulib-tool (func_cache_lookup_module): Store the module name
1305         belonging to the cache variable; error out if two different
1306         module names map to the same cache variable name.
1307
1308 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1309
1310         gnulib-tool: Make caching optional.
1311         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1312         Update matching short versions of --no-changelog.
1313         (func_usage): Update.
1314         (sed_extract_cache_prog): Renamed from ...
1315         (sed_extract_prog): ... this; revert to old extraction script.
1316         (func_get_description, func_get_status)
1317         (func_get_notice, func_get_applicability, func_get_filelist)
1318         (func_get_dependencies, func_get_autoconf_early_snippet)
1319         (func_get_autoconf_snippet, func_get_automake_snippet)
1320         (func_get_include_directive, func_get_link_directive)
1321         (func_get_license, func_get_maintainer): If $do_cache is false,
1322         use old, non-caching extraction scripts.
1323         Suggestion by Bruno Haible.
1324
1325 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1326
1327         gnulib-tool: cache module metainformation.
1328         * gnulib-tool (sed_extract_prog): Match newline before each
1329         header, and rewrite header to a shell variable suffix.
1330         (func_cache_var, func_cache_lookup_module): New functions,
1331         to turn a module name into a cache variable prefix, and to
1332         look up and cache module metainformation.
1333         (func_get_description, func_get_status)
1334         (func_get_notice, func_get_applicability, func_get_filelist)
1335         (func_get_dependencies, func_get_autoconf_early_snippet)
1336         (func_get_autoconf_snippet, func_get_automake_snippet)
1337         (func_get_include_directive, func_get_link_directive)
1338         (func_get_license, func_get_maintainer): Use
1339         func_cache_lookup_module.
1340
1341 2010-02-07  Bruno Haible  <bruno@clisp.org>
1342
1343         fnctl: Fix missing dependency.
1344         * modules/fcntl (Depends-on): Add getdtablesize.
1345         Reported by John W. Eaton <jwe@gnu.org>.
1346
1347 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1348
1349         Argp: fix recognition of short alias options.
1350
1351         * lib/argp-parse.c (convert_options): Fix improper use of
1352         `|' between character values.
1353         * tests/test-argp.c (group1_option): New alias option
1354         --read (-r).
1355         (group1_parser): Special handling for 'r'.
1356         (test15): New test case.
1357         (test_fun): Add test15.
1358         * tests/test-argp-2.sh: Update expected --help and --usage
1359         outputs.
1360
1361 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1362
1363         * tests/test-argp.c: Fix indentation.
1364
1365 2010-02-04  Eric Blake  <ebb9@byu.net>
1366
1367         gettimeofday: expose type of second argument
1368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1369         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1370         * tests/test-gettimeofday.c: Use it to silence warning.
1371         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1372         the issue.
1373
1374 2010-02-03  Jim Meyering  <meyering@redhat.com>
1375
1376         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1377         * lib/regcomp.c (TYPE_SIGNED): Define.
1378         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1379
1380         regcomp.c: avoid a new -Wshadow warning
1381         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1382
1383 2010-02-01  Jim Meyering  <meyering@redhat.com>
1384
1385         removing useless parentheses in cpp #define directives
1386         For motivation, see commit c0221df4, "define STREQ(a,b)
1387         consistently, removing useless parentheses"
1388         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1389         * lib/mountlist.c (MNT_IGNORE): Likewise.
1390         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1391
1392 2010-02-01  Eric Blake  <ebb9@byu.net>
1393
1394         sys_time: use link-warning
1395         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1396         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1397         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1398         * modules/sys_time (Depends-on): Add warn-on-use.
1399         (Makefile.am): Always build replacement.
1400         (configure.ac): Update substitutions.
1401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1402         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1403         bother with SYS_TIME_H.
1404         * modules/gettimeofday (configure.ac): Declare indicator.
1405         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1406         in use.
1407
1408         closein-tests: silence compiler warning
1409         * tests/test-closein.c (main): Ignore fread result.
1410         * modules/closein-tests (Depends-on): Add ignore-value.
1411
1412         tests: silence warning about system return
1413         * tests/test-areadlink-with-size.c (main): Ignore system result.
1414         * tests/test-areadlink.c (main): Likewise.
1415         * tests/test-areadlinkat-with-size.c (main): Likewise.
1416         * tests/test-areadlinkat.c (main): Likewise.
1417         * tests/test-canonicalize-lgpl.c (main): Likewise.
1418         * tests/test-canonicalize.c (main): Likewise.
1419         * tests/test-chown.c (main): Likewise.
1420         * tests/test-fchownat.c (main): Likewise.
1421         * tests/test-fdutimensat.c (main): Likewise.
1422         * tests/test-fstatat.c (main): Likewise.
1423         * tests/test-futimens.c (main): Likewise.
1424         * tests/test-lchown.c (main): Likewise.
1425         * tests/test-link.c (main): Likewise.
1426         * tests/test-linkat.c (main): Likewise.
1427         * tests/test-lstat.c (main): Likewise.
1428         * tests/test-mkdir.c (main): Likewise.
1429         * tests/test-mkdirat.c (main): Likewise.
1430         * tests/test-mkfifo.c (main): Likewise.
1431         * tests/test-mkfifoat.c (main): Likewise.
1432         * tests/test-mknod.c (main): Likewise.
1433         * tests/test-readlink.c (main): Likewise.
1434         * tests/test-remove.c (main): Likewise.
1435         * tests/test-rename.c (main): Likewise.
1436         * tests/test-renameat.c (main): Likewise.
1437         * tests/test-rmdir.c (main): Likewise.
1438         * tests/test-symlink.c (main): Likewise.
1439         * tests/test-symlinkat.c (main): Likewise.
1440         * tests/test-unlink.c (main): Likewise.
1441         * tests/test-unlinkat.c (main): Likewise.
1442         * tests/test-utimens.c (main): Likewise.
1443         * tests/test-utimensat.c (main): Likewise.
1444         * modules/areadlink-tests (Depends-on): Add ignore-value.
1445         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1446         * modules/areadlinkat-tests (Depends-on): Likewise.
1447         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1448         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1449         * modules/canonicalize-tests (Depends-on): Likewise.
1450         * modules/chown-tests (Depends-on): Likewise.
1451         * modules/fdutimensat-tests (Depends-on): Likewise.
1452         * modules/futimens-tests (Depends-on): Likewise.
1453         * modules/lchown-tests (Depends-on): Likewise.
1454         * modules/link-tests (Depends-on): Likewise.
1455         * modules/linkat-tests (Depends-on): Likewise.
1456         * modules/lstat-tests (Depends-on): Likewise.
1457         * modules/mkdir-tests (Depends-on): Likewise.
1458         * modules/mkfifo-tests (Depends-on): Likewise.
1459         * modules/mkfifoat-tests (Depends-on): Likewise.
1460         * modules/mknod-tests (Depends-on): Likewise.
1461         * modules/openat-tests (Depends-on): Likewise.
1462         * modules/readlink-tests (Depends-on): Likewise.
1463         * modules/remove-tests (Depends-on): Likewise.
1464         * modules/rename-tests (Depends-on): Likewise.
1465         * modules/renameat-tests (Depends-on): Likewise.
1466         * modules/rmdir-tests (Depends-on): Likewise.
1467         * modules/symlink-tests (Depends-on): Likewise.
1468         * modules/symlinkat-tests (Depends-on): Likewise.
1469         * modules/unlink-tests (Depends-on): Likewise.
1470         * modules/utimens-tests (Depends-on): Likewise.
1471         * modules/utimensat-tests (Depends-on): Likewise.
1472
1473 2010-01-31  Bruno Haible  <bruno@clisp.org>
1474
1475         Perform the same test for many <math.h> functions.
1476         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1477         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1478         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1479         of gl_MATHFUNC.
1480         * modules/acos (configure.ac): Likewise.
1481         * modules/asin (configure.ac): Likewise.
1482         * modules/atan (configure.ac): Likewise.
1483         * modules/atan2 (configure.ac): Likewise.
1484         * modules/cbrt (configure.ac): Likewise.
1485         * modules/copysign (configure.ac): Likewise.
1486         * modules/cos (configure.ac): Likewise.
1487         * modules/cosh (configure.ac): Likewise.
1488         * modules/erf (configure.ac): Likewise.
1489         * modules/erfc (configure.ac): Likewise.
1490         * modules/exp (configure.ac): Likewise.
1491         * modules/fmod (configure.ac): Likewise.
1492         * modules/hypot (configure.ac): Likewise.
1493         * modules/j0 (configure.ac): Likewise.
1494         * modules/j1 (configure.ac): Likewise.
1495         * modules/jn (configure.ac): Likewise.
1496         * modules/lgamma (configure.ac): Likewise.
1497         * modules/log (configure.ac): Likewise.
1498         * modules/log10 (configure.ac): Likewise.
1499         * modules/log1p (configure.ac): Likewise.
1500         * modules/pow (configure.ac): Likewise.
1501         * modules/remainder (configure.ac): Likewise.
1502         * modules/sin (configure.ac): Likewise.
1503         * modules/sinh (configure.ac): Likewise.
1504         * modules/tan (configure.ac): Likewise.
1505         * modules/tanh (configure.ac): Likewise.
1506         * modules/y0 (configure.ac): Likewise.
1507         * modules/y1 (configure.ac): Likewise.
1508         * modules/yn (configure.ac): Likewise.
1509         Suggested by Paolo Bonzini.
1510
1511 2010-01-31  Bruno Haible  <bruno@clisp.org>
1512
1513         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1514
1515 2010-01-31  Bruno Haible  <bruno@clisp.org>
1516
1517         Work around getdelim() bug on FreeBSD 8.0.
1518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1519         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1520         not work.
1521         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1522         is 1.
1523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1524         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1525         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1526         a non-zero size.
1527         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1528
1529 2010-01-31  Bruno Haible  <bruno@clisp.org>
1530
1531         Work around getline() bug on FreeBSD 8.0.
1532         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1533         and a non-zero size.
1534         * tests/test-getline.c (main): Likewise.
1535         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1536         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1537
1538 2010-01-28  Eric Blake  <ebb9@byu.net>
1539
1540         regex: fix build failure
1541         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1542         platforms.
1543
1544 2010-01-28  Jim Meyering  <meyering@redhat.com>
1545
1546         regex: do not ignore memory allocation failure
1547         * lib/regex_internal.c (create_cd_newstate): Detect
1548         re_node_set_init_copy failure.   Extracted from glibc commit
1549         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1550
1551         regex: sync more white-space changes from libc
1552         * lib/regex_internal.c: White-space only changes.
1553         * lib/regexec.c: Likewise.
1554
1555         regex: add many uses of __attribute_warn_unused_result__
1556         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1557         * lib/regexec.c: Likewise.
1558         Extracted from a messy glibc commit.
1559
1560         regcomp.c: spelling and merge-artifact from glibc
1561         * lib/regcomp.c: Merge remainder of glibc's
1562         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1563
1564         regcomp.c: sync white-space changes from glibc
1565         * lib/regcomp.c: Merge to accommodate white space
1566         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1567
1568         regcomp.c: do not ignore internal return values
1569         * lib/regcomp.c: Do not ignore internal return values.
1570         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1571         but without its white-space changes and spelling fixes.
1572
1573         regex_internal.h: define __attribute_warn_unused_result__
1574         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1575
1576         maint: add a syntax-check rule to check for vulnerable Makefile.in
1577         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1578
1579 2010-01-27  Jim Meyering  <meyering@redhat.com>
1580
1581         ncftpput-ftp: clean up spaces
1582         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1583         Remove trailing blanks.
1584
1585 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1586
1587         * build-aux/git-version-gen: Fix copyright statement.
1588         * build-aux/gnupload: Likewise.
1589         * tests/test-arcfour.c: Likewise.
1590         * tests/test-arctwo.c: Likewise.
1591         * tests/test-count-one-bits.c: Likewise.
1592         * tests/test-crc.c: Likewise.
1593         * tests/test-des.c: Likewise.
1594         * tests/test-gc-arcfour.c: Likewise.
1595         * tests/test-gc-arctwo.c: Likewise.
1596         * tests/test-gc-des.c: Likewise.
1597         * tests/test-gc-hmac-md5.c: Likewise.
1598         * tests/test-gc-hmac-sha1.c: Likewise.
1599         * tests/test-gc-md2.c: Likewise.
1600         * tests/test-gc-md4.c: Likewise.
1601         * tests/test-gc-md5.c: Likewise.
1602         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1603         * tests/test-gc-rijndael.c: Likewise.
1604         * tests/test-gc-sha1.c: Likewise.
1605         * tests/test-gc.c: Likewise.
1606         * tests/test-gethostname.c: Likewise.
1607         * tests/test-gettimeofday.c: Likewise.
1608         * tests/test-hash.c: Likewise.
1609         * tests/test-hmac-md5.c: Likewise.
1610         * tests/test-hmac-sha1.c: Likewise.
1611         * tests/test-md2.c: Likewise.
1612         * tests/test-md4.c: Likewise.
1613         * tests/test-md5.c: Likewise.
1614         * tests/test-memchr.c: Likewise.
1615         * tests/test-memchr2.c: Likewise.
1616         * tests/test-memcmp.c: Likewise.
1617         * tests/test-memmem.c: Likewise.
1618         * tests/test-memrchr.c: Likewise.
1619         * tests/test-rawmemchr.c: Likewise.
1620         * tests/test-read-file.c: Likewise.
1621         * tests/test-rijndael.c: Likewise.
1622         * tests/test-sockets.c: Likewise.
1623         * tests/test-strchrnul.c: Likewise.
1624         * tests/test-strstr.c: Likewise.
1625         * tests/test-strtod.c: Likewise.
1626         * build-aux/ncftpput-ftp: Likewise.
1627
1628 2010-01-26  Eric Blake  <ebb9@byu.net>
1629
1630         ignore-value: update recommended header name
1631         * modules/ignore-value (Include): Only use <> for headers that
1632         exist in glibc.
1633
1634 2010-01-26  Jim Meyering  <meyering@redhat.com>
1635
1636         test-userspec.c: avoid compiler warnings
1637         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1638         and "initialization discards qualifiers..." warnings.
1639         Put the first "uid" in its own scope, and make char* members "const".
1640
1641 2010-01-25  Bruno Haible  <bruno@clisp.org>
1642
1643         gnulib-tool: Make warning diagnostics consistent.
1644         * gnulib-tool (func_warning): New function.
1645         Use it everywhere where gnulib-tool produces output to stderr and it is
1646         not a fatal error.
1647
1648 2010-01-25  Bruno Haible  <bruno@clisp.org>
1649
1650         Fix test dependencies.
1651         * modules/xstrtol-tests (Depends-on): Add inttypes.
1652         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1653
1654 2010-01-25 Pádraig Brady <P@draigBrady.com>
1655
1656         syntax-check: detect incorrect boolean macro values in config.h
1657         * modules/maintainer-makefile (configure.ac): Parameterize the location
1658         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1659         The logic is from Eric Blake and the location indicated by Jim Meyering.
1660         Note the more natural CONFIG_HEADER name is prohibited by automake
1661         for backwards compatibility reasons.
1662         * top/maint.mk (sc_Wundef_boolean): New rule.
1663
1664 2010-01-25  Jim Meyering  <meyering@redhat.com>
1665
1666         bootstrap: detect MacOS 10.6's shasum, too
1667         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1668         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1669
1670 2010-01-23  Jim Meyering  <meyering@redhat.com>
1671
1672         xstrtoll: new module
1673         * modules/xstrtoll: New file.
1674         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1675         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1676         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1677         ./configure fails if you use this module and lack "long long".
1678         * modules/xstrtoll-tests: New module.
1679         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1680         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1681         new init.sh-based test framework.
1682
1683 2010-01-24  Bruno Haible  <bruno@clisp.org>
1684
1685         Tests for module 'yn'.
1686         * modules/yn-tests: New file.
1687         * tests/test-yn.c: New file.
1688
1689         Tests for module 'y1'.
1690         * modules/y1-tests: New file.
1691         * tests/test-y1.c: New file.
1692
1693         Tests for module 'y0'.
1694         * modules/y0-tests: New file.
1695         * tests/test-y0.c: New file.
1696
1697         Tests for module 'tanh'.
1698         * modules/tanh-tests: New file.
1699         * tests/test-tanh.c: New file.
1700
1701         Tests for module 'tan'.
1702         * modules/tan-tests: New file.
1703         * tests/test-tan.c: New file.
1704
1705         Tests for module 'sqrt'.
1706         * modules/sqrt-tests: New file.
1707         * tests/test-sqrt.c: New file.
1708
1709         Tests for module 'sinh'.
1710         * modules/sinh-tests: New file.
1711         * tests/test-sinh.c: New file.
1712
1713         Tests for module 'sin'.
1714         * modules/sin-tests: New file.
1715         * tests/test-sin.c: New file.
1716
1717         Tests for module 'rint'.
1718         * modules/rint-tests: New file.
1719         * tests/test-rint.c: New file.
1720
1721         Tests for module 'remainder'.
1722         * modules/remainder-tests: New file.
1723         * tests/test-remainder.c: New file.
1724
1725         Tests for module 'pow'.
1726         * modules/pow-tests: New file.
1727         * tests/test-pow.c: New file.
1728
1729         Tests for module 'nextafter'.
1730         * modules/nextafter-tests: New file.
1731         * tests/test-nextafter.c: New file.
1732
1733         Tests for module 'modf'.
1734         * modules/modf-tests: New file.
1735         * tests/test-modf.c: New file.
1736
1737         Tests for module 'logb'.
1738         * modules/logb-tests: New file.
1739         * tests/test-logb.c: New file.
1740
1741         Tests for module 'log1p'.
1742         * modules/log1p-tests: New file.
1743         * tests/test-log1p.c: New file.
1744
1745         Tests for module 'log10'.
1746         * modules/log10-tests: New file.
1747         * tests/test-log10.c: New file.
1748
1749         Tests for module 'log'.
1750         * modules/log-tests: New file.
1751         * tests/test-log.c: New file.
1752
1753         Tests for module 'lgamma'.
1754         * modules/lgamma-tests: New file.
1755         * tests/test-lgamma.c: New file.
1756
1757         Tests for module 'ldexp'.
1758         * modules/ldexp-tests: New file.
1759         * tests/test-ldexp.c: New file.
1760
1761         Tests for module 'jn'.
1762         * modules/jn-tests: New file.
1763         * tests/test-jn.c: New file.
1764
1765         Tests for module 'j1'.
1766         * modules/j1-tests: New file.
1767         * tests/test-j1.c: New file.
1768
1769         Tests for module 'j0'.
1770         * modules/j0-tests: New file.
1771         * tests/test-j0.c: New file.
1772
1773         Tests for module 'hypot'.
1774         * modules/hypot-tests: New file.
1775         * tests/test-hypot.c: New file.
1776
1777         Tests for module 'fmod'.
1778         * modules/fmod-tests: New file.
1779         * tests/test-fmod.c: New file.
1780
1781         Tests for module 'fabs'.
1782         * modules/fabs-tests: New file.
1783         * tests/test-fabs.c: New file.
1784
1785         Tests for module 'exp'.
1786         * modules/exp-tests: New file.
1787         * tests/test-exp.c: New file.
1788
1789         Tests for module 'erfc'.
1790         * modules/erfc-tests: New file.
1791         * tests/test-erfc.c: New file.
1792
1793         Tests for module 'erf'.
1794         * modules/erf-tests: New file.
1795         * tests/test-erf.c: New file.
1796
1797         Tests for module 'cosh'.
1798         * modules/cosh-tests: New file.
1799         * tests/test-cosh.c: New file.
1800
1801         Tests for module 'cos'.
1802         * modules/cos-tests: New file.
1803         * tests/test-cos.c: New file.
1804
1805         Tests for module 'copysign'.
1806         * modules/copysign-tests: New file.
1807         * tests/test-copysign.c: New file.
1808
1809         Tests for module 'cbrt'.
1810         * modules/cbrt-tests: New file.
1811         * tests/test-cbrt.c: New file.
1812
1813         Tests for module 'atan2'.
1814         * modules/atan2-tests: New file.
1815         * tests/test-atan2.c: New file.
1816
1817         Tests for module 'atan'.
1818         * modules/atan-tests: New file.
1819         * tests/test-atan.c: New file.
1820
1821         Tests for module 'asin'.
1822         * modules/asin-tests: New file.
1823         * tests/test-asin.c: New file.
1824
1825         Tests for module 'acos'.
1826         * modules/acos-tests: New file.
1827         * tests/test-acos.c: New file.
1828
1829 2010-01-24  Bruno Haible  <bruno@clisp.org>
1830
1831         Fix tests for common <math.h> functions.
1832         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1833         code snippet that references the function pointer, rather than merely
1834         calling the function. Substitute the FUNC_LIBM variable.
1835         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1836         * modules/acos (configure.ac): Likewise.
1837         * modules/asin (configure.ac): Likewise.
1838         * modules/atan (configure.ac): Likewise.
1839         * modules/atan2 (configure.ac): Likewise.
1840         * modules/cbrt (configure.ac): Likewise.
1841         * modules/copysign (configure.ac): Likewise.
1842         * modules/cos (configure.ac): Likewise.
1843         * modules/cosh (configure.ac): Likewise.
1844         * modules/erf (configure.ac): Likewise.
1845         * modules/erfc (configure.ac): Likewise.
1846         * modules/exp (configure.ac): Likewise.
1847         * modules/fabs (configure.ac): Likewise.
1848         * modules/fmod (configure.ac): Likewise.
1849         * modules/hypot (configure.ac): Likewise.
1850         * modules/j0 (configure.ac): Likewise.
1851         * modules/j1 (configure.ac): Likewise.
1852         * modules/jn (configure.ac): Likewise.
1853         * modules/ldexp (configure.ac): Likewise.
1854         * modules/lgamma (configure.ac): Likewise.
1855         * modules/log (configure.ac): Likewise.
1856         * modules/log10 (configure.ac): Likewise.
1857         * modules/log1p (configure.ac): Likewise.
1858         * modules/logb (configure.ac): Likewise.
1859         * modules/modf (configure.ac): Likewise.
1860         * modules/nextafter (configure.ac): Likewise.
1861         * modules/pow (configure.ac): Likewise.
1862         * modules/remainder (configure.ac): Likewise.
1863         * modules/rint (configure.ac): Likewise.
1864         * modules/sin (configure.ac): Likewise.
1865         * modules/sinh (configure.ac): Likewise.
1866         * modules/tan (configure.ac): Likewise.
1867         * modules/tanh (configure.ac): Likewise.
1868         * modules/y0 (configure.ac): Likewise.
1869         * modules/y1 (configure.ac): Likewise.
1870         * modules/yn (configure.ac): Likewise.
1871
1872 2010-01-24  Bruno Haible  <bruno@clisp.org>
1873
1874         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1875         * tests/test-acosl.c (x): New variable.
1876         (main): Store argument in x and fetch it from x.
1877         * tests/test-asinl.c (x): New variable.
1878         (main): Store argument in x and fetch it from x.
1879         * tests/test-atanl.c (x): New variable.
1880         (main): Store argument in x and fetch it from x.
1881         * tests/test-cosl.c (x): New variable.
1882         (main): Store argument in x and fetch it from x.
1883         * tests/test-expl.c (x): New variable.
1884         (main): Store argument in x and fetch it from x.
1885         * tests/test-logl.c (x): New variable.
1886         (main): Store argument in x and fetch it from x.
1887         * tests/test-sinl.c (x): New variable.
1888         (main): Store argument in x and fetch it from x.
1889         * tests/test-sqrtl.c (x): New variable.
1890         (main): Store argument in x and fetch it from x.
1891         * tests/test-tanl.c (x): New variable.
1892         (main): Store argument in x and fetch it from x.
1893
1894 2010-01-24  Bruno Haible  <bruno@clisp.org>
1895
1896         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1897         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1898         assignments to the initial TESTS_ENVIRONMENT.
1899         * doc/gnulib.texi (Unit test modules): Document it.
1900         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1901         TESTS_ENVIRONMENT.
1902         * modules/btowc-tests (Makefile.am): Likewise.
1903         * modules/c-stack-tests (Makefile.am): Likewise.
1904         * modules/c-strcase-tests (Makefile.am): Likewise.
1905         * modules/copy-file-tests (Makefile.am): Likewise.
1906         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1907         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1908         * modules/mbrtowc-tests (Makefile.am): Likewise.
1909         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1910         * modules/mbscasestr-tests (Makefile.am): Likewise.
1911         * modules/mbschr-tests (Makefile.am): Likewise.
1912         * modules/mbscspn-tests (Makefile.am): Likewise.
1913         * modules/mbsinit-tests (Makefile.am): Likewise.
1914         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1915         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1916         * modules/mbspbrk-tests (Makefile.am): Likewise.
1917         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1918         * modules/mbsrchr-tests (Makefile.am): Likewise.
1919         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1920         * modules/mbsspn-tests (Makefile.am): Likewise.
1921         * modules/mbsstr-tests (Makefile.am): Likewise.
1922         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1923         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1924         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1925         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1926         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1927         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1928         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1929         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1930         * modules/wcrtomb-tests (Makefile.am): Likewise.
1931         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1932         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1933         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1934         assignments from TESTS_ENVIRONMENT.
1935         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1936         augmentation.
1937         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1938         * modules/atexit-tests (Makefile.am): Likewise.
1939         * modules/binary-io-tests (Makefile.am): Likewise.
1940         * modules/closein-tests (Makefile.am): Likewise.
1941         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1942         * modules/exclude-tests (Makefile.am): Likewise.
1943         * modules/fflush-tests (Makefile.am): Likewise.
1944         * modules/fpending-tests (Makefile.am): Likewise.
1945         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1946         * modules/freadahead-tests (Makefile.am): Likewise.
1947         * modules/freadptr-tests (Makefile.am): Likewise.
1948         * modules/freadseek-tests (Makefile.am): Likewise.
1949         * modules/fseek-tests (Makefile.am): Likewise.
1950         * modules/fseeko-tests (Makefile.am): Likewise.
1951         * modules/ftell-tests (Makefile.am): Likewise.
1952         * modules/ftello-tests (Makefile.am): Likewise.
1953         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1954         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1955         * modules/lseek-tests (Makefile.am): Likewise.
1956         * modules/parse-duration-tests (Makefile.am): Likewise.
1957         * modules/perror-tests (Makefile.am): Likewise.
1958         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1959         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1960         * modules/pipe-tests (Makefile.am): Likewise.
1961         * modules/pread-tests (Makefile.am): Likewise.
1962         * modules/printf-posix-tests (Makefile.am): Likewise.
1963         * modules/select-tests (Makefile.am): Likewise.
1964         * modules/sigpipe-tests (Makefile.am): Likewise.
1965         * modules/tsearch-tests (Makefile.am): Likewise.
1966         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1967         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1968         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1969         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1970         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1971         * modules/version-etc-tests (Makefile.am): Likewise.
1972         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1973         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1974         * modules/xalloc-die-tests (Makefile.am): Likewise.
1975         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1976         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1977         * modules/xstrtol-tests (Makefile.am): Likewise.
1978         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1979         * modules/yesno-tests (Makefile.am): Likewise.
1980         Suggested by Jim Meyering.
1981
1982 2010-01-24  Bruno Haible  <bruno@clisp.org>
1983
1984         More documentation.
1985         * doc/gnulib.texi (Writing modules): New chapter.
1986         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1987         the new chapter.
1988
1989 2010-01-24  Jim Meyering  <meyering@redhat.com>
1990
1991         maint.mk: do not prepend "./" after filtering
1992         * top/maint.mk (_prepend_srcdir_prefix): New variable
1993         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1994         "./" when $(srcdir) is ".".
1995
1996         define STREQ(a,b) consistently, removing useless parentheses
1997         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1998         since the only risk is that "a" or "b" contains an unparenthesized
1999         comma, but if either did that, STREQ would have 3 or more arguments.
2000         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2001         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2002         * lib/hash-triple.c (STREQ): Likewise.
2003         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2004         * lib/getugroups.c (STREQ): Likewise.
2005
2006 2010-01-23  Jim Meyering  <meyering@redhat.com>
2007
2008         maint.mk: fix syntax-check in a non-srcdir build directory
2009         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2010         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2011
2012 2010-01-22  Jim Meyering  <meyering@redhat.com>
2013
2014         userspec: add unit tests
2015         * tests/test-userspec.c: New file.
2016         * modules/userspec-tests: Likewise.
2017
2018 2010-01-21  Jim Meyering  <meyering@redhat.com>
2019
2020         maint.mk: handle source file names containing "." robustly
2021         * top/maint.mk (_dot_escaped_srcdir): Define.
2022         (VC_LIST): Use it in LHS of sed substitution.
2023
2024 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2025
2026         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2027         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2028         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2029         from a non-srcdir build.
2030
2031 2010-01-20  Eric Blake  <ebb9@byu.net>
2032
2033         warn-on-use: use instead of link-warning
2034         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2035         * modules/unistd (Depends-on, Makefile.am): Likewise.
2036         * modules/arpa_inet (Depends-on): Replace link-warning with
2037         warn-on-use.
2038         (Makefile.am): Update rules accordingly.
2039         * modules/ctype (Depends-on, Makefile.am): Likewise.
2040         * modules/dirent (Depends-on, Makefile.am): Likewise.
2041         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2042         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2043         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2044         * modules/locale (Depends-on, Makefile.am): Likewise.
2045         * modules/math (Depends-on, Makefile.am): Likewise.
2046         * modules/search (Depends-on, Makefile.am): Likewise.
2047         * modules/signal (Depends-on, Makefile.am): Likewise.
2048         * modules/spawn (Depends-on, Makefile.am): Likewise.
2049         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2050         * modules/string (Depends-on, Makefile.am): Likewise.
2051         * modules/strings (Depends-on, Makefile.am): Likewise.
2052         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2053         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2054         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2055         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2056         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2057         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2058         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2059         * modules/wchar (Depends-on, Makefile.am): Likewise.
2060         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2061         should be poisoned.
2062         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2063         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2064         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2065         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2066         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2067         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2068         * m4/math_h.m4 (gl_MATH_H): Likewise.
2069         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2070         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2071         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2072         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2073         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2074         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2075         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2076         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2077         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2079         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2081         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2082         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2083         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2084         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2085         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2086         GL_LINK_WARNING.
2087         * lib/ctype.in.h: Likewise.
2088         * lib/dirent.in.h: Likewise.
2089         * lib/fcntl.in.h: Likewise.
2090         * lib/inttypes.in.h: Likewise.
2091         * lib/langinfo.in.h: Likewise.
2092         * lib/locale.in.h: Likewise.
2093         * lib/math.in.h: Likewise.
2094         * lib/search.in.h: Likewise.
2095         * lib/signal.in.h: Likewise.
2096         * lib/spawn.in.h: Likewise.
2097         * lib/stdio.in.h: Likewise.
2098         * lib/stdlib.in.h: Likewise.
2099         * lib/string.in.h: Likewise.
2100         * lib/strings.in.h: Likewise.
2101         * lib/sys_file.in.h: Likewise.
2102         * lib/sys_ioctl.in.h: Likewise.
2103         * lib/sys_select.in.h: Likewise.
2104         * lib/sys_socket.in.h: Likewise.
2105         * lib/sys_stat.in.h: Likewise.
2106         * lib/sys_times.in.h: Likewise.
2107         * lib/sys_utsname.in.h: Likewise.
2108         * lib/unistd.in.h: Likewise.
2109         * lib/wchar.in.h: Likewise.
2110
2111 2010-01-20  Bruno Haible  <bruno@clisp.org>
2112
2113         Avoid duplicate -lm.
2114         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2115         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2116         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2118         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2119         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2120         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2121         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2122         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2123         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2124         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2125         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2126         Reported by Paolo Bonzini.
2127
2128 2010-01-19  Bruno Haible  <bruno@clisp.org>
2129
2130         langinfo, nl_langinfo: Relicense under LGPLv2+.
2131         * modules/langinfo (License): Change to LGPLv2+.
2132         * modules/nl_langinfo (License): Likewise.
2133         Patch by David Lutterkort <lutter@redhat.com>.
2134
2135 2010-01-19  Bruno Haible  <bruno@clisp.org>
2136
2137         Avoid compilation error with cc on OSF/1 5.1.
2138         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2139         statement, not before.
2140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2141
2142 2010-01-18  Bruno Haible  <bruno@clisp.org>
2143
2144         Avoid a link error due to the __printf__ symbol.
2145         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2146         and 2.6.x.
2147         (__format__, __printf__): Remove definitions.
2148         * lib/argp-fmtstream.h: Likewise.
2149         * lib/argp.h: Likewise.
2150         * lib/error.h: Likewise.
2151         * lib/vasnprintf.h: Likewise.
2152         * lib/xprintf.h: Likewise.
2153         * lib/xvasprintf.h: Likewise.
2154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2155
2156 2010-01-18  Bruno Haible  <bruno@clisp.org>
2157
2158         Tests for module 'tanl'.
2159         * modules/tanl-tests: New file.
2160         * tests/test-tanl.c: New file.
2161
2162         Tests for module 'sqrtl'.
2163         * modules/sqrtl-tests: New file.
2164         * tests/test-sqrtl.c: New file.
2165
2166         Tests for module 'sinl'.
2167         * modules/sinl-tests: New file.
2168         * tests/test-sinl.c: New file.
2169
2170         Tests for module 'logl'.
2171         * modules/logl-tests: New file.
2172         * tests/test-logl.c: New file.
2173
2174         Tests for module 'expl'.
2175         * modules/expl-tests: New file.
2176         * tests/test-expl.c: New file.
2177
2178         Tests for module 'cosl'.
2179         * modules/cosl-tests: New file.
2180         * tests/test-cosl.c: New file.
2181
2182         Tests for module 'atanl'.
2183         * modules/atanl-tests: New file.
2184         * tests/test-atanl.c: New file.
2185
2186         Tests for module 'asinl'.
2187         * modules/asinl-tests: New file.
2188         * tests/test-asinl.c: New file.
2189
2190         Tests for module 'acosl'.
2191         * modules/acosl-tests: New file.
2192         * tests/test-acosl.c: New file.
2193
2194         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2195         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2196         tanl): Use the standard gnulib idiom.
2197         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2198         * lib/sinl.c: Likewise.
2199         * lib/tanl.c: Don't include trigl.c.
2200         (kernel_tanl): Make static.
2201         * lib/sincosl.c: Include trigl.h first.
2202         * lib/trigl.c: Likewise.
2203         * m4/acosl.m4: New file.
2204         * m4/asinl.m4: New file.
2205         * m4/atanl.m4: New file.
2206         * m4/cosl.m4: New file.
2207         * m4/expl.m4: New file.
2208         * m4/logl.m4: New file.
2209         * m4/sinl.m4: New file.
2210         * m4/sqrtl.m4: New file.
2211         * m4/tanl.m4: New file.
2212         * m4/mathl.m4: Remove file.
2213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2214         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2215         Don't initialize GNULIB_MATHL.
2216         * modules/acosl: New file.
2217         * modules/asinl: New file.
2218         * modules/atanl: New file.
2219         * modules/cosl: New file.
2220         * modules/expl: New file.
2221         * modules/logl: New file.
2222         * modules/sinl: New file.
2223         * modules/sqrtl: New file.
2224         * modules/tanl: New file.
2225         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2226         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2227         substitute GNULIB_MATHL.
2228         * modules/mathl: Rewritten.
2229         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2230         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2231         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2232         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2233         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2234         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2235         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2236         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2237         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2238
2239 2010-01-18  Bruno Haible  <bruno@clisp.org>
2240
2241         sqrt: Make gl_FUNC_SQRT requirable.
2242         * m4/sqrt.m4: New file.
2243         * modules/sqrt (Files): Add it.
2244         (configure.ac): Invoke gl_FUNC_SQRT.
2245
2246 2010-01-18  Bruno Haible  <bruno@clisp.org>
2247
2248         New modules for common <math.h> functions.
2249         * m4/mathfunc.m4: New file.
2250         * modules/acos: New file.
2251         * modules/asin: New file.
2252         * modules/atan: New file.
2253         * modules/atan2: New file.
2254         * modules/cbrt: New file.
2255         * modules/copysign: New file.
2256         * modules/cos: New file.
2257         * modules/cosh: New file.
2258         * modules/erf: New file.
2259         * modules/erfc: New file.
2260         * modules/exp: New file.
2261         * modules/fabs: New file.
2262         * modules/fmod: New file.
2263         * modules/hypot: New file.
2264         * modules/j0: New file.
2265         * modules/j1: New file.
2266         * modules/jn: New file.
2267         * modules/ldexp: New file.
2268         * modules/lgamma: New file.
2269         * modules/log: New file.
2270         * modules/log10: New file.
2271         * modules/log1p: New file.
2272         * modules/logb: New file.
2273         * modules/modf: New file.
2274         * modules/nextafter: New file.
2275         * modules/pow: New file.
2276         * modules/remainder: New file.
2277         * modules/rint: New file.
2278         * modules/sin: New file.
2279         * modules/sinh: New file.
2280         * modules/sqrt: New file.
2281         * modules/tan: New file.
2282         * modules/tanh: New file.
2283         * modules/y0: New file.
2284         * modules/y1: New file.
2285         * modules/yn: New file.
2286         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2287         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2288         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2289         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2290         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2291         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2292         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2293         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2294         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2295         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2296         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2297         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2298         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2299         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2300         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2301         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2302         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2303         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2304         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2305         * doc/posix-functions/log.texi: Mention the 'log' module.
2306         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2307         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2308         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2309         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2310         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2311         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2312         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2313         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2314         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2315         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2316         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2317         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2318         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2319         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2320         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2321         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2322
2323 2010-01-18  Jim Meyering  <meyering@redhat.com>
2324
2325         ignore-value: relax license to LGPLv2+
2326         * modules/ignore-value (License): Relax to LGPLv2+.
2327
2328         getdate: don't leak when TZ contains two or more '"'s
2329         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2330         double quote in TZ after the first one.
2331
2332         readtokens: do not leak internal token_lengths buffer
2333         * lib/readtokens.c (readtokens): Free the local, lengths,
2334         when the supplied "token_lengths" parameter is NULL.
2335
2336 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2337
2338         Fix a couple of missing LIBTHREAD link failures on AIX.
2339         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2340         $(LIBTHREAD).
2341         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2342
2343         Link test-poll against INET_PTON_LIB.
2344         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2345         for inet_pton on Solaris 10.
2346
2347 2010-01-17  Bruno Haible  <bruno@clisp.org>
2348
2349         unistdio/*-sprintf: Fix typo in module description.
2350         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2351         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2352         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2353         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2354         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2355         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2356         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2358
2359 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2360
2361         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2362         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2363         variables in shell case patterns, for AIX and HP-UX ksh.
2364
2365         Split large sed scripts, for HP-UX sed.
2366         * modules/stdio: Split sed scripts around 50 sed commands,
2367         to avoid HP-UX limit of 99 commands, in the near future.
2368         * modules/string: Likewise.
2369         * modules/unistd: Likewise.
2370
2371         gnulib-tool: avoid writing in the current directory.
2372         * gnulib-tool (func_emit_lib_Makefile_am)
2373         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2374         not in the current directory, so concurrent gnulib-tool
2375         instances do not interfere.
2376
2377 2010-01-16  Jim Meyering  <meyering@redhat.com>
2378
2379         doc: update users.txt
2380         * users.txt: Add grep.
2381         (diffutils, gzip): Update URLs.
2382
2383 2010-01-12  Bruno Haible  <bruno@clisp.org>
2384
2385         posix_spawn: Avoid test failure on Cygwin.
2386         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2387         characters.
2388         Reported by Simon Josefsson.
2389
2390 2010-01-12  Bruno Haible  <bruno@clisp.org>
2391
2392         * tests/test-cond.c (main): When skipping the test, show the reason.
2393
2394 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2395
2396         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2397
2398 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2399
2400         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2401         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2402
2403 2010-01-12  Eric Blake  <ebb9@byu.net>
2404
2405         build: guarantee AS_VAR_IF
2406         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2407         (gl_AS_VAR_IF): Move...
2408         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2409         Reported by Simon Josefsson.
2410
2411 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2412
2413         * lib/stdio.in.h: Fix typo.
2414
2415 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2416
2417         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2418         libgpg-error.
2419
2420 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2421
2422         * tests/test-xalloc-die.sh: Use $EXEEXT.
2423
2424 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2425             Bruno Haible  <bruno@clisp.org>
2426
2427         getlogin, getlogin_r: Avoid test failure.
2428         * tests/test-getlogin.c: Include <stdio.h>.
2429         (main): Skip the test when the function fails because stdin is not a
2430         tty.
2431         * tests/test-getlogin_r.c: Include <stdio.h>.
2432         (main): Skip the test when the function fails because stdin is not a
2433         tty.
2434
2435 2010-01-11  Eric Blake  <ebb9@byu.net>
2436
2437         tests: avoid more large file warnings
2438         * tests/test-fflush.c: Avoid warning about ftell use.
2439         * tests/test-fseek.c: Avoid warning about fseek use.
2440
2441 2010-01-10  Bruno Haible  <bruno@clisp.org>
2442
2443         nproc: Work better on Linux when /proc and /sys are not mounted.
2444         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2445         as lower bound when, on glibc/Linux systems,
2446         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2447         Suggested by Pádraig Brady <P@draigbrady.com>.
2448         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2449
2450         nproc: Refactor.
2451         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2452         extracted from num_processors.
2453         (num_processors): Call it.
2454
2455 2010-01-11  Jim Meyering  <meyering@redhat.com>
2456
2457         utimecmp: avoid new warning from upcoming gcc-4.5.0
2458         * lib/utimecmp.c (BILLION): Define using #define rather than an
2459         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2460
2461 2010-01-11  Eric Blake  <ebb9@byu.net>
2462
2463         math: add portability warnings for classification macros
2464         * modules/math (Depends-on): Add warn-on-use.
2465         (Makefile.am): Provide new substitutions.
2466         * m4/math_h.m4 (gl_MATH_H): Require inline.
2467         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2468         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2469         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2470         implement warnings.
2471
2472         unistd: warn on use of environ without module
2473         * modules/unistd (Depends-on): Add warn-on-use.
2474         (Makefile.am): Provide new substitutions.
2475         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2476         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2477
2478         stdio: warn on suspicious uses
2479         * modules/stdio (Depends-on): Add warn-on-use.
2480         (Makefile.am): Provide new substitutions.
2481         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2482         fseeko.
2483         * lib/stdio.in.h (gets): Always warn on use.
2484         (fseek, ftell): Adjust when warnings are issued, and honor
2485         _GL_NO_LARGE_FILES as a way to silence the warning.
2486         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2487         any warning about large file offsets.
2488         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2489         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2490         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2491         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2492         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2493         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2494         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2495         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2496
2497         warn-on-use: new module
2498         * modules/warn-on-use: New file.
2499         * build-aux/warn-on-use.h: Likewise.
2500         * m4/warn-on-use.m4: Likewise.
2501         * MODULES.html.sh (Support for building): Mention it.
2502
2503 2010-01-10  Bruno Haible  <bruno@clisp.org>
2504
2505         Tests for module 'unistr/u32-strdup'.
2506         * modules/unistr/u32-strdup-tests: New file.
2507         * tests/unistr/test-u32-strdup.c: New file.
2508
2509         Tests for module 'unistr/u16-strdup'.
2510         * modules/unistr/u16-strdup-tests: New file.
2511         * tests/unistr/test-u16-strdup.c: New file.
2512
2513         Tests for module 'unistr/u8-strdup'.
2514         * modules/unistr/u8-strdup-tests: New file.
2515         * tests/unistr/test-u8-strdup.c: New file.
2516         * tests/unistr/test-strdup.h: New file.
2517
2518         Tests for module 'unistr/u32-strncmp'.
2519         * modules/unistr/u32-strncmp-tests: New file.
2520         * tests/unistr/test-u32-strncmp.c: New file.
2521
2522         Tests for module 'unistr/u16-strncmp'.
2523         * modules/unistr/u16-strncmp-tests: New file.
2524         * tests/unistr/test-u16-strncmp.c: New file.
2525
2526         Tests for module 'unistr/u8-strncmp'.
2527         * modules/unistr/u8-strncmp-tests: New file.
2528         * tests/unistr/test-u8-strncmp.c: New file.
2529         * tests/unistr/test-strncmp.h: New file.
2530
2531         Tests for module 'unistr/u32-strcoll'.
2532         * modules/unistr/u32-strcoll-tests: New file.
2533         * tests/unistr/test-u32-strcoll.c: New file.
2534
2535         Tests for module 'unistr/u16-strcoll'.
2536         * modules/unistr/u16-strcoll-tests: New file.
2537         * tests/unistr/test-u16-strcoll.c: New file.
2538
2539         Tests for module 'unistr/u8-strcoll'.
2540         * modules/unistr/u8-strcoll-tests: New file.
2541         * tests/unistr/test-u8-strcoll.c: New file.
2542
2543         Tests for module 'unistr/u32-strcmp'.
2544         * modules/unistr/u32-strcmp-tests: New file.
2545         * tests/unistr/test-u32-strcmp.c: New file.
2546         * tests/unistr/test-u32-strcmp.h: New file.
2547
2548         Tests for module 'unistr/u16-strcmp'.
2549         * modules/unistr/u16-strcmp-tests: New file.
2550         * tests/unistr/test-u16-strcmp.c: New file.
2551         * tests/unistr/test-u16-strcmp.h: New file.
2552
2553         Tests for module 'unistr/u8-strcmp'.
2554         * modules/unistr/u8-strcmp-tests: New file.
2555         * tests/unistr/test-u8-strcmp.c: New file.
2556         * tests/unistr/test-u8-strcmp.h: New file.
2557         * tests/unistr/test-strcmp.h: New file.
2558
2559         Tests for module 'unistr/u32-strncat'.
2560         * modules/unistr/u32-strncat-tests: New file.
2561         * tests/unistr/test-u32-strncat.c: New file.
2562
2563         Tests for module 'unistr/u16-strncat'.
2564         * modules/unistr/u16-strncat-tests: New file.
2565         * tests/unistr/test-u16-strncat.c: New file.
2566
2567         Tests for module 'unistr/u8-strncat'.
2568         * modules/unistr/u8-strncat-tests: New file.
2569         * tests/unistr/test-u8-strncat.c: New file.
2570         * tests/unistr/test-strncat.h: New file.
2571
2572         Tests for module 'unistr/u32-strcat'.
2573         * modules/unistr/u32-strcat-tests: New file.
2574         * tests/unistr/test-u32-strcat.c: New file.
2575
2576         Tests for module 'unistr/u16-strcat'.
2577         * modules/unistr/u16-strcat-tests: New file.
2578         * tests/unistr/test-u16-strcat.c: New file.
2579
2580         Tests for module 'unistr/u8-strcat'.
2581         * modules/unistr/u8-strcat-tests: New file.
2582         * tests/unistr/test-u8-strcat.c: New file.
2583         * tests/unistr/test-strcat.h: New file.
2584
2585         Tests for module 'unistr/u32-stpncpy'.
2586         * modules/unistr/u32-stpncpy-tests: New file.
2587         * tests/unistr/test-u32-stpncpy.c: New file.
2588
2589         Tests for module 'unistr/u16-stpncpy'.
2590         * modules/unistr/u16-stpncpy-tests: New file.
2591         * tests/unistr/test-u16-stpncpy.c: New file.
2592
2593         Tests for module 'unistr/u8-stpncpy'.
2594         * modules/unistr/u8-stpncpy-tests: New file.
2595         * tests/unistr/test-u8-stpncpy.c: New file.
2596         * tests/unistr/test-stpncpy.h: New file.
2597
2598         Tests for module 'unistr/u32-strncpy'.
2599         * modules/unistr/u32-strncpy-tests: New file.
2600         * tests/unistr/test-u32-strncpy.c: New file.
2601
2602         Tests for module 'unistr/u16-strncpy'.
2603         * modules/unistr/u16-strncpy-tests: New file.
2604         * tests/unistr/test-u16-strncpy.c: New file.
2605
2606         Tests for module 'unistr/u8-strncpy'.
2607         * modules/unistr/u8-strncpy-tests: New file.
2608         * tests/unistr/test-u8-strncpy.c: New file.
2609         * tests/unistr/test-strncpy.h: New file.
2610
2611         Tests for module 'unistr/u32-stpcpy'.
2612         * modules/unistr/u32-stpcpy-tests: New file.
2613         * tests/unistr/test-u32-stpcpy.c: New file.
2614
2615         Tests for module 'unistr/u16-stpcpy'.
2616         * modules/unistr/u16-stpcpy-tests: New file.
2617         * tests/unistr/test-u16-stpcpy.c: New file.
2618
2619         Tests for module 'unistr/u8-stpcpy'.
2620         * modules/unistr/u8-stpcpy-tests: New file.
2621         * tests/unistr/test-u8-stpcpy.c: New file.
2622         * tests/unistr/test-stpcpy.h: New file.
2623
2624         Tests for module 'unistr/u32-strcpy'.
2625         * modules/unistr/u32-strcpy-tests: New file.
2626         * tests/unistr/test-u32-strcpy.c: New file.
2627
2628         Tests for module 'unistr/u16-strcpy'.
2629         * modules/unistr/u16-strcpy-tests: New file.
2630         * tests/unistr/test-u16-strcpy.c: New file.
2631
2632         Tests for module 'unistr/u8-strcpy'.
2633         * modules/unistr/u8-strcpy-tests: New file.
2634         * tests/unistr/test-u8-strcpy.c: New file.
2635         * tests/unistr/test-strcpy.h: New file.
2636
2637         Tests for module 'unistr/u32-strnlen'.
2638         * modules/unistr/u32-strnlen-tests: New file.
2639         * tests/unistr/test-u32-strnlen.c: New file.
2640
2641         Tests for module 'unistr/u16-strnlen'.
2642         * modules/unistr/u16-strnlen-tests: New file.
2643         * tests/unistr/test-u16-strnlen.c: New file.
2644
2645         Tests for module 'unistr/u8-strnlen'.
2646         * modules/unistr/u8-strnlen-tests: New file.
2647         * tests/unistr/test-u8-strnlen.c: New file.
2648         * tests/unistr/test-strnlen.h: New file.
2649
2650         Tests for module 'unistr/u32-strlen'.
2651         * modules/unistr/u32-strlen-tests: New file.
2652         * tests/unistr/test-u32-strlen.c: New file.
2653
2654         Tests for module 'unistr/u16-strlen'.
2655         * modules/unistr/u16-strlen-tests: New file.
2656         * tests/unistr/test-u16-strlen.c: New file.
2657
2658         Tests for module 'unistr/u8-strlen'.
2659         * modules/unistr/u8-strlen-tests: New file.
2660         * tests/unistr/test-u8-strlen.c: New file.
2661
2662         Tests for module 'unistr/u32-prev'.
2663         * modules/unistr/u32-prev-tests: New file.
2664         * tests/unistr/test-u32-prev.c: New file.
2665
2666         Tests for module 'unistr/u16-prev'.
2667         * modules/unistr/u16-prev-tests: New file.
2668         * tests/unistr/test-u16-prev.c: New file.
2669
2670         Tests for module 'unistr/u8-prev'.
2671         * modules/unistr/u8-prev-tests: New file.
2672         * tests/unistr/test-u8-prev.c: New file.
2673
2674         Tests for module 'unistr/u32-next'.
2675         * modules/unistr/u32-next-tests: New file.
2676         * tests/unistr/test-u32-next.c: New file.
2677
2678         Tests for module 'unistr/u16-next'.
2679         * modules/unistr/u16-next-tests: New file.
2680         * tests/unistr/test-u16-next.c: New file.
2681
2682         Tests for module 'unistr/u8-next'.
2683         * modules/unistr/u8-next-tests: New file.
2684         * tests/unistr/test-u8-next.c: New file.
2685
2686         Tests for module 'unistr/u32-strmbtouc'.
2687         * modules/unistr/u32-strmbtouc-tests: New file.
2688         * tests/unistr/test-u32-strmbtouc.c: New file.
2689
2690         Tests for module 'unistr/u16-strmbtouc'.
2691         * modules/unistr/u16-strmbtouc-tests: New file.
2692         * tests/unistr/test-u16-strmbtouc.c: New file.
2693
2694         Tests for module 'unistr/u8-strmbtouc'.
2695         * modules/unistr/u8-strmbtouc-tests: New file.
2696         * tests/unistr/test-u8-strmbtouc.c: New file.
2697
2698         Tests for module 'unistr/u32-strmblen'.
2699         * modules/unistr/u32-strmblen-tests: New file.
2700         * tests/unistr/test-u32-strmblen.c: New file.
2701
2702         Tests for module 'unistr/u16-strmblen'.
2703         * modules/unistr/u16-strmblen-tests: New file.
2704         * tests/unistr/test-u16-strmblen.c: New file.
2705
2706         Tests for module 'unistr/u8-strmblen'.
2707         * modules/unistr/u8-strmblen-tests: New file.
2708         * tests/unistr/test-u8-strmblen.c: New file.
2709
2710         Tests for module 'unistr/u32-cpy-alloc'.
2711         * modules/unistr/u32-cpy-alloc-tests: New file.
2712         * tests/unistr/test-u32-cpy-alloc.c: New file.
2713
2714         Tests for module 'unistr/u16-cpy-alloc'.
2715         * modules/unistr/u16-cpy-alloc-tests: New file.
2716         * tests/unistr/test-u16-cpy-alloc.c: New file.
2717
2718         Tests for module 'unistr/u8-cpy-alloc'.
2719         * modules/unistr/u8-cpy-alloc-tests: New file.
2720         * tests/unistr/test-u8-cpy-alloc.c: New file.
2721         * tests/unistr/test-cpy-alloc.h: New file.
2722
2723         Tests for module 'unistr/u32-mbsnlen'.
2724         * modules/unistr/u32-mbsnlen-tests: New file.
2725         * tests/unistr/test-u32-mbsnlen.c: New file.
2726
2727         Tests for module 'unistr/u16-mbsnlen'.
2728         * modules/unistr/u16-mbsnlen-tests: New file.
2729         * tests/unistr/test-u16-mbsnlen.c: New file.
2730
2731         Tests for module 'unistr/u8-mbsnlen'.
2732         * modules/unistr/u8-mbsnlen-tests: New file.
2733         * tests/unistr/test-u8-mbsnlen.c: New file.
2734
2735         Tests for module 'unistr/u32-chr'.
2736         * modules/unistr/u32-chr-tests: New file.
2737         * tests/unistr/test-u32-chr.c: New file.
2738
2739         Tests for module 'unistr/u16-chr'.
2740         * modules/unistr/u16-chr-tests: New file.
2741         * tests/unistr/test-u16-chr.c: New file.
2742
2743         Tests for module 'unistr/u8-chr'.
2744         * modules/unistr/u8-chr-tests: New file.
2745         * tests/unistr/test-u8-chr.c: New file.
2746         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2747
2748         Tests for module 'unistr/u32-cmp2'.
2749         * modules/unistr/u32-cmp2-tests: New file.
2750         * tests/unistr/test-u32-cmp2.c: New file.
2751
2752         Tests for module 'unistr/u16-cmp2'.
2753         * modules/unistr/u16-cmp2-tests: New file.
2754         * tests/unistr/test-u16-cmp2.c: New file.
2755
2756         Tests for module 'unistr/u8-cmp2'.
2757         * modules/unistr/u8-cmp2-tests: New file.
2758         * tests/unistr/test-u8-cmp2.c: New file.
2759         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2760
2761         Tests for module 'unistr/u32-cmp'.
2762         * modules/unistr/u32-cmp-tests: New file.
2763         * tests/unistr/test-u32-cmp.c: New file.
2764
2765         Tests for module 'unistr/u16-cmp'.
2766         * modules/unistr/u16-cmp-tests: New file.
2767         * tests/unistr/test-u16-cmp.c: New file.
2768
2769         Tests for module 'unistr/u8-cmp'.
2770         * modules/unistr/u8-cmp-tests: New file.
2771         * tests/unistr/test-u8-cmp.c: New file.
2772         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2773
2774         Tests for module 'unistr/u32-set'.
2775         * modules/unistr/u32-set-tests: New file.
2776         * tests/unistr/test-u32-set.c: New file.
2777
2778         Tests for module 'unistr/u16-set'.
2779         * modules/unistr/u16-set-tests: New file.
2780         * tests/unistr/test-u16-set.c: New file.
2781
2782         Tests for module 'unistr/u8-set'.
2783         * modules/unistr/u8-set-tests: New file.
2784         * tests/unistr/test-u8-set.c: New file.
2785         * tests/unistr/test-set.h: New file.
2786
2787         Tests for module 'unistr/u32-move'.
2788         * modules/unistr/u32-move-tests: New file.
2789         * tests/unistr/test-u32-move.c: New file.
2790
2791         Tests for module 'unistr/u16-move'.
2792         * modules/unistr/u16-move-tests: New file.
2793         * tests/unistr/test-u16-move.c: New file.
2794
2795         Tests for module 'unistr/u8-move'.
2796         * modules/unistr/u8-move-tests: New file.
2797         * tests/unistr/test-u8-move.c: New file.
2798         * tests/unistr/test-move.h: New file.
2799
2800         Tests for module 'unistr/u32-cpy'.
2801         * modules/unistr/u32-cpy-tests: New file.
2802         * tests/unistr/test-u32-cpy.c: New file.
2803
2804         Tests for module 'unistr/u16-cpy'.
2805         * modules/unistr/u16-cpy-tests: New file.
2806         * tests/unistr/test-u16-cpy.c: New file.
2807
2808         Tests for module 'unistr/u8-cpy'.
2809         * modules/unistr/u8-cpy-tests: New file.
2810         * tests/unistr/test-u8-cpy.c: New file.
2811         * tests/unistr/test-cpy.h: New file.
2812
2813 2010-01-09  Bruno Haible  <bruno@clisp.org>
2814
2815         Tests for module 'unistr/u32-uctomb'.
2816         * modules/unistr/u32-uctomb-tests: New file.
2817         * tests/unistr/test-u32-uctomb.c: New file.
2818
2819         Tests for module 'unistr/u16-uctomb'.
2820         * modules/unistr/u16-uctomb-tests: New file.
2821         * tests/unistr/test-u16-uctomb.c: New file.
2822
2823         Tests for module 'unistr/u8-uctomb'.
2824         * modules/unistr/u8-uctomb-tests: New file.
2825         * tests/unistr/test-u8-uctomb.c: New file.
2826
2827         Tests for module 'unistr/u32-mbtoucr'.
2828         * modules/unistr/u32-mbtoucr-tests: New file.
2829         * tests/unistr/test-u32-mbtoucr.c: New file.
2830
2831         Tests for module 'unistr/u16-mbtoucr'.
2832         * modules/unistr/u16-mbtoucr-tests: New file.
2833         * tests/unistr/test-u16-mbtoucr.c: New file.
2834
2835         Tests for module 'unistr/u8-mbtoucr'.
2836         * modules/unistr/u8-mbtoucr-tests: New file.
2837         * tests/unistr/test-u8-mbtoucr.c: New file.
2838
2839         Tests for module 'unistr/u32-mbtouc'.
2840         * modules/unistr/u32-mbtouc-tests: New file.
2841         * tests/unistr/test-u32-mbtouc.c: New file.
2842
2843         Tests for module 'unistr/u16-mbtouc'.
2844         * modules/unistr/u16-mbtouc-tests: New file.
2845         * tests/unistr/test-u16-mbtouc.c: New file.
2846
2847         Tests for module 'unistr/u8-mbtouc'.
2848         * modules/unistr/u8-mbtouc-tests: New file.
2849         * tests/unistr/test-u8-mbtouc.c: New file.
2850
2851         Tests for module 'unistr/u32-mbtouc-unsafe'.
2852         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2853         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2854         * tests/unistr/test-u32-mbtouc.h: New file.
2855
2856         Tests for module 'unistr/u16-mbtouc-unsafe'.
2857         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2858         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2859         * tests/unistr/test-u16-mbtouc.h: New file.
2860
2861         Tests for module 'unistr/u8-mbtouc-unsafe'.
2862         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2863         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2864         * tests/unistr/test-u8-mbtouc.h: New file.
2865
2866         Tests for module 'unistr/u32-mblen'.
2867         * modules/unistr/u32-mblen-tests: New file.
2868         * tests/unistr/test-u32-mblen.c: New file.
2869
2870         Tests for module 'unistr/u16-mblen'.
2871         * modules/unistr/u16-mblen-tests: New file.
2872         * tests/unistr/test-u16-mblen.c: New file.
2873
2874         Tests for module 'unistr/u8-mblen'.
2875         * modules/unistr/u8-mblen-tests: New file.
2876         * tests/unistr/test-u8-mblen.c: New file.
2877
2878         Tests for module 'unistr/u32-to-u16'.
2879         * modules/unistr/u32-to-u16-tests: New file.
2880         * tests/unistr/test-u32-to-u16.c: New file.
2881
2882         Tests for module 'unistr/u32-to-u8'.
2883         * modules/unistr/u32-to-u8-tests: New file.
2884         * tests/unistr/test-u32-to-u8.c: New file.
2885
2886         Tests for module 'unistr/u16-to-u32'.
2887         * modules/unistr/u16-to-u32-tests: New file.
2888         * tests/unistr/test-u16-to-u32.c: New file.
2889
2890         Tests for module 'unistr/u16-to-u8'.
2891         * modules/unistr/u16-to-u8-tests: New file.
2892         * tests/unistr/test-u16-to-u8.c: New file.
2893
2894         Tests for module 'unistr/u8-to-u32'.
2895         * modules/unistr/u8-to-u32-tests: New file.
2896         * tests/unistr/test-u8-to-u32.c: New file.
2897
2898         Tests for module 'unistr/u8-to-u16'.
2899         * modules/unistr/u8-to-u16-tests: New file.
2900         * tests/unistr/test-u8-to-u16.c: New file.
2901
2902         Tests for module 'unistr/u32-check'.
2903         * modules/unistr/u32-check-tests: New file.
2904         * tests/unistr/test-u32-check.c: New file.
2905
2906         Tests for module 'unistr/u16-check'.
2907         * modules/unistr/u16-check-tests: New file.
2908         * tests/unistr/test-u16-check.c: New file.
2909
2910         Tests for module 'unistr/u8-check'.
2911         * modules/unistr/u8-check-tests: New file.
2912         * tests/unistr/test-u8-check.c: New file.
2913
2914         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2915         (category_equals): New function.
2916         (main): Add more tests.
2917         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2918
2919         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2920
2921 2010-01-10  Bruno Haible  <bruno@clisp.org>
2922
2923         unistr/u*-strcoll: Try harder to distinguish different strings.
2924         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2925         compare s1 and s2 to see if they are different.
2926
2927 2010-01-10  Bruno Haible  <bruno@clisp.org>
2928
2929         unistr/u*-stpncpy: Fix the return value.
2930         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2931         description of the return value consistent with stpncpy in glibc.
2932         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2933         written non-NUL unit.
2934
2935 2010-01-10  Bruno Haible  <bruno@clisp.org>
2936
2937         unistr/u*-next: Add missing dependencies.
2938         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2939         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2940         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2941
2942 2010-01-10  Bruno Haible  <bruno@clisp.org>
2943
2944         unistr/u8-mbsnlen: Fix return value for incomplete character.
2945         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2946         u8_mblen.
2947         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2948         Remove unistr/u8-mblen.
2949         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2950         u16_mblen.
2951         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2952         Remove unistr/u16-mblen.
2953
2954 2010-01-10  Bruno Haible  <bruno@clisp.org>
2955
2956         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2957         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2958         Reported by Brian Gough <bjg@gnu.org> and
2959         Chris Clayton <chris2553@googlemail.com> via
2960         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2961
2962 2010-01-09  Bruno Haible  <bruno@clisp.org>
2963
2964         unistr/u16-to-u32: Reject invalid input.
2965         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2966         u16_mbtouc.
2967         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2968         Remove unistr/u16-mbtouc.
2969
2970         unistr/u16-to-u8: Reject invalid input.
2971         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2972         u16_mbtouc.
2973         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2974         Remove unistr/u16-mbtouc.
2975
2976         unistr/u8-to-u32: Reject invalid input.
2977         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2978         u8_mbtouc.
2979         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2980         Remove unistr/u8-mbtouc.
2981
2982         unistr/u8-to-u16: Reject invalid input.
2983         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2984         u8_mbtouc.
2985         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2986         Remove unistr/u8-mbtouc.
2987
2988 2010-01-09  Bruno Haible  <bruno@clisp.org>
2989
2990         Tests for module 'getlogin'.
2991         * modules/getlogin-tests: New file.
2992         * tests/test-getlogin.c: New file.
2993
2994         New module 'getlogin'.
2995         * lib/unistd.in.h (getlogin): New declaration.
2996         * lib/getlogin.c: New file.
2997         * m4/getlogin.m4: New file.
2998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2999         HAVE_GETLOGIN.
3000         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3001         HAVE_GETLOGIN.
3002         * modules/getlogin: New file.
3003         * doc/posix-functions/getlogin.texi: Mention the new module.
3004         Reported by John W. Eaton <jwe@gnu.org>.
3005
3006 2010-01-09  Bruno Haible  <bruno@clisp.org>
3007
3008         getlogin_r: Support for native Windows.
3009         * lib/getlogin_r.c: Include <windows.h>
3010         (getlogin_r): Implement for native Windows.
3011         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3012         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3013         via John W. Eaton <jwe@gnu.org>.
3014
3015 2010-01-09  Bruno Haible  <bruno@clisp.org>
3016
3017         getlogin_r: Small fixes.
3018         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3019         succeeds.
3020         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3021         before testing whether getlogin_r is declared. No need to set
3022         HAVE_DECL_GETLOGIN_R to 1.
3023         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3024
3025 2010-01-09  Bruno Haible  <bruno@clisp.org>
3026
3027         * lib/unistd.in.h (getlogin_r): Add comment.
3028
3029 2010-01-09  Bruno Haible  <bruno@clisp.org>
3030
3031         Tests for module 'getlogin_r'.
3032         * modules/getlogin_r-tests: New file.
3033         * tests/test-getlogin_r.c: New file.
3034
3035 2010-01-09  Jim Meyering  <meyering@redhat.com>
3036
3037         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3038         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3039         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3040
3041 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3042
3043         * lib/dup2.c (rpl_dup2): Improve comment.
3044
3045 2010-01-08  Eric Blake  <ebb9@byu.net>
3046
3047         maint.mk: allow packages to add makefile @@ exceptions
3048         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3049         (sc_makefile_check): Rename...
3050         (sc_makefile_at_at_check): ...to this, and use hook.
3051
3052         dup2: work around mingw bug
3053         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3054         Reported by Simon Josefsson.
3055
3056 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3057
3058         glob: Fix C++ compilation.
3059         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3060         C++.
3061
3062 2010-01-07  Bruno Haible  <bruno@clisp.org>
3063
3064         Fix indentation of wctype.in.h, broken since 2007-01-06.
3065         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3066
3067 2010-01-07  Bruno Haible  <bruno@clisp.org>
3068
3069         mbslen: Avoid collision with system function.
3070         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3071         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3072         * m4/mbslen.m4: New file.
3073         * modules/mbslen (Files): Add it.
3074         (configure.ac): Invoke gl_MBSLEN.
3075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3076         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3077         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3078         via Ian Beckwith <ianb@erislabs.net>.
3079
3080 2010-01-07  Bruno Haible  <bruno@clisp.org>
3081
3082         dirent: Document the last fix.
3083         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3084
3085 2010-01-07  Bruno Haible  <bruno@clisp.org>
3086
3087         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3088         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3089         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3090         va_list are defined.
3091         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3092         Reported by Eric Blake.
3093
3094 2010-01-07  Bruno Haible  <bruno@clisp.org>
3095
3096         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3097         * modules/xlist (Depends-on): Add 'list',
3098         * modules/xoset (Depends-on): Add 'oset'.
3099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3100
3101 2010-01-07  Bruno Haible  <bruno@clisp.org>
3102
3103         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3104         * doc/posix-functions/strncasecmp.texi: Likewise.
3105
3106 2010-01-07  Bruno Haible  <bruno@clisp.org>
3107
3108         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3109
3110 2010-01-07  John W. Eaton  <jwe@octave.org>
3111
3112         wctype: allow C++ use
3113         * lib/wctype.in.h: Add extern "C" block for C++.
3114
3115 2010-01-06  Eric Blake  <ebb9@byu.net>
3116
3117         maint.mk: detect incorrect GFDL usage
3118         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3119
3120 2010-01-06  Jim Meyering  <meyering@redhat.com>
3121         and Eric Blake  <ebb9@byu.net>
3122
3123         maint.mk: ignore multi-line copyright in NEWS
3124         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3125
3126 2010-01-06  Eric Blake  <ebb9@byu.net>
3127
3128         select: add missing dependency
3129         * modules/select-tests (Depends-on): Move sockets dependency...
3130         * modules/select (Depends-on): ...here.
3131         Reported by Ian Beckwith.
3132
3133         doc: regenerate INSTALL
3134         * doc/INSTALL: Reflect recent autoconf update.
3135         * doc/INSTALL.ISO: Likewise.
3136         * doc/INSTALL.UTF-8: Likewise.
3137
3138         pread: fix compilation on glibc
3139         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3140         Reported by Ralf Wildenhues.
3141
3142         dirent: fix test failure
3143         * lib/dirent.in.h (includes): Guarantee ino_t.
3144         Reported by Ralf Wildenhues.
3145
3146 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3147
3148         linkat, renameat: avoid bad free
3149         * lib/at-func2.c (at_func2): Fix typo.
3150         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3151
3152 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3153
3154         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3155         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3156         to avoid failure of symlink test later.
3157
3158 2010-01-06  Eric Blake  <ebb9@byu.net>
3159
3160         stdio, unistd: guarantee ssize_t
3161         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3162         2008 are exposed when needed.
3163         * lib/stdio.in.h (includes): Likewise.
3164         Reported by Ralf Wildenhues.
3165
3166 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3167
3168         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3169         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3170         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3171
3172 2010-01-06  Jim Meyering  <meyering@redhat.com>
3173
3174         readtokens: this module *does* require xalloc.h
3175         It uses only functions that were omitted by the old syntax-check rule.
3176         * lib/readtokens.c: Include "xalloc.h" once again.
3177         * modules/readtokens (Depends-on): Add xalloc.
3178         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3179
3180 2010-01-05  Eric Blake  <ebb9@byu.net>
3181
3182         maint: support 'make announcement' from a VPATH build
3183         * top/maint.mk (announcement): Look for correct NEWS file.
3184
3185 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3186
3187         utimens (fdutimens): ignore a negative FD, per contract
3188         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3189         when we have a valid file descriptor.  Otherwise, using a brand
3190         new glibc (with just-patched futimens that now fails with EBADF)
3191         would cause this function to fail with ENOSYS.
3192         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3193         See also http://bugzilla.redhat.com/552320.
3194
3195 2010-01-05  Eric Blake  <ebb9@byu.net>
3196
3197         strcase: document what it provides
3198         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3199         gnulib module.
3200         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3201         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3202
3203 2010-01-05  Jim Meyering  <meyering@redhat.com>
3204
3205         maint: remove useless inclusions of "xalloc.h"
3206         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3207         * lib/readtokens.c: Likewise.
3208         * lib/same.c: Likewise.
3209         * modules/getloadavg (Depends-on): Remove xalloc.
3210         * modules/readtokens: Likewise.
3211         * modules/same: Likewise.
3212
3213         maint.mk: include 4 more function names in alloca.h-checking regexp
3214         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3215         regexp.  Before, we would give a false-positive (saying alloca.h
3216         is included unnecessarily) when the only uses involved omitted symbols.
3217
3218         xalloc.h: use consistent formatting
3219         * lib/xalloc.h: Move declarations to start in the first column.
3220
3221 2010-01-05  Eric Blake  <ebb9@byu.net>
3222
3223         mkdir: avoid xalloc
3224         * lib/mkdir.c (includes): Drop unused header.
3225         Reported by John W. Eaton.
3226
3227 2010-01-04  Jim Meyering  <meyering@redhat.com>
3228
3229         nl_langinfo: avoid configure-time syntax error
3230         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3231         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3232         the empty string.  Don't let that provoke a shell syntax error.
3233
3234         regcomp, regexec, fnmatch: avoid array bounds read error
3235         * lib/regcomp.c (build_equiv_class): From glibc:
3236         Use only the low 24 bits of a findidx return value as an index
3237         into the weights array.  Patch by Ulrich Drepper:
3238         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3239         * lib/regexec.c (check_node_accept_bytes): Likewise.
3240         * lib/fnmatch_loop.c (FCT): Likewise.
3241
3242         regcomp: skip collseq lookup when there are no rules
3243         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3244         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3245
3246         regcomp: recognize ill-formed { } expressions
3247         * lib/regcomp.c (parse_dup_op): From glibc:
3248         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3249
3250         regcomp: fix typo in comment
3251         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3252         s/satisfy/satisfies/.
3253
3254         regcomp: sync from glibc: remove dead store
3255         * lib/regcomp.c (duplicate_node_closure): Remove useless
3256         search_duplicated_node call and dead store.
3257
3258         regcomp: sync from glibc; always use nl_langinfo
3259         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3260         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3261         * modules/regex (Depends-on): Add nl_langinfo.
3262
3263 2010-01-04  Eric Blake  <ebb9@byu.net>
3264
3265         fdopendir: fix configure test
3266         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3267
3268 2010-01-01  Bruno Haible  <bruno@clisp.org>
3269
3270         wchar: Remove unused configure check.
3271         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3272
3273 2010-01-01  Eric Blake  <ebb9@byu.net>
3274
3275         headers: make check of system header explicit
3276         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3277         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3278         ourselves.
3279         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3281         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3282         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3283         internals.
3284         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3285         missing.
3286         Suggested by Bruno Haible.
3287
3288 2010-01-01  Jim Meyering  <meyering@redhat.com>
3289
3290         ChangeLog: tweak to eliminate unnecessary copyright line
3291         * ChangeLog: Remove a copyright line that was mistakenly updated
3292         by today's update-copyright run.  Reported by Eric Blake.
3293
3294         test-update-copyright: don't let envvar setting cause test failure
3295         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3296
3297 2010-01-01  Bruno Haible  <bruno@clisp.org>
3298
3299         localename: Avoid gcc warning.
3300         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3301         function if it is not used.
3302
3303 2010-01-01  Jim Meyering  <meyering@redhat.com>
3304
3305         update nearly all FSF copyright year lists to include 2010
3306         Use the same procedure as for 2009, outlined in
3307         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3308
3309         version-etc: set COPYRIGHT_YEAR to 2010
3310         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3311
3312 2009-12-31  Eric Blake  <ebb9@byu.net>
3313
3314         doc: correct availability of cygwin 1.5.x getopt
3315         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3316         variables.
3317         * doc/posix-functions/opterr.texi (opterr): Likewise.
3318         * doc/posix-functions/optind.texi (optind): Likewise.
3319         * doc/posix-functions/optopt.texi (optopt): Likewise.
3320         * doc/posix-functions/tzname.texi (tzname): Likewise.
3321
3322         openat: update maintainer
3323         * modules/openat (Maintainer): Add myself.
3324
3325         utimens: avoid shadowing warning
3326         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3327         buffers into one, to avoid shadowing, as well as avoiding a
3328         redundant stat.
3329         Reported by Jim Meyering.
3330
3331         test-dup2: avoid compiler warning
3332         * tests/test-dup2.c (is_inheritable): Only define if used.
3333
3334 2010-01-01  Bruno Haible  <bruno@clisp.org>
3335
3336         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3337         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3338         defined, use wctomb instead of wcrtomb.
3339
3340 2010-01-01  Bruno Haible  <bruno@clisp.org>
3341
3342         iconv: Reject native Solaris iconv.
3343         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3344         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3345
3346 2009-12-31  Bruno Haible  <bruno@clisp.org>
3347
3348         * tests/test-signal.c (main): Remove test of 'SIG'.
3349
3350 2009-12-31  Bruno Haible  <bruno@clisp.org>
3351
3352         spawn: Fix incomplete fix.
3353         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3354         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3355         warnings for GNULIB_POSIXCHECK again.
3356         Reported by Eric Blake.
3357
3358 2009-12-31  Bruno Haible  <bruno@clisp.org>
3359
3360         Avoid namespace pollution on glibc systems.
3361         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3362         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3363         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3364         glibc systems.
3365
3366 2009-12-31  Bruno Haible  <bruno@clisp.org>
3367
3368         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3369         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3370         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3371         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3372         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3373         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3374         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3375
3376 2009-12-31  Bruno Haible  <bruno@clisp.org>
3377
3378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3379         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3380         afterwards.
3381
3382 2009-12-31  Bruno Haible  <bruno@clisp.org>
3383
3384         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3385         SYS_UTSNAME_H.
3386
3387 2009-12-31  Bruno Haible  <bruno@clisp.org>
3388
3389         spawn: Fix misapplied patch.
3390         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3391         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3392         warnings for GNULIB_POSIXCHECK.
3393
3394 2009-12-31  Bruno Haible  <bruno@clisp.org>
3395
3396         times: Update after sys_times changed.
3397         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3398         * modules/times (Files): Add it.
3399         (configure.ac): Invoke gl_FUNC_TIMES.
3400
3401 2009-12-31  Bruno Haible  <bruno@clisp.org>
3402
3403         Use AC_C_INLINE where necessary.
3404         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3405         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3406         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3407         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3408         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3409         * m4/mbiter.m4 (gl_MBITER): Likewise.
3410         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3411         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3412         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3413         * modules/u64 (configure.ac): Likewise.
3414
3415 2009-12-31  Bruno Haible  <bruno@clisp.org>
3416
3417         Use AC_C_INLINE instead of module 'inline' where possible.
3418         * modules/inline (Description): Clarify purpose.
3419         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3420         * modules/count-one-bits (Depends-on): Remove inline.
3421         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3422         * modules/openat (Depends-on): Remove inline.
3423         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3424         instead of depending on module 'inline'.
3425         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3426         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3427         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3428         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3429         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3430         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3431         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3432         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3433         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3434         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3435         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3436         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3437         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3438         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3439         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3440         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3441         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3442         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3443         Likewise.
3444         * modules/unictype/property-ascii-hex-digit (Depends-on,
3445         configure.ac): Likewise.
3446         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3447         configure.ac): Likewise.
3448         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3449         configure.ac): Likewise.
3450         * modules/unictype/property-bidi-block-separator (Depends-on,
3451         configure.ac): Likewise.
3452         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3453         configure.ac): Likewise.
3454         * modules/unictype/property-bidi-common-separator (Depends-on,
3455         configure.ac): Likewise.
3456         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3457         Likewise.
3458         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3459         configure.ac): Likewise.
3460         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3461         configure.ac): Likewise.
3462         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3463         configure.ac): Likewise.
3464         * modules/unictype/property-bidi-european-digit (Depends-on,
3465         configure.ac): Likewise.
3466         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3467         configure.ac): Likewise.
3468         * modules/unictype/property-bidi-left-to-right (Depends-on,
3469         configure.ac): Likewise.
3470         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3471         configure.ac): Likewise.
3472         * modules/unictype/property-bidi-other-neutral (Depends-on,
3473         configure.ac): Likewise.
3474         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3475         Likewise.
3476         * modules/unictype/property-bidi-segment-separator (Depends-on,
3477         configure.ac): Likewise.
3478         * modules/unictype/property-bidi-whitespace (Depends-on,
3479         configure.ac): Likewise.
3480         * modules/unictype/property-combining (Depends-on, configure.ac):
3481         Likewise.
3482         * modules/unictype/property-composite (Depends-on, configure.ac):
3483         Likewise.
3484         * modules/unictype/property-currency-symbol (Depends-on,
3485         configure.ac): Likewise.
3486         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3487         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3488         Likewise.
3489         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3490         configure.ac): Likewise.
3491         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3492         Likewise.
3493         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3494         Likewise.
3495         * modules/unictype/property-extender (Depends-on, configure.ac):
3496         Likewise.
3497         * modules/unictype/property-format-control (Depends-on, configure.ac):
3498         Likewise.
3499         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3500         Likewise.
3501         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3502         Likewise.
3503         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3504         Likewise.
3505         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3506         Likewise.
3507         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3508         Likewise.
3509         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3510         Likewise.
3511         * modules/unictype/property-id-start (Depends-on, configure.ac):
3512         Likewise.
3513         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3514         Likewise.
3515         * modules/unictype/property-ids-binary-operator (Depends-on,
3516         configure.ac): Likewise.
3517         * modules/unictype/property-ids-trinary-operator (Depends-on,
3518         configure.ac): Likewise.
3519         * modules/unictype/property-ignorable-control (Depends-on,
3520         configure.ac): Likewise.
3521         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3522         Likewise.
3523         * modules/unictype/property-join-control (Depends-on, configure.ac):
3524         Likewise.
3525         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3526         Likewise.
3527         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3528         Likewise.
3529         * modules/unictype/property-logical-order-exception (Depends-on,
3530         configure.ac): Likewise.
3531         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3532         Likewise.
3533         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3534         * modules/unictype/property-non-break (Depends-on, configure.ac):
3535         Likewise.
3536         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3537         Likewise.
3538         * modules/unictype/property-numeric (Depends-on, configure.ac):
3539         Likewise.
3540         * modules/unictype/property-other-alphabetic (Depends-on,
3541         configure.ac): Likewise.
3542         * modules/unictype/property-other-default-ignorable-code-point
3543         (Depends-on, configure.ac): Likewise.
3544         * modules/unictype/property-other-grapheme-extend (Depends-on,
3545         configure.ac): Likewise.
3546         * modules/unictype/property-other-id-continue (Depends-on,
3547         configure.ac): Likewise.
3548         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3549         Likewise.
3550         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3551         Likewise.
3552         * modules/unictype/property-other-math (Depends-on, configure.ac):
3553         Likewise.
3554         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3555         Likewise.
3556         * modules/unictype/property-paired-punctuation (Depends-on,
3557         configure.ac): Likewise.
3558         * modules/unictype/property-paragraph-separator (Depends-on,
3559         configure.ac): Likewise.
3560         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3561         Likewise.
3562         * modules/unictype/property-pattern-white-space (Depends-on,
3563         configure.ac): Likewise.
3564         * modules/unictype/property-private-use (Depends-on, configure.ac):
3565         Likewise.
3566         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3567         Likewise.
3568         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3569         Likewise.
3570         * modules/unictype/property-radical (Depends-on, configure.ac):
3571         Likewise.
3572         * modules/unictype/property-sentence-terminal (Depends-on,
3573         configure.ac): Likewise.
3574         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3575         Likewise.
3576         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3577         * modules/unictype/property-terminal-punctuation (Depends-on,
3578         configure.ac): Likewise.
3579         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3580         Likewise.
3581         * modules/unictype/property-unassigned-code-value (Depends-on,
3582         configure.ac): Likewise.
3583         * modules/unictype/property-unified-ideograph (Depends-on,
3584         configure.ac): Likewise.
3585         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3586         Likewise.
3587         * modules/unictype/property-variation-selector (Depends-on,
3588         configure.ac): Likewise.
3589         * modules/unictype/property-white-space (Depends-on, configure.ac):
3590         Likewise.
3591         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3592         Likewise.
3593         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3594         Likewise.
3595         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3596         Likewise.
3597         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3598         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3599         Likewise.
3600
3601 2009-12-31  Bruno Haible  <bruno@clisp.org>
3602
3603         Remove unnecessary AC_C_INLINE invocation.
3604         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3605         since 2009-08-21.
3606
3607 2009-12-31  Jim Meyering  <meyering@redhat.com>
3608
3609         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3610         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3611         With this change, we can all remove the gpg_key_ID = ... definition
3612         from our respective cfg.mk files.
3613
3614         maint.mk: create announcement template in ~/, not in /tmp
3615         * top/maint.mk (emit_upload_commands): Adjust.
3616         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3617         Remove temporary file, .ci-msg.
3618
3619 2009-12-31  Eric Blake  <ebb9@byu.net>
3620
3621         link-warning: always build headers with link warnings
3622         * modules/arpa_inet (Makefile.am): Always build replacement
3623         header.
3624         * modules/ctype (Makefile.am): Likewise.
3625         * modules/dirent (Makefile.am): Likewise.
3626         * modules/inttypes (Makefile.am): Likewise.
3627         * modules/langinfo (Makefile.am): Likewise.
3628         * modules/locale (Makefile.am): Likewise.
3629         * modules/spawn (Makefile.am): Likewise.
3630         * modules/sys_file (Makefile.am): Likewise.
3631         * modules/sys_ioctl (Makefile.am): Likewise.
3632         * modules/sys_select (Makefile.am): Likewise.
3633         * modules/sys_socket (Makefile.am): Likewise.
3634         * modules/sys_times (Makefile.am): Likewise.
3635         * modules/sys_utsname (Makefile.am): Likewise.
3636         * modules/sys_wait (Makefile.am): Likewise.
3637         * modules/wchar (Makefile.am): Likewise.
3638         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3639         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3640         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3641         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3642         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3643         Likewise.
3644         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3645         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3646         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3647         Likewise.
3648         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3649         Likewise.
3650         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3652         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3654         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3655         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3656         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3657         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3658         (gl_WCHAR_H_DEFAULTS): Likewise.
3659
3660 2009-12-31  Eric Blake  <ebb9@byu.net>
3661
3662         signal, spawn: use link warnings
3663         * lib/signal.in.h (sigset_t): Make unconditional.
3664         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3665         (sigpending, sigprocmask, sigaction): Add link warnings.
3666         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3667         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3668         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3669         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3670         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3671         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3672         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3673         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3674         (posix_spawn_file_actions_destroy)
3675         (posix_spawn_file_actions_addopen)
3676         (posix_spawn_file_actions_addclose)
3677         (posix_spawn_file_actions_adddup2): Likewise.
3678         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3679         * tests/test-signal.c (main): Enhance test.
3680
3681         spawn: improve wrapper support
3682         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3683         (gl_SPAWN_H_DEFAULTS): New defaults.
3684         * modules/spawn (Makefile.am): Substitute them.
3685         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3686         Only declare if missing or broken.
3687
3688         sys_times, sys_utsname: use include_next
3689         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3690         header.
3691         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3692         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3693         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3694         * modules/sys_times (Depends-on): Add include_next.
3695         (Makefile.am): Substitute additional values.
3696         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3697         * lib/sys_times.in.h (includes): Include native header, if
3698         available.
3699         * lib/sys_utsname.in.h (includes): Likewise.
3700         * tests/test-sys_times.c (main): Enhance test.
3701
3702         fdutimensat: revert prior patch
3703         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3704         utimens.h.
3705         Reported by Bruno Haible.
3706
3707 2009-12-30  Eric Blake  <ebb9@byu.net>
3708
3709         sys_wait: drop link-warning dependency
3710         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3711         link-warning efforts.
3712         * lib/sys_wait.in.h: Likewise.
3713
3714         fdutimensat: remove bogus dependency
3715         * modules/fdutimensat (Depends-on): Drop inline.
3716
3717         unistd: fix typo
3718         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3719
3720 2009-12-30  Bruno Haible  <bruno@clisp.org>
3721
3722         Fix compilation error with Solaris cc.
3723         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3724         * lib/unicase/u16-is-invariant.c: Likewise.
3725         * lib/unicase/u32-is-invariant.c: Likewise.
3726         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3727
3728 2009-12-30  Bruno Haible  <bruno@clisp.org>
3729
3730         Fix test crash.
3731         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3732         locales.
3733         Reported by Simon Josefsson <simon@josefsson.org>.
3734
3735 2009-12-30  Bruno Haible  <bruno@clisp.org>
3736
3737         Fix compilation error on most platforms.
3738         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3739         Reported by Simon Josefsson <simon@josefsson.org>
3740         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3741
3742 2009-12-30  Eric Blake  <ebb9@byu.net>
3743
3744         futimens, utimensat: work around ntfs-3g bug
3745         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3746         a ctime bug is present, and expand workaround to cover ntfs-3g.
3747         * lib/utimens.c (fdutimens, lutimens): Likewise.
3748         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3749         (validate_timespec): Adjust return value.
3750         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3751         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3752         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3753
3754 2009-12-29  Eric Blake  <ebb9@byu.net>
3755
3756         link-warning: make usage consistent
3757         * modules/ctype (Depends-on): Add link-warning.
3758         (Makefile.am): Update rules accordingly.
3759         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3760         * modules/locale (Depends-on, Makefile.am): Likewise.
3761         * modules/sys_file (Makefile.am): Likewise.
3762         * modules/getopt-posix (Makefile.am): Delete unused link warning
3763         efforts.
3764         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3765         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3766         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3767         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3768
3769         stdio: remove unused variables
3770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3772         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3773
3774         tests: test more substitute headers
3775         * modules/ctype-tests: New file.
3776         * modules/dirent-tests: Likewise.
3777         * modules/spawn-tests: Likewise.
3778         * modules/sys_file-tests: Likewise.
3779         * modules/sys_ioctl-tests: Likewise.
3780         * modules/sys_wait-tests: Likewise.
3781         * tests/test-ctype.c: Likewise.
3782         * tests/test-dirent.c: Likewise.
3783         * tests/test-spawn.c: Likewise.
3784         * tests/test-sys_file.c: Likewise.
3785         * tests/test-sys_ioctl.c: Likewise.
3786         * tests/test-sys_wait.c: Likewise.
3787         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3788         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3789         whether or not flock is in use.
3790
3791         tests: remove License section from module
3792         * modules/arpa_inet-tests: Remove unneeded section.
3793         * modules/byteswap-tests: Likewise.
3794         * modules/ceilf-tests: Likewise.
3795         * modules/ceill-tests: Likewise.
3796         * modules/crypto/des-tests: Likewise.
3797         * modules/crypto/gc-arcfour-tests: Likewise.
3798         * modules/crypto/gc-arctwo-tests: Likewise.
3799         * modules/crypto/gc-des-tests: Likewise.
3800         * modules/crypto/gc-hmac-md5-tests: Likewise.
3801         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3802         * modules/crypto/gc-md2-tests: Likewise.
3803         * modules/crypto/gc-md4-tests: Likewise.
3804         * modules/crypto/gc-md5-tests: Likewise.
3805         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3806         * modules/crypto/gc-rijndael-tests: Likewise.
3807         * modules/crypto/gc-sha1-tests: Likewise.
3808         * modules/crypto/gc-tests: Likewise.
3809         * modules/crypto/md2-tests: Likewise.
3810         * modules/crypto/md4-tests: Likewise.
3811         * modules/fcntl-h-tests: Likewise.
3812         * modules/floorf-tests: Likewise.
3813         * modules/floorl-tests: Likewise.
3814         * modules/frexp-nolibm-tests: Likewise.
3815         * modules/frexp-tests: Likewise.
3816         * modules/frexpl-nolibm-tests: Likewise.
3817         * modules/frexpl-tests: Likewise.
3818         * modules/getaddrinfo-tests: Likewise.
3819         * modules/inttypes-tests: Likewise.
3820         * modules/isfinite-tests: Likewise.
3821         * modules/isinf-tests: Likewise.
3822         * modules/ldexpl-tests: Likewise.
3823         * modules/locale-tests: Likewise.
3824         * modules/math-tests: Likewise.
3825         * modules/netdb-tests: Likewise.
3826         * modules/netinet_in-tests: Likewise.
3827         * modules/printf-frexp-tests: Likewise.
3828         * modules/printf-frexpl-tests: Likewise.
3829         * modules/priv-set-tests: Likewise.
3830         * modules/random_r-tests: Likewise.
3831         * modules/round-tests: Likewise.
3832         * modules/roundf-tests: Likewise.
3833         * modules/roundl-tests: Likewise.
3834         * modules/search-tests: Likewise.
3835         * modules/select-tests: Likewise.
3836         * modules/signal-tests: Likewise.
3837         * modules/stdbool-tests: Likewise.
3838         * modules/stddef-tests: Likewise.
3839         * modules/stdint-tests: Likewise.
3840         * modules/stdio-tests: Likewise.
3841         * modules/stdlib-tests: Likewise.
3842         * modules/string-tests: Likewise.
3843         * modules/strings-tests: Likewise.
3844         * modules/sys_select-tests: Likewise.
3845         * modules/sys_socket-tests: Likewise.
3846         * modules/sys_stat-tests: Likewise.
3847         * modules/sys_time-tests: Likewise.
3848         * modules/sys_utsname-tests: Likewise.
3849         * modules/sysexits-tests: Likewise.
3850         * modules/time-tests: Likewise.
3851         * modules/trunc-tests: Likewise.
3852         * modules/truncf-tests: Likewise.
3853         * modules/truncl-tests: Likewise.
3854         * modules/tsearch-tests: Likewise.
3855         * modules/unistd-tests: Likewise.
3856         * modules/wchar-tests: Likewise.
3857         * modules/wctype-tests: Likewise.
3858
3859         tests: fix license on several tests
3860         * tests/test-des.c: Update to GPLv3+.
3861         * tests/test-flock.c: Likewise.
3862         * tests/test-fsync.c: Likewise.
3863         * tests/test-futimens.h: Likewise.
3864         * tests/test-gc-arcfour.c: Likewise.
3865         * tests/test-gc-arctwo.c: Likewise.
3866         * tests/test-gc-des.c: Likewise.
3867         * tests/test-gc-hmac-md5.c: Likewise.
3868         * tests/test-gc-hmac-sha1.c: Likewise.
3869         * tests/test-gc-md2.c: Likewise.
3870         * tests/test-gc-md4.c: Likewise.
3871         * tests/test-gc-md5.c: Likewise.
3872         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3873         * tests/test-gc-rijndael.c: Likewise.
3874         * tests/test-gc-sha1.c: Likewise.
3875         * tests/test-gc.c: Likewise.
3876         * tests/test-getcwd.c: Likewise.
3877         * tests/test-link.c: Likewise.
3878         * tests/test-link.h: Likewise.
3879         * tests/test-lutimens.h: Likewise.
3880         * tests/test-md2.c: Likewise.
3881         * tests/test-md4.c: Likewise.
3882         * tests/test-mkdir.h: Likewise.
3883         * tests/test-rename.c: Likewise.
3884         * tests/test-rename.h: Likewise.
3885         * tests/test-safe-alloc.c: Likewise.
3886         * tests/test-utimens-common.h: Likewise.
3887         * tests/test-utimens.h: Likewise.
3888
3889         maint: sync license texts
3890         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3891         * doc/gpl-3.0.texi: Revert copyright year update.
3892         * doc/lgpl-3.0.texi: Likewise.
3893
3894 2009-12-29  Jim Meyering  <meyering@redhat.com>
3895
3896         update nearly all FSF copyright year lists to include 2009
3897         The files named by the following are exempted:
3898             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3899               test -f "$dst" && { echo "$dst"; continue; }
3900               test -d "$dst" || continue
3901               echo "$dst"/$(basename "$src")
3902             done > exempt
3903             git ls-files tests/unictype >> exempt
3904         In the remaining files, convert to all-interval notation if
3905         - there is already at least one year interval like 2000-2003
3906         - the file is maintained by me
3907         - the file is in lib/uni*/, where that style already prevails
3908         Otherwise, use update-copyright's default.
3909
3910 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3911         and Eric Blake  <ebb9@byu.net>
3912
3913         tests: don't require debug system() to pass
3914         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3915         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3916         * tests/test-unlink.h (test_unlink_func): Likewise.
3917         * tests/test-fstatat.c (main): ...into callers.
3918         * tests/test-lstat.c (main): Likewise.
3919         * tests/test-rmdir.c (main): Likewise.
3920         * tests/test-unlink.c (main): Likewise.
3921         * tests/test-unlinkat.c (main): Likewise.
3922         * tests/test-areadlink-with-size.c (main): Don't require a
3923         debug-only system call to pass, aiding cross-testing to mingw.
3924         * tests/test-areadlink.c (main): Likewise.
3925         * tests/test-areadlinkat-with-size.c (main): Likewise.
3926         * tests/test-areadlinkat.c (main): Likewise.
3927         * tests/test-canonicalize-lgpl.c (main): Likewise.
3928         * tests/test-canonicalize.c (main): Likewise.
3929         * tests/test-chown.c (main): Likewise.
3930         * tests/test-fchownat.c (main): Likewise.
3931         * tests/test-lchown.c (main): Likewise.
3932         * tests/test-fdutimensat.c (main): Likewise.
3933         * tests/test-futimens.c (main): Likewise.
3934         * tests/test-link.c (main): Likewise.
3935         * tests/test-linkat.c (main): Likewise.
3936         * tests/test-mkdir.c (main): Likewise.
3937         * tests/test-mkdirat.c (main): Likewise.
3938         * tests/test-mkfifo.c (main): Likewise.
3939         * tests/test-mkfifoat.c (main): Likewise.
3940         * tests/test-mknod.c (main): Likewise.
3941         * tests/test-readlink.c (main): Likewise.
3942         * tests/test-remove.c (main): Likewise.
3943         * tests/test-rename.c (main): Likewise.
3944         * tests/test-renameat.c (main): Likewise.
3945         * tests/test-symlink.c (main): Likewise.
3946         * tests/test-symlinkat.c (main): Likewise.
3947         * tests/test-utimens.c (main): Likewise.
3948         * tests/test-utimensat.c (main): Likewise.
3949
3950 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3951
3952         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3953         on $(UNUSED_PARAMETER_H) to avoid build failure.
3954
3955 2009-12-28  Jim Meyering  <meyering@redhat.com>
3956
3957         update-copyright: you may specify a max. line length other than 72
3958         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3959
3960         maint: use consistent FSF copyright line syntax
3961         * lib/posixtm.c: Add missing comma in FSF copyright line.
3962         * lib/posixtm.h: Likewise.
3963         * lib/getugroups.c: Add missing ", Inc.".
3964
3965         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3966         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3967         FSF copyright line.  Remove trailing blanks.
3968
3969 2009-12-28  Eric Blake  <ebb9@byu.net>
3970
3971         test-dup2: reduce dependencies
3972         * modules/cloexec (Configure.ac): Set witness.
3973         * modules/dup2-tests (Depends-on): Drop cloexec.
3974         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3975         not present.
3976         Suggested by Bruno Haible.
3977
3978 2009-12-26  Bruno Haible  <bruno@clisp.org>
3979
3980         Remove an unneeded dependency.
3981         * modules/fseterr (Depends-on): Remove dup2.
3982
3983 2009-12-26  Eric Blake  <ebb9@byu.net>
3984
3985         tests: use macros.h in more places
3986         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3987         (ASSERT_STREAM): Provide default of stderr.
3988         * tests/test-dirent-safer.c: Include macros.h, using alternate
3989         stream for assertions.
3990         * tests/test-dup-safer.c: Likewise.
3991         * tests/test-freopen-safer.c: Likewise.
3992         * tests/test-getopt.c: Likewise.
3993         * tests/test-openat-safer.c: Likewise.
3994         * tests/test-pipe.c: Likewise.
3995         * tests/test-popen-safer.c: Likewise.
3996         * modules/dirent-safer-tests (Files): Include macros.h.
3997         * modules/unistd-safer-tests (Files): Likewise.
3998         * modules/freopen-safer-tests (Files): Likewise.
3999         * modules/getopt-posix-tests (Files): Likewise.
4000         * modules/openat-safer-tests (Files): Likewise.
4001         * modules/pipe-tests (Files): Likewise.
4002
4003 2009-12-26  Bruno Haible  <bruno@clisp.org>
4004
4005         javacomp: Portability fix.
4006         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4007         that it also works on Solaris.
4008
4009 2009-12-26  Bruno Haible  <bruno@clisp.org>
4010
4011         localename: Fix storage allocation of gl_locale_name_thread's result.
4012         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4013         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4014         all platforms that have 'uselocale'.
4015         (gl_locale_name_thread_unsafe): New function, extracted from
4016         gl_locale_name_thread.
4017         (gl_locale_name_thread): Call struniq on all platforms that have
4018         'uselocale'.
4019         * tests/test-localename.c (test_locale_name_thread): Check that the
4020         resulting strings are permanently allocated.
4021         * modules/localename-tests (Depends-on): Add strdup.
4022
4023 2009-12-26  Bruno Haible  <bruno@clisp.org>
4024
4025         * tests/test-localename.c (categories): Fill in the strings.
4026
4027 2009-12-26  Jim Meyering  <meyering@redhat.com>
4028
4029         isdir: complete the removal of m4/isdir.m4
4030         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4031
4032         isdir: clean up, since at least grep still uses it
4033         * lib/isdir.c: Include "isdir.h".
4034         (S_ISDIR): Remove now-unneeded definition.
4035         * modules/isdir (Files): Add lib/isdir.h.
4036         * lib/isdir.h: New file, with declaration.
4037         * m4/isdir.m4: Remove file -- unneeded.
4038
4039 2009-12-25  Bruno Haible  <bruno@clisp.org>
4040
4041         selinux-h: Make generated .h files standalone.
4042         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4043         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4044         * lib/se-selinux.in.h: Likewise.
4045         * modules/selinux-h (Depends-on): Add unused-parameter.
4046         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4047         selinux/selinux.h and selinux/context.h.
4048         Suggested by Eric Blake.
4049
4050 2009-12-25  Bruno Haible  <bruno@clisp.org>
4051
4052         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4053         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4054         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4055         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4056         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4057
4058 2009-12-24  Bruno Haible  <bruno@clisp.org>
4059
4060         openat: Fix warning.
4061         * lib/openat-proc.c: Include <unistd.h>.
4062
4063 2009-12-24  Bruno Haible  <bruno@clisp.org>
4064
4065         New module 'unused-parameter'.
4066         * build-aux/unused-parameter.h: New file, extracted from earlier
4067         gnulib-common.m4.
4068         * modules/unused-parameter: New file.
4069         * lib/unistr.h: Include unused-parameter.h.
4070         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4071         _GL_UNUSED.
4072         * modules/unistr/base (Depends-on): Add unused-parameter.
4073
4074 2009-12-24  Bruno Haible  <bruno@clisp.org>
4075
4076         Add missing dependencies to 'extensions' module.
4077         * m4/extensions.m4: Add comment.
4078         * modules/accept4 (Depends-on): Add extensions.
4079         * modules/dup3 (Depends-on): Likewise.
4080         * modules/fcntl (Depends-on): Likewise.
4081         * modules/futimens (Depends-on): Likewise.
4082         * modules/mknod (Depends-on): Likewise.
4083         * modules/pipe2 (Depends-on): Likewise.
4084         * modules/stat-time (Depends-on): Likewise.
4085         * modules/strcasestr-simple (Depends-on): Likewise.
4086         * modules/strsignal (Depends-on): Likewise.
4087         * modules/utimensat (Depends-on): Likewise.
4088         * modules/localcharset (Depends-on): Likewise. Needed because of
4089         gl_FCNTL_O_FLAGS.
4090         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4091         AC_TYPE_MBSTATE_T.
4092         * modules/wcsnrtombs (Depends-on): Likewise.
4093         * modules/wcsrtombs (Depends-on): Likewise.
4094
4095 2009-12-24  Bruno Haible  <bruno@clisp.org>
4096
4097         binary-io: Avoid gcc warning due to SET_BINARY.
4098         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4099         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4100
4101 2009-12-24  Bruno Haible  <bruno@clisp.org>
4102
4103         Avoid future namespace pollution on glibc systems.
4104         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4105         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4106         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4107         glibc systems.
4108
4109 2009-12-24  Bruno Haible  <bruno@clisp.org>
4110
4111         Refactor common macros used in tests.
4112         * tests/macros.h: New file.
4113         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4114         and/or <stdlib.h>, if appropriate.
4115         (ASSERT, SIZEOF): Remove macros.
4116         * tests/test-areadlink-with-size.c: Likewise.
4117         * tests/test-areadlinkat.c: Likewise.
4118         * tests/test-areadlinkat-with-size.c: Likewise.
4119         * tests/test-argmatch.c: Likewise.
4120         * tests/test-argv-iter.c: Likewise.
4121         * tests/test-array-mergesort.c: Likewise.
4122         * tests/test-array_list.c: Likewise.
4123         * tests/test-array_oset.c: Likewise.
4124         * tests/test-avltree_list.c: Likewise.
4125         * tests/test-avltree_oset.c: Likewise.
4126         * tests/test-avltreehash_list.c: Likewise.
4127         * tests/test-base64.c: Likewise.
4128         * tests/test-binary-io.c: Likewise.
4129         * tests/test-bitrotate.c: Likewise.
4130         * tests/test-btowc.c: Likewise.
4131         * tests/test-byteswap.c: Likewise.
4132         * tests/test-c-ctype.c: Likewise.
4133         * tests/test-c-stack.c: Likewise.
4134         * tests/test-c-strcasecmp.c: Likewise.
4135         * tests/test-c-strcasestr.c: Likewise.
4136         * tests/test-c-strncasecmp.c: Likewise.
4137         * tests/test-c-strstr.c: Likewise.
4138         * tests/test-canonicalize-lgpl.c: Likewise.
4139         * tests/test-canonicalize.c: Likewise.
4140         * tests/test-carray_list.c: Likewise.
4141         * tests/test-ceilf1.c: Likewise.
4142         * tests/test-ceilf2.c: Likewise.
4143         * tests/test-ceill.c: Likewise.
4144         * tests/test-chown.c: Likewise.
4145         * tests/test-cloexec.c: Likewise.
4146         * tests/test-copy-acl.c: Likewise.
4147         * tests/test-copy-file.c: Likewise.
4148         * tests/test-count-one-bits.c: Likewise.
4149         * tests/test-dprintf-posix.c: Likewise.
4150         * tests/test-dup2.c: Likewise.
4151         * tests/test-dup3.c: Likewise.
4152         * tests/test-duplocale.c: Likewise.
4153         * tests/test-fbufmode.c: Likewise.
4154         * tests/test-fchdir.c: Likewise.
4155         * tests/test-fchownat.c: Likewise.
4156         * tests/test-fcntl-safer.c: Likewise.
4157         * tests/test-fcntl.c: Likewise.
4158         * tests/test-fdopendir.c: Likewise.
4159         * tests/test-fdutimensat.c: Likewise.
4160         * tests/test-fflush2.c: Likewise.
4161         * tests/test-file-has-acl.c: Likewise.
4162         * tests/test-filevercmp.c: Likewise.
4163         * tests/test-flock.c: Likewise.
4164         * tests/test-floorf1.c: Likewise.
4165         * tests/test-floorf2.c: Likewise.
4166         * tests/test-floorl.c: Likewise.
4167         * tests/test-fnmatch.c: Likewise.
4168         * tests/test-fopen.h: Likewise.
4169         * tests/test-fpending.c: Likewise.
4170         * tests/test-fprintf-posix.c: Likewise.
4171         * tests/test-fpurge.c: Likewise.
4172         * tests/test-freadable.c: Likewise.
4173         * tests/test-freadahead.c: Likewise.
4174         * tests/test-freading.c: Likewise.
4175         * tests/test-freadptr.c: Likewise.
4176         * tests/test-freadptr2.c: Likewise.
4177         * tests/test-freadseek.c: Likewise.
4178         * tests/test-freopen.c: Likewise.
4179         * tests/test-frexp.c: Likewise.
4180         * tests/test-frexpl.c: Likewise.
4181         * tests/test-fseek.c: Likewise.
4182         * tests/test-fseeko.c: Likewise.
4183         * tests/test-fstatat.c: Likewise.
4184         * tests/test-fstrcmp.c: Likewise.
4185         * tests/test-fsync.c: Likewise.
4186         * tests/test-ftell.c: Likewise.
4187         * tests/test-ftello.c: Likewise.
4188         * tests/test-func.c: Likewise.
4189         * tests/test-futimens.c: Likewise.
4190         * tests/test-fwritable.c: Likewise.
4191         * tests/test-fwriting.c: Likewise.
4192         * tests/test-getcwd.c: Likewise.
4193         * tests/test-getdate.c: Likewise.
4194         * tests/test-getdelim.c: Likewise.
4195         * tests/test-getdtablesize.c: Likewise.
4196         * tests/test-getgroups.c: Likewise.
4197         * tests/test-getline.c: Likewise.
4198         * tests/test-getndelim2.c: Likewise.
4199         * tests/test-glob.c: Likewise.
4200         * tests/test-hash.c: Likewise.
4201         * tests/test-i-ring.c: Likewise.
4202         * tests/test-iconv-utf.c: Likewise.
4203         * tests/test-iconv.c: Likewise.
4204         * tests/test-idpriv-drop.c: Likewise.
4205         * tests/test-idpriv-droptemp.c: Likewise.
4206         * tests/test-inet_ntop.c: Likewise.
4207         * tests/test-inet_pton.c: Likewise.
4208         * tests/test-isblank.c: Likewise.
4209         * tests/test-isfinite.c: Likewise.
4210         * tests/test-isinf.c: Likewise.
4211         * tests/test-isnan.c: Likewise.
4212         * tests/test-isnand.h: Likewise.
4213         * tests/test-isnanf.h: Likewise.
4214         * tests/test-isnanl.h: Likewise.
4215         * tests/test-lchown.c: Likewise.
4216         * tests/test-ldexpl.c: Likewise.
4217         * tests/test-link.c: Likewise.
4218         * tests/test-linkat.c: Likewise.
4219         * tests/test-linked_list.c: Likewise.
4220         * tests/test-linkedhash_list.c: Likewise.
4221         * tests/test-localename.c: Likewise.
4222         * tests/test-lseek.c: Likewise.
4223         * tests/test-lstat.c: Likewise.
4224         * tests/test-mbmemcasecmp.c: Likewise.
4225         * tests/test-mbmemcasecoll.c: Likewise.
4226         * tests/test-mbrtowc.c: Likewise.
4227         * tests/test-mbscasecmp.c: Likewise.
4228         * tests/test-mbscasestr1.c: Likewise.
4229         * tests/test-mbscasestr2.c: Likewise.
4230         * tests/test-mbscasestr3.c: Likewise.
4231         * tests/test-mbscasestr4.c: Likewise.
4232         * tests/test-mbschr.c: Likewise.
4233         * tests/test-mbscspn.c: Likewise.
4234         * tests/test-mbsinit.c: Likewise.
4235         * tests/test-mbsncasecmp.c: Likewise.
4236         * tests/test-mbsnrtowcs.c: Likewise.
4237         * tests/test-mbspbrk.c: Likewise.
4238         * tests/test-mbspcasecmp.c: Likewise.
4239         * tests/test-mbsrchr.c: Likewise.
4240         * tests/test-mbsrtowcs.c: Likewise.
4241         * tests/test-mbsspn.c: Likewise.
4242         * tests/test-mbsstr1.c: Likewise.
4243         * tests/test-mbsstr2.c: Likewise.
4244         * tests/test-mbsstr3.c: Likewise.
4245         * tests/test-memchr.c: Likewise.
4246         * tests/test-memchr2.c: Likewise.
4247         * tests/test-memcmp.c: Likewise.
4248         * tests/test-memmem.c: Likewise.
4249         * tests/test-memrchr.c: Likewise.
4250         * tests/test-mkdir.c: Likewise.
4251         * tests/test-mkdirat.c: Likewise.
4252         * tests/test-mkfifo.c: Likewise.
4253         * tests/test-mkfifoat.c: Likewise.
4254         * tests/test-mknod.c: Likewise.
4255         * tests/test-nanosleep.c: Likewise.
4256         * tests/test-nl_langinfo.c: Likewise.
4257         * tests/test-obstack-printf.c: Likewise.
4258         * tests/test-open.c: Likewise.
4259         * tests/test-openat.c: Likewise.
4260         * tests/test-pipe-filter-gi1.c: Likewise.
4261         * tests/test-pipe-filter-gi2-main.c: Likewise.
4262         * tests/test-pipe-filter-ii1.c: Likewise.
4263         * tests/test-pipe-filter-ii2-main.c: Likewise.
4264         * tests/test-pipe2.c: Likewise.
4265         * tests/test-popen.h: Likewise.
4266         * tests/test-posixtm.c: Likewise.
4267         * tests/test-pread.c: Likewise.
4268         * tests/test-printf-frexp.c: Likewise.
4269         * tests/test-printf-frexpl.c: Likewise.
4270         * tests/test-printf-posix.c: Likewise.
4271         * tests/test-priv-set.c: Likewise.
4272         * tests/test-quotearg.c: Likewise.
4273         * tests/test-random_r.c: Likewise.
4274         * tests/test-rawmemchr.c: Likewise.
4275         * tests/test-rbtree_list.c: Likewise.
4276         * tests/test-rbtree_oset.c: Likewise.
4277         * tests/test-rbtreehash_list.c: Likewise.
4278         * tests/test-readlink.c: Likewise.
4279         * tests/test-remove.c: Likewise.
4280         * tests/test-rename.c: Likewise.
4281         * tests/test-renameat.c: Likewise.
4282         * tests/test-rmdir.c: Likewise.
4283         * tests/test-round1.c: Likewise.
4284         * tests/test-roundf1.c: Likewise.
4285         * tests/test-roundl.c: Likewise.
4286         * tests/test-safe-alloc.c: Likewise.
4287         * tests/test-sameacls.c: Likewise.
4288         * tests/test-set-mode-acl.c: Likewise.
4289         * tests/test-setenv.c: Likewise.
4290         * tests/test-sigaction.c: Likewise.
4291         * tests/test-signbit.c: Likewise.
4292         * tests/test-sleep.c: Likewise.
4293         * tests/test-snprintf-posix.c: Likewise.
4294         * tests/test-snprintf.c: Likewise.
4295         * tests/test-sprintf-posix.c: Likewise.
4296         * tests/test-stat-time.c: Likewise.
4297         * tests/test-stat.c: Likewise.
4298         * tests/test-strcasestr.c: Likewise.
4299         * tests/test-strchrnul.c: Likewise.
4300         * tests/test-strerror.c: Likewise.
4301         * tests/test-striconv.c: Likewise.
4302         * tests/test-striconveh.c: Likewise.
4303         * tests/test-striconveha.c: Likewise.
4304         * tests/test-strsignal.c: Likewise.
4305         * tests/test-strstr.c: Likewise.
4306         * tests/test-strtod.c: Likewise.
4307         * tests/test-strverscmp.c: Likewise.
4308         * tests/test-symlink.c: Likewise.
4309         * tests/test-symlinkat.c: Likewise.
4310         * tests/test-trunc1.c: Likewise.
4311         * tests/test-trunc2.c: Likewise.
4312         * tests/test-truncf1.c: Likewise.
4313         * tests/test-truncf2.c: Likewise.
4314         * tests/test-truncl.c: Likewise.
4315         * tests/test-uname.c: Likewise.
4316         * tests/test-unlink.c: Likewise.
4317         * tests/test-unlinkat.c: Likewise.
4318         * tests/test-unsetenv.c: Likewise.
4319         * tests/test-usleep.c: Likewise.
4320         * tests/test-utimens.c: Likewise.
4321         * tests/test-utimensat.c: Likewise.
4322         * tests/test-vasnprintf-posix.c: Likewise.
4323         * tests/test-vasnprintf-posix2.c: Likewise.
4324         * tests/test-vasnprintf.c: Likewise.
4325         * tests/test-vasprintf-posix.c: Likewise.
4326         * tests/test-vasprintf.c: Likewise.
4327         * tests/test-vdprintf-posix.c: Likewise.
4328         * tests/test-vfprintf-posix.c: Likewise.
4329         * tests/test-vprintf-posix.c: Likewise.
4330         * tests/test-vsnprintf-posix.c: Likewise.
4331         * tests/test-vsnprintf.c: Likewise.
4332         * tests/test-vsprintf-posix.c: Likewise.
4333         * tests/test-wcrtomb.c: Likewise.
4334         * tests/test-wcsnrtombs.c: Likewise.
4335         * tests/test-wcsrtombs.c: Likewise.
4336         * tests/test-wctype.c: Likewise.
4337         * tests/test-wcwidth.c: Likewise.
4338         * tests/test-xfprintf-posix.c: Likewise.
4339         * tests/test-xmemdup0.c: Likewise.
4340         * tests/test-xprintf-posix.c: Likewise.
4341         * tests/test-xvasprintf.c: Likewise.
4342         * tests/unicase/test-locale-language.c: Likewise.
4343         * tests/unicase/test-mapping-part1.h: Likewise.
4344         * tests/unicase/test-predicate-part1.h: Likewise.
4345         * tests/unicase/test-u8-casecmp.c: Likewise.
4346         * tests/unicase/test-u8-casecoll.c: Likewise.
4347         * tests/unicase/test-u8-casefold.c: Likewise.
4348         * tests/unicase/test-u8-is-cased.c: Likewise.
4349         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4350         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4351         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4352         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4353         * tests/unicase/test-u8-tolower.c: Likewise.
4354         * tests/unicase/test-u8-totitle.c: Likewise.
4355         * tests/unicase/test-u8-toupper.c: Likewise.
4356         * tests/unicase/test-u16-casecmp.c: Likewise.
4357         * tests/unicase/test-u16-casecoll.c: Likewise.
4358         * tests/unicase/test-u16-casefold.c: Likewise.
4359         * tests/unicase/test-u16-is-cased.c: Likewise.
4360         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4361         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4362         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4363         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4364         * tests/unicase/test-u16-tolower.c: Likewise.
4365         * tests/unicase/test-u16-totitle.c: Likewise.
4366         * tests/unicase/test-u16-toupper.c: Likewise.
4367         * tests/unicase/test-u32-casecmp.c: Likewise.
4368         * tests/unicase/test-u32-casecoll.c: Likewise.
4369         * tests/unicase/test-u32-casefold.c: Likewise.
4370         * tests/unicase/test-u32-is-cased.c: Likewise.
4371         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4372         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4373         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4374         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4375         * tests/unicase/test-u32-tolower.c: Likewise.
4376         * tests/unicase/test-u32-totitle.c: Likewise.
4377         * tests/unicase/test-u32-toupper.c: Likewise.
4378         * tests/unicase/test-ulc-casecmp.c: Likewise.
4379         * tests/unicase/test-ulc-casecoll.c: Likewise.
4380         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4381         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4382         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4383         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4384         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4385         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4386         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4387         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4388         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4389         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4390         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4391         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4392         * tests/unictype/test-bidi_byname.c: Likewise.
4393         * tests/unictype/test-bidi_name.c: Likewise.
4394         * tests/unictype/test-bidi_of.c: Likewise.
4395         * tests/unictype/test-bidi_test.c: Likewise.
4396         * tests/unictype/test-block_list.c: Likewise.
4397         * tests/unictype/test-block_of.c: Likewise.
4398         * tests/unictype/test-block_test.c: Likewise.
4399         * tests/unictype/test-categ_and.c: Likewise.
4400         * tests/unictype/test-categ_and_not.c: Likewise.
4401         * tests/unictype/test-categ_byname.c: Likewise.
4402         * tests/unictype/test-categ_name.c: Likewise.
4403         * tests/unictype/test-categ_none.c: Likewise.
4404         * tests/unictype/test-categ_of.c: Likewise.
4405         * tests/unictype/test-categ_or.c: Likewise.
4406         * tests/unictype/test-categ_test_withtable.c: Likewise.
4407         * tests/unictype/test-combining.c: Likewise.
4408         * tests/unictype/test-decdigit.c: Likewise.
4409         * tests/unictype/test-digit.c: Likewise.
4410         * tests/unictype/test-mirror.c: Likewise.
4411         * tests/unictype/test-numeric.c: Likewise.
4412         * tests/unictype/test-pr_byname.c: Likewise.
4413         * tests/unictype/test-pr_test.c: Likewise.
4414         * tests/unictype/test-predicate-part1.h: Likewise.
4415         * tests/unictype/test-scripts.c: Likewise.
4416         * tests/unictype/test-sy_c_ident.c: Likewise.
4417         * tests/unictype/test-sy_java_ident.c: Likewise.
4418         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4419         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4420         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4421         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4422         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4423         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4424         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4425         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4426         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4427         * tests/uninorm/test-compat-decomposition.c: Likewise.
4428         * tests/uninorm/test-composition.c: Likewise.
4429         * tests/uninorm/test-decomposing-form.c: Likewise.
4430         * tests/uninorm/test-decomposition.c: Likewise.
4431         * tests/uninorm/test-u8-nfc.c: Likewise.
4432         * tests/uninorm/test-u8-nfd.c: Likewise.
4433         * tests/uninorm/test-u8-nfkc.c: Likewise.
4434         * tests/uninorm/test-u8-nfkd.c: Likewise.
4435         * tests/uninorm/test-u8-normcmp.c: Likewise.
4436         * tests/uninorm/test-u8-normcoll.c: Likewise.
4437         * tests/uninorm/test-u16-nfc.c: Likewise.
4438         * tests/uninorm/test-u16-nfd.c: Likewise.
4439         * tests/uninorm/test-u16-nfkc.c: Likewise.
4440         * tests/uninorm/test-u16-nfkd.c: Likewise.
4441         * tests/uninorm/test-u16-normcmp.c: Likewise.
4442         * tests/uninorm/test-u16-normcoll.c: Likewise.
4443         * tests/uninorm/test-u32-nfc.c: Likewise.
4444         * tests/uninorm/test-u32-nfd.c: Likewise.
4445         * tests/uninorm/test-u32-nfkc.c: Likewise.
4446         * tests/uninorm/test-u32-nfkd.c: Likewise.
4447         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4448         * tests/uninorm/test-u32-normcmp.c: Likewise.
4449         * tests/uninorm/test-u32-normcoll.c: Likewise.
4450         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4451         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4452         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4453         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4454         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4455         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4456         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4457         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4458         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4459         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4460         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4461         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4462         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4463         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4464         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4465         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4466         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4467         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4468         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4469         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4470         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4471         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4472         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4473         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4474         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4475         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4476         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4477         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4478         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4479         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4480         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4481         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4482         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4483         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4484         * tests/uniwidth/test-u8-width.c: Likewise.
4485         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4486         * tests/uniwidth/test-u16-width.c: Likewise.
4487         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4488         * tests/uniwidth/test-u32-width.c: Likewise.
4489         * tests/uniwidth/test-uc_width.c: Likewise.
4490         * tests/uniwidth/test-uc_width2.c: Likewise.
4491         * modules/acl-tests (Files): Add tests/macros.h.
4492         * modules/areadlink-tests (Files): Likewise.
4493         * modules/areadlink-with-size-tests (Files): Likewise.
4494         * modules/areadlinkat-tests (Files): Likewise.
4495         * modules/areadlinkat-with-size-tests (Files): Likewise.
4496         * modules/argmatch-tests (Files): Likewise.
4497         * modules/argv-iter-tests (Files): Likewise.
4498         * modules/array-list-tests (Files): Likewise.
4499         * modules/array-mergesort-tests (Files): Likewise.
4500         * modules/array-oset-tests (Files): Likewise.
4501         * modules/avltree-list-tests (Files): Likewise.
4502         * modules/avltree-oset-tests (Files): Likewise.
4503         * modules/avltreehash-list-tests (Files): Likewise.
4504         * modules/base64-tests (Files): Likewise.
4505         * modules/binary-io-tests (Files): Likewise.
4506         * modules/bitrotate-tests (Files): Likewise.
4507         * modules/btowc-tests (Files): Likewise.
4508         * modules/byteswap-tests (Files): Likewise.
4509         * modules/c-ctype-tests (Files): Likewise.
4510         * modules/c-stack-tests (Files): Likewise.
4511         * modules/c-strcase-tests (Files): Likewise.
4512         * modules/c-strcasestr-tests (Files): Likewise.
4513         * modules/c-strstr-tests (Files): Likewise.
4514         * modules/canonicalize-lgpl-tests (Files): Likewise.
4515         * modules/canonicalize-tests (Files): Likewise.
4516         * modules/carray-list-tests (Files): Likewise.
4517         * modules/ceilf-tests (Files): Likewise.
4518         * modules/ceill-tests (Files): Likewise.
4519         * modules/chown-tests (Files): Likewise.
4520         * modules/cloexec-tests (Files): Likewise.
4521         * modules/copy-file-tests (Files): Likewise.
4522         * modules/count-one-bits-tests (Files): Likewise.
4523         * modules/dprintf-posix-tests (Files): Likewise.
4524         * modules/dup2-tests (Files): Likewise.
4525         * modules/dup3-tests (Files): Likewise.
4526         * modules/duplocale-tests (Files): Likewise.
4527         * modules/fbufmode-tests (Files): Likewise.
4528         * modules/fchdir-tests (Files): Likewise.
4529         * modules/fcntl-safer-tests (Files): Likewise.
4530         * modules/fcntl-tests (Files): Likewise.
4531         * modules/fdopendir-tests (Files): Likewise.
4532         * modules/fdutimensat-tests (Files): Likewise.
4533         * modules/fflush-tests (Files): Likewise.
4534         * modules/filevercmp-tests (Files): Likewise.
4535         * modules/flock-tests (Files): Likewise.
4536         * modules/floorf-tests (Files): Likewise.
4537         * modules/floorl-tests (Files): Likewise.
4538         * modules/fnmatch-tests (Files): Likewise.
4539         * modules/fopen-safer-tests (Files): Likewise.
4540         * modules/fopen-tests (Files): Likewise.
4541         * modules/fpending-tests (Files): Likewise.
4542         * modules/fprintf-posix-tests (Files): Likewise.
4543         * modules/fpurge-tests (Files): Likewise.
4544         * modules/freadable-tests (Files): Likewise.
4545         * modules/freadahead-tests (Files): Likewise.
4546         * modules/freading-tests (Files): Likewise.
4547         * modules/freadptr-tests (Files): Likewise.
4548         * modules/freadseek-tests (Files): Likewise.
4549         * modules/freopen-tests (Files): Likewise.
4550         * modules/frexp-nolibm-tests (Files): Likewise.
4551         * modules/frexp-tests (Files): Likewise.
4552         * modules/frexpl-nolibm-tests (Files): Likewise.
4553         * modules/frexpl-tests (Files): Likewise.
4554         * modules/fseek-tests (Files): Likewise.
4555         * modules/fseeko-tests (Files): Likewise.
4556         * modules/fstrcmp-tests (Files): Likewise.
4557         * modules/fsync-tests (Files): Likewise.
4558         * modules/ftell-tests (Files): Likewise.
4559         * modules/ftello-tests (Files): Likewise.
4560         * modules/func-tests (Files): Likewise.
4561         * modules/futimens-tests (Files): Likewise.
4562         * modules/fwritable-tests (Files): Likewise.
4563         * modules/fwriting-tests (Files): Likewise.
4564         * modules/getcwd-tests (Files): Likewise.
4565         * modules/getdate-tests (Files): Likewise.
4566         * modules/getdelim-tests (Files): Likewise.
4567         * modules/getdtablesize-tests (Files): Likewise.
4568         * modules/getgroups-tests (Files): Likewise.
4569         * modules/getline-tests (Files): Likewise.
4570         * modules/getndelim2-tests (Files): Likewise.
4571         * modules/glob-tests (Files): Likewise.
4572         * modules/hash-tests (Files): Likewise.
4573         * modules/i-ring-tests (Files): Likewise.
4574         * modules/iconv-tests (Files): Likewise.
4575         * modules/iconv_open-utf-tests (Files): Likewise.
4576         * modules/idpriv-drop-tests (Files): Likewise.
4577         * modules/idpriv-droptemp-tests (Files): Likewise.
4578         * modules/inet_ntop-tests (Files): Likewise.
4579         * modules/inet_pton-tests (Files): Likewise.
4580         * modules/isblank-tests (Files): Likewise.
4581         * modules/isfinite-tests (Files): Likewise.
4582         * modules/isinf-tests (Files): Likewise.
4583         * modules/isnan-tests (Files): Likewise.
4584         * modules/isnand-nolibm-tests (Files): Likewise.
4585         * modules/isnand-tests (Files): Likewise.
4586         * modules/isnanf-nolibm-tests (Files): Likewise.
4587         * modules/isnanf-tests (Files): Likewise.
4588         * modules/isnanl-nolibm-tests (Files): Likewise.
4589         * modules/isnanl-tests (Files): Likewise.
4590         * modules/lchown-tests (Files): Likewise.
4591         * modules/ldexpl-tests (Files): Likewise.
4592         * modules/link-tests (Files): Likewise.
4593         * modules/linkat-tests (Files): Likewise.
4594         * modules/linked-list-tests (Files): Likewise.
4595         * modules/linkedhash-list-tests (Files): Likewise.
4596         * modules/localename-tests (Files): Likewise.
4597         * modules/lseek-tests (Files): Likewise.
4598         * modules/lstat-tests (Files): Likewise.
4599         * modules/mbmemcasecmp-tests (Files): Likewise.
4600         * modules/mbmemcasecoll-tests (Files): Likewise.
4601         * modules/mbrtowc-tests (Files): Likewise.
4602         * modules/mbscasecmp-tests (Files): Likewise.
4603         * modules/mbscasestr-tests (Files): Likewise.
4604         * modules/mbschr-tests (Files): Likewise.
4605         * modules/mbscspn-tests (Files): Likewise.
4606         * modules/mbsinit-tests (Files): Likewise.
4607         * modules/mbsncasecmp-tests (Files): Likewise.
4608         * modules/mbsnrtowcs-tests (Files): Likewise.
4609         * modules/mbspbrk-tests (Files): Likewise.
4610         * modules/mbspcasecmp-tests (Files): Likewise.
4611         * modules/mbsrchr-tests (Files): Likewise.
4612         * modules/mbsrtowcs-tests (Files): Likewise.
4613         * modules/mbsspn-tests (Files): Likewise.
4614         * modules/mbsstr-tests (Files): Likewise.
4615         * modules/memchr-tests (Files): Likewise.
4616         * modules/memchr2-tests (Files): Likewise.
4617         * modules/memcmp-tests (Files): Likewise.
4618         * modules/memmem-tests (Files): Likewise.
4619         * modules/memrchr-tests (Files): Likewise.
4620         * modules/mkdir-tests (Files): Likewise.
4621         * modules/mkfifo-tests (Files): Likewise.
4622         * modules/mkfifoat-tests (Files): Likewise.
4623         * modules/mknod-tests (Files): Likewise.
4624         * modules/nanosleep-tests (Files): Likewise.
4625         * modules/nl_langinfo-tests (Files): Likewise.
4626         * modules/obstack-printf-tests (Files): Likewise.
4627         * modules/open-tests (Files): Likewise.
4628         * modules/openat-tests (Files): Likewise.
4629         * modules/pipe-filter-gi-tests (Files): Likewise.
4630         * modules/pipe-filter-ii-tests (Files): Likewise.
4631         * modules/pipe2-tests (Files): Likewise.
4632         * modules/popen-safer-tests (Files): Likewise.
4633         * modules/popen-tests (Files): Likewise.
4634         * modules/posixtm-tests (Files): Likewise.
4635         * modules/pread-tests (Files): Likewise.
4636         * modules/printf-frexp-tests (Files): Likewise.
4637         * modules/printf-frexpl-tests (Files): Likewise.
4638         * modules/printf-posix-tests (Files): Likewise.
4639         * modules/priv-set-tests (Files): Likewise.
4640         * modules/quotearg-tests (Files): Likewise.
4641         * modules/random_r-tests (Files): Likewise.
4642         * modules/rawmemchr-tests (Files): Likewise.
4643         * modules/rbtree-list-tests (Files): Likewise.
4644         * modules/rbtree-oset-tests (Files): Likewise.
4645         * modules/rbtreehash-list-tests (Files): Likewise.
4646         * modules/readlink-tests (Files): Likewise.
4647         * modules/remove-tests (Files): Likewise.
4648         * modules/rename-tests (Files): Likewise.
4649         * modules/renameat-tests (Files): Likewise.
4650         * modules/rmdir-tests (Files): Likewise.
4651         * modules/round-tests (Files): Likewise.
4652         * modules/roundf-tests (Files): Likewise.
4653         * modules/roundl-tests (Files): Likewise.
4654         * modules/safe-alloc-tests (Files): Likewise.
4655         * modules/setenv-tests (Files): Likewise.
4656         * modules/sigaction-tests (Files): Likewise.
4657         * modules/signbit-tests (Files): Likewise.
4658         * modules/sleep-tests (Files): Likewise.
4659         * modules/snprintf-posix-tests (Files): Likewise.
4660         * modules/snprintf-tests (Files): Likewise.
4661         * modules/sprintf-posix-tests (Files): Likewise.
4662         * modules/stat-tests (Files): Likewise.
4663         * modules/stat-time-tests (Files): Likewise.
4664         * modules/strcasestr-tests (Files): Likewise.
4665         * modules/strchrnul-tests (Files): Likewise.
4666         * modules/strerror-tests (Files): Likewise.
4667         * modules/striconv-tests (Files): Likewise.
4668         * modules/striconveh-tests (Files): Likewise.
4669         * modules/striconveha-tests (Files): Likewise.
4670         * modules/strsignal-tests (Files): Likewise.
4671         * modules/strstr-tests (Files): Likewise.
4672         * modules/strtod-tests (Files): Likewise.
4673         * modules/strverscmp-tests (Files): Likewise.
4674         * modules/symlink-tests (Files): Likewise.
4675         * modules/symlinkat-tests (Files): Likewise.
4676         * modules/trunc-tests (Files): Likewise.
4677         * modules/truncf-tests (Files): Likewise.
4678         * modules/truncl-tests (Files): Likewise.
4679         * modules/uname-tests (Files): Likewise.
4680         * modules/unicase/cased-tests (Files): Likewise.
4681         * modules/unicase/ignorable-tests (Files): Likewise.
4682         * modules/unicase/locale-language-tests (Files): Likewise.
4683         * modules/unicase/tolower-tests (Files): Likewise.
4684         * modules/unicase/totitle-tests (Files): Likewise.
4685         * modules/unicase/toupper-tests (Files): Likewise.
4686         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4687         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4688         * modules/unicase/u8-casefold-tests (Files): Likewise.
4689         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4690         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4691         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4692         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4693         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4694         * modules/unicase/u8-tolower-tests (Files): Likewise.
4695         * modules/unicase/u8-totitle-tests (Files): Likewise.
4696         * modules/unicase/u8-toupper-tests (Files): Likewise.
4697         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4698         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4699         * modules/unicase/u16-casefold-tests (Files): Likewise.
4700         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4701         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4702         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4703         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4704         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4705         * modules/unicase/u16-tolower-tests (Files): Likewise.
4706         * modules/unicase/u16-totitle-tests (Files): Likewise.
4707         * modules/unicase/u16-toupper-tests (Files): Likewise.
4708         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4709         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4710         * modules/unicase/u32-casefold-tests (Files): Likewise.
4711         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4712         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4713         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4714         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4715         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4716         * modules/unicase/u32-tolower-tests (Files): Likewise.
4717         * modules/unicase/u32-totitle-tests (Files): Likewise.
4718         * modules/unicase/u32-toupper-tests (Files): Likewise.
4719         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4720         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4721         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4722         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4723         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4724         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4725         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4726         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4727         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4728         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4729         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4730         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4731         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4732         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4733         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4734         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4735         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4736         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4737         * modules/unictype/block-list-tests (Files): Likewise.
4738         * modules/unictype/block-of-tests (Files): Likewise.
4739         * modules/unictype/block-test-tests (Files): Likewise.
4740         * modules/unictype/category-C-tests (Files): Likewise.
4741         * modules/unictype/category-Cc-tests (Files): Likewise.
4742         * modules/unictype/category-Cf-tests (Files): Likewise.
4743         * modules/unictype/category-Cn-tests (Files): Likewise.
4744         * modules/unictype/category-Co-tests (Files): Likewise.
4745         * modules/unictype/category-Cs-tests (Files): Likewise.
4746         * modules/unictype/category-L-tests (Files): Likewise.
4747         * modules/unictype/category-Ll-tests (Files): Likewise.
4748         * modules/unictype/category-Lm-tests (Files): Likewise.
4749         * modules/unictype/category-Lo-tests (Files): Likewise.
4750         * modules/unictype/category-Lt-tests (Files): Likewise.
4751         * modules/unictype/category-Lu-tests (Files): Likewise.
4752         * modules/unictype/category-M-tests (Files): Likewise.
4753         * modules/unictype/category-Mc-tests (Files): Likewise.
4754         * modules/unictype/category-Me-tests (Files): Likewise.
4755         * modules/unictype/category-Mn-tests (Files): Likewise.
4756         * modules/unictype/category-N-tests (Files): Likewise.
4757         * modules/unictype/category-Nd-tests (Files): Likewise.
4758         * modules/unictype/category-Nl-tests (Files): Likewise.
4759         * modules/unictype/category-No-tests (Files): Likewise.
4760         * modules/unictype/category-P-tests (Files): Likewise.
4761         * modules/unictype/category-Pc-tests (Files): Likewise.
4762         * modules/unictype/category-Pd-tests (Files): Likewise.
4763         * modules/unictype/category-Pe-tests (Files): Likewise.
4764         * modules/unictype/category-Pf-tests (Files): Likewise.
4765         * modules/unictype/category-Pi-tests (Files): Likewise.
4766         * modules/unictype/category-Po-tests (Files): Likewise.
4767         * modules/unictype/category-Ps-tests (Files): Likewise.
4768         * modules/unictype/category-S-tests (Files): Likewise.
4769         * modules/unictype/category-Sc-tests (Files): Likewise.
4770         * modules/unictype/category-Sk-tests (Files): Likewise.
4771         * modules/unictype/category-Sm-tests (Files): Likewise.
4772         * modules/unictype/category-So-tests (Files): Likewise.
4773         * modules/unictype/category-Z-tests (Files): Likewise.
4774         * modules/unictype/category-Zl-tests (Files): Likewise.
4775         * modules/unictype/category-Zp-tests (Files): Likewise.
4776         * modules/unictype/category-Zs-tests (Files): Likewise.
4777         * modules/unictype/category-and-not-tests (Files): Likewise.
4778         * modules/unictype/category-and-tests (Files): Likewise.
4779         * modules/unictype/category-byname-tests (Files): Likewise.
4780         * modules/unictype/category-name-tests (Files): Likewise.
4781         * modules/unictype/category-none-tests (Files): Likewise.
4782         * modules/unictype/category-of-tests (Files): Likewise.
4783         * modules/unictype/category-or-tests (Files): Likewise.
4784         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4785         * modules/unictype/combining-class-tests (Files): Likewise.
4786         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4787         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4788         * modules/unictype/ctype-blank-tests (Files): Likewise.
4789         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4790         * modules/unictype/ctype-digit-tests (Files): Likewise.
4791         * modules/unictype/ctype-graph-tests (Files): Likewise.
4792         * modules/unictype/ctype-lower-tests (Files): Likewise.
4793         * modules/unictype/ctype-print-tests (Files): Likewise.
4794         * modules/unictype/ctype-punct-tests (Files): Likewise.
4795         * modules/unictype/ctype-space-tests (Files): Likewise.
4796         * modules/unictype/ctype-upper-tests (Files): Likewise.
4797         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4798         * modules/unictype/decimal-digit-tests (Files): Likewise.
4799         * modules/unictype/digit-tests (Files): Likewise.
4800         * modules/unictype/mirror-tests (Files): Likewise.
4801         * modules/unictype/numeric-tests (Files): Likewise.
4802         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4803         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4804         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4805         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4806         Likewise.
4807         * modules/unictype/property-bidi-block-separator-tests (Files):
4808         Likewise.
4809         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4810         Likewise.
4811         * modules/unictype/property-bidi-common-separator-tests (Files):
4812         Likewise.
4813         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4814         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4815         Likewise.
4816         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4817         Likewise.
4818         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4819         Likewise.
4820         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4821         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4822         Likewise.
4823         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4824         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4825         Likewise.
4826         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4827         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4828         * modules/unictype/property-bidi-segment-separator-tests (Files):
4829         Likewise.
4830         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4831         * modules/unictype/property-byname-tests (Files): Likewise.
4832         * modules/unictype/property-combining-tests (Files): Likewise.
4833         * modules/unictype/property-composite-tests (Files): Likewise.
4834         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4835         * modules/unictype/property-dash-tests (Files): Likewise.
4836         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4837         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4838         Likewise.
4839         * modules/unictype/property-deprecated-tests (Files): Likewise.
4840         * modules/unictype/property-diacritic-tests (Files): Likewise.
4841         * modules/unictype/property-extender-tests (Files): Likewise.
4842         * modules/unictype/property-format-control-tests (Files): Likewise.
4843         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4844         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4845         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4846         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4847         * modules/unictype/property-hyphen-tests (Files): Likewise.
4848         * modules/unictype/property-id-continue-tests (Files): Likewise.
4849         * modules/unictype/property-id-start-tests (Files): Likewise.
4850         * modules/unictype/property-ideographic-tests (Files): Likewise.
4851         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4852         * modules/unictype/property-ids-trinary-operator-tests (Files):
4853         Likewise.
4854         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4855         * modules/unictype/property-iso-control-tests (Files): Likewise.
4856         * modules/unictype/property-join-control-tests (Files): Likewise.
4857         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4858         * modules/unictype/property-line-separator-tests (Files): Likewise.
4859         * modules/unictype/property-logical-order-exception-tests (Files):
4860         Likewise.
4861         * modules/unictype/property-lowercase-tests (Files): Likewise.
4862         * modules/unictype/property-math-tests (Files): Likewise.
4863         * modules/unictype/property-non-break-tests (Files): Likewise.
4864         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4865         * modules/unictype/property-numeric-tests (Files): Likewise.
4866         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4867         * modules/unictype/property-other-default-ignorable-code-point-tests
4868         (Files): Likewise.
4869         * modules/unictype/property-other-grapheme-extend-tests (Files):
4870         Likewise.
4871         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4872         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4873         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4874         * modules/unictype/property-other-math-tests (Files): Likewise.
4875         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4876         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4877         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4878         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4879         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4880         * modules/unictype/property-private-use-tests (Files): Likewise.
4881         * modules/unictype/property-punctuation-tests (Files): Likewise.
4882         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4883         * modules/unictype/property-radical-tests (Files): Likewise.
4884         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4885         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4886         * modules/unictype/property-space-tests (Files): Likewise.
4887         * modules/unictype/property-terminal-punctuation-tests (Files):
4888         Likewise.
4889         * modules/unictype/property-test-tests (Files): Likewise.
4890         * modules/unictype/property-titlecase-tests (Files): Likewise.
4891         * modules/unictype/property-unassigned-code-value-tests (Files):
4892         Likewise.
4893         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4894         * modules/unictype/property-uppercase-tests (Files): Likewise.
4895         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4896         * modules/unictype/property-white-space-tests (Files): Likewise.
4897         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4898         * modules/unictype/property-xid-start-tests (Files): Likewise.
4899         * modules/unictype/property-zero-width-tests (Files): Likewise.
4900         * modules/unictype/scripts-tests (Files): Likewise.
4901         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4902         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4903         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4904         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4905         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4906         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4907         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4908         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4909         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4910         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4911         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4912         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4913         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4914         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4915         * modules/uninorm/composition-tests (Files): Likewise.
4916         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4917         * modules/uninorm/decomposition-tests (Files): Likewise.
4918         * modules/uninorm/filter-tests (Files): Likewise.
4919         * modules/uninorm/nfc-tests (Files): Likewise.
4920         * modules/uninorm/nfd-tests (Files): Likewise.
4921         * modules/uninorm/nfkc-tests (Files): Likewise.
4922         * modules/uninorm/nfkd-tests (Files): Likewise.
4923         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4924         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4925         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4926         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4927         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4928         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4929         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4930         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4931         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4932         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4933         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4934         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4935         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4936         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4937         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4938         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4939         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4940         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4941         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4942         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4943         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4944         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4945         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4946         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4947         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4948         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4949         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4950         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4951         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4952         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4953         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4954         * modules/uniwidth/u8-width-tests (Files): Likewise.
4955         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4956         * modules/uniwidth/u16-width-tests (Files): Likewise.
4957         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4958         * modules/uniwidth/u32-width-tests (Files): Likewise.
4959         * modules/uniwidth/width-tests (Files): Likewise.
4960         * modules/unlink-tests (Files): Likewise.
4961         * modules/unsetenv-tests (Files): Likewise.
4962         * modules/usleep-tests (Files): Likewise.
4963         * modules/utimens-tests (Files): Likewise.
4964         * modules/utimensat-tests (Files): Likewise.
4965         * modules/vasnprintf-posix-tests (Files): Likewise.
4966         * modules/vasnprintf-tests (Files): Likewise.
4967         * modules/vasprintf-posix-tests (Files): Likewise.
4968         * modules/vasprintf-tests (Files): Likewise.
4969         * modules/vdprintf-posix-tests (Files): Likewise.
4970         * modules/vfprintf-posix-tests (Files): Likewise.
4971         * modules/vprintf-posix-tests (Files): Likewise.
4972         * modules/vsnprintf-posix-tests (Files): Likewise.
4973         * modules/vsnprintf-tests (Files): Likewise.
4974         * modules/vsprintf-posix-tests (Files): Likewise.
4975         * modules/wcrtomb-tests (Files): Likewise.
4976         * modules/wcsnrtombs-tests (Files): Likewise.
4977         * modules/wcsrtombs-tests (Files): Likewise.
4978         * modules/wctype-tests (Files): Likewise.
4979         * modules/wcwidth-tests (Files): Likewise.
4980         * modules/xmemdup0-tests (Files): Likewise.
4981         * modules/xprintf-posix-tests (Files): Likewise.
4982         * modules/xvasprintf-tests (Files): Likewise.
4983
4984 2009-12-24  Eric Blake  <ebb9@byu.net>
4985
4986         test-nanosleep: fix typo
4987         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4988         patch.
4989         Reported by Bruno Haible.
4990
4991 2009-12-24  Bruno Haible  <bruno@clisp.org>
4992
4993         Reduce namespace pollution on glibc systems.
4994         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4995         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4996         systems.
4997         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4998         <getopt.h> on glibc systems.
4999         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5000         systems.
5001         * lib/fcntl.c: Include <unistd.h> here instead.
5002
5003 2009-12-24  Bruno Haible  <bruno@clisp.org>
5004
5005         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5006
5007 2009-12-24  Eric Blake  <ebb9@byu.net>
5008
5009         tests: add signature checks
5010         * tests/signature.h (SIGNATURE_CHECK): New file.
5011         * modules/atexit-tests (Files): Use it.
5012         * modules/btowc-tests (Files): Likewise.
5013         * modules/canonicalize-lgpl-tests (Files): Likewise.
5014         * modules/ceilf-tests (Files): Likewise.
5015         * modules/ceill-tests (Files): Likewise.
5016         * modules/chown-tests (Files): Likewise.
5017         * modules/dprintf-posix-tests (Files): Likewise.
5018         * modules/dup2-tests (Files): Likewise.
5019         * modules/dup3-tests (Files): Likewise.
5020         * modules/duplocale-tests (Files): Likewise.
5021         * modules/fchdir-tests (Files): Likewise.
5022         * modules/fcntl-tests (Files): Likewise.
5023         * modules/fdopendir-tests (Files): Likewise.
5024         * modules/fflush-tests (Files): Likewise.
5025         * modules/flock-tests (Files): Likewise.
5026         * modules/floorf-tests (Files): Likewise.
5027         * modules/floorl-tests (Files): Likewise.
5028         * modules/fnmatch-tests (Files): Likewise.
5029         * modules/fopen-tests (Files): Likewise.
5030         * modules/fprintf-posix-tests (Files): Likewise.
5031         * modules/freopen-tests (Files): Likewise.
5032         * modules/frexp-nolibm-tests (Files): Likewise.
5033         * modules/frexp-tests (Files): Likewise.
5034         * modules/frexpl-nolibm-tests (Files): Likewise.
5035         * modules/frexpl-tests (Files): Likewise.
5036         * modules/fseek-tests (Files): Likewise.
5037         * modules/fseeko-tests (Files): Likewise.
5038         * modules/fsync-tests (Files): Likewise.
5039         * modules/ftell-tests (Files): Likewise.
5040         * modules/ftello-tests (Files): Likewise.
5041         * modules/futimens-tests (Files): Likewise.
5042         * modules/getaddrinfo-tests (Files): Likewise.
5043         * modules/getcwd-tests (Files): Likewise.
5044         * modules/getdelim-tests (Files): Likewise.
5045         * modules/getdtablesize-tests (Files): Likewise.
5046         * modules/getgroups-tests (Files): Likewise.
5047         * modules/gethostname-tests (Files): Likewise.
5048         * modules/getline-tests (Files): Likewise.
5049         * modules/getopt-posix-tests (Files): Likewise.
5050         * modules/gettimeofday-tests (Files): Likewise.
5051         * modules/glob-tests (Files): Likewise.
5052         * modules/iconv-tests (Files): Likewise.
5053         * modules/inet_ntop-tests (Files): Likewise.
5054         * modules/inet_pton-tests (Files): Likewise.
5055         * modules/isblank-tests (Files): Likewise.
5056         * modules/lchown-tests (Files): Likewise.
5057         * modules/ldexpl-tests (Files): Likewise.
5058         * modules/link-tests (Files): Likewise.
5059         * modules/linkat-tests (Files): Likewise.
5060         * modules/lseek-tests (Files): Likewise.
5061         * modules/lstat-tests (Files): Likewise.
5062         * modules/mbrtowc-tests (Files): Likewise.
5063         * modules/mbsinit-tests (Files): Likewise.
5064         * modules/mbsnrtowcs-tests (Files): Likewise.
5065         * modules/mbsrtowcs-tests (Files): Likewise.
5066         * modules/memchr-tests (Files): Likewise.
5067         * modules/memcmp-tests (Files): Likewise.
5068         * modules/memmem-tests (Files): Likewise.
5069         * modules/memrchr-tests (Files): Likewise.
5070         * modules/mkdir-tests (Files): Likewise.
5071         * modules/mkfifo-tests (Files): Likewise.
5072         * modules/mkfifoat-tests (Files): Likewise.
5073         * modules/mknod-tests (Files): Likewise.
5074         * modules/nanosleep-tests (Files): Likewise.
5075         * modules/nl_langinfo-tests (Files): Likewise.
5076         * modules/obstack-printf-tests (Files): Likewise.
5077         * modules/open-tests (Files): Likewise.
5078         * modules/openat-tests (Files): Likewise.
5079         * modules/perror-tests (Files): Likewise.
5080         * modules/pipe2-tests (Files): Likewise.
5081         * modules/poll-tests (Files): Likewise.
5082         * modules/popen-tests (Files): Likewise.
5083         * modules/posix_spawn-tests (Files): Likewise.
5084         * modules/posix_spawnp-tests (Files): Likewise.
5085         * modules/pread-tests (Files): Likewise.
5086         * modules/printf-posix-tests (Files): Likewise.
5087         * modules/pty-tests (Files): Likewise.
5088         * modules/random_r-tests (Files): Likewise.
5089         * modules/rawmemchr-tests (Files): Likewise.
5090         * modules/readlink-tests (Files): Likewise.
5091         * modules/remove-tests (Files): Likewise.
5092         * modules/rename-tests (Files): Likewise.
5093         * modules/renameat-tests (Files): Likewise.
5094         * modules/rmdir-tests (Files): Likewise.
5095         * modules/round-tests (Files): Likewise.
5096         * modules/roundf-tests (Files): Likewise.
5097         * modules/roundl-tests (Files): Likewise.
5098         * modules/select-tests (Files): Likewise.
5099         * modules/setenv-tests (Files): Likewise.
5100         * modules/sigaction-tests (Files): Likewise.
5101         * modules/sleep-tests (Files): Likewise.
5102         * modules/snprintf-posix-tests (Files): Likewise.
5103         * modules/snprintf-tests (Files): Likewise.
5104         * modules/sprintf-posix-tests (Files): Likewise.
5105         * modules/stat-tests (Files): Likewise.
5106         * modules/strcasestr-tests (Files): Likewise.
5107         * modules/strchrnul-tests (Files): Likewise.
5108         * modules/strerror-tests (Files): Likewise.
5109         * modules/strsignal-tests (Files): Likewise.
5110         * modules/strstr-tests (Files): Likewise.
5111         * modules/strtod-tests (Files): Likewise.
5112         * modules/strverscmp-tests (Files): Likewise.
5113         * modules/symlink-tests (Files): Likewise.
5114         * modules/symlinkat-tests (Files): Likewise.
5115         * modules/times-tests (Files): Likewise.
5116         * modules/trunc-tests (Files): Likewise.
5117         * modules/truncf-tests (Files): Likewise.
5118         * modules/truncl-tests (Files): Likewise.
5119         * modules/tsearch-tests (Files): Likewise.
5120         * modules/uname-tests (Files): Likewise.
5121         * modules/unlink-tests (Files): Likewise.
5122         * modules/unsetenv-tests (Files): Likewise.
5123         * modules/usleep-tests (Files): Likewise.
5124         * modules/utimensat-tests (Files): Likewise.
5125         * modules/vasprintf-tests (Files): Likewise.
5126         * modules/vdprintf-posix-tests (Files): Likewise.
5127         * modules/vfprintf-posix-tests (Files): Likewise.
5128         * modules/vprintf-posix-tests (Files): Likewise.
5129         * modules/vsnprintf-posix-tests (Files): Likewise.
5130         * modules/vsnprintf-tests (Files): Likewise.
5131         * modules/vsprintf-posix-tests (Files): Likewise.
5132         * modules/wcrtomb-tests (Files): Likewise.
5133         * modules/wcsnrtombs-tests (Files): Likewise.
5134         * modules/wcsrtombs-tests (Files): Likewise.
5135         * modules/wcwidth-tests (Files): Likewise.
5136         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5137         * tests/test-isinf.c (isinf): Likewise.
5138         * tests/test-isnan.c (isnan): Likewise.
5139         * tests/test-signbit.c (signbit): Likewise.
5140         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5141         declaration, either as macro or with correct signature.
5142         (select): Ensure function under test is declared with correct
5143         signature in correct header.
5144         * tests/test-atexit.c (atexit): Likewise.
5145         * tests/test-btowc.c (btowc): Likewise.
5146         * tests/test-canonicalize-lgpl.c (realpath)
5147         (canonicalize_file_name): Likewise.
5148         * tests/test-ceilf1.c (ceilf): Likewise.
5149         * tests/test-ceill.c (ceill): Likewise.
5150         * tests/test-chown.c (chown): Likewise.
5151         * tests/test-dprintf-posix.c (dprintf): Likewise.
5152         * tests/test-dup2.c (dup2): Likewise.
5153         * tests/test-dup3.c (dup3): Likewise.
5154         * tests/test-duplocale.c (duplocale): Likewise.
5155         * tests/test-fchdir.c (fchdir): Likewise.
5156         * tests/test-fchownat.c (fchownat): Likewise.
5157         * tests/test-fcntl.c (fcntl): Likewise.
5158         * tests/test-fdopendir.c (fdopendir): Likewise.
5159         * tests/test-fflush.c (fflush): Likewise.
5160         * tests/test-flock.c (flock): Likewise.
5161         * tests/test-floorf1.c (floorf): Likewise.
5162         * tests/test-floorl.c (floorl): Likewise.
5163         * tests/test-fnmatch.c (fnmatch): Likewise.
5164         * tests/test-fopen.c (fopen): Likewise.
5165         * tests/test-fprintf-posix.c (fprintf): Likewise.
5166         * tests/test-freopen.c (freopen): Likewise.
5167         * tests/test-frexp.c (frexp): Likewise.
5168         * tests/test-frexpl.c (frexpl): Likewise.
5169         * tests/test-fseek.c (fseek): Likewise.
5170         * tests/test-fseeko.c (fseeko): Likewise.
5171         * tests/test-fstatat.c (fstatat): Likewise.
5172         * tests/test-fsync.c (fsync): Likewise.
5173         * tests/test-ftell.c (ftell): Likewise.
5174         * tests/test-ftello.c (ftello): Likewise.
5175         * tests/test-futimens.c (futimens): Likewise.
5176         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5177         (gai_strerror): Likewise.
5178         * tests/test-getcwd.c (getcwd): Likewise.
5179         * tests/test-getdelim.c (getdelim): Likewise.
5180         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5181         * tests/test-getgroups.c (getgroups): Likewise.
5182         * tests/test-gethostname.c (gethostname): Likewise.
5183         * tests/test-getline.c (getline): Likewise.
5184         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5185         Likewise.
5186         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5187         * tests/test-glob.c (glob, globfree): Likewise.
5188         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5189         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5190         * tests/test-inet_pton.c (inet_pton): Likewise.
5191         * tests/test-isblank.c (isblank): Likewise.
5192         * tests/test-lchown.c (lchown): Likewise.
5193         * tests/test-ldexpl.c (ldexpl): Likewise.
5194         * tests/test-link.c (link): Likewise.
5195         * tests/test-linkat.c (linkat): Likewise.
5196         * tests/test-lseek.c (lseek): Likewise.
5197         * tests/test-lstat.c (lstat): Likewise.
5198         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5199         * tests/test-mbsinit.c (mbsinit): Likewise.
5200         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5201         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5202         * tests/test-memchr.c (memchr): Likewise.
5203         * tests/test-memcmp.c (memcmp): Likewise.
5204         * tests/test-memmem.c (memmem): Likewise.
5205         * tests/test-memrchr.c (memrchr): Likewise.
5206         * tests/test-mkdir.c (mkdir): Likewise.
5207         * tests/test-mkdirat.c (mkdirat): Likewise.
5208         * tests/test-mkfifo.c (mkfifo): Likewise.
5209         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5210         * tests/test-mknod.c (mknod): Likewise.
5211         * tests/test-nanosleep.c (nanosleep): Likewise.
5212         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5213         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5214         Likewise.
5215         * tests/test-open.c (open): Likewise.
5216         * tests/test-openat.c (openat): Likewise.
5217         * tests/test-perror.c (perror): Likewise.
5218         * tests/test-pipe2.c (pipe2): Likewise.
5219         * tests/test-poll.c (poll): Likewise.
5220         * tests/test-popen.c (popen, pclose): Likewise.
5221         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5222         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5223         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5224         (posix_spawn_file_actions_destroy)
5225         (posix_spawn_file_actions_addclose)
5226         (posix_spawn_file_actions_addopen)
5227         (posix_spawn_file_actions_adddup2): Likewise.
5228         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5229         * tests/test-pread.c (pread): Likewise.
5230         * tests/test-printf-posix.c (printf): Likewise.
5231         * tests/test-pty.c (openpty, forkpty): Likewise.
5232         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5233         (random_r): Likewise.
5234         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5235         * tests/test-readlink.c (readlink): Likewise.
5236         * tests/test-remove.c (remove): Likewise.
5237         * tests/test-rename.c (rename): Likewise.
5238         * tests/test-renameat.c (renameat): Likewise.
5239         * tests/test-rmdir.c (rmdir): Likewise.
5240         * tests/test-round1.c (round): Likewise.
5241         * tests/test-roundf1.c (roundf): Likewise.
5242         * tests/test-roundl.c (roundl): Likewise.
5243         * tests/test-setenv.c (setenv): Likewise.
5244         * tests/test-sigaction.c (sigaction): Likewise.
5245         * tests/test-sleep.c (sleep): Likewise.
5246         * tests/test-snprintf.c (snprintf): Likewise.
5247         * tests/test-sprintf-posix.c (sprintf): Likewise.
5248         * tests/test-stat.c (stat): Likewise.
5249         * tests/test-stpncpy.c (stpncpy): Likewise.
5250         * tests/test-strcasestr.c (strcasestr): Likewise.
5251         * tests/test-strchrnul.c (strchrnul): Likewise.
5252         * tests/test-strerror.c (strerror): Likewise.
5253         * tests/test-strsignal.c (strsignal): Likewise.
5254         * tests/test-strstr.c (strstr): Likewise.
5255         * tests/test-strtod.c (strtod): Likewise.
5256         * tests/test-strverscmp.c (strverscmp): Likewise.
5257         * tests/test-symlink.c (symlink): Likewise.
5258         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5259         * tests/test-times.c (times): Likewise.
5260         * tests/test-trunc1.c (trunc): Likewise.
5261         * tests/test-truncf1.c (truncf): Likewise.
5262         * tests/test-truncl.c (truncl): Likewise.
5263         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5264         Likewise.
5265         * tests/test-uname.c (uname): Likewise.
5266         * tests/test-unlink.c (unlink): Likewise.
5267         * tests/test-unlinkat.c (unlinkat): Likewise.
5268         * tests/test-unsetenv.c (unsetenv): Likewise.
5269         * tests/test-usleep.c (usleep): Likewise.
5270         * tests/test-utimensat.c (utimensat): Likewise.
5271         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5272         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5273         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5274         * tests/test-vprintf-posix.c (vprintf): Likewise.
5275         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5276         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5277         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5278         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5279         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5280         * tests/test-wcwidth.c (wcwidth): Likewise.
5281
5282         build: pull in conditional headers during GNULIB_POSIXCHECK
5283         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5284         definitions from any conditionally-included headers.
5285         * lib/stdlib.in.h (includes): Likewise.
5286         * lib/unistd.in.h (includes): Likewise.
5287
5288 2009-12-24  Bruno Haible  <bruno@clisp.org>
5289
5290         * tests/test-argv-iter.c: Include header file being tested immediately
5291         after config.h.
5292         * tests/test-base64.c: Likewise.
5293         * tests/test-flock.c: Likewise.
5294         * tests/test-fsync.c: Likewise.
5295         * tests/test-getdate.c: Likewise.
5296         * tests/test-getndelim2.c: Likewise.
5297         * tests/test-isfinite.c: Likewise.
5298         * tests/test-isinf.c: Likewise.
5299         * tests/test-strerror.c: Likewise.
5300         * tests/test-strsignal.c: Likewise.
5301
5302 2009-12-23  Eric Blake  <ebb9@byu.net>
5303
5304         unistd: work around cygwin bug
5305         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5306         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5307         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5308
5309 2009-12-23  Bruno Haible  <bruno@clisp.org>
5310
5311         localename: More tests.
5312         * tests/test-localename.c (SIZEOF): New macro.
5313         (categories): New variable.
5314         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5315         test_locale_name_default): Add test w.r.t. thread locale.
5316         (test_locale_name_thread): New function.
5317         (main): Invoke it.
5318
5319         localename: Make aware of thread locale.
5320         * lib/localename.h (gl_locale_name_thread): New declaration.
5321         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5322         behaviour with respect to thread locale.
5323         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5324         <langinfo.h>, glthread/lock.h.
5325         (SIZE_BITS): New macro.
5326         (string_hash): New function.
5327         (struct hash_node): New type.
5328         (HASH_TABLE_SIZE): New macro.
5329         (struniq_hash_table, struniq_lock): New variables.
5330         (struniq): New function.
5331         (gl_locale_name_thread): New function.
5332         (gl_locale_name): Invoke it.
5333         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5334         * modules/localename (Depends-on): Add lock.
5335         Reported by Mike Gran <spk121@yahoo.com>.
5336
5337 2009-12-23  Eric Blake  <ebb9@byu.net>
5338
5339         va-args: new module
5340         * modules/va-args: New file.
5341         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5342         * MODULES.html.sh (Core language properties): Mention it.
5343
5344         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5345         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5346         named alias for __attribute__((__unused__)).
5347         * lib/chown.c: Update client.
5348         * lib/fchmodat.c: Likewise.
5349         * lib/fts.c: Likewise.
5350         * lib/getdate.y: Likewise.
5351         * lib/getgroups.c: Likewise.
5352         * lib/getopt.c: Likewise.
5353         * lib/getugroups.c: Likewise.
5354         * lib/mkdir.c: Likewise.
5355         * lib/mkfifo.c: Likewise.
5356         * lib/mkfifoat.c: Likewise.
5357         * lib/mknod.c: Likewise.
5358         * lib/mknodat.c: Likewise.
5359         * lib/readlink.c: Likewise.
5360         * lib/se-context.in.h: Likewise.
5361         * lib/se-selinux.in.h: Likewise.
5362         * lib/sockets.c: Likewise.
5363         * lib/symlink.c: Likewise.
5364         * lib/symlinkat.c: Likewise.
5365         * lib/unicodeio.c: Likewise.
5366         * lib/unistr.h: Likewise.
5367         * tests/test-areadlink.c: Likewise.
5368         * tests/test-areadlinkat.c: Likewise.
5369         * tests/test-filenamecat.c: Likewise.
5370         * tests/test-fseeko.c: Likewise.
5371         * tests/test-ftello.c: Likewise.
5372         * tests/test-getdate.c: Likewise.
5373         * tests/test-getgroups.c: Likewise.
5374         * tests/test-gethostname.c: Likewise.
5375         * tests/test-quotearg.c: Likewise.
5376         * tests/test-version-etc.c: Likewise.
5377         * tests/test-xalloc-die.c: Likewise.
5378         * tests/test-xfprintf-posix.c: Likewise.
5379         * tests/test-xprintf-posix.c: Likewise.
5380         * tests/test-xvasprintf.c: Likewise.
5381
5382         tests: avoid compiler warnings
5383         * tests/test-fcntl.c (main): Delete unused parameters.
5384         * tests/test-freopen-safer.c (main): Likewise.
5385         * tests/test-xalloc-die.c (main): Mark unused parameters.
5386         * tests/test-fseeko.c (main): Likewise.
5387         * tests/test-ftello.c (main): Likewise.
5388         * tests/test-nanosleep.c (main): Avoid declaration warning.
5389         * tests/test-sleep.c (main): Likewise.
5390         * tests/test-unsetenv.c (main): Silence warning about string
5391         literal.
5392         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5393
5394 2009-12-23  Bruno Haible  <bruno@clisp.org>
5395
5396         * tests/test-localename.c (test_locale_name): New function, extracted
5397         from main. Also test mixed situations.
5398         (test_locale_name_posix, test_locale_name_environ,
5399         test_locale_name_default): New functions.
5400         (main): Invoke them all.
5401         * modules/localename-tests (configure.ac): Test for newlocale.
5402
5403 2009-12-23  Bruno Haible  <bruno@clisp.org>
5404
5405         unistd: Ensure getcwd gets declared before being overridden.
5406         * lib/unistd.in.h: Conditionally include <io.h>.
5407
5408 2009-12-22  Bruno Haible  <bruno@clisp.org>
5409
5410         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5411         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5412         (gl_WCHAR_H): Invoke it.
5413         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5414         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5415         Reported by Karl Berry <karl@freefriends.org>.
5416
5417 2009-12-22  Eric Blake  <ebb9@byu.net>
5418
5419         math, unistd: avoid redundant includes
5420         * lib/math.in.h (isnan): No need to re-include <math.h>.
5421         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5422
5423         getsubopt: work around cygwin bug
5424         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5425         avoid conflicting with system getsubopt.
5426         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5427         bug.
5428
5429         getopt: synchronize from glibc
5430         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5431         parameter order.  Adjust all callers.
5432         (_getopt_internal_r, main): Adjust quoting in error messages.
5433         Drop considerations for outdated POSIX 1003.2 error message.
5434         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5435         callers.
5436         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5437
5438         test-getopt: test stderr behavior
5439         * modules/getopt-posix-tests (Depends-on): Add dup2.
5440         * tests/test-getopt.c (ASSERT): Avoid stderr.
5441         (main): Move stderr to a temporary file.
5442         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5443         Instead, add parameter to inform caller if output occurred.
5444         (test_getopt): Adjust all existing tests to expect silence, and
5445         add new tests of leading ":".
5446         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5447         glibc shortcomings with leading "-:" or "+:" in optstring.
5448         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5449         Likewise.
5450         * doc/posix-functions/getopt.texi (getopt): Likewise.
5451
5452         test-getopt: enhance test
5453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5454         supports optind=0.
5455         * tests/test-getopt.c (OPTIND_MIN): Move...
5456         * tests/test-getopt.h (OPTIND_MIN): ...here.
5457         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5458         Require that optind=0 works, since modern BSD supports it in
5459         addition to optreset, and since coreutils expects it.
5460         (test_getopt_long_only): New test.
5461         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5462         glibc shortcomings with 'W;', and enforcement of optind=0.
5463         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5464         Likewise.
5465
5466 2009-12-21  Bruno Haible  <bruno@clisp.org>
5467
5468         localename: Improvements for MacOS X and Cygwin.
5469         * lib/localename.h (gl_locale_name_environ): New declaration.
5470         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5471         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5472         (gl_locale_name_posix): Invoke it.
5473         (gl_locale_name_default): Add comments. Use Windows native API also on
5474         Cygwin.
5475
5476 2009-12-21  Bruno Haible  <bruno@clisp.org>
5477
5478         Update list of Win32 locale ids.
5479         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5480         (LANG_SAMI): Renamed from LANG_SAAMI.
5481         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5482         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5483         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5484         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5485         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5486         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5487         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5488         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5489         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5490         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5491         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5492         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5493         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5494         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5495         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5496         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5497         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5498         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5499         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5500         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5501         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5502         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5503         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5504         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5505         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5506         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5507         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5508         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5509         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5510         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5511         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5512         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5513         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5514         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5515         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5516         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5517         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5518         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5519         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5520         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5521         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5522         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5523         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5524         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5525         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5526         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5527         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5528         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5529         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5530         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5531         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5532         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5533         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5534         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5535         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5536         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5537         Add more languages and countries for Sami, Sorbian. Add more countries
5538         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5539         for Pashto. Change country for Syriac, Tswana.
5540
5541 2009-12-21  Eric Blake  <ebb9@byu.net>
5542
5543         test-utimens: avoid spurious failure
5544         * tests/test-chown.h (nap): Factor...
5545         * tests/nap.h: ...into new file.
5546         * tests/test-lchown.h (nap): Avoid duplication.
5547         * tests/test-utimens-common.h (nap): Use shared implementation,
5548         necessary on file systems with 1-second resolution.
5549         * modules/chown-tests (Files): Include new file.
5550         * modules/fdutimensat-tests (Files): Likewise.
5551         * modules/futimens-tests (Files): Likewise.
5552         * modules/lchown-tests (Files): Likewise.
5553         * modules/openat-tests (Files): Likewise.
5554         * modules/utimens-tests (Files): Likewise.
5555         * modules/utimensat-tests (Files): Likewise.
5556
5557 2009-12-19  Eric Blake  <ebb9@byu.net>
5558
5559         futimens, utimensat: work around Linux bug
5560         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5561         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5562         * lib/utimensat.c (rpl_utimensat): Work around it.
5563         * lib/futimens.c (rpl_futimens): Adjust comment.
5564
5565         utimens: work around Linux ctime bug
5566         * lib/utimens.c (detect_ctime_bug): New helper function.
5567         (update_timespec): Differentiate between workaround needed for
5568         this bug vs. what is needed for systems that lack utimensat.
5569         (fdutimens, lutimens): Work around bug.
5570
5571         utimens: check for ctime update
5572         * tests/test-utimens-common.h (check_ctime): Define.
5573         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5574         * tests/test-futimens.h (test_futimens): Likewise.
5575         * tests/test-lutimens.h (test_lutimens): Likewise.
5576         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5577         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5578
5579 2009-12-19  Bruno Haible  <bruno@clisp.org>
5580
5581         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5582         * tests/test-dprintf-posix2.sh: New file.
5583         * tests/test-dprintf-posix2.c: New file.
5584         * modules/dprintf-posix-tests (Files): Add them.
5585         (configure.ac): Check for getrlimit and setrlimit.
5586         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5587
5588 2009-12-19  Bruno Haible  <bruno@clisp.org>
5589
5590         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5591         * tests/test-fprintf-posix3.sh: New file.
5592         * tests/test-fprintf-posix3.c: New file.
5593         * modules/fprintf-posix-tests (Files): Add them.
5594         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5595
5596 2009-12-19  Eric Blake  <ebb9@byu.net>
5597
5598         dirfd: fix prototype
5599         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5600         * lib/dirfd.c (dirfd): Likewise.
5601
5602         canonicalize: reduce memory usage
5603         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5604         allocation to size.
5605         Reported by Solar Designer <solar@openwall.com>.
5606
5607 2009-12-19  Bruno Haible  <bruno@clisp.org>
5608
5609         New module attribute 'Applicability'.
5610         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5611         * gnulib-tool: New option --extract-applicability.
5612         (func_usage): Document it.
5613         (sed_extract_prog): Recognize it.
5614         (func_get_applicability): New function.
5615         (func_import): Generalize handling of 'link-warning' module.
5616         * modules/link-warning (Applicability): New section.
5617         * modules/arg-nonnull (Applicability): New section.
5618         Repoted by Simon Josefsson <simon@josefsson.org>.
5619
5620 2009-12-19  Bruno Haible  <bruno@clisp.org>
5621
5622         fflush: tweak
5623         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5624         * lib/fseeko.c (rpl_fseeko): Likewise.
5625
5626 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5627
5628         * lib/gl_list.h: Fix typo in comment.
5629
5630 2009-12-16  Eric Blake  <ebb9@byu.net>
5631
5632         fcntl: use to simplify other modules
5633         * modules/cloexec (Depends-on): Add fcntl.
5634         * modules/fchdir (Depends-on): Likewise.
5635         * modules/fd-safer-flag (Depends-on): Likewise.
5636         * modules/unistd-safer (Depends-on): Likewise.
5637         * modules/dup3 (configure.ac): Set module indicator.
5638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5639         missing.
5640         * lib/fchdir.c (_gl_register_dup): Fix comment.
5641         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5642         * lib/dup-safer.c (dup_safer): Likewise.
5643         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5644         * lib/dup3.c (dup3): Likewise.
5645         * tests/test-fchdir.c (main): Enhance test.
5646         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
5647
5648         fcntl: port portions of fcntl to mingw
5649         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5650         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5651         replacement for mingw.
5652         * modules/fcntl (Description): Update.
5653         (Depends-on): Add dup2.
5654         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5655         * modules/fcntl-h (Makefile.am): Substitute it.
5656         * lib/fcntl.in.h (fcntl): Update declaration.
5657         (F_DUPFD, F_GETFD): New macros, when needed.
5658         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5659         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5660         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5661         we now guarantee.
5662
5663         fcntl: work around cygwin bug in F_DUPFD
5664         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5665         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5666         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5667         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5668         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5669
5670         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5671         * modules/fcntl (Files): List new files.
5672         (configure.ac): Run a test.
5673         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5674         * lib/fcntl.c (rpl_fcntl): Likewise.
5675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5676         (gl_FCNTL_H): Always replace fcntl.h.
5677         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5678         * lib/fcntl.in.h (fcntl): Declare replacement.
5679         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5680         needed, plus a witness.
5681         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5682         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5683         * tests/test-fcntl.c: New file.
5684         * modules/fcntl-tests: Likewise.
5685
5686         binary-io: avoid potential compilation warning
5687         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5688         directives.
5689
5690         fflush: avoid compilation error on NetBSD
5691         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5692         between off_t and fpos_t, since the latter is sometimes a struct.
5693         * lib/fseeko.c (rpl_fseeko): Likewise.
5694         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5695
5696 2009-12-15  Eric Blake  <ebb9@byu.net>
5697
5698         fcntl-h, stdio, sys_ioctl: fix declarations
5699         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5700         function must not take arguments.
5701         * lib/sys_ioctl.in.h (ioctl): Likewise.
5702         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5703         (open): Add a link warning.
5704
5705 2009-12-15  Jim Meyering  <meyering@redhat.com>
5706
5707         areadlink, areadlink-with-size: relax license to LGPLv2+
5708         * modules/areadlink (License): Relax to LGPLv2+.
5709         * modules/areadlink-with-size (License): Likewise.
5710
5711 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5712             Bruno Haible  <bruno@clisp.org>
5713
5714         *printf: Fix memory leak.
5715         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5716         * lib/vfprintf.c (vfprintf): Likewise.
5717         * lib/dprintf.c (dprintf): Likewise.
5718         * lib/vdprintf.c (vdprintf): Likewise.
5719
5720 2009-12-14  Eric Blake  <ebb9@byu.net>
5721
5722         accept4: adjust module dependencies
5723         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5724
5725         utimens: one more try at avoiding compiler warning
5726         * lib/utimens.c (lutimens): Lower scope of result.
5727
5728 2009-12-13  Bruno Haible  <bruno@clisp.org>
5729
5730         Move the malloc checking from module 'list' to new module 'xlist'.
5731         * modules/xlist: New file.
5732         * lib/gl_xlist.h: New file.
5733         * lib/gl_xlist.c: New file.
5734         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5735         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5736         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5737         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5738         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5739         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5740         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5741         gl_sortedlist_nx_add): New declarations.
5742         (struct gl_list_implementation): Rename and change methods accordingly.
5743         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5744         (gl_list_nx_create): Renamed from gl_list_create.
5745         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5746         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5747         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5748         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5749         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5750         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5751         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5752         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5753         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5754         gl_list_create_empty.
5755         (gl_list_nx_create): Renamed from gl_list_create.
5756         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5757         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5758         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5759         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5760         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5761         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5762         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5763         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5764         * lib/gl_array_list.c: Don't include xalloc.h.
5765         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5766         NULL upon out-of-memory.
5767         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5768         out-of-memory.
5769         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5770         Change return type to 'int'.
5771         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5772         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5773         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5774         upon out-of-memory.
5775         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5776         upon out-of-memory.
5777         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5778         upon out-of-memory.
5779         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5780         upon out-of-memory.
5781         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5782         out-of-memory.
5783         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5784         Update.
5785         (gl_array_list_implementation): Update.
5786         * lib/gl_carray_list.c: Don't include xalloc.h.
5787         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5788         Return NULL upon out-of-memory.
5789         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5790         out-of-memory.
5791         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5792         Change return type to 'int'.
5793         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5794         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5795         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5796         upon out-of-memory.
5797         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5798         upon out-of-memory.
5799         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5800         out-of-memory.
5801         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5802         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5803         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5804         Update.
5805         (gl_carray_list_implementation): Update.
5806         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5807         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5808         gl_linked_create_empty. Return NULL upon out-of-memory.
5809         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5810         out-of-memory.
5811         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5812         Change return type to 'int'. Return -1 upon out-of-memory.
5813         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5814         out-of-memory.
5815         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5816         upon out-of-memory.
5817         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5818         upon out-of-memory.
5819         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5820         NULL upon out-of-memory.
5821         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5822         upon out-of-memory.
5823         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5824         out-of-memory.
5825         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5826         Update.
5827         * lib/gl_linked_list.c: Don't include xalloc.h.
5828         (gl_linked_list_implementation): Update.
5829         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5830         (add_to_bucket): Change return type to 'int'.
5831         (gl_linkedhash_list_implementation): Update.
5832         * lib/gl_anytree_list1.h (free_subtree): New function.
5833         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5834         gl_tree_create_empty. Return NULL upon out-of-memory.
5835         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5836         Change return type to 'int'. Return -1 upon out-of-memory.
5837         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5838         out-of-memory.
5839         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5840         (gl_tree_remove_node): New function, moved here from
5841         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5842         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5843         Update.
5844         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5845         malloc, not xmalloc. Return NULL upon out-of-memory.
5846         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5847         out-of-memory.
5848         (gl_tree_remove_node_from_tree): New function, extracted from
5849         gl_tree_remove_node.
5850         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5851         upon out-of-memory.
5852         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5853         out-of-memory.
5854         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5855         upon out-of-memory.
5856         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5857         upon out-of-memory.
5858         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5859         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5860         not xmalloc. Return NULL upon out-of-memory.
5861         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5862         out-of-memory.
5863         (gl_tree_remove_node_from_tree): New function, extracted from
5864         gl_tree_remove_node.
5865         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5866         upon out-of-memory.
5867         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5868         out-of-memory.
5869         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5870         upon out-of-memory.
5871         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5872         upon out-of-memory.
5873         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5874         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5875         gl_anytree_list1.h before gl_anyavltree_list2.h.
5876         (gl_avltree_list_implementation): Update.
5877         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5878         gl_anytree_list1.h before gl_anyavltree_list2.h.
5879         (gl_rbtree_list_implementation): Update.
5880         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5881         Change return type to 'int'. Return -1 upon out-of-memory. Use
5882         __builtin_expect.
5883         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5884         (gl_avltreehash_list_implementation): Update.
5885         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5886         (gl_rbtreehash_list_implementation): Update.
5887         * modules/array-list (Depends-on): Remove xalloc.
5888         * modules/carray-list (Depends-on): Likewise.
5889         * modules/linked-list (Depends-on): Likewise.
5890         * modules/linkedhash-list (Depends-on): Likewise.
5891         * modules/avltree-list (Depends-on): Likewise.
5892         * modules/rbtree-list (Depends-on): Likewise.
5893         * modules/avltreehash-list (Depends-on): Likewise.
5894         * modules/rbtreehash-list (Depends-on): Likewise.
5895
5896         * modules/xsublist: New file.
5897         * lib/gl_xsublist.h: New file.
5898         * lib/gl_xsublist.c: New file.
5899         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5900         (gl_sublist_nx_create): New declaration.
5901         * lib/gl_sublist.c: Don't include xalloc.h.
5902         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5903         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5904         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5905         Change return type to 'int'. Return -1 upon out-of-memory.
5906         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5907         upon out-of-memory.
5908         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5909         NULL upon out-of-memory.
5910         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5911         upon out-of-memory.
5912         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5913         NULL upon out-of-memory.
5914         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5915         NULL upon out-of-memory.
5916         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5917         upon out-of-memory.
5918         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5919         (gl_sublist_list_implementation): Update.
5920         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5921         upon out-of-memory.
5922         * modules/sublist (Depends-on): Remove xalloc.
5923
5924         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5925         * tests/test-carray_list.c: Likewise.
5926         * tests/test-linked_list.c: Likewise.
5927         * tests/test-linkedhash_list.c: Likewise.
5928         * tests/test-avltree_list.c: Likewise.
5929         * tests/test-rbtree_list.c: Likewise.
5930         * tests/test-avltreehash_list.c: Likewise.
5931         * tests/test-rbtreehash_list.c: Likewise.
5932         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5933         * modules/carray-list-tests (Makefile.am): Likewise.
5934         * modules/linked-list-tests (Makefile.am): Likewise.
5935         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5936         * modules/avltree-list-tests (Makefile.am): Likewise.
5937         * modules/rbtree-list-tests (Makefile.am): Likewise.
5938         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5939         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5940
5941         * NEWS: Mention the changes.
5942
5943         * lib/clean-temp.c: Include gl_xlist.h.
5944         * modules/clean-temp (Depends-on): Add xlist.
5945
5946         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5947         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5948
5949         * tests/test-array_oset.c: Include gl_xlist.h.
5950         * modules/array-oset-tests (Depends-on): Add xlist.
5951
5952         Reported by José E. Marchesi <jemarch@gnu.org>.
5953
5954 2009-12-13  Bruno Haible  <bruno@clisp.org>
5955
5956         Move the malloc checking from module 'oset' to new module 'xoset'.
5957         * modules/xoset: New file.
5958         * lib/gl_xoset.h: New file.
5959         * lib/gl_xoset.c: New file.
5960         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5961         declarations.
5962         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5963         (struct gl_oset_implementation): Rename and change methods accordingly.
5964         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5965         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5966         'int'. Mark as __warn_unused_result__.
5967         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5968         gl_oset_create_empty.
5969         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5970         'int'.
5971         * lib/gl_array_oset.c: Don't include xalloc.h.
5972         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5973         malloc, not xmalloc.
5974         (grow): Change return type to 'int'. Don't call xalloc_die.
5975         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5976         to 'int'.
5977         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5978         'int'.
5979         (gl_array_oset_implementation): Update.
5980         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5981         gl_tree_create_empty.
5982         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5983         'int'.
5984         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5985         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5986         xmalloc.
5987         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5988         not xmalloc.
5989         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5990         xmalloc.
5991         (gl_avltree_oset_implementation): Update.
5992         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5993         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5994         xmalloc.
5995         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5996         not xmalloc.
5997         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5998         xmalloc.
5999         (gl_rbtree_oset_implementation): Update.
6000         * modules/array-oset (Depends-on): Remove xalloc.
6001         * modules/avltree-oset (Depends-on): Likewise.
6002         * modules/rbtree-oset (Depends-on): Likewise.
6003         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6004         * tests/test-avltree_oset.c: Likewise.
6005         * tests/test-rbtree_oset.c: Likewise.
6006         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6007         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6008         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6009         * NEWS: Mention the change.
6010
6011 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6012
6013         maint.mk: allow a project to override release-prep commands
6014         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6015         commands into a new rule.
6016         (release-prep): New rule.
6017         (release-prep-hook): New overridable variable.
6018
6019 2009-12-13  Bruno Haible  <bruno@clisp.org>
6020
6021         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6022
6023 2009-12-13  Jim Meyering  <meyering@redhat.com>
6024
6025         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6026         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6027
6028 2009-12-12  Bruno Haible  <bruno@clisp.org>
6029
6030         duplocale: Tweak.
6031         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6032
6033 2009-12-12  Karl Berry  <karl@gnu.org>
6034
6035         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6036
6037 2009-12-12  Bruno Haible  <bruno@clisp.org>
6038
6039         * m4/po.m4: Undo incorrect untabification.
6040
6041 2009-12-12  Bruno Haible  <bruno@clisp.org>
6042
6043         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6044         * modules/c-strtod (Depends-on): Add locale.
6045         * modules/c-strtold (Depends-on): Likewise.
6046
6047 2009-12-12  Bruno Haible  <bruno@clisp.org>
6048
6049         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6050
6051 2009-12-11  Eric Blake  <ebb9@byu.net>
6052
6053         setenv: relax requirement in light of POSIX ruling
6054         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6055         not NULL.
6056         * tests/test-setenv.c (main): Relax test.
6057         * tests/test-unsetenv.c (main): Likewise.
6058         * doc/posix-functions/setenv.texi (setenv): Document this.
6059         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6060
6061 2009-12-11  Bruno Haible  <bruno@clisp.org>
6062
6063         New module 'fd-safer-flag'.
6064         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6065         * lib/dup-safer.c (dup_safer_flag): Remove function.
6066         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6067         * lib/fd-safer.c (fd_safer_flag): Remove function.
6068         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6069         * modules/cloexec (configure.ac): Drop indicator macro.
6070         * modules/fd-safer-flag: New file.
6071         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6072         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6073         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6074
6075 2009-12-11  Bruno Haible  <bruno@clisp.org>
6076
6077         Tests for module 'nl_langinfo'.
6078         * modules/nl_langinfo-tests: New file.
6079         * tests/test-nl_langinfo.sh: New file.
6080         * tests/test-nl_langinfo.c: New file.
6081
6082         New module 'nl_langinfo'.
6083         * lib/nl_langinfo.c: New file.
6084         * m4/nl_langinfo.m4: New file.
6085         * modules/nl_langinfo: New file.
6086         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6087
6088 2009-12-11  Bruno Haible  <bruno@clisp.org>
6089
6090         Tests for module 'langinfo'.
6091         * modules/langinfo-tests: New file.
6092         * tests/test-langinfo.c: New file.
6093
6094         New module 'langinfo'.
6095         * lib/langinfo.in.h: New file.
6096         * m4/langinfo_h.m4: New file.
6097         * modules/langinfo: New file.
6098         * doc/posix-headers/langinfo.texi: Mention the new module.
6099
6100 2009-12-11  Bruno Haible  <bruno@clisp.org>
6101
6102         * lib/config.charset: Untabify.
6103
6104 2009-12-11  Bruno Haible  <bruno@clisp.org>
6105
6106         * modules/unistd-safer (configure.ac): Drop indicator macro.
6107
6108 2009-12-11  Bruno Haible  <bruno@clisp.org>
6109
6110         Move pipe2-safer code to its own file.
6111         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6112         * lib/pipe-safer.c (pipe2_safer): Remove function.
6113         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6114         (Makefile.am): Add it to lib_SOURCES.
6115
6116 2009-12-10  Bruno Haible  <bruno@clisp.org>
6117
6118         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6119
6120 2009-12-10  Bruno Haible  <bruno@clisp.org>
6121
6122         Declare which arguments expect non-NULL values, for GCC and clang.
6123         * build-aux/arg-nonnull.h: New file.
6124         * modules/arg-nonnull: New file.
6125         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6126         (inet_ntop, inet_pton): Use it.
6127         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6128         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6129         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6130         (open, openat): Use it.
6131         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6132         (fnmatch): Use it.
6133         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6134         (getopt, getopt_long, getopt_long_only): Use it.
6135         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6136         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6137         Use it.
6138         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6139         (iconv_open): Use it.
6140         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6141         (strtoimax, strtoumax): Use it.
6142         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6143         (duplocale): Use it.
6144         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6145         (frexp, frexpl): Use it.
6146         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6147         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6148         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6149         (tsearch, tfind, tdelete, twalk): Use it.
6150         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6151         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6152         sigpending): Use it.
6153         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6154         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6155         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6156         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6157         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6158         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6159         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6160         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6161         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6162         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6163         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6164         Use it.
6165         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6166         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6167         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6168         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6169         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6170         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6171         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6172         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6173         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6174         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6175         strtoull, unsetenv): Use it.
6176         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6177         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6178         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6179         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6180         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6181         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6182         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6183         (strcasecmp, strncasecmp): Use it.
6184         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6185         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6186         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6187         rpl_setsockopt): Use it.
6188         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6189         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6190         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6191         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6192         (gettimeofday): Use it.
6193         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6194         (times): Use it.
6195         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6196         (uname): Use it.
6197         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6198         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6199         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6200         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6201         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6202         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6203         unlinkat, write): Use it.
6204         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6205         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6206         * lib/argv-iter.h: Include arg-nonnull.h.
6207         (_ATTRIBUTE_NONNULL_): Remove macro.
6208         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6209         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6210         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6211         optimization.
6212         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6213         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6214         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6215         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6216         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6217         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6218         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6219         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6220         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6221         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6222         * modules/dirent (Depends-on): Add arg-nonnull.
6223         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6224         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6225         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6226         * modules/fnmatch (Depends-on): Add arg-nonnull.
6227         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6228         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6229         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6230         * modules/glob (Depends-on): Add arg-nonnull.
6231         (Makefile.am): Insert arg-nonnull.h into glob.h.
6232         * modules/iconv_open (Depends-on): Add arg-nonnull.
6233         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6234         * modules/inttypes (Depends-on): Add arg-nonnull.
6235         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6236         * modules/locale (Depends-on): Add arg-nonnull.
6237         (Makefile.am): Insert arg-nonnull.h into locale.h.
6238         * modules/math (Depends-on): Add arg-nonnull.
6239         (Makefile.am): Insert arg-nonnull.h into math.h.
6240         * modules/netdb (Depends-on): Add arg-nonnull.
6241         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6242         * modules/search (Depends-on): Add arg-nonnull.
6243         (Makefile.am): Insert arg-nonnull.h into search.h.
6244         * modules/signal (Depends-on): Add arg-nonnull.
6245         (Makefile.am): Insert arg-nonnull.h into signal.h.
6246         * modules/spawn (Depends-on): Add arg-nonnull.
6247         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6248         * modules/stdio (Depends-on): Add arg-nonnull.
6249         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6250         * modules/stdlib (Depends-on): Add arg-nonnull.
6251         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6252         * modules/string (Depends-on): Add arg-nonnull.
6253         (Makefile.am): Insert arg-nonnull.h into string.h.
6254         * modules/strings (Depends-on): Add arg-nonnull.
6255         (Makefile.am): Insert arg-nonnull.h into strings.h.
6256         * modules/sys_socket (Depends-on): Add arg-nonnull.
6257         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6258         * modules/sys_stat (Depends-on): Add arg-nonnull.
6259         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6260         * modules/sys_time (Depends-on): Add arg-nonnull.
6261         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6262         * modules/sys_times (Depends-on): Add arg-nonnull.
6263         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6264         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6265         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6266         * modules/time (Depends-on): Add arg-nonnull.
6267         (Makefile.am): Insert arg-nonnull.h into time.h.
6268         * modules/unistd (Depends-on): Add arg-nonnull.
6269         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6270         * modules/wchar (Depends-on): Add arg-nonnull.
6271         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6272         * modules/argv-iter (Depends-on): Add arg-nonnull.
6273         * tests/test-canonicalize.c (null_ptr): New function.
6274         (main): Use it.
6275         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6276         (main): Use it.
6277         * tests/test-memmem.c (null_ptr): New function.
6278         (main): Use it.
6279         Reported by Jim Meyering.
6280
6281 2009-12-10  Bruno Haible  <bruno@clisp.org>
6282
6283         Use spaces for indentation, not tabs.
6284         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6285         * m4/*.m4: Untabify.
6286         * build-aux/*.h: Untabify.
6287         * tests/**/*.[hc]: Untabify.
6288         * README: New section "Indent with spaces, not TABs", based on
6289         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6290         * NEWS: Mention the change.
6291
6292 2009-12-10  Bruno Haible  <bruno@clisp.org>
6293
6294         pty test: Fix link error.
6295         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6296         test_pty_LDADD.
6297
6298 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6299
6300         * modules/pty: New file.
6301         * modules/pty-tests: New file.
6302         * m4/pty.m4: New file.
6303         * tests/test-pty.c: New file.
6304         * doc/glibc-headers/pty.texi: Modified.
6305         * doc/glibc-functions/forkpty.texi: Modified.
6306         * doc/glibc-functions/openpty.texi: Modified.
6307
6308 2009-12-10  Bruno Haible  <bruno@clisp.org>
6309
6310         Avoid syntax error in C++ mode.
6311         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6312
6313 2009-12-10  Bruno Haible  <bruno@clisp.org>
6314
6315         Use sed with option -e.
6316         * gnulib-tool (func_version, func_emit_copyright_notice,
6317         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6318         option -e to sed.
6319         * modules/link-warning (Makefile.am): Likewise.
6320
6321 2009-12-10  Jim Meyering  <meyering@redhat.com>
6322
6323         mgetgroups: do not write bytes beyond end of malloc'd buffer
6324         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6325         username, we call getgroups with a one-element-shorter buffer,
6326         but still told it the length was original, max_n_groups.
6327
6328 2009-12-09  Eric Blake  <ebb9@byu.net>
6329
6330         cloexec: relax license
6331         * modules/cloexec (Maintainer): Add myself.
6332         (License): Use LGPL, not GPL.
6333
6334         link-warning: optimize generation
6335         * modules/link-warning (Makefile.am): Reduce process usage.
6336
6337 2009-12-09  Bruno Haible  <bruno@clisp.org>
6338
6339         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6340         workaround was added on 2009-11-17.
6341
6342 2009-12-09  Jim Meyering  <meyering@redhat.com>
6343             Bruno Haible  <bruno@clisp.org>
6344
6345         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6346         * modules/link-warning (Makefile.am): Make the comment-removing sed
6347         command more robust in the face of bootstrap-prepended comment lines.
6348
6349 2009-12-09  Bruno Haible  <bruno@clisp.org>
6350
6351         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6352         most one group.
6353
6354 2009-12-09  Simon Josefsson <simon@josefsson.org>
6355             Bruno Haible  <bruno@clisp.org>
6356
6357         * build-aux/link-warning.h: Add copyright notice.
6358         * modules/link-warning (Makefile.am): Generate link-warning.h from
6359         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6360         * NEWS: Mention change in link-warning module.
6361         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6362         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6363         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6364         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6365         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6366         * modules/math (Makefile.am): Add dependency to math.h.
6367         * modules/search (Makefile.am): Add dependency to search.h.
6368         * modules/signal (Makefile.am): Add dependency to signal.h.
6369         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6370         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6371         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6372         * modules/string (Makefile.am): Add dependency to string.h.
6373         * modules/strings (Makefile.am): Add dependency to strings.h.
6374         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6375         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6376         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6377         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6378         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6379         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6380         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6381         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6382         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6383
6384 2009-12-09  Bruno Haible  <bruno@clisp.org>
6385
6386         fchdir: Optimize away rpl_fstat when possible.
6387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6388         REPLACE_OPEN_DIRECTORY.
6389         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6390
6391 2009-12-09  Bruno Haible  <bruno@clisp.org>
6392
6393         * lib/fchdir.c: Update comment.
6394
6395 2009-12-09  Bruno Haible  <bruno@clisp.org>
6396
6397         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6398
6399 2009-12-08  Eric Blake  <ebb9@byu.net>
6400
6401         fchdir: avoid memory leak on re-registration.
6402         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6403
6404 2009-12-08  Jim Meyering  <meyering@redhat.com>
6405
6406         init.sh: avoid Solaris 10 /bin/sh portability problem
6407         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6408         sourced script:
6409           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6410           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6411           bar
6412         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6413         and two tests used that idiom.
6414         * tests/init.sh: Update suggested usage comments.
6415         (path_prepend_): New function, to be used in place
6416         of the --src-path=DIR option.
6417         (setup_): Move PATH-prepending code into path_prepend_.
6418         * tests/test-pread.sh: Adapt to new usage.
6419         * tests/test-xalloc-die.sh: Likewise.
6420
6421 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6422
6423         * doc/gnulib.texi (Glibc pty.h): Add.
6424         * doc/glibc-functions/forkpty.texi: Add.
6425         * doc/glibc-functions/openpty.texi: Add.
6426         Suggested by Bruno Haible.
6427
6428 2009-12-08  Eric Blake  <ebb9@byu.net>
6429
6430         fchdir: fix logic bugs
6431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6432         * tests/test-fchdir.c (main): Enhance test.
6433         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6434         is in use.
6435
6436         dup2: fix logic bugs
6437         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6438         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6439         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6440         exists.
6441         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6442
6443 2009-12-07  Eric Blake  <ebb9@byu.net>
6444
6445         unlink: fix m4 detection
6446         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6447
6448         unistd-safer: add unit test
6449         * modules/unistd-safer-tests: New file.
6450         * tests/test-dup-safer.c: Likewise.
6451         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6452         * tests/test-dup2.c (setmode): Likewise.
6453         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6454
6455         cloexec: preserve text vs. binary across dup_cloexec
6456         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6457         mode.
6458         * modules/dup2-tests (Depends-on): Add binary-io.
6459         * modules/cloexec-tests (Depends-on): Likewise.
6460         * tests/test-dup2.c (setmode, is_mode): New helpers.
6461         (main): Add tests that translation mode is preserved.
6462         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6463         Reported by Bruno Haible.
6464
6465         mgetgroups: reduce duplicate listings
6466         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6467         resulting array.
6468         * tests/test-chown.h (test_chown): Simplify client.
6469         * tests/test-lchown.h (test_lchown): Likewise.
6470
6471 2009-12-06  Bruno Haible  <bruno@clisp.org>
6472
6473         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6474         value.
6475
6476 2009-12-06  Bruno Haible  <bruno@clisp.org>
6477
6478         * lib/progname.c: Include stdio.h, stdlib.h.
6479         (set_program_name): Reject a NULL argument.
6480
6481 2009-12-05  Eric Blake  <ebb9@byu.net>
6482
6483         pipe2-safer: new module
6484         * modules/pipe2-safer: New file.
6485         * lib/unistd-safer.h (pipe2_safer): New prototype.
6486         * lib/unistd--.h (pipe2): New wrapper.
6487         * lib/pipe-safer.c (pipe2_safer): New function.
6488         * modules/pipe (Depends-on): Add pipe2-safer.
6489         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6490
6491         stdlib-safer: preserve cloexec flag for mkostemp[s]
6492         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6493         fd_safer_flag.
6494
6495         unistd-safer: allow preservation of cloexec status via flag
6496         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6497         prototypes.
6498         * lib/dup-safer.c (dup_safer_flag): New function.
6499         * lib/fd-safer.c (fd_safer_flag): Likewise.
6500         * modules/cloexec (configure.ac): Set witness.
6501
6502         test-dup2: enhance test
6503         * modules/dup2-tests (Depends-on): Add cloexec.
6504         * tests/test-dup2.c (main): Enhance test.
6505
6506         cloexec: add dup_cloexec
6507         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6508         header and comments.
6509         * lib/cloexec.c (set_cloexec_flag): Add comments.
6510         (dup_cloexec): New function, with mingw implementation borrowed
6511         from...
6512         * lib/w32spawn.h (dup_noinherit): ...here.
6513         * modules/execute (Depends-on): Add cloexec.
6514         * modules/pipe (Depends-on): Likewise.
6515         * modules/cloexec (Depends-on): Add dup2.
6516         * modules/cloexec-tests (Files): New file.
6517         * tests/test-cloexec.c: Likewise.
6518
6519         test-xalloc-die: fix test for mingw
6520         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6521         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6522         directory and .exe suffix off argv[0] output.
6523
6524         test-fseeko: fix test for mingw
6525         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6526         than undefining fseek, so test will pass on mingw.
6527
6528 2009-12-05  Bruno Haible  <bruno@clisp.org>
6529
6530         * lib/progname.h (set_program_name): Clarify specification.
6531         * lib/progname.c (set_program_name): Likewise.
6532         Reported by Jim Meyering.
6533
6534 2009-12-05  Jim Meyering  <meyering@redhat.com>
6535
6536         maint.mk: backslash-escape parens in default regexp
6537         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6538         backslash-escape the literal parentheses.
6539
6540         maint.mk: news-date-check: use grep -E
6541         * top/maint.mk (today): Define a Make variable, not a...
6542         (news-date-check): ...shell variable.
6543         (news-date-regexp): Use the Make variable.
6544         Use grep's -E option.  Change the failing diagnostic to mention
6545         the variable, $(news-date-regexp).
6546
6547 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6548
6549         maintainer-makefile: allow customization of NEWS entry format
6550         * top/maint.mk (news-date-regexp): New overridable variable.
6551         (news-date-check): Use it.
6552
6553 2009-12-04  Eric Blake  <ebb9@byu.net>
6554
6555         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6556         * lib/mgetgroups.h (xgetgroups): New prototype.
6557         * lib/mgetgroups.c (xgetgroups): New wrapper.
6558         (mgetgroups): Handle ENOSYS.
6559         * modules/mgetgroups (Depends-on): Add realloc.
6560         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6561
6562         mgetgroups: avoid argument promotion issues with -1
6563         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6564         for invalid gid_t.
6565         * tests/test-chown.h (getegid, test_chown): Likewise.
6566         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6567
6568 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6569
6570         exclude: Fix header file problems.
6571         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6572
6573 2009-12-01  Jim Meyering  <meyering@redhat.com>
6574
6575         fts: fts_open: do not let an empty string cause immediate failure
6576         This is required in support of GNU rm, for which the command
6577         "rm A '' B" must process and remove both A and B, in spite of
6578         the empty string argument.
6579         * lib/fts.c (fts_open): Do not let the presence of an empty string
6580         cause fts_open to fail immediately.  Most fts-using tools must be
6581         able to process all arguments, in order, and can be expected to
6582         diagnose such arguments themselves.
6583
6584 2009-11-30  Eric Blake  <ebb9@byu.net>
6585
6586         utimens: fix compilation error
6587         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6588         Declare variable at right scope.
6589
6590 2009-11-29  Jim Meyering  <meyering@redhat.com>
6591
6592         bootstrap: handle perl-5.11's changed --version output
6593         * build-aux/bootstrap (get_version): Handle perl separately,
6594         since perl-5.11's --version output is different.
6595
6596 2009-11-28  Jim Meyering  <meyering@redhat.com>
6597
6598         userspec: depend on the inttostr module, too
6599         * modules/userspec (Depends-on): Add inttostr.
6600
6601         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6602         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6603         number of MAXUID when it evaluates to (uid_t) -1.
6604         Likewise for group ID.  Reported by Matt McCutchen in
6605         <http://savannah.gnu.org/bugs/?28113>
6606
6607         userspec: reformat to use spaces, not TABs
6608         * lib/userspec.c: Expand TABs to spaces.
6609         Add Emacs' "indent-tabs-mode: nil" hint.
6610
6611 2009-11-27  Eric Blake  <ebb9@byu.net>
6612
6613         getopt-gnu: flush out another BSD bug
6614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6615         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6616         flush out BSD bug.
6617         * tests/test-getopt.h (test_getopt): End lists with NULL.
6618         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6619         (test_getopt_long_posix): Enhance test.
6620         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6621         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6622         getopt-gnu.
6623         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6624         Likewise.
6625
6626 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6627
6628         * modules/idpriv-droptemp-tests (Notice): Fix text.
6629
6630 2009-11-27  Jim Meyering  <meyering@redhat.com>
6631
6632         test-xalloc-die: avoid spurious failure due to libtool argv difference
6633         In a libtool-enabled project, this test would fail due to a difference
6634         in the emitted program name, e.g.,
6635         -test-xalloc-die: memory exhausted
6636         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6637         Use program to avoid that.
6638         * modules/xalloc-die-tests (Depends-on): Add progname.
6639         * tests/test-xalloc-die.c: Include progname.h".
6640         (program_name): Remove decl.
6641         (main): Call set_program_name.
6642         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6643
6644 2009-11-26  Richard Jones  <rjones@redhat.com>
6645
6646         w32sock: leave win32 error in place.
6647         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6648
6649 2009-11-26  Eric Blake  <ebb9@byu.net>
6650
6651         init.sh: suggest to use skip_ and fail_ functions in comments
6652         * tests/init.sh: Add a sentence.
6653
6654 2009-11-25  Bruno Haible  <bruno@clisp.org>
6655
6656         init.sh: add documentation in comments
6657         * tests/init.sh: Add some developer and user documentation.
6658
6659 2009-11-26  Jim Meyering  <meyering@redhat.com>
6660
6661         init.sh: accommodate even those who specify bogus srcdir manually
6662         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6663         configure-time tests to be sanitized, so that there is no need to
6664         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6665         (with no double quotes) suffices.  However, since tests may be
6666         invoked manually, and since you may explicitly set srcdir to the
6667         name of a directory containing spaces, do quote its uses here.
6668         * tests/test-pread.sh: Likewise.
6669         Suggested by Bruno Haible.
6670
6671         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6672         * tests/test-pread.sh: Write no data into the pipe, because
6673         test-pread actually reads none.  This avoids a diagnostic,
6674         "bash: echo: write error: Broken pipe", that arises in the unusual
6675         event something is ignoring SIGPIPE, and might be interpreted
6676         as some sort of failure.  Reported by Bruno Haible.
6677
6678 2009-11-25  Jim Meyering  <meyering@redhat.com>
6679
6680         test-pread: cover failure with ESPIPE and EINVAL
6681         * tests/test-pread.c (main): Test for failure, too.
6682         * tests/test-pread.sh: Invoke with stdin on a pipe.
6683         Suggested by Eric Blake.
6684
6685         pread: improvement and fix
6686         * modules/pread (Depends-on): Depend on lseek, for portability to
6687         e.g., mingw.  Suggested by Eric Blake.
6688         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6689
6690         unistd.in.h: correct declaration of pread
6691         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6692         Reported by Richard W.M. Jones.
6693
6694         test-pread.sh: distribute the test script
6695         * modules/pread-tests (Files): Include test-pread.sh.
6696
6697         test-pread.sh: clean up
6698         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6699         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6700         That is unnecessary, since it's always ".".
6701         Suggestion from Eric Blake.
6702
6703         test-pread.sh: make executable
6704         * tests/test-pread.sh: Set executable bit.
6705         Reported by Eric Blake.
6706
6707         correct typo in test-pread.sh
6708         * tests/test-pread.sh: Add #! line.
6709
6710         test pread
6711         * tests/test-pread.c: New file.
6712         * tests/test-pread.sh: Likewise.
6713         * modules/pread-tests: Likewise.
6714
6715         pread: new module
6716         * modules/pread: New file.
6717         * lib/unistd.in.h (pread): Define/declare.
6718         * lib/pread.c (pread): New file.
6719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6720         * modules/unistd (Makefile.am): Substitute witnesses.
6721         * doc/posix-functions/pread.texi (pread): Update.
6722         * MODULES.html.sh: Add pread.
6723
6724 2009-11-25  Jim Meyering  <meyering@redhat.com>
6725
6726         tests/init.sh: new file to be used via most *.sh tests
6727         * tests/init.sh: New file.
6728
6729 2009-11-25  Eric Blake  <ebb9@byu.net>
6730
6731         utimens: work around older Linux failure with symlinks
6732         * lib/utimens.c (lutimensat_works_really): New variable.
6733         (fdutimens, lutimens): Use it to manage kernels that support
6734         nanosecond times on files, but not on symlinks.
6735         Reported by OndÅ™ej Vašík.
6736
6737         utimes: fix configure grammar
6738         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6739
6740 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6741
6742         regex: Fix fastmap for multibyte character ranges.
6743         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6744         characters when a multibyte character range is included.
6745
6746 2009-11-22  Andy Wingo  <wingo@pobox.com>
6747
6748         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6749         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6750
6751 2009-11-24  Bruno Haible  <bruno@clisp.org>
6752
6753         doc: Most *_l functions exist in MacOS X 10.5.
6754         * doc/posix-functions/duplocale.texi: Update platforms list.
6755         * doc/posix-functions/freelocale.texi: Likewise.
6756         * doc/posix-functions/newlocale.texi: Likewise.
6757         * doc/posix-functions/uselocale.texi: Likewise.
6758         * doc/posix-functions/isalnum_l.texi: Likewise.
6759         * doc/posix-functions/isalpha_l.texi: Likewise.
6760         * doc/posix-functions/isblank_l.texi: Likewise.
6761         * doc/posix-functions/iscntrl_l.texi: Likewise.
6762         * doc/posix-functions/isdigit_l.texi: Likewise.
6763         * doc/posix-functions/isgraph_l.texi: Likewise.
6764         * doc/posix-functions/islower_l.texi: Likewise.
6765         * doc/posix-functions/isprint_l.texi: Likewise.
6766         * doc/posix-functions/ispunct_l.texi: Likewise.
6767         * doc/posix-functions/isspace_l.texi: Likewise.
6768         * doc/posix-functions/isupper_l.texi: Likewise.
6769         * doc/posix-functions/iswalnum_l.texi: Likewise.
6770         * doc/posix-functions/iswalpha_l.texi: Likewise.
6771         * doc/posix-functions/iswblank_l.texi: Likewise.
6772         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6773         * doc/posix-functions/iswctype_l.texi: Likewise.
6774         * doc/posix-functions/iswdigit_l.texi: Likewise.
6775         * doc/posix-functions/iswgraph_l.texi: Likewise.
6776         * doc/posix-functions/iswlower_l.texi: Likewise.
6777         * doc/posix-functions/iswprint_l.texi: Likewise.
6778         * doc/posix-functions/iswpunct_l.texi: Likewise.
6779         * doc/posix-functions/iswspace_l.texi: Likewise.
6780         * doc/posix-functions/iswupper_l.texi: Likewise.
6781         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6782         * doc/posix-functions/isxdigit_l.texi: Likewise.
6783         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6784         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6785         * doc/posix-functions/strcoll_l.texi: Likewise.
6786         * doc/posix-functions/strfmon_l.texi: Likewise.
6787         * doc/posix-functions/strftime_l.texi: Likewise.
6788         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6789         * doc/posix-functions/strxfrm_l.texi: Likewise.
6790         * doc/posix-functions/tolower_l.texi: Likewise.
6791         * doc/posix-functions/toupper_l.texi: Likewise.
6792         * doc/posix-functions/towctrans_l.texi: Likewise.
6793         * doc/posix-functions/towlower_l.texi: Likewise.
6794         * doc/posix-functions/towupper_l.texi: Likewise.
6795         * doc/posix-functions/wcscoll_l.texi: Likewise.
6796         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6797         * doc/posix-functions/wctrans_l.texi: Likewise.
6798         * doc/posix-functions/wctype_l.texi: Likewise.
6799         * doc/glibc-functions/strptime_l.texi: Likewise.
6800         * doc/glibc-functions/strtod_l.texi: Likewise.
6801         * doc/glibc-functions/strtof_l.texi: Likewise.
6802         * doc/glibc-functions/strtol_l.texi: Likewise.
6803         * doc/glibc-functions/strtold_l.texi: Likewise.
6804         * doc/glibc-functions/strtoll_l.texi: Likewise.
6805         * doc/glibc-functions/strtoul_l.texi: Likewise.
6806         * doc/glibc-functions/strtoull_l.texi: Likewise.
6807         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6808         * doc/glibc-functions/wcstod_l.texi: Likewise.
6809         * doc/glibc-functions/wcstof_l.texi: Likewise.
6810         * doc/glibc-functions/wcstol_l.texi: Likewise.
6811         * doc/glibc-functions/wcstold_l.texi: Likewise.
6812         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6813         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6814         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6815
6816 2009-11-24  Bruno Haible  <bruno@clisp.org>
6817
6818         duplocale: Fix logic bug.
6819         * lib/duplocale.c: Don't include <langinfo.h>.
6820         (_NL_LOCALE_NAME): Remove macro.
6821         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6822         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6823
6824 2009-11-23  Jim Meyering  <meyering@redhat.com>
6825
6826         test-update-copyright: don't hard-code /usr/bin/perl
6827         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6828         perl to print the current year.  Gilles Espinasse reported that
6829         the replaced use of perl was hard-coded as /usr/bin/perl.
6830
6831 2009-11-23  Bruno Haible  <bruno@clisp.org>
6832
6833         duplocale: Add support for glibc 2.3.x.
6834         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6835
6836 2009-11-22  Bruno Haible  <bruno@clisp.org>
6837
6838         vasnprintf: Tiny optimization.
6839         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6840         MacOS X.
6841
6842 2009-11-22  Bruno Haible  <bruno@clisp.org>
6843
6844         Tests for module 'duplocale'.
6845         * modules/duplocale-tests: New file.
6846         * tests/test-duplocale.c: New file.
6847
6848         New module 'duplocale'.
6849         * m4/duplocale.m4: New file.
6850         * lib/locale.in.h (duplocale): New declaration.
6851         * lib/duplocale.c: New file.
6852         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6853         gl_LOCALE_H_DEFAULTS): New macros.
6854         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6855         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6856         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6857         REPLACE_DUPLOCALE.
6858         * modules/duplocale: New file.
6859         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6860
6861 2009-11-22  Bruno Haible  <bruno@clisp.org>
6862
6863         * modules/locale-tests (configure.ac): Test for newlocale function.
6864         * tests/test-locale.c: When the system has extended locale functions,
6865         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6866
6867         locale: Make locale_t available when possible.
6868         * lib/locale.in.h: Include <xlocale.h> when it exists.
6869         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6870         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6871         * modules/locale (Depends-on): Add extensions.
6872         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6873         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6874
6875 2009-11-22  Bruno Haible  <bruno@clisp.org>
6876
6877         Add comments.
6878         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6879         invocation.
6880         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6881         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6882         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6883
6884 2009-11-22  Bruno Haible  <bruno@clisp.org>
6885
6886         error: account for the possibility of freopen (stdout).
6887         * lib/error.c: Include <unistd.h>.
6888         (flush_stdout): New function, extracted from error and error_at_line.
6889         Determine stdout's fd dynamically.
6890         (error, error_at_line): Invoke flush_stdout.
6891         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6892         * modules/error (Depends-on): Add unistd.
6893
6894 2009-11-22  Bruno Haible  <bruno@clisp.org>
6895
6896         diffseq: Add comment.
6897         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6898
6899 2009-11-22  Jim Meyering  <meyering@redhat.com>
6900
6901         c-stack: avoid defining an unused static function
6902         * lib/c-stack.c (find_stack_direction): Do not define this function
6903         when it will not be used.
6904
6905         diffseq: avoid spurious gcc warnings
6906         * lib/diffseq.h (IF_LINT2): Define.
6907         (compareseq): Use it to initialize two members of "part".
6908         This avoids two used-uninitialized warnings.
6909
6910 2009-11-21  Jim Meyering  <meyering@redhat.com>
6911
6912         c-stack: avoid "ignoring return value of `write'" warning
6913         * lib/c-stack.c: Include "ignore-value.h".
6914         (die): Explicitly ignore each write return value.
6915         * modules/c-stack (Depends-on): Add ignore-value.
6916
6917 2009-11-21  Bruno Haible  <bruno@clisp.org>
6918
6919         diffseq: reduce scope of variable 'best'.
6920         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6921         variable, earlier used for two different purposes.
6922
6923 2009-11-21  Jim Meyering  <meyering@redhat.com>
6924
6925         diffseq: remove useless assignment to "best"
6926         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6927         assignment.  At that point "best" is already guaranteed to be zero.
6928
6929 2009-11-20  Eric Blake  <ebb9@byu.net>
6930
6931         build: mention ftp redirector in release announcements
6932         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6933         values that used to come from cfg.mk; mention FTP redirect URL.
6934         * build-aux/announce-gen: Mention the mirror list.
6935         Suggested by Karl Berry.
6936
6937         nanosleep: improve port to mingw
6938         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6940         LIB_NANOSLEEP, but only when needed.
6941         * modules/select (Link): Document LIBSOCKET.
6942         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6943         enough.
6944
6945         nanosleep: work around cygwin bug
6946         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6947         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6948         bug.
6949         (getnow): Delete, not needed.
6950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6951         LIB_CLOCK_GETTIME.
6952         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6953         clock-time, gettime.
6954         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6955         bug.
6956         * modules/nanosleep-tests: New test.
6957         * tests/test-nanosleep.c: New file.
6958
6959         sleep: work around cygwin bug
6960         * lib/sleep.c (rpl_sleep): Work around the bug.
6961         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6962         (gl_PREREQ_SLEEP): Delete unused macro.
6963         * modules/sleep (Depends-on): Add verify.
6964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6965         * modules/unistd (Makefile.am): Substitute witness.
6966         * lib/unistd.in.h (sleep): Update prototype.
6967         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6968         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6969         * modules/sleep-tests (Depends-on): Check for alarm.
6970
6971 2009-11-20  Jim Meyering  <meyering@redhat.com>
6972
6973         maint.mk: improve sc_prohibit_magic_number_exit
6974         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6975         so it does not match uses like System.exit(1).
6976         Add comments showing how to correct all offenders.
6977
6978 2009-11-19  Eric Blake  <ebb9@byu.net>
6979
6980         xalloc-die-tests: add missing library
6981         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6982
6983         test-xvasprintf: silence compiler warnings
6984         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6985         empty string from gcc.
6986
6987 2009-11-19  Jim Meyering  <meyering@redhat.com>
6988
6989         xfreopen: new module, from coreutils
6990         * modules/xfreopen: New module.
6991         * lib/xfreopen.c: New file.
6992         * lib/xfreopen.h: New file.
6993         * MODULES.html.sh (File stream based Input/Output"): Add it.
6994
6995 2009-11-19  Eric Blake  <ebb9@byu.net>
6996
6997         manywarnings: depend on warnings
6998         * modules/manywarnings (Depends-on): Add warnings.
6999
7000         build: avoid compiler warnings
7001         * lib/select.c (rpl_select): Delete unused variable.
7002         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7003
7004 2009-11-18  Eric Blake  <ebb9@byu.net>
7005
7006         tests: avoid false negative with --with-packager
7007         * tests/test-version-etc.sh: Discard packager information.
7008         * tests/test-argp-version-etc-1.sh: Likewise.
7009         Reported by Mike Frysinger.
7010
7011         utimens: fix regression on Solaris
7012         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7013         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7014         can only change fd timestamps via futimesat.  Instead, use an
7015         additional witness macro to avoid BSD bug.
7016         Reported by Jim Meyering.
7017
7018 2009-11-17  Eric Blake  <ebb9@byu.net>
7019
7020         usleep: use it to simplify tests
7021         * modules/stat-time-tests (Depends-on): Add usleep.
7022         (configure.ac): Drop usleep check.
7023         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7024         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7025         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7026         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7027         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7028         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7029         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7030         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7031         Likewise.
7032         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7033         * tests/test-lchown.h (nap): Likewise.
7034         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7035         * tests/test-stat-time.c (nap): Likewise.
7036         * tests/test-utimens-common.h (nap): Update comments.
7037
7038         usleep: new module
7039         * modules/usleep: New file.
7040         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7041         * lib/usleep.c (usleep): Likewise.
7042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7043         * modules/unistd (Makefile.am): Substitute witnesses.
7044         * lib/unistd.in.h (usleep): Add declaration.
7045         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7046         * MODULES.html.sh (Date and time): Likewise.
7047         * modules/usleep-tests (Depends-on): New test.
7048         * tests/test-usleep.c: New file.
7049
7050         chown: work around OpenBSD bug
7051         * lib/chown.c (rpl_chown): Work around the bug.
7052         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7053         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7054         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7055         * modules/chown (Depends-on): Add stdbool.
7056         * modules/lchown (Depends-on): Likewise.
7057         * doc/posix-functions/chown.texi (chown): Document the bug.
7058         * doc/posix-functions/lchown.texi (lchown): Likewise.
7059         * tests/test-lchown.h (test_chown): Relax test.
7060
7061         mkstemp: avoid conflict with C++ keyword template
7062         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7063         * lib/mkostemp.c (mkostemp): Likewise.
7064         * lib/mkostemps.c (mkostemps): Likewise.
7065         * lib/mkstemp.c (mkstemp): Likewise.
7066         * lib/mkstemps.c (mkstemps): Likewise.
7067
7068         xalloc-die-tests: optimize
7069         * tests/test-xalloc-die.sh: Reduce number of processes.
7070
7071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7072
7073         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7074         patch from ludo@gnu.org (Ludovic Courtès).
7075
7076 2009-11-17  Jim Meyering  <meyering@redhat.com>
7077
7078         version-etc: use proper license string
7079         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7080         * modules/version-etc-fsf: Likewise.
7081
7082 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7083
7084         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7085         printed to stdout.  Deal with EOL differences.
7086
7087 2009-11-17  Eric Blake  <ebb9@byu.net>
7088
7089         unsetenv: work around Solaris bug
7090         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7091         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7092         Reported by Jim Meyering.
7093
7094         vasnprintf: avoid compiler warnings
7095         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7096         variables.
7097         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7098
7099 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7100
7101         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7102         settings since xalloc-die is no longer the self test,
7103         xalloc-die.sh is.
7104
7105 2009-11-17  Jim Meyering  <meyering@redhat.com>
7106
7107         test-xalloc-die.sh: make the code agree with the commit log
7108         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7109         at the end, just in case you happen to have a test-xalloc-die
7110         program in some other PATH directory.
7111
7112         test-xalloc-die.sh: fix a portability bug
7113         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7114         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7115         Otherwise, argv[0] (as often seen in diagnostics) would be too
7116         system-dependent, sometimes with, and sometimes without the leading "./".
7117
7118         version-etc-fsf: relax license to LGPLv3+
7119         * modules/version-etc-fsf (License): Relax license.
7120
7121 2009-11-16  Eric Blake  <ebb9@byu.net>
7122
7123         xalloc-die-tests: avoid printing null pointer
7124         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7125         shell script.
7126         * tests/test-xalloc-die.c (program_name): Declare.
7127         * tests/test-xalloc-die.sh (tmpfiles): New file.
7128
7129         setenv, unsetenv: work around various bugs
7130         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7131         (setenv) [HAVE_SETENV]: Work around bugs.
7132         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7133         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7134         for bugs.
7135         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7136         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7138         * modules/stdlib (Makefile.am): Update substitutions.
7139         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7140         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7141         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7142         * modules/setenv-tests: New test.
7143         * modules/unsetenv-tests: Likewise.
7144         * tests/test-setenv.c: New file.
7145         * tests/test-unsetenv.c: Likewise.
7146
7147 2009-11-16  Jim Meyering  <meyering@redhat.com>
7148
7149         version-etc: relax license to LGPLv3+
7150         * modules/version-etc (License): Relax license.
7151
7152         better AC_REQUIRE expanded-before-required-warning avoidance
7153         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7154         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7155         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7156         which is no longer needed.
7157
7158 2009-11-16  Eric Blake  <ebb9@byu.net>
7159
7160         test-freading: clean up temporary file
7161         * tests/test-freading.c (main): Remove file on success, and use
7162         ASSERT more liberally.
7163         Reported by Jim Meyering.
7164
7165 2009-11-16  Jim Meyering  <meyering@redhat.com>
7166
7167         avoid new AC_REQUIRE expanded-before-required warnings
7168         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7169         merely using it.
7170         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7171         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7172
7173 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7174
7175         * tests/test-xalloc-die.c: New file.
7176         * modules/xalloc-die-tests: New file.
7177         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7178         XFAIL_TESTS so it can be appended by modules.
7179
7180 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7181
7182         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7183         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7184
7185 2009-11-14  Eric Blake  <ebb9@byu.net>
7186
7187         fnmatch: avoid compiler warning
7188         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7189         to silence compiler warning about mismatch signedness in ?:.
7190         Reported by Robert Millan.
7191
7192         intprops: add double-inclusion guard
7193         * lib/intprops.h: Allow idempotent includes.
7194         Suggested by Bruce Korb.
7195
7196         openat: detect Solaris fchownat bug
7197         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7198         penalizing glibc chownat when only lchownat is broken.
7199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7200         trailing slash bugs.
7201         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7202         * modules/openat-tests (Files): Include more files.
7203         (Depends-on): Add mgetgroups, sleep, stat-time.
7204         (configure.ac): Add additional checks.
7205         (Makefile.am): Build new test.
7206         * tests/test-fchownat.c: New file.
7207
7208         lchown: detect Solaris and FreeBSD bug
7209         * lib/lchown.c (rpl_lchown): Work around bug.
7210         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7212         * modules/unistd (Makefile.am): Populate it.
7213         * lib/unistd.in.h (lchown): Update declaration.
7214         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7215         * modules/lchown-tests: New file.
7216         * tests/test-lchown.h (test_lchown): Likewise.
7217         * tests/test-lchown.c (main): Likewise.
7218
7219         chown: detect Solaris and FreeBSD bug
7220         * lib/chown.c (rpl_chown): Work around bug.
7221         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7222         (gl_PREREQ_CHOWN): Delete.
7223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7224         * modules/unistd (Makefile.am): Populate it.
7225         * lib/unistd.in.h (chown): Update declaration.
7226         * lib/lchown.c (chown): Update client.
7227         * modules/lchown (Depends-on): Add lstat.
7228         * doc/posix-functions/chown.texi (chown): Document the bug.
7229         * doc/posix-functions/getgroups.texi (getgroups): Document
7230         getgroups pitfall.
7231         * modules/chown-tests: New file.
7232         * tests/test-chown.h (test_chown): Likewise.
7233         * tests/test-chown.c (main): Likewise.
7234
7235 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7236
7237         gnulib-tool: correctly detect absence of m4 directories
7238         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7239
7240 2009-11-14  Jim Meyering  <meyering@redhat.com>
7241
7242         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7243         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7244
7245 2009-11-14  John W. Eaton  <jwe@gnu.org>
7246
7247         strftime.h: wrap funtion declaration in extern "C" block
7248         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7249
7250 2009-11-13  Eric Blake  <ebb9@byu.net>
7251
7252         getgroups: avoid compiler warning
7253         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7254
7255         getgroups: work around FreeBSD bug
7256         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7257         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7258         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7259         * tests/test-getgroups.c (main): Fix buffer overrun.
7260
7261         getgroups: avoid compilation failure
7262         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7263         * modules/getgroups (Depends-on): Add stdint.
7264
7265 2009-11-13  Jim Meyering  <meyering@redhat.com>
7266
7267         test-getgroups: avoid compilation failure
7268         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7269
7270 2009-11-13  Eric Blake  <ebb9@byu.net>
7271
7272         mgetgroups: new module, taken from coreutils
7273         * modules/mgetgroups: New file.
7274         * lib/mgetgroups.h: Likewise.
7275         * lib/mgetgroups.c (mgetgroups): Likewise.
7276         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7277         * MODULES.html.sh (Users and groups): Mention it.
7278
7279         getgroups: don't expose GETGROUPS_T to user
7280         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7281         an element at a time if GETGROUPS_T is wrong size.
7282         * lib/getugroups.h (getugroups): Change signature.
7283         * lib/unistd.in.h (getgroups): Likewise.
7284         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7285         signature needs fixing.
7286         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7287         AC_TYPE_GETGROUPS.
7288         * modules/group-member (Depends-on): Add getgroups.
7289         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7290         (group_member): Rely on getgroups replacement.
7291         * lib/getugroups.c (getugroups): Use gid_t.
7292         * tests/test-getgroups.c (main): Likewise.
7293         * NEWS: Mention the signature change.
7294         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7295         problem with signature.
7296         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7297         GETGROUPS_T is still useful for setgroups.
7298
7299         getgroups, getugroups: provide stubs for mingw
7300         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7301         * lib/getugroups.c (getugroups): Likewise.
7302         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7303         function.  Modernize replacement scheme.
7304         (gl_PREREQ_GETGROUPS): Delete.
7305         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7306         * modules/getgroups (configure.ac): Declare witness.
7307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7308         * modules/unistd (Depends-on): Substitute witness.
7309         * lib/unistd.in.h (getgroups): Declare replacement.
7310
7311         getgroups: avoid calling exit
7312         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7313         drop xalloc.
7314         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7315         dependencies.
7316         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7317         exiting, in the rare case of malloc failure.
7318
7319         getgroups: fix logic error
7320         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7321         has more than 20 groups.
7322         * modules/getgroups-tests: New test.
7323         * tests/test-getgroups.c: New file.
7324
7325 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7326
7327         * tests/test-base64.c: Improve.
7328
7329 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7330
7331         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7332         Blake <ebb9@byu.net>.
7333
7334 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7335
7336         * tests/test-xvasprintf.c: Add %s%s related checks.
7337
7338 2009-11-12  Eric Blake  <ebb9@byu.net>
7339
7340         version-etc: match standards.texi style
7341         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7342         and use <> only for URLs.
7343
7344 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7345
7346         fts: do not fail on a submount during traversal
7347         * lib/fts.c (fts_build): Read the stat info again after opening
7348         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7349         Original report at http://bugzilla.redhat.com/501848.
7350
7351 2009-11-12  Jim Meyering  <meyering@redhat.com>
7352
7353         bootstrap: sync from coreutils
7354         * build-aux/bootstrap (bootstrap_epilogue): New function.
7355         Use git_modules_config in one more place.  This make bootstrap's
7356         --gnulib-srcdir option more useful for testing.
7357
7358         bootstrap: generalize autoheader check
7359         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7360         AC_CONFIG_HEADERS.
7361
7362 2009-11-11  Eric Blake  <ebb9@byu.net>
7363
7364         mkfifoat: use new modules for Solaris and BSD bugs
7365         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7366         * lib/mkfifoat.c (mknodat): Split...
7367         * lib/mknodat.c (mknodat): ...into new file.
7368         * modules/mkfifoat (Files): Ship new file.
7369         (Depends-on): Add mkfifo, mknod.
7370         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7371         (Depends-on): Add symlink.
7372         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7373         redundant with test_mkfifo.h.
7374         (do_mkfifoat, do_mknodat): New helpers.
7375
7376         mknod: new module
7377         * modules/mknod: New file.
7378         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7379         * lib/mknod.c (mknod): Likewise.
7380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7381         defaults.
7382         * modules/sys_stat (Makefile.am): Substitute them.
7383         * lib/sys_stat.in.h (mknod): Declare replacement.
7384         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7385         Document it.
7386         * doc/posix-functions/mknod.texi (mknod): Likewise.
7387         * modules/mknod-tests: New test.
7388         * tests/test-mknod.c: Likewise.
7389
7390         mkfifo: new module
7391         * modules/mkfifo: New file.
7392         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7393         * lib/mkfifo.c (mkfifo): Likewise.
7394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7395         defaults.
7396         * modules/sys_stat (Makefile.am): Substitute them.
7397         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7398         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7399         Document it.
7400         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7401         * modules/mkfifo-tests: New test.
7402         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7403         from test-mkfifoat.c.
7404         * tests/test-mkfifo.c: New file.
7405
7406         readlink: detect FreeBSD bug
7407         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7408         slash on symlink.
7409         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7410         * tests/test-readlink.h (test_readlink): Enhance test.
7411
7412         symlink: detect FreeBSD bug
7413         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7414         slash on symlink.
7415         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7416         * tests/test-symlink.h (test_symlink): Enhance test.
7417
7418 2009-11-10  Eric Blake  <ebb9@byu.net>
7419
7420         link: detect FreeBSD bug
7421         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7422         symlink.
7423         * doc/posix-functions/link.texi (link): Document the bug.
7424         * tests/test-link.h (test_link): Enhance test.
7425         * tests/test-linkat.c (main): Update caller.
7426
7427         unlink, remove: detect FreeBSD bug
7428         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7429         slash on symlink.
7430         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7431         * doc/posix-functions/remove.texi (remove): Likewise.
7432         * tests/test-unlink.h (test_unlink): Enhance test.
7433         * tests/test-remove.c (main): Likewise.
7434
7435 2009-11-09  Eric Blake  <ebb9@byu.net>
7436
7437         rename: detect FreeBSD bug
7438         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7439         slash on symlink.
7440         * modules/renameat-tests (Depends-on): Add filenamecat.
7441         * tests/test-rename.h (test_rename): Allow one more errno.
7442         * tests/test-renameat.c (main): Likewise.
7443         * doc/posix-functions/rename.texi (rename): Document the bug.
7444
7445         open: detect FreeBSD bug
7446         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7447         symlink.
7448         * doc/posix-functions/open.texi (open): Document the bug.
7449         * doc/posix-functions/utimes.texi (utimes): Likewise.
7450         * tests/test-open.h (test_open): Add parameters, and test symlink
7451         handling.
7452         * tests/test-open.c (main): Adjust caller.
7453         * tests/test-fcntl-safer.c (main): Likewise.
7454         * modules/open-tests (Depends-on): Add stdbool, symlink.
7455         * modules/fcntl-safer-tests (Depends-on): Likewise.
7456         * tests/test-openat.c (main): Add test-open tests.
7457
7458         stat: detect FreeBSD bug
7459         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7460         symlink.
7461         * doc/posix-functions/stat.texi (stat): Document the bug.
7462         * tests/test-stat.h (test_stat_func): Add argument.
7463         * tests/test-stat.c (main): Adjust caller.
7464         * tests/test-fstatat.c (main): Likewise.
7465         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7466         Reported by Jim Meyering.
7467
7468 2009-11-09  James Youngman  <jay@gnu.org>
7469
7470         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7471         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7472
7473 2009-11-08  Jim Meyering  <meyering@redhat.com>
7474
7475         utimens: remove invalid futimesat call
7476         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7477         It used the file descriptor of the target file as the DIR_FD
7478         parameter and NULL as the file name.  That caused failure with
7479         errno == EFAULT on FreeBSD-8.0-rc2
7480
7481 2009-11-07  Eric Blake  <ebb9@byu.net>
7482
7483         fflush, freadseek: use fseeko, not fseek
7484         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7485         (clear_ungetc_buffer): Avoid potential problems on large files.
7486         * lib/freadseek.c (freadseek): Likewise.
7487         * modules/freadseek (Depends-on): Add fseeko.
7488         * modules/fseek (configure.ac): Set a witness.
7489         * tests/test-fflush.c (main): Use fseeko.
7490         * tests/test-fpurge.c (fseek): Disable link warning.
7491         * tests/test-freadable.c (fseek): Likewise.
7492         * tests/test-freading.c (fseek): Likewise.
7493         * tests/test-fseeko.c (fseek): Likewise.
7494         * tests/test-ftell.c (fseek): Likewise.
7495         * tests/test-ftello.c (fseek): Likewise.
7496         * tests/test-fwritable.c (fseek): Likewise.
7497         * tests/test-fwriting.c (fseek): Likewise.
7498
7499 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7500
7501         * modules/memchr (Depends-on): Drop getpagesize dependency.
7502
7503 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7504
7505         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7506         Reported by Ludovic Courtès.
7507         * build-aux/pmccabe2html: Improve example usage.
7508         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7509
7510 2009-11-06  Jim Meyering  <meyering@redhat.com>
7511
7512         do-release-commit-and-tag: New module.
7513         Automate the release-commit and tag process.
7514         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7515         * modules/do-release-commit-and-tag: New file.
7516         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7517
7518 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7519
7520         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7521         because test-select.c uses inet_pton.
7522
7523 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7524
7525         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7526         GETADDRINFO_LIB.  Bump serial number.
7527         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7528         Suggested by Eric Blake <ebb9@byu.net>.
7529
7530 2009-11-05  Eric Blake  <ebb9@byu.net>
7531
7532         strtod: detect darwin bug
7533         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7534         Reported by Leo Davis.
7535
7536         freopen-safer: new module
7537         * modules/freopen-safer: New module.
7538         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7539         * lib/freopen-safer.c (freopen_safer): New file.
7540         * lib/stdio-safer.h (freopen_safer): New declaration.
7541         * lib/stdio--.h (freopen): New override.
7542         * MODULES.html.sh (File stream based Input/Output): Mention it.
7543         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7544         freopen-safer module.
7545         * doc/posix-functions/stderr.texi (stderr): Likewise.
7546         * doc/posix-functions/stdin.texi (stdin): Likewise.
7547         * doc/posix-functions/stdout.texi (stdout): Likewise.
7548         * modules/freopen-safer-tests: New test.
7549         * tests/test-reopen-safer.c: New file.
7550
7551 2009-11-05  Jim Meyering  <meyering@redhat.com>
7552
7553         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7554         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7555
7556 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7557
7558         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7559
7560 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7561
7562         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7563
7564 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7565
7566         Fix link error.
7567         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7568         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7569
7570 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7571
7572         * tests/test-func.c: Also test value of __func__.
7573
7574 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7575
7576         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7577         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7578
7579 2009-11-05  Bruno Haible  <bruno@clisp.org>
7580
7581         Fix link error.
7582         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7583         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7584         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7585
7586 2009-11-05  Bruno Haible  <bruno@clisp.org>
7587
7588         Tests for module 'inet_pton'.
7589         * modules/inet_pton-tests: New file.
7590         * tests/test-inet_pton.c: New file.
7591
7592 2009-11-05  Bruno Haible  <bruno@clisp.org>
7593
7594         Tests for module 'inet_ntop'.
7595         * modules/inet_ntop-tests: New file.
7596         * tests/test-inet_ntop.c: New file.
7597
7598 2009-11-04  Eric Blake  <ebb9@byu.net>
7599
7600         stdlib-safer: wrap all mkstemp variants
7601         * modules/mkostemp (configure.ac): Set witness.
7602         * modules/mkostemps (configure.ac): Likewise.
7603         * modules/mkstemps (configure.ac): Likewise.
7604         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7605         (mkstemps_safer): Wrap more functions.
7606         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7607         wrapping.
7608         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7609         (mkstemps_safer): Implement the wrappers.
7610
7611         mkstemps, mkostemps: new modules
7612         * modules/mkostemps: New module.
7613         * modules/mkstemps: Likewise.
7614         * lib/mkostemps.c (mkostemps): New file.
7615         * lib/mkstemps.c (mkstemps): Likewise.
7616         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7617         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7619         * modules/stdlib (Makefile.am): Substitute them.
7620         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7621         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7622         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7623         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7624         * MODULES.html.sh (File system functions): Mention them.
7625
7626         tempname: resync from glibc
7627         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7628         same values for __GT_FILE as glibc.  Abort even when assertions
7629         are disabled.
7630         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7631         match its value otherwise.  Allow idempotent inclusion.
7632         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7633         * lib/mkostemp.c (mkostemp): Likewise.
7634         * lib/mkstemp.c (mkstemp): Likewise.
7635         * lib/tmpfile.c (tmpfile): Likewise.
7636         * NEWS: Document this.
7637
7638         utimens: fix use of futimens on older Linux
7639         * lib/utimens.c (fdutimens): Use updated, rather than original,
7640         timespec to avoid bug in older Linux kernel.
7641         Reported by Simon Josefsson.
7642
7643 2009-11-04  Bruno Haible  <bruno@clisp.org>
7644
7645         Make num_processors more flexible and consistent.
7646         * lib/nproc.h (enum nproc_query): New type.
7647         (num_processors): Add a 'query' argument.
7648         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7649         (num_processors): Add a 'query' argument. Test the value of the
7650         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7651         mingw, count the number of CPUs available for the current process.
7652         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7653         Check for sched_getaffinity and sched_getaffinity_np.
7654         * modules/nproc (Depends-on): Add c-ctype, extensions.
7655         * NEWS: Mention the change.
7656
7657 2009-11-03  Bruno Haible  <bruno@clisp.org>
7658
7659         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7660
7661 2009-11-03  Jim Meyering  <meyering@redhat.com>
7662
7663         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7664         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7665         if it is defined.
7666
7667 2009-11-02  Eric Blake  <ebb9@byu.net>
7668
7669         mktime, timegm: share common declaration
7670         * lib/mktime-internal.h: New file.
7671         * lib/mktime.c: Use it rather than open-coding a declaration.
7672         * lib/timegm.c: Likewise.
7673         * modules/mktime (Files): Ship it.
7674         * modules/timegm (Files): Likewise.
7675         Suggested by Bruno Haible.
7676
7677         test-update-copyright: update test to match script changes
7678         * tests/test-update-copyright.sh: Avoid hard-coding perl
7679         location.  Don't update *.bak created by earlier runs.
7680
7681 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7682             Simon Josefsson  <simon@josefsson.org>
7683             Bruno Haible  <bruno@clisp.org>
7684
7685         Fix link error on Solaris 8.
7686         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7687         also in libnsl. Define also INET_PTON_LIB.
7688         * modules/inet_pton (Link): New section.
7689
7690 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7691             Bruno Haible  <bruno@clisp.org>
7692
7693         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7694         * modules/inet_ntop (Link): New section.
7695         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7696
7697 2009-11-02  Eric Blake  <ebb9@byu.net>
7698
7699         maint: avoid compiler warnings in m4 macros
7700         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7701         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7702
7703 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7704
7705         * m4/pmccabe2html.m4: Remove file.
7706         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7707         function.  Change maintainer.
7708         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7709         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7710         Courtès).
7711
7712 2009-10-31  Eric Blake  <ebb9@byu.net>
7713
7714         fseeko: fix m4 regression
7715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7716         regression from 2009-10-27.
7717         Reported by Ralf Wildenhues.
7718
7719 2009-10-31  Jim Meyering  <meyering@redhat.com>
7720
7721         inttostr: aesthetics and improved (compile-time) safety
7722         Define inttype_is_signed rather than inttype_is_unsigned,
7723         since the sole use is via "#if inttype_is_signed".
7724         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7725         inttype_is_unsigned.
7726         * lib/offtostr.c (inttype_is_signed): Likewise.
7727         * lib/uinttostr.c (inttype_is_signed): Likewise.
7728         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7729         * lib/inttostr.c (inttostr): Use verify to cross-check the
7730         inttype_is_signed value and the signedness of the actual type.
7731         * modules/inttostr (Depends-on): Add verify.
7732
7733 2009-10-30  Eric Blake  <ebb9@byu.net>
7734
7735         build: avoid compiler warnings
7736         * lib/fchmodat.c (lchmod): Mark unused variables.
7737         * lib/getopt.c (_getopt_initialize): Likewise.
7738         * lib/mktime.c (__mktime_internal): Provide prototype.
7739         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7740         older gcc that do not understand #pragma GCC diagnostic.
7741         * lib/uinttostr.c (inttype_is_unsigned): Define.
7742         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7743
7744 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7745
7746         stat: fix compilation on AIX
7747         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7748         only see struct stat64.
7749
7750 2009-10-30  Eric Blake  <ebb9@byu.net>
7751
7752         exclude: make more robust
7753         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7754         rather than masking a coding bug.
7755         Suggested by Bruno Haible.
7756
7757 2009-10-30  Jim Meyering  <meyering@redhat.com>
7758
7759         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7760         Rather than putting #!/usr/bin/perl on the first line,
7761         start with a variant of what's recommended by "man perlrun" that
7762         invokes the first "perl" program from your shell's search path.
7763         * build-aux/gitlog-to-changelog: Replace #!... as above.
7764         Add a "Local Variables" perl mode setting.
7765         Prompted by a patch from Ludovic Courtès.
7766         Improved by Eric Blake.
7767         * build-aux/useless-if-before-free: Likewise.
7768         * build-aux/announce-gen: Likewise.
7769         * build-aux/update-copyright: Likewise.
7770
7771 2009-10-29  Eric Blake  <ebb9@byu.net>
7772
7773         filenamecat-lgpl: adjust clients
7774         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7775         filenamecat.
7776         * modules/renameat (Depends-on): Likewise.
7777
7778         filenamecat: split into filenamecat-lgpl
7779         * modules/filenamecat-lgpl: New module.
7780         * modules/filenamecat (Files): Move library-safe files into
7781         filenamecat-lgpl.
7782         (Depends-on): Add filenamecat-lgpl.
7783         (configure.ac): Declare witness.
7784         * lib/filenamecat.h (file_name_concat): Only declare when using
7785         GPL module.
7786         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7787         Move...
7788         * lib/filenamecat-lgpl.c: ...into new file.
7789         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7790         (gl_FILE_NAME_CONCAT): Use it.
7791         * MODULES.html.sh (File system functions): Mention new module.
7792
7793         argp: avoid memory leak
7794         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7795         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7796         base_name, since the latter malloc()s and can call exit().
7797         Leak introduced 2006-07-03.
7798
7799         dirname-lgpl: adjust clients that don't need full dirname
7800         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7801         * modules/filenamecat (Depends-on): Likewise.
7802         * modules/linkat (Depends-on): Likewise.
7803         * modules/mkancesdirs (Depends-on): Likewise.
7804         * modules/mkdir (Depends-on): Likewise.
7805         * modules/openat (Depends-on): Likewise.
7806         * modules/savewd (Depends-on): Likewise.
7807         * modules/rename (Depends-on): Likewise.
7808         (License): Relax license.
7809         * modules/mkdir-tests (Depends-on): Drop progname.
7810         (Makefile.am): Delete unneeded LDADD.
7811         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7812
7813         dirname: split into dirname-lgpl
7814         * modules/dirname-lgpl: New module.
7815         * modules/dirname (Files): Move library-safe files into
7816         dirname-lgpl.
7817         (Depends-on): Add dirname-lgpl.
7818         (configure.ac): Declare witness.
7819         * modules/double-slash-root (License): Relax license.
7820         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7821         module.
7822         * lib/dirname.c (dir_len, mdir_name): Move...
7823         * lib/dirname-lgpl.c: ...into new file.
7824         * lib/basename.c (last_component, base_len): Move...
7825         * lib/basename-lgpl.c: ...into new file.
7826         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7827         (gl_DIRNAME): Use it.
7828         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7829         Mention new module.
7830         * modules/dirname-tests (Depends-on): Add progname.
7831         * tests/test-dirname.c (program_name): Delete.
7832
7833         mkdir: make safe for libraries
7834         * modules/mkdir (Depends-on): Drop xalloc.
7835         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7836         exit.
7837
7838         tests: avoid some compiler warnings
7839         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7840         literals.
7841         * tests/test-memchr.c (main): Avoid type mismatch.
7842         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7843         * tests/test-base64.c (main): Likewise.
7844         * tests/test-getdelim.c (main): Likewise.
7845         * tests/test-gethostname.c (main): Likewise.
7846         * tests/test-getline.c (main): Likewise.
7847         * tests/test-netinet_in.c (main): Likewise.
7848         * tests/test-select.c (open_server_socket, main): Likewise.
7849         * tests/test-select-stdin.c (main): Likewise.
7850         * tests/test-sockets.c (main): Likewise.
7851         * tests/test-strsignal.c (main): Likewise.
7852         * tests/test-sys_select.c (main): Likewise.
7853         * tests/test-sys_socket.c (main): Likewise.
7854         * tests/test-u64.c (main): Likewise.
7855         * tests/test-xfprintf-posix.c (main): Likewise.
7856         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7857
7858         sockets: avoid compiler warning
7859         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7860
7861         maint: detect usage(1) and other suspicious exits
7862         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7863
7864 2009-10-29  Jim Meyering  <meyering@redhat.com>
7865
7866         timespec: long-to-int truncation could make timespec_cmp malfunction
7867         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7868         a multiple of 2^32 nanoseconds as no difference.
7869
7870 2009-10-28  Jim Meyering  <meyering@redhat.com>
7871
7872         fprintftime: wrap macro code argument in "do {...} while(0)"
7873         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7874         cpy macro must be a statement that can be followed by a semicolon.
7875         Now that the else clause contains a comment and is hence longer
7876         than one line, I require curly braces.  That in turn requires
7877         that we wrap this code block in the standard do...while(0).
7878
7879         fprintftime: remove stray semicolon from previous change
7880         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7881
7882         fprintftime: avoid a warning about ignored fwrite return value
7883         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7884         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7885         that is unsafe.
7886         * modules/fprintftime (Depends-on): Add ignore-value.
7887
7888         exclude: avoid an unwarranted warning
7889         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7890
7891 2009-10-27  Eric Blake  <ebb9@byu.net>
7892
7893         fseek: avoid compilation failure when fflush is replaced
7894         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7895         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7896         module is in use.
7897         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7898         module is not in use; since REPLACE_FSEEK worked otherwise.
7899         (GNULIB_FTELLO): Likewise for ftell.
7900         Reported by Ian Beckwith and others.
7901
7902 2009-10-27  Bruno Haible  <bruno@clisp.org>
7903
7904         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7905         Reported by Jim Meyering.
7906
7907 2009-10-27  Jim Meyering  <jim@meyering.net>
7908             Bruno Haible  <bruno@clisp.org>
7909
7910         Avoid warning despite dropping the return value of fwrite.
7911         * lib/unicodeio.c: Include ignore-value.h.
7912         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7913         * modules/unicodeio (Depends-on): Add ignore-value.
7914
7915 2009-10-26  Eric Blake  <ebb9@byu.net>
7916
7917         areadlinkat: fix fallback path
7918         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7919         pointer and zero.
7920
7921 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7922
7923         Use a better IO block size for modern systems
7924         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7925         * lib/md2.c: Likewise.
7926         * lib/md4.c: Likewise.
7927         * lib/md5.c: Likewise.
7928         * lib/sha1.c: Likewise.
7929         * lib/sha256.c: Likewise.
7930         * lib/sha512.c: Likewise.
7931
7932 2009-10-22  Eric Blake  <ebb9@byu.net>
7933
7934         tests: avoid several compiler warnings
7935         * tests/test-getcwd.c (main): Avoid buffer underflow.
7936         * tests/test-getdate.c (main): String literals are not safe with
7937         putenv, so use setenv.  Declare unused argument.
7938         * modules/getdate-tests (Depends-on): Add setenv.
7939         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7940         problems with string literals in char *.
7941         * tests/test-hash.c (main): Avoid shadowing declaration.
7942         (insert_new): Treat string literals as char const *.
7943         * tests/test-getopt.h (test_getopt): Likewise.
7944         (getopt_loop): Alter types to minimize casting elsewhere.
7945         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7946         (test_getopt_long_posix): Likewise.
7947         (do_getopt_long): Add wrapper to minimize casting.
7948         * tests/test-atexit.c (clear_temp_file): Use void.
7949         * tests/test-areadlink-with-size.c (main): Declare unused
7950         arguments.
7951         * tests/test-areadlink.c (main): Likewise.
7952         * tests/test-areadlinkat-with-size.c (main): Likewise.
7953         * tests/test-areadlinkat.c (main): Likewise.
7954         * tests/test-canonicalize-lgpl.c (main): Likewise.
7955         * tests/test-canonicalize.c (main): Likewise.
7956         * tests/test-dirent-safer.c (main): Likewise.
7957         * tests/test-dirname.c (main): Likewise.
7958         * tests/test-dup2.c (main): Likewise.
7959         * tests/test-fchdir.c (main): Likewise.
7960         * tests/test-fcntl-h.c (main): Likewise.
7961         * tests/test-fcntl-safer.c (main): Likewise.
7962         * tests/test-fdopendir.c (main): Likewise.
7963         * tests/test-fdutimensat.c (main): Likewise.
7964         * tests/test-fflush.c (main): Likewise.
7965         * tests/test-filenamecat.c (main): Likewise.
7966         * tests/test-filevercmp.c (main): Likewise.
7967         * tests/test-fopen-safer.c (main): Likewise.
7968         * tests/test-fopen.c (main): Likewise.
7969         * tests/test-fpending.c (main): Likewise.
7970         * tests/test-fpurge.c (main): Likewise.
7971         * tests/test-freading.c (main): Likewise.
7972         * tests/test-fstatat.c (main): Likewise.
7973         * tests/test-fsync.c (main): Likewise.
7974         * tests/test-futimens.c (main): Likewise.
7975         * tests/test-getndelim2.c (main): Likewise.
7976         * tests/test-gettimeofday.c (main): Likewise.
7977         * tests/test-getopt.c (main): Likewise.
7978         * tests/test-i-ring.c (main): Likewise.
7979         * tests/test-inttypes.c (main): Likewise.
7980         * tests/test-link.c (main): Likewise.
7981         * tests/test-lstat.c (main): Likewise.
7982         * tests/test-math.c (main): Likewise.
7983         * tests/test-md5.c (main): Likewise.
7984         * tests/test-memchr2.c (main): Likewise.
7985         * tests/test-memrchr.c (main): Likewise.
7986         * tests/test-mkdir.c (main): Likewise.
7987         * tests/test-mkdirat.c (main): Likewise.
7988         * tests/test-mkfifoat.c (main): Likewise.
7989         * tests/test-open.c (main): Likewise.
7990         * tests/test-openat-safer.c (main): Likewise.
7991         * tests/test-openat.c (main): Likewise.
7992         * tests/test-quotearg.c (main): Likewise.
7993         * tests/test-rawmemchr.c (main): Likewise.
7994         * tests/test-readlink.c (main): Likewise.
7995         * tests/test-remove.c (main): Likewise.
7996         * tests/test-rename.c (main): Likewise.
7997         * tests/test-renameat.c (main): Likewise.
7998         * tests/test-rmdir.c (main): Likewise.
7999         * tests/test-sha1.c (main): Likewise.
8000         * tests/test-signal.c (main): Likewise.
8001         * tests/test-sigaction.c (main): Likewise.
8002         * tests/test-stat.c (main): Likewise.
8003         * tests/test-stat-time.c (main): Likewise.
8004         * tests/test-stddef.c (main): Likewise.
8005         * tests/test-stdint.c (main): Likewise.
8006         * tests/test-stdio.c (main): Likewise.
8007         * tests/test-stdlib.c (main): Likewise.
8008         * tests/test-strchrnul.c (main): Likewise.
8009         * tests/test-strerror.c (main): Likewise.
8010         * tests/test-string.c (main): Likewise.
8011         * tests/test-strtod.c (main): Likewise.
8012         * tests/test-strverscmp.c (main): Likewise.
8013         * tests/test-symlink.c (main): Likewise.
8014         * tests/test-symlinkat.c (main): Likewise.
8015         * tests/test-sys_stat.c (main): Likewise.
8016         * tests/test-sys_time.c (main): Likewise.
8017         * tests/test-time.c (main): Likewise.
8018         * tests/test-unistd.c (main): Likewise.
8019         * tests/test-unlink.c (main): Likewise.
8020         * tests/test-unlinkat.c (main): Likewise.
8021         * tests/test-utimens.c (main): Likewise.
8022         * tests/test-utimensat.c (main): Likewise.
8023         * tests/test-version-etc.c (main): Likewise.
8024         * tests/test-wchar.c (main): Likewise.
8025         * tests/test-wctype.c (main): Likewise.
8026         * tests/test-xprintf-posix.c (main): Likewise.
8027         * tests/test-posixtm.c (main): Likewise.
8028         (STREQ): Delete unused macro.
8029         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8030         shadowed variables.
8031         * tests/test-memchr.c (main): Likewise.
8032
8033 2009-10-21  Eric Blake  <ebb9@byu.net>
8034
8035         areadlinkat: avoid failure on older glibc
8036         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8037         rather than mis-comparing 0 against FUNC_RESULT of char*.
8038
8039 2009-10-21  Bruno Haible  <bruno@clisp.org>
8040
8041         * modules/stpncpy (License): Relicense under LGPLv2+.
8042         Reported by David Lutterkort <lutter@redhat.com>.
8043
8044 2009-10-20  Eric Blake  <ebb9@byu.net>
8045
8046         utimensat: work around Solaris 9 bug
8047         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8048         has trailing slash bugs.
8049         * tests/test-lutimens.h (test_lutimens): Enhance test.
8050         * tests/test-utimens.h (test_utimens): Likewise.
8051         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8052         * doc/posix-functions/utimes.texi (utimes): Likewise.
8053         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8054         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8055         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8056         * doc/posix-functions/futimens.texi (futimens): Likewise.
8057
8058         fdutimensat: new module
8059         * modules/fdutimensat: New file.
8060         * lib/fdutimensat.c (fdutimensat): Likewise.
8061         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8062         * MODULES.html.sh (File system functions): Mention module.
8063         * modules/fdutimensat-tests: New test.
8064         * tests/test-fdutimensat.c: Likewise.
8065
8066         doc: regenerate INSTALL
8067         * doc/INSTALL: Reflect recent autoconf update.
8068         * doc/INSTALL.ISO: Likewise.
8069         * doc/INSTALL.UTF-8: Likewise.
8070
8071 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8072
8073         acl: warn if ACL support is not detected
8074         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8075
8076 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8077
8078         * lib/nproc.h: Add extern "C" block for C++.
8079
8080 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8081             Bruno Haible  <bruno@clisp.org>
8082
8083         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8084         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8085         * doc/posix-functions/isalpha.texi: Likewise.
8086         * doc/posix-functions/isblank.texi: Likewise.
8087         * doc/posix-functions/iscntrl.texi: Likewise.
8088         * doc/posix-functions/isdigit.texi: Likewise.
8089         * doc/posix-functions/isgraph.texi: Likewise.
8090         * doc/posix-functions/islower.texi: Likewise.
8091         * doc/posix-functions/isprint.texi: Likewise.
8092         * doc/posix-functions/ispunct.texi: Likewise.
8093         * doc/posix-functions/isspace.texi: Likewise.
8094         * doc/posix-functions/isupper.texi: Likewise.
8095         * doc/posix-functions/isxdigit.texi: Likewise.
8096
8097 2009-10-18  Bruno Haible  <bruno@clisp.org>
8098
8099         Tests for module 'isblank'.
8100         * modules/isblank-tests: New file.
8101         * tests/test-isblank.c: New file.
8102
8103         New module 'isblank'.
8104         * lib/isblank.c: New file.
8105         * m4/isblank.m4: New file.
8106         * modules/isblank: New file.
8107         * doc/posix-functions/isblank.texi: Mention the new module.
8108
8109 2009-10-18  Bruno Haible  <bruno@clisp.org>
8110
8111         New module 'ctype'.
8112         * lib/ctype.in.h: New file.
8113         * m4/ctype.m4: New file.
8114         * modules/ctype: New file.
8115         * doc/posix-headers/ctype.texi: Mention the new module.
8116
8117 2009-10-18  Jim Meyering  <meyering@redhat.com>
8118
8119         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8120         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8121         right after its initialization, rather than farther down.
8122         Keeping these in close proximity makes it easier to ensure
8123         that each such variable is initialized.  E.g.,
8124
8125             LIB_CLOCK_GETTIME=
8126             AC_SUBST([LIB_CLOCK_GETTIME])
8127
8128         This change also increments these serial numbers.
8129         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8130         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8132
8133 2009-10-18  Bruno Haible  <bruno@clisp.org>
8134
8135         Don't let environment variables perturb build.
8136         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8137         (gl_PREREQ_GETHRXTIME): ... not here.
8138
8139 2009-10-18  Bruno Haible  <bruno@clisp.org>
8140
8141         Avoid symlink attack in localcharset module.
8142         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8143         (O_NOFOLLOW): Define fallback.
8144         (get_charset_aliases): Don't open the file if it is a symbolic link.
8145         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8146         gl_FCNTL_H.
8147         (gl_FCNTL_H): Require it.
8148         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8149         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8150         Reported by Fergal Glynn <fglynn@veracode.com>.
8151
8152 2009-10-18  Bruno Haible  <bruno@clisp.org>
8153
8154         Implement nproc for mingw.
8155         * lib/nproc.c: Include <windows.h>
8156         (num_processors): On native Windows platforms, try GetSystemInfo.
8157
8158 2009-10-18  Bruno Haible  <bruno@clisp.org>
8159
8160         Implement nproc for IRIX.
8161         * lib/nproc.c: Include <sys/sysmp.h>.
8162         (num_processors): On IRIX systems, try sysmp.
8163         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8164
8165 2009-10-18  Bruno Haible  <bruno@clisp.org>
8166
8167         Implement nproc for HP-UX.
8168         * lib/nproc.c: Include <sys/pstat.h>
8169         (num_processors): On HP-UX systems, try pstat_getdynamic.
8170         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8171         pstat_getdynamic.
8172
8173 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8174             Bruno Haible  <bruno@clisp.org>
8175
8176         Implement nproc for NetBSD, OpenBSD.
8177         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8178         (ARRAY_SIZE): New macro.
8179         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8180         * m4/nproc.m4: New file.
8181         * modules/nproc (Files): Add m4/nproc.m4.
8182         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8183         (Makefile.am): Instead, augment lib_SOURCES.
8184
8185 2009-10-18  Bruno Haible  <bruno@clisp.org>
8186
8187         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8188         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8189         sys/param.h.
8190
8191 2009-10-16  Eric Blake  <ebb9@byu.net>
8192
8193         utimensat: new module
8194         * modules/utimensat: New file.
8195         * lib/utimensat.c (utimensat): Likewise.
8196         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8197         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8198         so we can work around Linux bugs.
8199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8200         * modules/sys_stat (Makefile.am): Substitute them.
8201         * lib/sys_stat.in.h (utimensat): Declare it.
8202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8204         * modules/utimensat-tests: New test.
8205         * tests/test-utimensat.c: Likewise.
8206
8207         utimens: let lutimens work on non-symlinks
8208         * lib/utimens.c (lutimens): Fall back to utimens rather than
8209         failing with ENOSYS, when file is not a symlink.
8210         (utimens): Reduce redirection.
8211         * tests/test-lutimens.h (test_lutimens): Update test to cover
8212         non-symlinks.
8213         * tests/test-utimens.h (test_utimens): Update test to cover
8214         symlinks.
8215         * tests/test-utimens.c (main): Update caller.
8216
8217         utimens: cache whether utimensat syscall works
8218         * lib/utimens.c (utimensat_works_really): New cache variable.
8219         (fdutimens, lutimens): Use it to avoid failing syscall.
8220
8221         test-stat-time, test-utimens: improve portability
8222         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8223         ext4 on alpha, and for cygwin.
8224         * tests/test-utimens-common.h: New file.
8225         (nap): Factor delays into single function.
8226         * tests/test-lutimens.h (test_lutimens): Use new header.
8227         * tests/test-futimens.h (test_futimens): Likewise.
8228         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8229         timestamps to occur from same machine, as was done previously for
8230         test_utimens.
8231         * modules/utimens-tests (Files): Ship new file.
8232         * modules/futimens-tests (Files): Likewise.
8233         Reported in part by Jim Meyering.
8234
8235         sys_stat: sort replacement declarations
8236         * lib/sys_stat.in.h: Sort declarations.
8237         * lib/futimens.c (futimens): Fix typo.
8238
8239 2009-10-15  Jim Meyering  <meyering@redhat.com>
8240
8241         don't let environment settings perturb build
8242         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8243         could cause a configure-time and/or build-time malfunction.
8244         Typically, a configure-time function-in-library test is performed
8245         via code like this:
8246
8247           LIB_VAR=
8248           AC_SUBST([LIB_VAR])
8249           prefix_saved_LIBS=$LIBS
8250             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8251                        [test "$ac_cv_search_FUNC" = "none required" ||
8252                         LIB_VAR=$ac_cv_search_FUNC])
8253           LIBS=$prefix_saved_LIBS
8254
8255         However, in each of the files affected by this change, the LIB_VAR=
8256         initialization was omitted.  Thus, when set in the environment, its
8257         value would propagate into generated Makefiles when FUNC is not found
8258         in LIB_NAME.
8259         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8262
8263 2009-10-14  Eric Blake  <ebb9@byu.net>
8264
8265         fchdir: avoid infinite recursion in mingw
8266         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8267         recursing.
8268
8269         test-stat-time: port to mingw
8270         * tests/test-stat-time.c (force_unlink): Return a value.
8271         (test_ctime) [W32]: Fix compilation error.
8272         (nap): Don't call usleep with too large an argument.  Use
8273         force_unlink.
8274         * doc/pastposix-functions/usleep.texi (usleep): Document the
8275         portability issue.
8276
8277 2009-10-13  Jim Meyering  <meyering@redhat.com>
8278
8279         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8280         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8281         * modules/pipe-filter-ii: Likewise.
8282         * modules/sys_socket-tests: Likewise.
8283         * modules/tsearch-tests: Likewise.
8284         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8285         (check): Depend on it.
8286
8287 2009-10-12  Eric Blake  <ebb9@byu.net>
8288
8289         utimens-tests: port to NFS file systems
8290         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8291         comparisons to avoid spurious failures from timestamp drift
8292         between NFS machines.
8293
8294 2009-10-12  Eric Blake  <ebb9@byu.net>
8295
8296         stat-time-tests: minor cleanups
8297         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8298         * tests/test-stat-time.c (nap): Separate assignment from call.
8299         Suggested by Paolo Bonzini and Bruno Haible.
8300
8301         sys_stat: guarantee struct timespec
8302         * lib/sys_stat.in.h (includes): Always include <time.h>
8303         * modules/sys_stat (Depends-on): Add time.
8304         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8305         mode_t permission values.
8306         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8307         get at subsecond timestamps.
8308
8309 2009-10-10  Eric Blake  <ebb9@byu.net>
8310
8311         futimens: new module
8312         * modules/futimens: New file.
8313         * lib/futimens.c (futimens): Likewise.
8314         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8315         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8316         we can work around Linux bugs.
8317         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8318         * modules/sys_stat (Makefile.am): Substitute them.
8319         * lib/sys_stat.in.h (futimens): Declare it.
8320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8321         * doc/posix-functions/futimens.texi (futimens): Likewise.
8322         * modules/futimens-tests: New test.
8323         * tests/test-futimens.c: Likewise.
8324
8325         utimens: introduce fdutimens
8326         * lib/utimens.h (fdutimens): New prototype.
8327         * lib/utimens.c (gl_futimens): Move guts...
8328         (fdutimens): ...to new interface.
8329         * tests/test-utimens.c (do_fdutimens): Use it.
8330
8331         utimens: add UTIME_NOW and UTIME_OMIT support
8332         * lib/utimens.c (validate_timespec, update_timespec): New helper
8333         functions.
8334         (gl_futimens, lutimens): Use them.
8335         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8336         stdbool, sys_stat.
8337         (Link): Mention resulting library dependency.
8338         * modules/utimecmp (Link): Likewise.
8339         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8340         (Makefile.am): Pick up library dependency.
8341         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8342         definition.
8343         * tests/test-sys_stat.c: Test the definitions.
8344         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8345         * NEWS: Document library dependency.
8346
8347         utimecmp: support symlink timestamps
8348         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8349         hashing when possible.  Use pathconf when available.
8350         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8351         * modules/utimecmp (Depends-on): Add lstat.
8352
8353         utimens: add lutimens interface
8354         * lib/utimens.c (lutimens): New function.
8355         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8356         * lib/utimens.h (lutimens): Declare new interface.
8357         * tests/test-utimens.c (main): Enhance test.
8358         * tests/test-lutimens.h (test_lutimens): New file.
8359         * modules/utimens-tests (Files): Distribute it.
8360         (Depends-on): Add symlink.
8361         (configure.ac): Check for usleep.
8362
8363         utimens: validate futimens usage
8364         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8365         fewer syscalls on failure later on.  Avoid compiler warning on
8366         mingw.
8367         * modules/utimens (Depends-on): Add dup2.
8368
8369         utimens: add test
8370         * modules/utimens-tests: New test.
8371         * tests/test-utimens.h: New file.
8372         * tests/test-futimens.h: Likewise.
8373         * tests/test-utimens.c: Likewise.
8374
8375         doc: mention timestamp portability issues
8376         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8377         instead.
8378         * doc/posix-functions/utime.texi (utime): Likewise.
8379         * doc/posix-functions/utimes.texi (utimes): Likewise.
8380         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8381         instead.
8382         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8383         module.
8384         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8385         Mention weakness with symlink timestamps.
8386         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8387         to utimensat/futimens instead.
8388         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8389
8390         test-dup2: enhance test
8391         * tests/test-dup2.c (main): Also check AT_FDCWD.
8392
8393         test-stat-time: avoid more spurious failures
8394         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8395         xfs; and avoid race if the two timestamps cross quantization edge.
8396
8397         relocatable: prefer 'file system' over 'filesystem'
8398         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8399         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8400         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8401         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8402         * lib/relocatable.c (compute_curr_prefix): Likewise.
8403
8404 2009-10-10  Jim Meyering  <meyering@redhat.com>
8405
8406         stat-time-tests: check for the usleep function
8407         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8408
8409 2009-10-10  Bruno Haible  <bruno@clisp.org>
8410
8411         * modules/xnanosleep: Put the Link section after the Include section.
8412
8413 2009-10-09  Eric Blake  <ebb9@byu.net>
8414
8415         dup2: work around FreeBSD 6.1 bug
8416         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8417         * doc/posix-functions/dup2.texi (dup2): Document it.
8418         Reported by Nelson H. F. Beebe and Jim Meyering.
8419
8420         test-stat-time: port to buggy NFS clients
8421         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8422         (test_ctime): Also skip test if mtime and ctime are skewed.
8423
8424         maint: prefer 'file system' over 'filesystem'
8425         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8426         * doc/posix-functions/lstat.texi (lstat): Likewise.
8427         * lib/file-has-acl.c (file_has_acl): Likewise.
8428         * lib/fwriteerror.c [TEST]: Likewise.
8429         * tests/test-areadlink.h (test_areadlink): Likewise.
8430         * tests/test-areadlinkat-with-size.c (main): Likewise.
8431         * tests/test-areadlinkat.c (main): Likewise.
8432         * tests/test-canonicalize-lgpl.c (main): Likewise.
8433         * tests/test-canonicalize.c (main): Likewise.
8434         * tests/test-fstatat.c (main): Likewise.
8435         * tests/test-linkat.c (main): Likewise.
8436         * tests/test-lstat.h (test_lstat_func): Likewise.
8437         * tests/test-mkdir.h (test_mkdir): Likewise.
8438         * tests/test-readlink.h (test_readlink): Likewise.
8439         * tests/test-remove.c (main): Likewise.
8440         * tests/test-rename.h (test_rename): Likewise.
8441         * tests/test-renameat.c (main): Likewise.
8442         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8443         * tests/test-symlink.h (test_symlink): Likewise.
8444         * tests/test-symlinkat.c (main): Likewise.
8445         * tests/test-unlink.h (test_unlink_func): Likewise.
8446         * tests/test-unlinkat.c (main): Likewise.
8447
8448         maint: make realtime library usage explicit
8449         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8450         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8451         * modules/settime (Link): Likewise.
8452         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8453
8454         test-stat-time: speed up execution
8455         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8456         warning on mingw.
8457         (nap): New helper function.
8458         (prepare_test): Use it to reduce sleep time.
8459         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8460         execution.
8461         * modules/stat-time-tests (configure.ac): Check for usleep.
8462
8463 2009-10-09  Jim Meyering  <meyering@redhat.com>
8464
8465         selinux-h: always use getfilecon wrappers
8466         * lib/getfilecon.c: New file.
8467         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8468         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8469         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8470         (fgetfilecon): Provide a stub.
8471         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8472         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8473         file unconditionally.
8474         When <selinux/selinux.h> is found, arrange to use wrappers.
8475         * modules/selinux-h (Files): Add getfilecon.c.
8476         (Makefile.am): Substitute include-next-related bits
8477         into the now-always-generated selinux/selinux.h file.
8478         * doc/glibc-functions/lgetfilecon.texi: New file.
8479         * doc/glibc-functions/fgetfilecon.texi: New file.
8480         * doc/glibc-functions/getfilecon.texi: New file.
8481         * doc/glibc-functions/getfilecon-desc.texi: New file.
8482         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8483         which to pull in the new files.
8484         * MODULES.html.sh (Misc): Add selinux-h.
8485
8486 2009-10-08  Jim Meyering  <meyering@redhat.com>
8487
8488         unistd: fix comment typo
8489         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8490
8491 2009-10-08  Eric Blake  <ebb9@byu.net>
8492
8493         areadlink: use SIZE_MAX consistently
8494         * modules/areadlink (Depends-on): Add stdint.
8495         * modules/areadlink-with-size (Depends-on): Likewise.
8496         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8497         gives NULL; drop sys/types, since unistd gives size_t; and add
8498         stdint for SIZE_MAX.
8499         (SIZE_MAX): Rely on headers.
8500         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8501         and add stdint.
8502         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8503         (SIZE_MAX): Likewise.
8504         (INITIAL_BUF_SIZE): Turn into enum.
8505         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8506
8507 2009-10-08  Jim Meyering  <meyering@redhat.com>
8508
8509         areadlinkat: avoid compilation failure
8510         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8511         Fix typo in comment.
8512
8513 2009-10-07  Eric Blake  <ebb9@byu.net>
8514
8515         areadlinkat-with-size: new module
8516         * modules/areadlinkat-with-size: New module.
8517         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8518         * lib/areadlink.h (areadlinkat): Declare it.
8519         * MODULES.html.sh (File system functions): Mention it.
8520         * modules/areadlinkat-with-size-tests: New test.
8521         * tests/test-areadlinkat-with-size.c: New file.
8522
8523         xreadlinkat: new module
8524         * modules/xreadlinkat: New module.
8525         * lib/xreadlinkat.c (xreadlinkat): New file.
8526         * lib/xreadlink.h (xreadlinkat): Declare it.
8527         * MODULES.html.sh (File system functions): Mention it.
8528
8529         areadlinkat: new module
8530         * lib/at-func.c (FUNC_FAIL): New define.
8531         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8532         * modules/areadlinkat: New module.
8533         * lib/linkat.c (areadlinkat): Move...
8534         * lib/areadlinkat.c (areadlinkat): ...to new file.
8535         * lib/areadlink.h (areadlinkat): Declare it.
8536         * modules/linkat (Depends-on): Add areadlinkat.
8537         * MODULES.html.sh (File system functions): Mention it.
8538         * modules/areadlinkat-tests: New test.
8539         * tests/test-areadlinkat.c: New file.
8540
8541         areadlink, areadlink-with-size: add tests
8542         * modules/areadlink-tests: New test.
8543         * modules/areadlink-with-size-tests: Likewise.
8544         * tests/test-areadlink.h: New file.
8545         * tests/test-areadlink.c: Likewise.
8546         * tests/test-areadlink-with-size.c: Likewise.
8547
8548         maint: minor cleanups
8549         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8550         _UNUSED_PARAMETER_ instead.
8551         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8552         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8553         * modules/linkat-tests (Files): Distribute test-link.h.
8554
8555         openat, utimens: whitespace cleanup
8556         * lib/openat.c: Prefer space throughout, rather than mix of 8
8557         spaces vs. tabs.
8558         * lib/at-func.c: Likewise.
8559         * lib/utimens.c: Likewise.
8560
8561         openat: avoid using wrong fd
8562         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8563         working directory chooses same fd.
8564         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8565
8566         mkdir, mkdirat: fix cygwin 1.5.x bug
8567         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8568         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8569         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8570         bug.
8571         (gl_PREREQ_MKDIR): Delete unused macro.
8572         * modules/mkdir (Files): Track file rename.
8573         (configure.ac): Update macro name.
8574         * modules/openat (Depends-on): Add mkdir.
8575         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8576
8577         mkdir, mkdirat: add tests
8578         * modules/mkdir-tests: New test.
8579         * tests/test-mkdir.h: New file.
8580         * tests/test-mkdir.c: Likewise.
8581         * tests/test-mkdirat.c: Likewise.
8582         * modules/openat-tests (Files): Add new files.
8583         (Makefile.am): Run new test.
8584
8585 2009-10-06  Eric Blake  <ebb9@byu.net>
8586
8587         doc: tweak *at function documentation
8588         * doc/posix-functions/faccessat.texi (faccessat): Mention
8589         known issue with replacement.
8590         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8591         * doc/posix-functions/linkat.texi (linkat): Likewise.
8592         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8593         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8594         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8595         * doc/posix-functions/renameat.texi (renameat): Likewise.
8596         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8597
8598         openat: fix GNU/Hurd bug in unlinkat
8599         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8600         broken.
8601         * doc/posix-functions/unlink.texi (unlink): Document this.
8602         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8603
8604         fdopendir: fix GNU/Hurd bug
8605         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8606         allowing non-directory fds.
8607         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8608         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8609         * modules/dirent (Makefile.am): Substitute it.
8610         * lib/dirent.in.h (fdopendir): Declare replacement.
8611         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8612         * tests/test-fdopendir.c (main): Test something other than
8613         /dev/null, since on Hurd that behaves like a directory.
8614
8615         test-symlink: port to GNU/Hurd
8616         * tests/test-symlink.h (test_symlink): Relax expected errno.
8617
8618         doc: tweak more cygwin information
8619         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8620         now compatible with glibc.
8621         * doc/posix-functions/getopt.texi (getopt): Likewise.
8622
8623         getopt-gnu: add another test
8624         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8625         guarantee behavior relied on by m4.
8626         * tests/test-getopt.c (main): Use it.
8627         * modules/getopt-posix-tests (Depends-on): Add setenv.
8628         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8629
8630         getopt: fix compilation on darwin
8631         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8632         include.
8633         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8634         Reported by Ludovic Courtès.
8635
8636 2009-10-06  Bruno Haible  <bruno@clisp.org>
8637
8638         * modules/size_max (Description): Discourage its use.
8639         Reported by Simon Josefsson.
8640
8641 2009-10-06  Jim Meyering  <meyering@redhat.com>
8642
8643         linkat: avoid compilation failure
8644         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8645
8646 2009-10-05  Eric Blake  <ebb9@byu.net>
8647
8648         linkat: support Linux 2.6.17
8649         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8650         linkat on Linux, but allow cache variable override.
8651         * lib/linkat.c (rpl_linkat): Define override.
8652         * modules/linkat (Depends-on): Add symlinkat.
8653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8654         * modules/unistd (Makefile.am): Substitute it.
8655         * lib/unistd.in.h (linkat): Declare replacement.
8656         Reported by Pádraig Brady.
8657
8658         quotearg: port test to systems with C.UTF-8 locale
8659         * tests/test-quotearg.c (struct result_strings): Add another
8660         member, differentiating between C.ASCII and C.UTF-8 handling.
8661         (compare_strings): Add parameter.
8662         (main): Adjust all callers.
8663
8664         getopt: avoid clash with FreeBSD _getopt_internal
8665         * lib/getopt.in.h (_getopt_internal): Override the name.
8666         * lib/getopt_int.h (includes): Pick up any overrides.
8667         Reported by Reuben Thomas.
8668
8669         hash: allow C89 compilation
8670         * lib/hash.c (check_tuning): Move declaration before statement.
8671         Reported by Reuben Thomas.
8672
8673 2009-10-05  Karl Berry  <karl@gnu.org>
8674
8675         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8676
8677 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8678             Bruno Haible  <bruno@clisp.org>
8679
8680         * lib/uname.c (uname): Use a table-driven algorithm to compute
8681         Windows NT versions.
8682
8683 2009-10-04  Bruno Haible  <bruno@clisp.org>
8684
8685         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8686         program_invocation_short_name.
8687         * modules/progname (configure.ac): Test for presence of
8688         program_invocation_short_name.
8689         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8690
8691 2009-10-04  Bruno Haible  <bruno@clisp.org>
8692
8693         * lib/progname.c (set_program_name): Fix comment.
8694         Reported by Jim Meyering.
8695
8696 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8697             Bruno Haible  <bruno@clisp.org>
8698
8699         * lib/uname.c: Include <string.h>.
8700         (uname): Do only one call to GetVersionEx in the common case.
8701
8702 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8703             Bruno Haible  <bruno@clisp.org>
8704
8705         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8706         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8707         (uname): Add support for Windows CE and various non-x86 CPU types.
8708
8709 2009-10-03  Bruno Haible  <bruno@clisp.org>
8710
8711         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8712         invocation to tests/configure.ac.
8713         Reported by Ian Beckwith <ianb@erislabs.net>.
8714
8715 2009-10-02  Eric Blake  <ebb9@byu.net>
8716
8717         fchdir: avoid compiler warning
8718         * lib/fchdir.c (canonicalize_file_name)
8719         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8720
8721         test-open: support mingw errno values
8722         * tests/test-open.h (test_open): Relax test.
8723         * tests/test-fopen.h (test_fopen): Likewise.
8724         * tests/test-openat-safer.c (main): Likewise.
8725
8726         open: fix opening directory on mingw
8727         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8728
8729         test-open: on GNU/Hurd, /dev/null is a directory
8730         * tests/test-fopen.h (main): Rename...
8731         (test_fopen): ...to this.  Use a guaranteed non-directory when
8732         confirming open behavior on trailing slash.
8733         * tests/test-openat-safer.c (main): Likewise.
8734         * tests/test-open.h (main): Likewise....
8735         (test_open): ...to this.
8736         * tests/test-fopen.c (main): Adjust caller.
8737         * tests/test-fopen-safer.c (main): Likewise.
8738         * tests/test-open.c (main): Likewise.
8739         * tests/test-fcntl-safer.c (main): Likewise.
8740         Reported by Samuel Thibault.
8741
8742         rename, fchdir: don't ignore chdir failure
8743         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8744         * lib/rename.c (rpl_rename) [W32]: Likewise.
8745         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8746         an empty destination directory if source cannot be renamed,
8747         although there is still possibility for failure.
8748         * doc/posix-functions/rename.texi (rename): Document the race.
8749         Reported by Jim Meyering.
8750
8751         maint: cleanup whitespace in recent commits
8752         * lib/rename.c (rpl_rename): Remove tabs.
8753         * tests/test-link.h (test_link): Likewise.
8754         * lib/fchdir.c (get_name): Likewise.
8755         Reported by Jim Meyering.
8756
8757 2009-10-02  Ben Pfaff  <blp@gnu.org>
8758
8759         relocatable-prog-wrapper: Add missing dependency on
8760         double-slash-root.
8761         * modules/relocatable-prog-wrapper: Add dependency.
8762         Reported by Ian Beckwith <ianb@erislabs.net>.
8763
8764 2009-10-02  Eric Blake  <ebb9@byu.net>
8765
8766         renameat: fix Solaris bugs
8767         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8768         needed fixing.
8769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8770         * modules/stdio (Makefile.am): Substitute it.
8771         * lib/stdio.in.h (renameat): Declare replacement.
8772         * lib/renameat.c (rpl_renameat): Implement fix.
8773
8774         renameat: new module
8775         * modules/renameat: New file.
8776         * lib/renameat.c (renameat): Likewise.
8777         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8779         * modules/stdio (Makefile.am): Substitute them.
8780         * lib/stdio.in.h (renameat): Declare it.
8781         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8782         * doc/posix-functions/renameat.texi (renameat): Likewise.
8783         * modules/renameat-tests: New test.
8784         * tests/test-renameat.c: Likewise.
8785
8786         rename: fix mingw bugs
8787         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8788         directory overwrite bugs.
8789
8790         rename: fix another cygwin 1.5 bug
8791         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8792         checks.
8793         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8794         unnecessary cygwin workarounds.  Also work around bug with moving
8795         full directory onto an empty one.
8796         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8797
8798         rename-dest-slash: merge into rename module
8799         * modules/rename-dest-slash (Status): Mark obsolete.
8800         (Depends-on): Add rename.
8801         (Files): Let rename do it all.
8802         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8803         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8804         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8805         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8806         * lib/rename.c (rpl_rename): Update comments.
8807
8808         rename: fix cygwin 1.5.x bugs
8809         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8810         * lib/rename.c (rpl_rename): Work around them.
8811         * modules/rename (Depends-on): Add same-inode.
8812
8813         rename: fix Solaris 10 bug
8814         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8815         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8816         was the only bug.
8817
8818         rename: fix Solaris 9 bug
8819         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8820         on non-directory.  Avoid calling exit.
8821         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8822         strdup.
8823         * modules/rename-tests (Depends-on): Drop lstat.
8824         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8825         (gl_PREREQ_RENAME): Delete unused macro.
8826
8827         rename-dest-slash: fix NetBSD bug
8828         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8829         links.
8830         * modules/rename-dest-slash (Depends-on): Add same-inode.
8831
8832         rename-tests: new test, exposes several platform bugs
8833         * modules/rename-tests: New file.
8834         * tests/test-rename.h: Likewise.
8835         * tests/test-rename.c: Likewise.
8836         * doc/posix-functions/rename.texi (rename): Improve documentation,
8837         including bugs that will eventually be fixed in gnulib.
8838
8839 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8840
8841         * lib/uname.c: Include <stdlib.h>
8842         (uname): Assume version info is available.
8843
8844 2009-10-02  Jim Meyering  <meyering@redhat.com>
8845
8846         gnu-web-doc-update: correct --help output
8847         * build-aux/gnu-web-doc-update: Make --help output relevant.
8848
8849         gnu-web-doc-update: add standard options
8850         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8851
8852         gnu-web-doc-update: New module.
8853         Use this script to automatically update the on-line web documentation
8854         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8855         * modules/gnu-web-doc-update: New file, from coreutils.
8856         * build-aux/gnu-web-doc-update: New script.
8857
8858 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8859
8860         link: LoadLibrary is not needed.
8861         * lib/link.c: Use GetModuleHandle.
8862
8863 2009-10-01  Eric Blake  <ebb9@byu.net>
8864
8865         getopt: bump serial number
8866         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8867         change.
8868
8869         tests: tighten link, rmdir, and remove tests
8870         * tests/test-link.h (includes): No need to use <config.h> here.
8871         Clean up if directory hard link was created, otherwise test for
8872         trailing '.'.
8873         * tests/test-linkat.c (main): Simplify.
8874         * tests/test-remove.c (main): Enhance test for trailing '.'.
8875         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8876
8877 2009-10-01  Jim Meyering  <meyering@redhat.com>
8878
8879         maint.mk: requiring "make major" was annoying, for a "minor" release.
8880         What is intended is "stable", to contrast with alpha and beta,
8881         so require "make stable", not "make major".
8882         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8883         (get_tool_versions): Likewise.
8884         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8885
8886 2009-09-30  Ben Pfaff  <blp@gnu.org>
8887
8888         Fix broken build of replacement for Windows tmpfile().
8889         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8890         flags argument added along with the 'mkostemp' module.
8891
8892 2009-09-28  Bruno Haible  <bruno@clisp.org>
8893
8894         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8895         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8896         to 'remove_elt'.
8897         (gl_list_remove): Update.
8898         * lib/gl_list.c (gl_list_remove): Update.
8899         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8900         to 'remove_elt'.
8901         (gl_oset_remove): Update.
8902         * lib/gl_list.c (gl_oset_remove): Update.
8903         Reported by Eric Blake.
8904
8905 2009-09-28  Eric Blake  <ebb9@byu.net>
8906
8907         doc: mention yet more cygwin 1.7 status
8908         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8909         cygwin.
8910         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8911         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8912
8913         argp: fix test failure
8914         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8915         that are not upper-case.  Pass correct range to tolower.
8916
8917 2009-09-27  Jim Meyering  <meyering@redhat.com>
8918
8919         test-yesno: work around sparc-dash here-document infelicity
8920         Without this change, the literal \177 byte in a here document
8921         would make dash 0.5.5.1-3 access uninitialized memory.
8922         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8923         Instead, use a marker, "@", and filter through tr to create the desired
8924         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8925
8926 2009-09-27  Bruno Haible  <bruno@clisp.org>
8927
8928         Disable untested support for new flavours of ACLs on AIX.
8929         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8930         progress.
8931         * lib/set-mode-acl.c (qset_acl): Likewise.
8932
8933 2008-12-07  Bruno Haible  <bruno@clisp.org>
8934
8935         Add support for new flavours of ACLs on AIX. (Untested.)
8936         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8937         (file_has_acl): Add support for newer AIX.
8938         * lib/set-mode-acl.c (qset_acl): Likewise.
8939         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8940         Rainer Tammer <tammer@tammer.net>.
8941
8942 2009-09-26  Eric Blake  <ebb9@byu.net>
8943
8944         argp: fix compilation of getopt
8945         * lib/getopt.in.h (includes): Use different guard than glibc.
8946         Reported by Sergey Poznyakoff.
8947
8948         doc: mention more cygwin 1.7 status
8949         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8950         bug.
8951         * doc/posix-functions/execl.texi (execl): Likewise.
8952         * doc/posix-functions/execle.texi (execle): Likewise.
8953         * doc/posix-functions/execlp.texi (execlp): Likewise.
8954         * doc/posix-functions/execv.texi (execv): Likewise.
8955         * doc/posix-functions/execve.texi (execve): Likewise.
8956         * doc/posix-functions/execvp.texi (execvp): Likewise.
8957         * doc/glibc-functions/canonicalize_file_name.texi
8958         (canonicalize_file_name): Cygwin 1.7 now provides this.
8959         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8960         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8961         on AT_SYMLINK_NOFOLLOW.
8962
8963 2009-09-24  Eric Blake  <ebb9@byu.net>
8964
8965         test-linkat: make test more robust
8966         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8967
8968         getopt: fix inclusion guards for cygwin
8969         * modules/getopt-posix (Depends-on): Add include-next.
8970         (Makefile.am): Substitute more items in replacement header.
8971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8972         <getopt.h>.
8973         * lib/getopt.in.h (includes): Use split inclusion guard, and
8974         prefer <getopt.h> over include <unistd.h> when one is present.
8975         (option): Also override name of 'struct option'.
8976
8977         same-inode: revert prior change; it is not yet ready
8978         * NEWS: Undo mention of this change.
8979         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8980         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8981         * lib/cycle-check.c (cycle_check): Likewise.
8982         * lib/same.c (same_name): Likewise.
8983         * lib/at-func2.c (at_func2): Likewise.
8984
8985 2009-09-23  Eric Blake  <ebb9@byu.net>
8986
8987         linkat: new module
8988         * modules/linkat: New file.
8989         * lib/at-func2.c (at_func2): Likewise.
8990         * lib/linkat.c (linkat): Likewise.
8991         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8992         * lib/openat-priv.h (at_func2): Add declaration.
8993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8994         * modules/unistd (Makefile.am): Substitute them.
8995         * lib/unistd.in.h (linkat): Declare it.
8996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8997         * doc/posix-functions/linkat.texi (linkat): Likewise.
8998         * doc/posix-functions/link.texi (link): Tweak wording.
8999         * tests/test-link.c (main): Move guts...
9000         * tests/test-link.h (test_link): ...into new file.
9001         * modules/linkat-tests: New test.
9002         * tests/test-linkat.c: Likewise.
9003         * modules/link-tests (Files): Ship new file.
9004         (Depends-on): Add stdbool.
9005
9006         dirname: add library-safe mdir_name
9007         * lib/dirname.h (mdir_name): New prototype.
9008         * lib/dirname.c (dir_name): Move guts...
9009         (mdir_name): ...to new function that avoids xalloc_die.
9010
9011         fchdir: another mingw fix
9012         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9013         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9014         on mingw (where it has not yet been ported), and make it optional
9015         elsewhere.
9016         (_gl_register_fd): Use it.
9017
9018         same-inode: make SAME_INODE tri-state, to port to mingw
9019         * NEWS: Mention this change.
9020         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9021         st_ino always being 0.
9022         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9023         * lib/cycle-check.c (cycle_check): Likewise.
9024         * lib/same.c (same_name): Likewise.
9025
9026         lstat: avoid mingw compilation error
9027         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9028         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9029         lstat ourselves.
9030         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9031         was adequate.
9032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9033         the checks for lstat.
9034         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9035
9036         link: fix test failure on Solaris 9
9037         * lib/link.c (rpl_link): Don't assume link will catch bogus
9038         trailing slash on source.
9039
9040         test-symlinkat: enhance test
9041         * tests/test-readlink.c (main): Move guts...
9042         * tests/test-readlink.h (test_readlink): ...into new file.
9043         * tests/test-symlink.c (main): Move guts...
9044         * tests/test-symlink.h (test_symlink): ...into new file.
9045         * tests/test-symlinkat.c (main): Use new files for further
9046         coverage.
9047         (do_symlink, do_readlink): New helper functions.
9048         * modules/symlink-tests (Files): Ship new file.
9049         (Depends-on): Add stdbool.
9050         * modules/readlink-tests (Files): Ship new file.
9051         (Depends-on): Add stdbool.
9052         * modules/symlinkat-tests (Files): Use new files.
9053
9054 2009-09-23  Eric Blake  <ebb9@byu.net>
9055
9056         readlink: document portability issue with symlink length
9057         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9058         systems have bogus st_size on symlinks, and mention the
9059         areadlink-with-size module.
9060         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9061         * doc/posix-functions/readlink.texi (readlink): Mention the
9062         areadlink module, and ERANGE failure.
9063         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9064         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9065
9066         readlink: fix Solaris 9 bug with trailing slash
9067         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9068         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9069         * doc/posix-functions/readlink.texi (readlink): Document this.
9070         * modules/readlink-tests: New test.
9071         * tests/test-readlink.c: Likewise.
9072
9073         readlink: fix cygwin 1.5.x bug with return type
9074         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9075         * lib/unistd.in.h (readlink): Use ssize_t.
9076         * lib/readlink.c (readlink): Likewise.
9077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9078         * modules/unistd (Makefile.am): Substitute it.
9079         * lib/unistd.in.h (readlink): Declare replacement.
9080         * doc/posix-functions/readlink.texi (readlink): Document this.
9081
9082         symlink: use throughout gnulib
9083         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9084         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9085         symlink is not used.
9086         * modules/symlinkat (Depends-on): Add symlink.
9087         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9088         * modules/canonicalize-tests (Depends-on): Likewise.
9089         * modules/lstat-tests (Depends-on): Likewise.
9090         * modules/openat-tests (Depends-on): Likewise.
9091         * modules/remove-tests (Depends-on): Likewise.
9092         * modules/rmdir-tests (Depends-on): Likewise.
9093         * modules/unlink-tests (Depends-on): Likewise.
9094         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9095         * tests/test-canonicalize.c (symlink): Likewise.
9096         * tests/test-fstatat.c (symlink): Likewise.
9097         * tests/test-lstat.c (symlink): Likewise.
9098         * tests/test-remove.c (symlink): Likewise.
9099         * tests/test-rmdir.c (symlink): Likewise.
9100         * tests/test-unlink.c (symlink): Likewise.
9101         * tests/test-unlinkat.c (symlink): Likewise.
9102
9103         symlink: new module, for Solaris 9 bug
9104         * modules/symlink: New file.
9105         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9106         * lib/symlink.c: Likewise.
9107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9108         * modules/unistd (Makefile.am): Substitute them.
9109         * lib/unistd.in.h (symlink): Declare replacement.
9110         * MODULES.html.sh (File system functions): Mention it.
9111         * doc/posix-functions/symlink.texi (symlink): Likewise.
9112         * modules/symlink-tests: New test.
9113         * tests/test-symlink.c: Likewise.
9114
9115 2009-09-23  Bruno Haible  <bruno@clisp.org>
9116
9117         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9118         when needed.
9119         Test case: gnulib-tool --import --with-tests atexit inttypes.
9120         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9121
9122 2009-09-23  Bruno Haible  <bruno@clisp.org>
9123
9124         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9125         subcommand, not in a subshell.
9126
9127 2009-09-22  Eric Blake  <ebb9@byu.net>
9128
9129         unistd: sort replacement declarations
9130         * lib/unistd.in.h: Sort declarations.
9131
9132         open, openat: minor optimization
9133         * lib/open.c (open): If open succeeded, len is non-zero.
9134         * lib/openat.c (rpl_openat): Likewise.
9135
9136         link-follow: ensure correct result
9137         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9138         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9139         distinguish between possible failures.
9140
9141 2009-09-21  Eric Blake  <ebb9@byu.net>
9142
9143         fts: avoid compiler warning
9144         * lib/fts.c (dirent_inode_sort_may_be_useful)
9145         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9146
9147 2009-09-19  Bruno Haible  <bruno@clisp.org>
9148
9149         * lib/progreloc.c (canonicalize_file_name): New declaration.
9150
9151 2009-09-19  Eric Blake  <ebb9@byu.net>
9152
9153         link: fix quoting
9154         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9155
9156         openat: fix openat bugs on Solaris 9
9157         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9158         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9159         * modules/openat (Depends-on): Add open.
9160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9161         * modules/fcntl-h (Makefile.am): Substitute it.
9162         * lib/fcntl.in.h (openat): Declare replacement.
9163         * doc/posix-functions/openat.texi (openat): Document this.
9164
9165         openat: move fstatat and unlinkat into correct files
9166         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9167         compiled.
9168         * lib/openat.c (fstatat, unlinkat): Move...
9169         * lib/fstatat.c (fstatat): ...into correct files.
9170         * lib/unlinkat.c (unlinkat): Likewise.
9171
9172         openat: fix unlinkat bugs on Solaris 9
9173         * lib/unlinkat.c (unlinkat): New file.
9174         * modules/openat (Depends-on): Add unlink.
9175         (Files): Distribute it.
9176         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9177         trailing slash behavior is broken.
9178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9179         * modules/unistd (Makefile.am): Substitute it.
9180         * lib/unistd.in.h (unlinkat): Declare replacement.
9181         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9182
9183         openat: fix fstatat bugs on Solaris 9
9184         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9185         stat.
9186         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9187
9188         test-unlinkat: enhance test, to expose Solaris 9 bug
9189         * tests/test-unlink.c (main): Factor guts...
9190         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9191         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9192         * tests/test-rmdir.c (main): Adjust caller.
9193         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9194         (unlinker): New helper function.
9195         (rmdirat): Enhance check.
9196         * modules/rmdir-tests (Depends-on): Add stdbool.
9197         * modules/unlink-tests (Depends-on): Likewise.
9198         (Files): Add test-unlink.h.
9199         * modules/openat-tests (Files): Likewise.
9200         (Depends-on): Add unlinkdir.
9201
9202         test-fstatat: new test, to expose Solaris 9 bugs
9203         * tests/test-stat.c (main): Factor guts...
9204         * tests/test-stat.h (test_stat_func): ...into new file.
9205         * tests/test-lstat.c (main): Factor guts...
9206         * tests/test-lstat.h (test_lstat_func): ...into new file.
9207         * tests/test-fstatat.c: New file.
9208         * modules/stat-tests (Files): Add test-stat.h.
9209         * modules/lstat-tests (Files): Add test-lstat.h.
9210         (Depends-on): Add stdbool.
9211         * modules/openat-tests (Depends-on): Add pathmax.
9212         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9213         (Makefile.am): Run new test.
9214
9215         remove: new module, for mingw and Solaris 9 bugs
9216         * modules/remove: New file.
9217         * lib/remove.c: Likewise.
9218         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9220         * modules/stdio (Makefile.am): Use them.
9221         * lib/stdio.in.h (remove): Declare replacement.
9222         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9223         * doc/posix-functions/remove.texi (remove): Likewise.
9224         * modules/remove-tests: New test.
9225         * tests/test-remove.c: Likewise.
9226
9227         unlink: new module, for Solaris 9 bug
9228         * modules/unlink: New file.
9229         * lib/unlink.c: Likewise.
9230         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9232         * modules/unistd (Makefile.am): Use them.
9233         * lib/unistd.in.h (stat): Declare replacement.
9234         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9235         * doc/posix-functions/unlink.texi (unlink): Likewise.
9236         * modules/unlink-tests: New test.
9237         * tests/test-unlink.c: Likewise.
9238
9239         lstat: fix Solaris 9 bug
9240         * lib/lstat.c (lstat): Also check for trailing slash on
9241         non-symlink, non-directories.  Use stat module to simplify logic.
9242         * doc/posix-functions/lstat.texi (lstat): Document it.
9243         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9244         (configure.ac): Check for symlink.
9245         * tests/test-lstat.c (main): Add more tests.
9246
9247         stat: add as dependency to other modules
9248         * modules/chown (Depends-on): Add stat.
9249         * modules/euidaccess (Depends-on): Likewise.
9250         * modules/fchdir (Depends-on): Likewise.
9251         * modules/isdir (Depends-on): Likewise.
9252         * modules/link (Depends-on): Likewise.
9253         * modules/lstat (Depends-on): Likewise.
9254         * modules/mkdir-p (Depends-on): Likewise.
9255         * modules/modechange (Depends-on): Likewise.
9256         * modules/open (Depends-on): Likewise.
9257         * modules/readlink (Depends-on): Likewise.
9258         * modules/same (Depends-on): Likewise.
9259
9260         stat: fix Solaris 9 bug
9261         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9262         slash.
9263         * lib/stat.c (rpl_stat): Work around it.
9264         * doc/posix-functions/stat.texi (stat): Update documentation.
9265
9266         stat: new module, for mingw bug
9267         * modules/stat: New file.
9268         * lib/stat.c: Likewise.
9269         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9270         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9271         * modules/sys_stat (Makefile.am): Use them.
9272         * lib/sys_stat.in.h (stat): Declare replacement.
9273         * lib/openat.c (fstatat): Deal with lstat and stat being function
9274         macros.
9275         * modules/openat (Depends-on): Add inline.
9276         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9277         * doc/posix-functions/stat.texi (stat): Likewise.
9278         * modules/stat-tests: New test.
9279         * tests/test-stat.c: Likewise.
9280
9281 2009-09-19  Jim Meyering  <meyering@redhat.com>
9282
9283         syntax-check: detect unnecessary inclusion of canonicalize.h
9284         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9285
9286 2009-09-19  Eric Blake  <ebb9@byu.net>
9287
9288         canonicalize-lgpl: adjust clients to use correct header
9289         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9290         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9291         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9292         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9293         * lib/progreloc.c (includes): Likewise.
9294
9295 2009-09-19  Jim Meyering  <meyering@redhat.com>
9296
9297         test-posixtm.c: correct a comment
9298         * tests/test-posixtm.c: Correct first-line comment.
9299         Spotted by Eric Blake.
9300
9301 2009-09-16  Jim Meyering  <meyering@redhat.com>
9302
9303         posixtm-tests: make T const-correct; add a test case
9304         * tests/test-posixtm.c (T): Declare const.
9305         Add a test for -(2^31+1).
9306         Remove useless can-succeed-only-in-2002 test.
9307
9308         posixtm-tests: adjust the sole failing test
9309         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9310         expected output matches what mktime now produces.  Cross-checked via
9311         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9312
9313         posixtm: move #ifdef'd tests into a new module
9314         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9315         * tests/test-posixtm.c: ... this new file.
9316         * modules/posixtm-tests: New module.
9317
9318 2009-09-19  Eric Blake  <ebb9@byu.net>
9319
9320         openat: simplify use of at-func.c
9321         * lib/at-func.c (includes): Include prerequisites here, to
9322         simplify requirements on client files.
9323         * lib/openat-priv.h: Add double-inclusion guard.
9324         * lib/faccessat.c (includes): Simplify.
9325         * lib/fchmodat.c (includes): Likewise.
9326         * lib/fchownat.c (includes): Likewise.
9327         * lib/mkdirat.c (includes): Likewise.
9328         * lib/mkfifoat.c (includes): Likewise.
9329         * lib/symlinkat.c (includes): Likewise.
9330
9331         openat: allow return of fd 0
9332         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9333         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9334         unistd-safer.
9335         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9336         <fcntl.h>; this module does not leak fds.
9337         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9338         must be allowed to return 0, leaving openat_safer to add the
9339         safety.
9340         (openat_permissive): Avoid writing to just-opened fd 2 if
9341         restoring the current directory fails.
9342         * lib/openat-die.c (openat_restore_fail): Add comment.
9343         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9344         (save_cwd): Guarantee safe fd, but without use of open_safer.
9345         * tests/test-openat.c: New test.
9346         * modules/openat-tests (Files, Makefile.am): Distribute and build
9347         new file.
9348
9349         relocatable-prog-wrapper: fix build
9350         * modules/relocatable-prog-wrapper (Files): Update name of
9351         canonicalize m4 file, broken on 2009-09-17.
9352         Reported by emad hajjar <aleppos@hotmail.com>.
9353
9354 2009-09-19  Bruno Haible  <bruno@clisp.org>
9355
9356         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9357         * lib/safe-alloc.c: Likewise.
9358         Reported by Ian Beckwith <ianb@erislabs.net>.
9359
9360 2009-09-18  Bruno Haible  <bruno@clisp.org>
9361
9362         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9363         Reported by <erobles@sensacd.com.mx>.
9364
9365 2009-09-17  Eric Blake  <ebb9@byu.net>
9366
9367         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9368         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9369         slashes when checking if last component is missing.
9370         * tests/test-canonicalize.c (main): Test this.
9371
9372         canonicalize, canonicalize-lgpl: honor // if distinct from /
9373         * modules/canonicalize (Files): Add double-slash-root.m4.
9374         * modules/canonicalize-lgpl (Files): Likewise.
9375         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9376         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9377         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9378         fallback definition.
9379         (canonicalize_filename_mode): Use it to protect //.
9380         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9381         (__realpath): Likewise.
9382         * tests/test-canonicalize.c (main): Test this.
9383         * tests/test-canonicalize-lgpl.c (main): Likewise.
9384         * modules/canonicalize-tests (Depends-on): Add same-inode.
9385         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9386
9387         canonicalize-lgpl: fix glibc bug with trailing slash
9388         * m4/canonicalize-lgpl.m4: Move contents...
9389         * m4/canonicalize.m4: ...here.
9390         (gl_CANONICALIZE_LGPL): Factor realpath check...
9391         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9392         glibc 2.3.5 bug, fixed 2005-04-27.
9393         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9394         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9395         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9396         * modules/canonicalize-lgpl (Files): Manage file rename.
9397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9398         * modules/stdlib (Makefile.am): Substitute witness.
9399         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9400         is needed.
9401         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9402         replacement is required.
9403         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9404         * doc/glibc-functions/canonicalize_file_name.texi
9405         (canonicalize_file_name): Document this.
9406         * doc/posix-functions/realpath.texi (realpath): Likewise.
9407
9408         canonicalize-lgpl: reject non-directory with trailing slash
9409         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9410         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9411         catches failures in glibc 2.3.5.
9412         * tests/test-canonicalize.c (main): Likewise.
9413
9414         canonicalize-lgpl: use native realpath if it works
9415         * lib/canonicalize-lgpl.c (realpath): Guard with
9416         FUNC_REALPATH_WORKS.
9417         * lib/stdlib.in.h (realpath): Make declaration optional based on
9418         HAVE_REALPATH.
9419         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9420         native realpath works.
9421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9422         * modules/stdlib (Makefile.am): Substitute witness.
9423
9424         canonicalize, canonicalize-lgpl: use <stdlib.h>
9425         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9426         (Include): Mention <stdlib.h>.
9427         (configure.ac): Mention functions we provide.
9428         * modules/canonicalize (configure.ac): Likewise.
9429         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9430         realpath if canonicalize_file_name is missing.
9431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9432         * modules/stdlib (Makefile.am): Substitute witnesses.
9433         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9434         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9435         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9436         * NEWS: Document this.
9437         * doc/glibc-functions/canonicalize_file_name.texi
9438         (canonicalize_file_name): Likewise.
9439         * doc/posix-functions/realpath.texi (realpath): Likewise.
9440         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9441
9442         test-canonicalize: consolidate into single C program
9443         * tests/test-canonicalize.sh: Delete; move setup into...
9444         * tests/test-canonicalize.c (main): ...the program, making it
9445         easier to run in debugger.  Add some tests.
9446         * modules/canonicalize-tests (Files): Remove unused file.
9447         (Depends-on): Add progname.
9448         (configure.ac, Makefile.am): Simplify.
9449
9450         test-canonicalize-lgpl: consolidate into single C program
9451         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9452         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9453         easier to run in debugger.  Add some tests.
9454         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9455         (configure.ac, Makefile.am): Simplify.
9456
9457         canonicalize: avoid resolvepath
9458         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9459         unnecessary checks.
9460         * lib/canonicalize.c (includes): Simplify.
9461         (canonicalize_file_name): Drop resolvepath implementation.
9462         * modules/canonicalize (Depends-on): Drop filenamecat.
9463
9464         canonicalize: don't lose errno
9465         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9466         over calls to free.
9467
9468         canonicalize: simplify errno handling
9469         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9470         assignment.
9471
9472         canonicalize, canonicalize-lgpl: update module dependencies
9473         * modules/canonicalize (Depends-on): Add extensions, lstat,
9474         pathmax, stdlib.
9475         (Files): Drop pathmax.h.
9476         (configure.ac): Adjust macro name.
9477         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9478         lstat, stdlib, sys_stat.
9479         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9480         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9481         extensions.
9482         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9483         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9484         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9485         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9486         declaration, if available.
9487         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9488         we can rely on the readlink module.
9489         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9490         (includes): Use <unistd.h> unconditionally.
9491
9492 2009-09-17  Eric Blake  <ebb9@byu.net>
9493
9494         maint: make Include sections of modules consistent
9495         * modules/alloca: Use only header name; no need to list #include.
9496         * modules/alloca-opt: Likewise.
9497         * modules/arpa_inet: Likewise.
9498         * modules/canon-host: Likewise.
9499         * modules/configmake: Likewise.
9500         * modules/dirent: Likewise.
9501         * modules/eealloc: Likewise.
9502         * modules/environ: Likewise.
9503         * modules/fchdir: Likewise.
9504         * modules/fcntl: Likewise.
9505         * modules/fcntl-h: Likewise.
9506         * modules/gethrxtime: Likewise.
9507         * modules/gettime: Likewise.
9508         * modules/ignore-value: Likewise.
9509         * modules/inet_ntop: Likewise.
9510         * modules/inet_pton: Likewise.
9511         * modules/inttypes: Likewise.
9512         * modules/isnand-nolibm: Likewise.
9513         * modules/isnanf-nolibm: Likewise.
9514         * modules/mbchar: Likewise.
9515         * modules/mbfile: Likewise.
9516         * modules/mbiter: Likewise.
9517         * modules/mbuiter: Likewise.
9518         * modules/netdb: Likewise.
9519         * modules/netinet_in: Likewise.
9520         * modules/nproc: Likewise.
9521         * modules/pagealign_alloc: Likewise.
9522         * modules/poll: Likewise.
9523         * modules/printf-frexp: Likewise.
9524         * modules/pthread: Likewise.
9525         * modules/putenv: Likewise.
9526         * modules/random_r: Likewise.
9527         * modules/relocatable-prog: Likewise.
9528         * modules/search: Likewise.
9529         * modules/select: Likewise.
9530         * modules/selinux-h: Likewise.
9531         * modules/settime: Likewise.
9532         * modules/signal: Likewise.
9533         * modules/size_max: Likewise.
9534         * modules/socklen: Likewise.
9535         * modules/ssize_t: Likewise.
9536         * modules/stdarg: Likewise.
9537         * modules/stdbool: Likewise.
9538         * modules/stddef: Likewise.
9539         * modules/stdint: Likewise.
9540         * modules/stdio: Likewise.
9541         * modules/stdlib: Likewise.
9542         * modules/string: Likewise.
9543         * modules/strings: Likewise.
9544         * modules/sys_file: Likewise.
9545         * modules/sys_ioctl: Likewise.
9546         * modules/sys_select: Likewise.
9547         * modules/sys_socket: Likewise.
9548         * modules/sys_stat: Likewise.
9549         * modules/sys_time: Likewise.
9550         * modules/sys_times: Likewise.
9551         * modules/sys_utsname: Likewise.
9552         * modules/sys_wait: Likewise.
9553         * modules/sysexits: Likewise.
9554         * modules/time: Likewise.
9555         * modules/times: Likewise.
9556         * modules/tmpfile: Likewise.
9557         * modules/trim: Likewise.
9558         * modules/unistd: Likewise.
9559         * modules/wchar: Likewise.
9560         * modules/wctype: Likewise.
9561
9562 2009-09-17  Bruno Haible  <bruno@clisp.org>
9563
9564         Make getdate.y compile on QNX and NetBSD 5 / i386.
9565         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9566         TIME_T_FITS_IN_LONG_INT.
9567         * lib/getdate.y (long_time_t): New type.
9568         (relative_time): Change type of 'seconds' field to long_time_t.
9569         (get_date): Update types of local variables. Check against overflow
9570         during conversion from long_time_t to time_t.
9571         Reported by Matt Kraai <kraai@ftbfs.org>
9572         and Hasso Tepper <hasso@netbsd.org>.
9573
9574 2009-09-17  Bruno Haible  <bruno@clisp.org>
9575
9576         * modules/COPYING: Update copyright years.
9577         * modules/README: Likeiwse.
9578         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9579         Reported by Ian Beckwith <ianb@erislabs.net>.
9580
9581 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9582
9583         * users.txt: Update references for gnuit package.
9584
9585 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9586
9587         * m4/getdelim.m4: Fix typo in copyright line.
9588
9589 2009-09-17  Bruno Haible  <bruno@clisp.org>
9590
9591         * lib/atoll.c: Use the standard header with GPL copyright.
9592         * lib/argz.in.h: Likewise.
9593         * lib/glob.c: Likewise.
9594         * lib/glob-libc.h: Likewise.
9595         * lib/random_r.c: Likewise.
9596         * lib/siglist.h: Likewise.
9597         * lib/strsignal.c: Likewise.
9598         Reported by Ian Beckwith <ianb@erislabs.net>.
9599
9600 2009-09-17  Eric Blake  <ebb9@byu.net>
9601
9602         rmdir: ensure correct dependency order
9603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9604
9605 2009-09-17  Bruno Haible  <bruno@clisp.org>
9606
9607         Disable assertion that fails on NetBSD 5 / i386.
9608         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9609         Reported by Sam Steingold <sds@gnu.org>
9610         and Hasso Tepper <hasso@netbsd.org>.
9611
9612 2009-09-16  Eric Blake  <ebb9@byu.net>
9613
9614         unlinkdir: port to mingw
9615         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9616         on which no one can unlink a directory.
9617
9618         stdlib: sort witness names
9619         * modules/stdlib (Makefile.am): Sort replacements.
9620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9621         * lib/stdlib.in.h: Likewise.
9622
9623         parse-duration-tests: avoid link failure
9624         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9625         LIBINTL.
9626         Reported by Tom G. Christensen.
9627
9628         openat-tests: ensure unlinkat behaves like rmdir
9629         * tests/test-rmdir.c (main): Factor guts...
9630         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9631         * modules/rmdir-tests (Files): Ship new file.
9632         * modules/openat-tests: New test.
9633         * tests/test-unlinkat.c: Likewise.
9634
9635         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9636         * modules/rmdir-errno (Status, Notice): Now obsolete.
9637
9638         rmdir: work around cygwin 1.5.x and mingw bugs
9639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9640         * lib/rmdir.c (rmdir): Work around it.
9641         * modules/rmdir (Status, Notice): No longer obsolete.
9642         (Files): Add dos.m4.
9643         (Depends-on): Add unistd.
9644         (configure.ac): Set witnesses.
9645         (License): Relax to LGPLv2+.
9646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9647         * modules/unistd (Makefile.am): Substitute witnesses.
9648         * lib/unistd.in.h (rmdir): Declare replacement.
9649         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9650         * modules/rmdir-tests: New tests.
9651         * tests/test-rmdir.c: Likewise.
9652
9653 2009-09-15  Eric Blake  <ebb9@byu.net>
9654
9655         fchdir: improve use of replacement functions
9656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9659         REPLACE_CLOSEDIR.
9660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9661         * modules/sys_stat (Makefile.am): Substitute correct witness.
9662         * modules/dirent (Makefile.am): Likewise.
9663         * modules/unistd (Makefile.am): Likewise.
9664         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9665         * lib/unistd.in.h (dup): Likewise.
9666         * lib/sys_stat.in.h (fstat): Likewise.
9667
9668         maint: ignore gnulib-tool temp files
9669         * .gitignore: Ignore files created during gnulib-tool --test.
9670
9671 2009-09-13  Jim Meyering  <meyering@redhat.com>
9672
9673         posixtm: don't reject a time that specify "60" as the number of seconds
9674         * lib/posixtm.c (posixtime): The code to reject invalid dates
9675         would also reject a time specified with the .60 suffix.
9676         But POSIX allows that, in order to accommodate leap seconds.
9677         So don't reject it.
9678         (main): Adjust tests accordingly.
9679         * modules/posixtm (Depends-on): Add stpcpy.
9680
9681 2009-09-11  Jim Meyering  <meyering@redhat.com>
9682
9683         announce-gen: include [$release_type] in emitted Subject:
9684         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9685         e.g., [stable] in the emitted Subject: line.
9686
9687 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9688
9689         Remove obsolete macros from several modules.
9690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9691         obsolete Autoconf macros with their modern counterparts.
9692         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9693         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9695         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9696         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9699         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9700         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9701         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9702         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9704         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9705         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9706         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9707         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9708         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9709         * m4/time_r.m4 (gl_TIME_R): Likewise.
9710         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9711         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9712         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9713
9714         Fix copyright header in build-aux scripts.
9715         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9716         recommendation.
9717         * build-aux/ncftpput-ftp: Likewise.
9718         * build-aux/update-copyright: Likewise.
9719
9720 2009-09-09  Eric Blake  <ebb9@byu.net>
9721
9722         test-link: allow Linux choice of errno
9723         * tests/test-link.c (main): Relax test for alternate error.
9724
9725         strndup: fix improper m4 caching
9726         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9727         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9728         (gl_PREREQ_STRNDUP): Delete.
9729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9730         * modules/string (Makefile.am): Substitute it.
9731         * lib/string.in.h (strndup): Modernize prototype.
9732
9733         getcwd: port to mingw
9734         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9735         different from the POSIX assumptions made throughout the getcwd
9736         module; fortunately, the mingw getcwd does not need replacement.
9737         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9738         * modules/getcwd-tests: New test.
9739         * tests/test-getcwd.c: Likewise.
9740
9741         link: fix platform bugs
9742         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9743         * lib/link.c (link): Work around them.  Fix related mingw bug.
9744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9745         * modules/unistd (Makefile.am): Substitute it.
9746         * lib/unistd.in.h (link): Declare replacement.
9747         * doc/posix-functions/link.texi (link): Document this.
9748         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9749
9750         test-link: consolidate into single C program, test more cases
9751         * tests/test-link.sh: Delete.
9752         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9753         at least Cygwin and Solaris.
9754         * modules/link-tests (Files): Remove unused file.
9755         (Depends-on): Add errno, sys_stat.
9756         (Makefile.am): Simplify.
9757
9758 2009-09-08  Bruno Haible  <bruno@clisp.org>
9759
9760         Work around towlower, towupper bug on mingw.
9761         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9762         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9763         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9764         * doc/posix-functions/towupper.texi: Likewise.
9765         Reported by Eric Blake.
9766
9767 2009-09-08  Jim Meyering  <meyering@redhat.com>
9768
9769         build: don't try to run autoheader if we don't use it
9770         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9771         is not used in configure.ac.
9772
9773 2009-09-08  Eric Blake  <ebb9@byu.net>
9774
9775         euidaccess: fix compilation error
9776         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9777
9778         rawmemchr: relax license
9779         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9780         okay.
9781         Reported by Jim Meyering.
9782
9783         mkfifoat: new module
9784         * modules/mkfifoat: New file.
9785         * lib/mkfifoat.c: Likewise.
9786         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9788         * modules/sys_stat (Makefile.am): Use them.
9789         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9790         * MODULES.html.sh (File system functions): Mention module.
9791         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9792         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9793         * modules/mkfifoat-tests: New test.
9794         * tests/test-mkfifoat.c: Likewise.
9795
9796         strchrnul: relax license
9797         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9798         okay.
9799         Reported by Jim Meyering.
9800
9801 2009-09-08  Eric Blake  <ebb9@byu.net>
9802
9803         fstatat: fix compilation on Solaris
9804         * lib/fstatat.c (includes): Add fcntl.h.
9805         Reported by Pádraig Brady.
9806
9807 2009-09-07  Eric Blake  <ebb9@byu.net>
9808
9809         rename: modernize replacement
9810         * modules/rename (Depends-on): Add stdio.
9811         (configure.ac): Declare witness.
9812         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9813         stdio take care of replacement.
9814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9815         * modules/stdio (Makefile.am): Substitute them.
9816         * lib/stdio.in.h (rename): Declare replacement.
9817         * lib/rename.c (includes): Allow cross-compilation to non-windows
9818         machines.
9819         * doc/posix-functions/rename.texi (rename): Improve
9820         documentation.
9821
9822         stdio: sort witness names
9823         * modules/stdio (Makefile.am): Sort replacements.
9824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9825         * lib/stdio.in.h: Likewise.
9826
9827         getcwd: minor cleanups
9828         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9829         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9830
9831         openat: provide more convenience names
9832         * modules/faccessat (configure.ac): Add C witness.
9833         * lib/unistd.in.h (readlinkat): Fix typo.
9834         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9835         convenience wrappers.
9836         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9837         wrappers in syntax checks.
9838
9839 2009-09-06  Eric Blake  <ebb9@byu.net>
9840
9841         doc: fix comments in recent patches
9842         * lib/faccessat.c: Mention correct function.
9843         * lib/fchmodat.c: Likewise.
9844         * lib/fchownat.c: Likewise.
9845         * lib/symlinkat.c: Likewise.
9846         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9847         constants.
9848
9849         faccessat, symlinkat: continue cleanup of previous patch
9850         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9851         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9852         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9854         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9855         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9856         set.
9857
9858 2009-09-06  Bruno Haible  <bruno@clisp.org>
9859
9860         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9861         (fstatat): Declare if GNULIB_FSTATAT is set.
9862         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9863         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9864         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9865         * modules/fcntl-h (Files): Remove m4/openat.m4.
9866         * modules/sys_stat (Files): Remove m4/openat.m4.
9867         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9868         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9869         * modules/unistd (Files): Remove m4/openat.m4.
9870         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9871         GNULIB_OPENAT.
9872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9873         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9875         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9876         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9877         gl_OPENAT_DEFAULTS.
9878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9879         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9880         Don't require gl_OPENAT_DEFAULTS.
9881         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9882         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9883         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9884         (gl_OPENAT_DEFAULTS): Remove macro.
9885
9886 2009-09-06  Bruno Haible  <bruno@clisp.org>
9887
9888         * modules/openat (configure.ac): Remove unneeded witness.
9889
9890 2009-09-06  Bruno Haible  <bruno@clisp.org>
9891
9892         Set errno to ENOSYS when a function is entirely unsupported.
9893         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9894         EOPNOTSUPP.
9895         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9896         * modules/chown (Depends-on): Remove errno.
9897
9898 2009-09-06  Bruno Haible  <bruno@clisp.org>
9899
9900         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9901
9902 2009-09-06  Bruno Haible  <bruno@clisp.org>
9903
9904         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9905
9906 2009-09-06  Ben Pfaff  <blp@gnu.org>
9907             Bruno Haible  <bruno@clisp.org>
9908
9909         Work around a glibc bug in strtok_r.
9910         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9911         Undefine if UNDEFINE_STRTOK_R is set.
9912         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9914         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9915         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9916         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9917         UNDEFINE_STRTOK_R.
9918         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9919
9920 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9921
9922         exclude: minor fix
9923         * lib/exclude.c: Include wctype.h
9924
9925 2009-09-06  Akim Demaille  <demaille@gostai.com>
9926
9927         bootstrap: improve error message
9928         * build-aux/bootstrap (find_tool): Upon failure, report the list
9929         of candidates.
9930         Honor the initial value of the envvar.
9931
9932 2009-09-05  Eric Blake  <ebb9@byu.net>
9933
9934         symlinkat: new module
9935         * modules/symlinkat: New file.
9936         * lib/symlinkat.c: Likewise.
9937         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9939         * modules/unistd (Makefile.am): Use them.
9940         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9941         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9942         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9943         * MODULES.html.sh (File system functions): Mention module.
9944         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9945         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9946         * modules/symlinkat-tests: New test.
9947         * tests/test-symlinkat.c: Likewise.
9948
9949         test-openat-safer: add more checks
9950         * tests/test-openat-safer.c (main): Check more code paths.
9951
9952 2009-09-05  Jim Meyering  <meyering@redhat.com>
9953
9954         syntax-check: detect unnecessary inclusion of openat.h
9955         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9956
9957 2009-09-05  Bruno Haible  <bruno@clisp.org>
9958
9959         Support towlower, towupper.
9960         * doc/posix-functions/towlower.texi: Mention module wctype.
9961         * doc/posix-functions/towupper.texi: Likewise.
9962         * lib/wctype.in.h (towlower, towupper): New functions.
9963         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9964         (ASSERT): New macro.
9965         (e): New variable.
9966         (main): Test also towlower, towupper. Test WEOF argument.
9967         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9968
9969 2009-09-05  Bruno Haible  <bruno@clisp.org>
9970
9971         Fix conversion behaviour when the input is invalid.
9972         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9973         mark occurring in first pass of indirect conversion.
9974         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9975         input.
9976         Found by clang's static analyzer.
9977
9978 2009-09-05  Bruno Haible  <bruno@clisp.org>
9979
9980         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9981         where direct conversion is possible.
9982
9983 2009-09-04  Eric Blake  <ebb9@byu.net>
9984
9985         openat: fail with ENOENT on empty name
9986         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9987         buffer.
9988
9989         link-follow: fix logic bug in prior patch
9990         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9991         reversed sense of yes and no in prior patch.  Avoid confusing
9992         compilation failure with desired semantics.
9993
9994         link-follow: accomodate mingw and cross-compilation
9995         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9996         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9997         cross-compilation results to -1, to make linkat easier to
9998         implement when cross-compiling.  Trivially support mingw.
9999         * modules/link-follow (configure.ac): Call new name.
10000         * NEWS: Mention this.
10001
10002 2009-09-03  Eric Blake  <ebb9@byu.net>
10003
10004         faccessat: compile replacement
10005         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10006         needed.
10007
10008         fts: fix compilation error
10009         * lib/fts.c (includes): Re-add "openat.h", for
10010         openat_needs_fchdir.
10011
10012         faccessat: new module
10013         * modules/faccessat: New file.
10014         * lib/faccessat.c: Likewise.
10015         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10017         * modules/unistd (Makefile.am): Use it.
10018         * lib/unistd.in.h (faccessat): Declare it.
10019         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10020         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10021         * MODULES.html.sh (File system functions): Mention it.
10022         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10023         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10024
10025         euidaccess: prefer POSIX over non-standard implementation
10026         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10027         * lib/euidaccess.c (euidaccess): Use it if available.
10028
10029         openat: make template easier to use
10030         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10031         AT_FUNC_F2 to be undefined.
10032         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10033         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10034         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10035         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10036         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10037         Likewise.
10038         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10039         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10040         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10041         Likewise.
10042
10043         openat: declare in POSIX headers
10044         * NEWS: Mention this.
10045         * modules/openat (configure.ac): Declare witnesses.
10046         (Depends-on): Add fcntl-h, sys_stat, unistd.
10047         (Include): Mention correct headers.
10048         * modules/fcntl-h (Depends-on): Add link-warning.
10049         (Files): Add openat.m4.
10050         (Makefile.am): Substitute witnesses.
10051         * modules/sys_stat (Files, Makefile.am): Likewise.
10052         * modules/unistd (Files, Makefile.am): Likewise.
10053         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10054         (gl_OPENAT_DEFAULTS): New macro.
10055         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10058         (SYS_STAT_H): Remove unused variable.
10059         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10060         * lib/fcntl--.h (includes): Remove unneeded header.
10061         * lib/openat-safer.c (includes): Likewise.
10062         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10063         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10064         appropriate headers.
10065         (__OPENAT_PREFIX): Delete.
10066         * lib/fcntl.in.h (openat): Provide declaration.
10067         (AT_FDCWD): Fix Solaris bug.
10068         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10069         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10070         * lib/fchmodat.c (includes):  Adjust to find declaration.
10071         * lib/fchownat.c (includes): Likewise.
10072         * lib/mkdirat.c (includes): Likewise.
10073         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10074         still visible.
10075
10076 2009-09-02  Eric Blake  <ebb9@byu.net>
10077
10078         errno: use consistently
10079         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10080         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10081         * lib/canonicalize.c (ELOOP): Likewise.
10082         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10083         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10084         * lib/lchown.c (EOPNOTSUPP): Likewise.
10085         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10086         * lib/savewd.c (ESTALE): Likewise.
10087         * lib/settime.c (ENOSYS): Likewise.
10088         * lib/utimens.c (ENOSYS): Likewise.
10089         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10090         * lib/chdir-safer.c (ELOOP): Likewise.
10091         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10092         * modules/c-stack (Depends-on): Add errno.
10093         * modules/canonicalize (Depends-on): Likewise.
10094         * modules/chdir-safer (Depends-on): Likewise.
10095         * modules/fdopendir (Depends-on): Likewise.
10096         * modules/inet_ntop (Depends-on): Likewise.
10097         * modules/inet_pton (Depends-on): Likewise.
10098         * modules/lchown (Depends-on): Likewise.
10099         * modules/openat (Depends-on): Likewise.
10100         * modules/savewd (Depends-on): Likewise.
10101         * modules/settime (Depends-on): Likewise.
10102         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10103
10104         fts: avoid leaking fds
10105         * modules/fts (Depends-on): Add cloexec.
10106         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10107         flag.
10108
10109         fts: make directory fds more robust
10110         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10111         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10112
10113         backupfile, chdir-long, fts, savedir: make safer
10114         * lib/backupfile.c (includes): Use "dirent--.h", since
10115         numbered_backup can write to stderr during readdir.
10116         * lib/savedir.c (includes): Likewise.
10117         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10118         emulation can write to stderr on failure.
10119         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10120         * lib/getcwd.c: Document why opendir_safer is unused.
10121         * lib/glob.c: Likewise.
10122         * lib/scandir.c: Likewise.
10123         * lib/openat-proc.c: Likewise, for open_safer.
10124         * modules/backupfile (Depends-on): Add dirent-safer.
10125         * modules/savedir (Depends-on): Likewise.
10126         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10127         * modules/chdir-long (Depends-on): Add openat-safer.
10128
10129         openat-safer: new module
10130         * modules/openat-safer: New file.
10131         * lib/openat-safer.c: Likewise.
10132         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10133         * lib/fcntl-safer.h (openat_safer): Declare.
10134         * lib/fcntl--.h (openat): Override.
10135         * MODULES.html.sh (File descriptor based I/O): Mention it.
10136         * lib/openat.h: Add double-inclusion guards.
10137         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10138         "fcntl--.h", so we can implement openat.
10139         * modules/openat-safer-tests: New test.
10140         * tests/test-openat-safer.c: New file.
10141
10142         dirent-safer: new module
10143         * modules/dirent-safer: New file.
10144         * lib/dirent--.h: Likewise.
10145         * lib/dirent-safer.h: Likewise.
10146         * lib/opendir-safer.c: Likewise.
10147         * m4/dirent-safer.m4: Likewise.
10148         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10149         * modules/dirent-safer-tests: New test.
10150         * tests/test-dirent-safer.c: New file.
10151         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10152
10153         fdopendir: optimize on mingw
10154         * lib/unistd.in.h (_gl_directory_name): New prototype.
10155         * lib/fchdir.c (_gl_directory_name): Implement it.
10156         (fchdir): Use it to simplify implementation.
10157         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10158         fchdir, when available, to avoid calling [f]chdir().
10159
10160         fdopendir: split into its own module
10161         * lib/openat.c (fdopendir): Move...
10162         * lib/fdopendir.c: ...into new file.
10163         * modules/fdopendir: New module.
10164         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10165         * modules/openat (Depends-on): Add fdopendir.
10166         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10167         fdopendir here.
10168         * modules/savedir (Depends-on): Only need fdopendir, not full
10169         openat.
10170         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10171         * lib/openat.h (fdopendir): Drop prototype.
10172         * lib/dirent.in.h (fdopendir): Provide prototype.
10173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10174         * modules/dirent (Makefile.am): Substitute them.
10175         * MODULES.html.sh (File system functions): Mention it.
10176         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10177         * modules/fdopendir-tests: New file.
10178         * tests/test-fdopendir.c: Likewise.
10179
10180         fchdir: use more consistent macro convention
10181         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10182         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10183         REPLACE_FCHDIR, rather than relying on config.h macros.
10184         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10185         inside a single make-time REPLACE_FCHDIR block, rather than using
10186         the config.h FCHDIR_REPLACEMENT.
10187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10188         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10189         Manage fstat replacement.
10190         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10191         REPLACE_FCHDIR.
10192         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10193         (Makefile.am): Substitute REPLACE_FCHDIR.
10194         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10195         FCHDIR_REPLACEMENT.
10196         * lib/dup-safer.c (dup_safer): Likewise.
10197         * lib/dup2.c (rpl_dup2): Likewise.
10198         * lib/dup3.c (rpl_dup3): Likewise.
10199         * lib/open.c (rpl_open): Likewise.
10200
10201         fchdir: simplify error handling, and support dup3
10202         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10203         stdbool, malloc-posix, realloc-posix.
10204         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10205         (ensure_dirs_slot): Return false on allocation failure.
10206         (rpl_dup2): Delete.
10207         (_gl_register_dup): New function.
10208         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10209         (_gl_register_fd): Close fd on allocation failure.
10210         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10211         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10212         prototype.
10213         (rpl_dup2_fchdir): Delete prototype.
10214         * lib/open.c (open): Update caller.
10215         * lib/dup2.c (dup2): Track fchdir metadata.
10216         * lib/dup3.c (dup3): Likewise.
10217         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10219
10220 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10221
10222         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10223         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10224         don't pass arguments to AC_OUTPUT.
10225
10226 2009-09-02  Bruno Haible  <bruno@clisp.org>
10227
10228         * modules/mkdtemp (License): Relicense under LGPLv2+.
10229         Reported by Paolo Bonzini.
10230
10231 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10232
10233         Replace uses of obsolete autoconf macros in Jim's modules.
10234         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10235         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10236         can evoke a warning from autoconf when run with -Wobsolete
10237         enabled.  They were declared obsolete for good reasons (see
10238         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10239         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10240         should not continue using the deprecated macros.
10241         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10242         obsolete Autoconf macros with modern counterparts.
10243         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10244         * m4/dos.m4 (gl_AC_DOS): Likewise.
10245         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10247         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10248         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10249         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10251         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10252         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10254         Likewise.
10255         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10256         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10257         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10258         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10259         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10260         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10261
10262 2009-09-01  Eric Blake  <ebb9@byu.net>
10263
10264         fchdir: fix off-by-one bug in previous patch
10265         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10266         (_gl_unregister_fd): Delete useless if.
10267
10268 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10269
10270         maint.mk: sort the list of syntax-check rules
10271         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10272         easier to get a sense of progress when the rules are run sequentially
10273         and take a long time.
10274
10275 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10276
10277         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10278         * modules/netinet_in: Likewise.
10279         * modules/sys_file: Likewise.
10280         * modules/sys_ioctl: Likewise.
10281         * modules/sys_select: Likewise.
10282         * modules/sys_socket: Likewise.
10283         * modules/sys_stat: Likewise.
10284         * modules/sys_time: Likewise.
10285         * modules/sys_times: Likewise.
10286         * modules/sys_utsname: Likewise.
10287         * modules/sys_wait: Likewise.
10288
10289 2009-09-01  Jim Meyering  <meyering@redhat.com>
10290
10291         fts: help ensure that return values are not ignored
10292         * lib/fts_.h (__GNUC_PREREQ): Define.
10293         (__attribute_warn_unused_result__): Define.
10294         (fts_children, fts_close, fts_open, fts_read): Declare with
10295         __attribute_warn_unused_result__.
10296
10297         fts: fts_close now fails also when closing a dir file descriptor fails
10298         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10299         and propagate to caller, along with errno.
10300
10301         announce-gen: correct formatting in --help output
10302         * build-aux/announce-gen (usage): Move the one-line description in
10303         --help output "up", to where it belongs, just after Usage:.
10304
10305 2009-08-31  Eric Blake  <ebb9@byu.net>
10306
10307         fchdir: port to mingw
10308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10309         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10310         opened, then use a substitute.
10311         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10312         replacement.
10313         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10314         (_gl_register_fd): No need to check stat if open already filters
10315         all directories.
10316         (fchdir): Fix error condition to match POSIX.
10317         * modules/fchdir (Depends-on): Add sys_stat.
10318         * doc/posix-functions/open.texi (open): Document the limitation.
10319         * modules/fchdir-tests: New file.
10320         * tests/test-fchdir.c: Likewise.
10321
10322         canonicalize: allow cross-testing from cygwin to mingw
10323         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10324         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10325         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10326         Likewise.
10327         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10328         target does not support symlinks.
10329         * tests/test-canonicalize-lgpl.sh: Likewise.
10330
10331         chown: avoid compilation warning on mingw
10332         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10333         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10334         mingw.
10335         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10336         * modules/chown (Depends-on): Add errno.
10337
10338 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10339
10340         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10341         command.
10342
10343 2009-08-31  Jim Meyering  <meyering@redhat.com>
10344
10345         canonicalize: remove useless initialization
10346         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10347         initialization of local, "end".
10348
10349 2009-08-30  Bruno Haible  <bruno@clisp.org>
10350
10351         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10352         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10353         ENOSYS.
10354
10355 2009-08-30  Bruno Haible  <bruno@clisp.org>
10356
10357         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10358         /usr/xpg4/bin/tr when it exists.
10359         * tests/test-pipe-filter-gi1.sh: Likewise.
10360
10361 2009-08-30  Bruno Haible  <bruno@clisp.org>
10362
10363         Work around deficient /usr/bin/id program on Solaris.
10364         * tests/test-file-has-acl.sh (ID): New variable.
10365         * tests/test-set-mode-acl.sh (ID): Likewise.
10366         * tests/test-copy-acl.sh (ID): Likewise.
10367         * tests/test-copy-file.sh (ID): Likewise.
10368
10369 2009-08-30  Bruno Haible  <bruno@clisp.org>
10370
10371         New module 'xstriconveh'.
10372         * lib/xstriconveh.h: New file.
10373         * lib/xstriconveh.c: New file.
10374         * modules/xstriconveh: New file.
10375
10376 2009-08-30  Bruno Haible  <bruno@clisp.org>
10377
10378         Make it easier to use mem_cd_iconveh.
10379         * lib/striconveh.h (iconveh_t): New type.
10380         (iconveh_open, iconveh_close): New declarations.
10381         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10382         with a single 'const iconveh_t *' argument.
10383         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10384         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10385         with a single 'const iconveh_t *' argument.
10386         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10387         * tests/test-striconveh.c (main): Update.
10388         * NEWS: Mention the change.
10389
10390 2009-08-30  Bruno Haible  <bruno@clisp.org>
10391
10392         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10393         problem.
10394
10395 2009-08-30  Bruno Haible  <bruno@clisp.org>
10396
10397         Work around iconv_open problem on Solaris.
10398         * lib/iconv_open-solaris.gperf: New file.
10399         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10400         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10401         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10402         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10403         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10404         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10405
10406 2009-08-29  Jim Meyering  <meyering@redhat.com>
10407
10408         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10409         * top/maint.mk (cvs-check): Remove target; it was just an alias
10410         to the better-named vc-diff-check.
10411         (maintainer-distcheck): Remove rule.  It was used only from
10412         the (alpha/beta/major) target, and all of its commands but one
10413         were coreutils-specific.
10414         (vc-dist): Remove rule.
10415         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10416         Run vc-diff-check, not vc-dist.
10417         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10418
10419 2009-08-27  Bruno Haible  <bruno@clisp.org>
10420
10421         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10422         of 0.
10423
10424 2009-08-27  Bruno Haible  <bruno@clisp.org>
10425
10426         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10427         compilers.
10428         * doc/func.texi: Document the SunPRO C bug.
10429
10430 2009-08-27  Bruno Haible  <bruno@clisp.org>
10431
10432         Fix link error on Solaris.
10433         * tests/test-parse-duration.c (xstrdup): Remove function.
10434
10435 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10436
10437         ignore-value: handle pointer types, too
10438         * lib/ignore-value.h (__attribute__): Remove definition.
10439         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10440         of a more concise and more-often effective "(void) i" statement.
10441         (ignore_ptr): New function to suppress warnings from functions that
10442         return pointers, and to make it explicit that one function doesn't
10443         handle all cases.
10444
10445 2009-08-25  Bruno Haible  <bruno@clisp.org>
10446
10447         dup2: work around a Linux bug.
10448         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10449         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10450         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10451         Reported by Simon Josefsson.
10452
10453 2009-08-25  Jim Meyering  <meyering@redhat.com>
10454
10455         libguestfs uses gnulib
10456         * users.txt: Add libguestfs.
10457
10458 2009-08-24  Eric Blake  <ebb9@byu.net>
10459
10460         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10461         * lib/pipe2.c (includes): Add binary-io.h.
10462         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10463
10464 2009-08-24  Bruno Haible  <bruno@clisp.org>
10465
10466         Tolerate declared but missing accept4 syscall.
10467         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10468         available.
10469         * lib/sys_socket.in.h (accept4): If the function is already present,
10470         override it.
10471         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10472         * modules/accept4 (Makefile.am): Compile accept4.c always.
10473         Reported by Paolo Bonzini and Eric Blake.
10474
10475 2009-08-23  Bruno Haible  <bruno@clisp.org>
10476
10477         New module 'accept4'.
10478         * lib/sys_socket.in.h (accept4): New declaration.
10479         * lib/accept4.c: New file.
10480         * m4/accept4.m4: New file.
10481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10482         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10483         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10484         HAVE_ACCEPT4.
10485         * modules/accept4: New file.
10486         * doc/glibc-functions/accept4.texi: Mention the new module.
10487
10488 2009-08-24  Jim Meyering  <meyering@redhat.com>
10489
10490         progname: also set global program_invocation_name, when possible
10491         Before this change, a libtool-enabled program that calls glibc's
10492         error function would report the program name as
10493         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10494         * modules/progname (configure.ac): Check for a declaration of
10495         program_invocation_name.
10496         * lib/progname.c:  Include <errno.h>.
10497         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10498         Set program_invocation_name.
10499
10500 2009-08-23  Bruno Haible  <bruno@clisp.org>
10501
10502         * lib/dup3.c: Include <string.h>.
10503
10504 2009-08-23  Bruno Haible  <bruno@clisp.org>
10505
10506         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10507         * lib/pipe2.c (pipe2): Likewise.
10508         Suggested by Eric Blake.
10509
10510 2009-08-23  Bruno Haible  <bruno@clisp.org>
10511
10512         Tolerate declared but missing dup3 syscall.
10513         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10514         * lib/unistd.in.h (dup3): If the function is already present,
10515         override it.
10516         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10517         * modules/dup3 (Makefile.am): Compile dup3.c always.
10518         Reported by Paolo Bonzini.
10519
10520 2009-08-23  Bruno Haible  <bruno@clisp.org>
10521
10522         Tolerate declared but missing pipe2 syscall.
10523         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10524         available.
10525         * lib/unistd.in.h (pipe2): If the function is already present,
10526         override it.
10527         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10528         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10529         Reported by Paolo Bonzini.
10530
10531 2009-08-23  Bruno Haible  <bruno@clisp.org>
10532
10533         * lib/pipe2.c (pipe2): Move #ifs inside function.
10534
10535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10536
10537         quotearg: document limitations of quote_these_too
10538         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10539         those limitations are created.
10540         * lib/quotearg.h (set_char_quoting): Document that digits and
10541         letters that are special after backslash are not permitted.
10542         (quotearg_char): Cross-reference set_char_quoting documentation.
10543
10544 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10545
10546         quotearg: implement custom_quoting_style
10547         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10548         right_quote fields.
10549         (set_custom_quoting): New public function.
10550         (quotearg_buffer_restyled): Add left_quote and right_quote
10551         arguments, handle them very much like locale quoting, and update
10552         all uses.
10553         (quotearg_n_custom): New public function.
10554         (quotearg_n_custom_mem): New public function.
10555         (quotearg_custom): New public function.
10556         (quotearg_custom_mem): New public function.
10557         * lib/quotearg.h: Prototype and document new public functions.
10558         (enum quoting_style): For escape_quoting_style and
10559         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10560         ignored even though they're otherwise like c_quoting_style.
10561         Add custom_quoting_style member and document with comparison to
10562         clocale_quoting_style.
10563         * tests/test-quotearg.c (custom_quotes): New array.
10564         (custom_results): New array.
10565         (main): Extend to test custom quoting.
10566
10567 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10568
10569         quotearg: fix right quote escaping when it's in quote_these_too
10570         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10571         quote, be sure to prepend only one backslash.
10572         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10573         (main): Test it.
10574
10575 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10576
10577         quotearg-tests: test escaping of embedded locale quotes
10578         * tests/test-quotearg.c (struct result_strings): Add member for
10579         new input.
10580         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10581         (inputs): Add new input.
10582         (results_g): Add expected results.
10583         (flag_results): Likewise.
10584         (locale_results): Likewise.
10585         (compare_strings): Check those.
10586
10587 2009-08-23  Bruno Haible  <bruno@clisp.org>
10588
10589         Tests for module 'dup3'.
10590         * modules/dup3-tests: New file.
10591         * tests/test-dup3.c: New file.
10592
10593         New module 'dup3'.
10594         * lib/unistd.in.h (dup3): New declaration.
10595         * lib/dup3.c: New file.
10596         * m4/dup3.m4: New file.
10597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10598         HAVE_DUP3.
10599         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10600         * modules/dup3: New file.
10601         * doc/glibc-functions/dup3.texi: Mention the new module.
10602
10603 2009-08-23  Bruno Haible  <bruno@clisp.org>
10604
10605         Tweak the dup2 test.
10606         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10607         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10608         the test file is still empty. Fix argument order of lseek.
10609
10610 2009-08-23  Bruno Haible  <bruno@clisp.org>
10611
10612         Avoid test link errors when the modules getopt-gnu, gettext are used.
10613         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10615
10616 2009-08-23  Bruno Haible  <bruno@clisp.org>
10617
10618         Fix getdtablesize() on mingw.
10619         * lib/getdtablesize.c (getdtablesize): Implement differently.
10620         * lib/unistd.in.h (getdtablesize): Improve comment.
10621
10622 2009-08-23  Bruno Haible  <bruno@clisp.org>
10623
10624         New module 'mkostemp'.
10625         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10626         * lib/stdlib.in.h (mksotemp): New declaration.
10627         * lib/mkostemp.c: New file, from glibc with modifications.
10628         * lib/tempname.h (GT_FILE): Remove outdated comment.
10629         (gen_tempname): Add flags argument.
10630         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10631         (__GT_FILE): Map to 1.
10632         (small_open, large_open): Remove macros.
10633         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10634         * lib/mkstemp.c (mkstemp): Update.
10635         * lib/mkdtemp.c (mkdtemp): Likewise.
10636         * m4/mkostemp.m4: New file.
10637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10638         HAVE_MKOSTEMP.
10639         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10640         HAVE_MKOSTEMP.
10641         * modules/mkostemp: New file, based on modules/mkstemp.
10642         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10643         * NEWS: Mention the change.
10644
10645 2009-08-23  Bruno Haible  <bruno@clisp.org>
10646
10647         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10648         Reported by Eric Blake.
10649
10650 2009-08-23  Bruno Haible  <bruno@clisp.org>
10651
10652         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10653         Reported by Eric Blake.
10654
10655 2009-08-23  Bruno Haible  <bruno@clisp.org>
10656
10657         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10658         * modules/pipe2 (Depends-on): Likewise.
10659
10660 2009-08-23  Eric Blake  <ebb9@byu.net>
10661
10662         fcntl-h: add O_TTY_INIT support
10663         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10664         * tests/test-fcntl-h.c (o): Test it.
10665         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10666
10667         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10668         * modules/fcntl: Move <fcntl.h> header replacement...
10669         * modules/fcntl-h: ...to new name, so as not to collide with
10670         like-named function.
10671         * tests/test-fcntl.c: Rename...
10672         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10673         * modules/fcntl-tests: Rename...
10674         * modules/fcntl-h-tests: ...to this.  Update test file name.
10675         * modules/chdir-long (Depends-on): Update clients.
10676         * modules/chdir-safer (Depends-on): Likewise.
10677         * modules/fcntl-safer (Depends-on): Likewise.
10678         * modules/fts (Depends-on): Likewise.
10679         * modules/mkancesdirs (Depends-on): Likewise.
10680         * modules/mkdir-p (Depends-on): Likewise.
10681         * modules/open (Depends-on): Likewise.
10682         * modules/savewd (Depends-on): Likewise.
10683         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10684         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10685
10686 2009-08-22  Bruno Haible  <bruno@clisp.org>
10687
10688         * modules/binary-io (License): Relicense under LGPL.
10689         * modules/pipe2 (License): Likewise.
10690
10691 2009-08-22  Bruno Haible  <bruno@clisp.org>
10692
10693         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10694         return value.
10695         * lib/pipe-filter-gi.c (filter_init): Likewise.
10696         Reported by Eric Blake.
10697
10698 2009-08-22  Bruno Haible  <bruno@clisp.org>
10699
10700         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10701         * modules/pipe (Depends-on): Add pipe2.
10702
10703 2009-08-22  Bruno Haible  <bruno@clisp.org>
10704
10705         Tests for module 'pipe2'.
10706         * modules/pipe2-tests: New file.
10707         * tests/test-pipe2.c: New file.
10708
10709         New module 'pipe2'.
10710         * lib/unistd.in.h (pipe2): New declaration.
10711         * lib/pipe2.c: New file.
10712         * m4/pipe2.m4: New file.
10713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10714         HAVE_PIPE2.
10715         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10716         * modules/pipe2: New file.
10717         * doc/glibc-functions/pipe2.texi: Mention the new module.
10718
10719 2009-08-22  Bruno Haible  <bruno@clisp.org>
10720
10721         Reference some new glibc functions.
10722         * doc/glibc-functions/accept4.texi: New file.
10723         * doc/glibc-functions/dup3.texi: New file.
10724         * doc/glibc-functions/mkostemp.texi: New file.
10725         * doc/glibc-functions/pipe2.texi: New file.
10726         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10727         (Glibc sys/socket.h): Refer to accept4.
10728         (Glibc unistd.h): Refer to dup3, pipe2.
10729         Reported by Eric Blake.
10730
10731 2009-08-22  Jim Meyering  <meyering@redhat.com>
10732             Bruno Haible  <bruno@clisp.org>
10733
10734         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10735         This makes it so packages using automake-1.11's silent-rules option
10736         can print e.g., a single "GEN    configmake.h" line, rather than
10737         the 30+ statements that perform the job.  If you want to see the
10738         actual commands, you can still run "make V=1".
10739         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10740         so that make output is abbreviated when those variables are defined
10741         appropriately.
10742         * modules/argz: Likewise.
10743         * modules/arpa_inet: Likewise.
10744         * modules/byteswap: Likewise.
10745         * modules/configmake: Likewise.
10746         * modules/dirent: Likewise.
10747         * modules/errno: Likewise.
10748         * modules/fcntl: Likewise.
10749         * modules/float: Likewise.
10750         * modules/fnmatch: Likewise.
10751         * modules/getopt-posix: Likewise.
10752         * modules/glob: Likewise.
10753         * modules/iconv_open: Likewise.
10754         * modules/inttypes: Likewise.
10755         * modules/localcharset: Likewise.
10756         * modules/locale: Likewise.
10757         * modules/math: Likewise.
10758         * modules/netdb: Likewise.
10759         * modules/netinet_in: Likewise.
10760         * modules/poll: Likewise.
10761         * modules/posix_spawnp-tests: Likewise.
10762         * modules/sched: Likewise.
10763         * modules/search: Likewise.
10764         * modules/selinux-h: Likewise.
10765         * modules/signal: Likewise.
10766         * modules/spawn: Likewise.
10767         * modules/stdarg: Likewise.
10768         * modules/stdbool: Likewise.
10769         * modules/stddef: Likewise.
10770         * modules/stdint: Likewise.
10771         * modules/stdio: Likewise.
10772         * modules/stdlib: Likewise.
10773         * modules/string: Likewise.
10774         * modules/strings: Likewise.
10775         * modules/sys_file: Likewise.
10776         * modules/sys_ioctl: Likewise.
10777         * modules/sys_select: Likewise.
10778         * modules/sys_socket: Likewise.
10779         * modules/sys_stat: Likewise.
10780         * modules/sys_time: Likewise.
10781         * modules/sys_times: Likewise.
10782         * modules/sys_utsname: Likewise.
10783         * modules/sys_wait: Likewise.
10784         * modules/sysexits: Likewise.
10785         * modules/time: Likewise.
10786         * modules/unistd: Likewise.
10787         * modules/wchar: Likewise.
10788         * modules/wctype: Likewise.
10789
10790 2009-08-22  Jim Meyering  <meyering@redhat.com>
10791
10792         announce-gen: detect write failure
10793         * build-aux/announce-gen: Add Coda at end.
10794         Remove equivalent-but-more-verbose block at top.
10795
10796 2009-08-19  Akim Demaille  <demaille@gostai.com>
10797
10798         bootstrap: --help to stdout.
10799         * bootstrap (usage): Don't send --help to stderr.
10800         Use a here doc instead of a long string.
10801
10802 2009-08-21  Eric Blake  <ebb9@byu.net>
10803
10804         test-popen-safer: split from test-popen
10805         * tests/test-popen.c (main): Move...
10806         * tests/test-popen.h: ...into new file.
10807         * tests/test-popen-safer2.c: New file.
10808         * modules/popen-tests (Files): Add test-popen.h.
10809         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10810         Suggested by Bruno Haible.
10811
10812         test-fcntl-safer: split from test-open
10813         * tests/test-open.c (main): Move...
10814         * tests/test-open.h: ...into new file.
10815         * tests/test-fcntl-safer.c: New file.
10816         * modules/open-tests (Files): Add test-open.h.
10817         * modules/fcntl-safer-tests: New file.
10818         Suggested by Bruno Haible.
10819
10820         test-fopen-safer: split from test-fopen
10821         * tests/test-fopen.c (main): Move...
10822         * tests/test-fopen.h: ...into new file.
10823         * tests/test-fopen-safer.c: New file.
10824         * modules/fopen-tests (Files): Add test-fopen.h.
10825         * modules/fopen-safer-tests: New file.
10826         Suggested by Bruno Haible.
10827
10828 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10829
10830         popen-safer: test O_CLOEXEC at run-time.
10831         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10832
10833 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10834
10835         fcntl: move more flags to the header
10836         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10837         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10838         * lib/fcntl.in.h: Do both things here.
10839
10840 2009-08-21  Jim Meyering  <meyering@redhat.com>
10841
10842         consistently remove $@-t before redirecting to it
10843         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10844         * modules/alloca-opt: Likewise.
10845         * modules/byteswap: Likewise.
10846         * modules/fnmatch: Likewise.
10847         * modules/getopt-posix: Likewise.
10848         * modules/glob: Likewise.
10849         * modules/poll: Likewise.
10850         * modules/posix_spawnp-tests: Likewise.
10851         * modules/sys_socket: Likewise.
10852         * modules/sysexits: Likewise.
10853
10854 2009-08-21  Eric Blake  <ebb9@byu.net>
10855
10856         popen: simplify access to original popen
10857         * lib/popen.c (rpl_popen): No need to worry about popen being a
10858         macro.
10859         Reported by Bruno Haible.
10860
10861 2009-08-20  Eric Blake  <ebb9@byu.net>
10862
10863         build: avoid some compiler warnings
10864         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10865         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10866         type.
10867         (new_exclude_segment, excluded_file_pattern_p)
10868         (excluded_file_name_p): Reduce scope.
10869         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10870         old-style declaration.
10871
10872 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10873
10874         * tests/test-exclude1.sh: Handle Windows EOL.
10875         * tests/test-exclude2.sh: Likewise.
10876         * tests/test-exclude3.sh: Likewise.
10877         * tests/test-exclude4.sh: Likewise.
10878         * tests/test-exclude5.sh: Likewise.
10879         * tests/test-exclude6.sh: Likewise.
10880         * tests/test-exclude7.sh: Likewise.
10881
10882 2009-08-19  Akim Demaille  <demaille@gostai.com>
10883
10884         bootstrap: find sha1sum when named gsha1sum.
10885         * bootstrap (find_tool): New.
10886         ($SHA1SUM): New.
10887         Use it.
10888
10889 2009-08-20  Jim Meyering  <meyering@redhat.com>
10890
10891         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10892         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10893         expression that converts "." in a file name to "\." in the resulting
10894         regexp.  Start with a dummy statement, so that prior shell variable
10895         definitions are expanded portably.  Reported by Simon Josefsson.
10896
10897 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10898
10899         Fix polling for writeability of a screen buffer.
10900         * lib/poll.c: Distinguish input and screen buffers for the
10901         Win32 implementation.
10902         * lib/select.c: Likewise.
10903
10904 2009-08-19  Eric Blake  <ebb9@byu.net>
10905
10906         popen-safer: prevent popen from clobbering std descriptors
10907         * modules/popen-safer: New file.
10908         * lib/popen-safer.c: Likewise.
10909         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10910         * lib/stdio--.h (popen): Provide override.
10911         * lib/stdio-safer.h (popen_safer): Provide declaration.
10912         * tests/test-popen.c (includes): Partially test this.
10913         * modules/popen-safer-tests: New file, for more tests.
10914         * tests/test-popen-safer.c: Likewise.
10915         * MODULES.html.sh (file stream based Input/Output): Mention it.
10916
10917         tests: test some of the *-safer modules
10918         * modules/fopen-safer (Depends-on): Add fopen.
10919         * modules/fcntl-safer (Depends-on): Add fcntl.
10920         * modules/stdlib-safer (Depends-on): Add stdlib.
10921         (configure.ac): Set indicator.
10922         * modules/unistd-safer (configure.ac): Likewise.
10923         * modules/tmpfile-safer (configure.ac): Likewise.
10924         (Depends-on): Add tmpfile.
10925         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10926         active.
10927         * tests/test-fopen.c (includes): Test safer versions when they are
10928         in use.
10929         * tests/test-open.c (includes): Likewise.
10930
10931         popen: fix cygwin 1.5 bug when stdin closed
10932         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10933         * modules/popen: New file.
10934         * modules/popen-tests: Likewise.
10935         * tests/test-popen.c: Likewise.
10936         * m4/popen.m4: Likewise.
10937         * lib/popen.c: Likewise.
10938         * lib/stdio.in.h (popen): New declaration.
10939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10940         * modules/stdio (Makefile.am): Likewise.
10941         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10942
10943 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10944
10945         maint.mk: give full control over update-copyright exclusions
10946         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10947         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10948         (update-copyright): Don't force inclusion of top-level
10949         ChangeLog.  Don't force exclusion of all COPYING files, but make
10950         them the default exclusion instead.
10951
10952 2009-08-16  Bruno Haible  <bruno@clisp.org>
10953
10954         Fix test failures on Solaris 10.
10955         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10956         tests when Solaris iconv() is used.
10957         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10958         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10959         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10960         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10961         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10962
10963 2009-08-16  Bruno Haible  <bruno@clisp.org>
10964
10965         Fix test failures on Solaris 10.
10966         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10967         'tr' program and pass it as first argument.
10968         * tests/test-pipe-filter-gi1.sh: Likewise.
10969         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10970         program as first argument.
10971         * tests/test-pipe-filter-gi1.c (main): Likewise.
10972
10973 2009-08-16  Eric Blake  <ebb9@byu.net>
10974
10975         fpurge: fix previous commits
10976         * modules/fpurge (Makefile.am): Make replacement conditional,
10977         partially reverting 2007-04-29 change; missed in previous
10978         attempt.
10979         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10980         is missing.
10981
10982 2009-08-16  Bruno Haible  <bruno@clisp.org>
10983
10984         Clarify fpurge's effect on the file position.
10985         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10986         * tests/test-fpurge.c (main): Make a second pass for checking the file
10987         position.
10988
10989 2009-08-16  Bruno Haible  <bruno@clisp.org>
10990
10991         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10992         declaration of fpurge is missing.
10993         * tests/test-fpurge.c (main): Check that the file has not more contents
10994         than expected. Close the file before removing it.
10995
10996 2009-08-15  Eric Blake  <ebb9@byu.net>
10997
10998         fpurge: don't wrap working cygwin implementation
10999         * lib/fpurge.c (fpurge): Fix comment typo.
11000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11001         1.7 to avoid replacement.
11002         * tests/test-fpurge.c (main): Enhance test.
11003
11004 2009-08-15  Eric Blake  <ebb9@byu.net>
11005         and Jim Meyering  <meyering@redhat.com>
11006
11007         test-update-copyright: skip if perl is insufficient
11008         * tests/test-update-copyright.sh: Failure to run maintainer tool
11009         should not cause testsuite failure on cygwin 1.5.
11010
11011 2009-08-14  Eric Blake  <ebb9@byu.net>
11012
11013         doc: mention more functions added in cygwin 1.7.0
11014         * doc/posix-headers/limits.texi (limits.h): Update for recent
11015         cygwin additions.
11016         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11017         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11018         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11019         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11020         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11021
11022 2009-08-14  Eric Blake  <ebb9@byu.net>
11023
11024         maint.mk: simplify update-copyright rule
11025         * top/maint.mk (update-copyright-local): Delete, and document how
11026         to do it in cfg.mk instead.
11027         (update-copyright-exclude-regexp): Delete, and document how to do
11028         it in .x-update-copyright instead.
11029         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11030         exclude ChangeLog.
11031
11032 2009-08-14  Bruno Haible  <bruno@clisp.org>
11033
11034         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11035
11036 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11037
11038         maint.mk: support update-copyright-env
11039         * top/maint.mk (update-copyright-env): Define place-holder.
11040         (update-copyright): Expand $(update-copyright-env) before
11041         invoking update-copyright.
11042
11043 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11044
11045         update-copyright: implement forced reformatting
11046         * build-aux/update-copyright: Implement and document
11047         UPDATE_COPYRIGHT_FORCE.
11048         * tests/test-update-copyright.sh: Test it.
11049
11050 2009-08-14  Eric Blake  <ebb9@byu.net>
11051         and Bruno Haible  <bruno@clisp.org>
11052
11053         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11054         * tests/test-locale.c: Revert previous patch related to NULL.
11055         * tests/test-stdio.c: Likewise.
11056         * tests/test-stdlib.c: Likewise.
11057         * tests/test-string.c: Likewise.
11058         * tests/test-unistd.c: Likewise.
11059         * modules/time-tests (Depends-on): Add verify.
11060         * modules/wchar-tests (Depends-on): Likewise.
11061         * tests/test-time.c: Test for NULL compliance.
11062         * tests/test-wchar.c: Likewise.
11063         * modules/locale (Depends-on): Add stddef.
11064         * modules/stdio (Depends-on): Likewise.
11065         * modules/stdlib (Depends-on): Likewise.
11066         * modules/string (Depends-on): Likewise.
11067         * modules/time (Depends-on): Likewise.
11068         * modules/unistd (Depends-on): Likewise.
11069         * modules/wchar (Depends-on): Likewise.
11070         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11071         * lib/stdlib.in.h (includes): Likewise.
11072         * lib/string.in.h (includes): Likewise.
11073         * lib/time.in.h (includes): Likewise.
11074         * lib/unistd.in.h (includes): Likewise.
11075         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11076         replaced.
11077         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11078         * m4/stddef_h.m4: New file.
11079         * modules/stddef: Likewise.
11080         * lib/stddef.in.h: Likewise.
11081         * modules/stddef-tests: Likewise.
11082         * tests/test-stddef.c: Likewise.
11083         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11084         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11085         * doc/posix-headers/locale.texi (locale.h): Likewise.
11086         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11087         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11088         * doc/posix-headers/string.texi (string.h): Likewise.
11089         * doc/posix-headers/time.texi (time.h): Likewise.
11090         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11091         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11092
11093 2009-08-14  Eric Blake  <ebb9@byu.net>
11094
11095         doc: improve git diff of texinfo files
11096         * .gitattributes: Add rule for *.texi files, with hint on how to
11097         use it.
11098         Copied from m4, and based on a report by Bruno Haible.
11099
11100 2009-08-14  Bruno Haible  <bruno@clisp.org>
11101
11102         Disable multithread support by default on Cygwin 1.5.x for real.
11103         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11104
11105 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11106
11107         update-copyright: much ado about intervals
11108         * build-aux/update-copyright: Implement and document
11109         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11110         of copyright year intervals.
11111         Also, document UPDATE_COPYRIGHT_YEAR.
11112         * tests/test-update-copyright.sh: Test it.
11113
11114         update-copyright: convert 2-digit to 4-digit years
11115         * build-aux/update-copyright: Implement and document.
11116         * tests/test-update-copyright.sh: Update.
11117
11118 2009-08-14  Jim Meyering  <meyering@redhat.com>
11119
11120         test-exclude: avoid coreutils "make check" failure
11121         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11122         just as in test-argmatch.c.
11123
11124 2009-08-13  Eric Blake  <ebb9@byu.net>
11125
11126         test-dup2: fix bad assumption
11127         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11128         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11129
11130         test-version-etc: fix CRLF portability issue
11131         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11132         recognize \r.
11133         * tests/test-argp-version-etc-1.sh: Likewise.
11134
11135         getopt: update client modules
11136         * modules/argp (Depends-on): Use getopt-gnu.
11137         * modules/git-merge-changelog (Depends-on): Likewise.
11138         * modules/long-options (Depends-on): Likewise.
11139         * modules/xstrtol (Depends-on): Likewise.
11140
11141 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11142
11143         * tests/test-version-etc.sh: Don't fail on different
11144         project/version.  Don't fail on CRLF differences.  Rewrite to use
11145         multiple -e instead of multiple sed forks, suggested by Eric Blake
11146         <ebb9@byu.net>.
11147         * tests/test-argp-version-etc-1.sh: Likewise.
11148
11149 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11150
11151         * tests/test-version-etc.sh: Don't fail on different
11152         project/version.
11153
11154 2009-08-12  Bruno Haible  <bruno@clisp.org>
11155
11156         Tests for modules 'getopt-posix', 'getopt-gnu'.
11157         * modules/getopt-posix-tests: New file.
11158         * tests/test-getopt.c: New file.
11159         * tests/test-getopt.h: New file.
11160         * tests/test-getopt_long.h: New file.
11161
11162         New modules 'getopt-posix', 'getopt-gnu'.
11163         * modules/getopt-gnu: New file, renamed from modules/getopt.
11164         * modules/getopt-posix: New file.
11165         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11166         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11167         (gl_GETOPT): Remove macro.
11168         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11169         Disable the test against BSD systems that declare optreset. Test
11170         against mingw bug. Test against lack of support of optional arguments
11171         on many platforms.
11172         * doc/glibc-headers/getopt.texi: Update module name and list of
11173         relevant platforms.
11174         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11175         'getopt-gnu' and more portability problems.
11176         * NEWS: Mention the changes.
11177
11178 2009-08-12  Bruno Haible  <bruno@clisp.org>
11179
11180         Ensure that optarg etc. get declared by <unistd.h>.
11181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11182         AC_USE_SYSTEM_EXTENSIONS.
11183         * modules/getopt (Depends-on): Add 'extensions'.
11184
11185 2009-08-12  Bruno Haible  <bruno@clisp.org>
11186
11187         Avoid test link errors.
11188         * modules/pipe-filter-ii-tests (Makefile.am): Define
11189         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11190         * modules/pipe-filter-gi-tests (Makefile.am): Define
11191         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11193
11194 2009-08-12  Bruno Haible  <bruno@clisp.org>
11195
11196         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11197         gl_GETOPT_SUBSTITUTE before.
11198         (gl_GETOPT): Use it.
11199         * m4/argp.m4 (gl_ARGP): Update.
11200         Reported by Sergey Poznyakoff.
11201
11202         * m4/getopt.m4: Reorder macros.
11203         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11204         (gl_GETOPT_SUBSTITUTE): Remove macro.
11205
11206 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11207
11208         Minor improvement in gitlog-to-changelog
11209
11210         * build-aux/gitlog-to-changelog: New option `--format' makes
11211         output format string configurable.
11212
11213 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11214
11215         Optimize exclude: use hash tables for non-wildcard patterns.
11216
11217         * lib/exclude.c: Include hash.h and mbuiter.h
11218         (struct exclude_pattern, exclude_segment): New data types.
11219         (struct exclude): Rewrite.
11220         (fnmatch_pattern_has_wildcards): New function.
11221         (new_exclude_segment, free_exclude_segment): New functions.
11222         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11223         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11224         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11225         * modules/exclude: Depend on hash and mbuiter.
11226
11227         * modules/exclude-tests: New file.
11228         * tests/test-exclude.c: New file.
11229         * tests/test-exclude1.sh: New file.
11230         * tests/test-exclude2.sh: New file.
11231         * tests/test-exclude3.sh: New file.
11232         * tests/test-exclude4.sh: New file.
11233         * tests/test-exclude5.sh: New file.
11234         * tests/test-exclude6.sh: New file.
11235         * tests/test-exclude7.sh: New file.
11236
11237 2009-08-12  Bruno Haible  <bruno@clisp.org>
11238
11239         Ensure that getopt() gets declared by <unistd.h>.
11240         * lib/unistd.in.h: Conditionally include getopt.h.
11241         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11242         Set GNULIB_UNISTD_H_GETOPT.
11243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11244         GNULIB_UNISTD_H_GETOPT.
11245         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11246
11247 2009-08-12  Bruno Haible  <bruno@clisp.org>
11248
11249         Clarify logic.
11250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11251         gl_replace_getopt instead of GETOPT_H.
11252
11253 2009-08-12  Bruno Haible  <bruno@clisp.org>
11254
11255         * m4/getopt.m4: Add comments.
11256
11257 2009-08-12  Bruno Haible  <bruno@clisp.org>
11258
11259         Disable multithread support by default on Cygwin 1.5.x.
11260         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11261         set gl_use_threads=no if not specified otherwise.
11262
11263 2009-08-11  Bruno Haible  <bruno@clisp.org>
11264
11265         Avoid compilation error on NetBSD 5.0.
11266         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11267         * tests/test-stdio.c: Likewise.
11268         * tests/test-stdlib.c: Likewise.
11269         * tests/test-string.c: Likewise.
11270         * tests/test-unistd.c: Likewise.
11271         Reported by Greg Troxel <gdt@ir.bbn.com>
11272         at <https://savannah.gnu.org/support/?106973>.
11273
11274 2009-08-11  Bruno Haible  <bruno@clisp.org>
11275
11276         * modules/dup2-tests (Depends-on): Remove close.
11277
11278         Undo 2009-07-19 commit.
11279         * modules/acl-tests (Depends-on): Remove close.
11280         * modules/binary-io-tests (Depends-on): Likewise.
11281         * modules/closein-tests (Depends-on): Likewise.
11282         * modules/flock-tests (Depends-on): Likewise.
11283         * modules/fsync-tests (Depends-on): Likewise.
11284         * modules/lseek-tests (Depends-on): Likewise.
11285         * modules/pipe-tests (Depends-on): Likewise.
11286         * modules/posix_spawn-tests (Depends-on): Likewise.
11287         * modules/posix_spawnp-tests (Depends-on): Likewise.
11288         * modules/stat-time-tests (Depends-on): Likewise.
11289         * modules/yesno-tests (Depends-on): Likewise.
11290
11291 2009-08-10  Bruno Haible  <bruno@clisp.org>
11292
11293         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11294
11295 2009-08-10  Bruno Haible  <bruno@clisp.org>
11296
11297         Fix a gcc warning.
11298         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11299
11300 2009-08-10  Bruno Haible  <bruno@clisp.org>
11301
11302         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11303         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11304         not only the first time.
11305         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11306         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11307         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11308         is 1, not only the the first time.
11309
11310 2009-08-10  Bruno Haible  <bruno@clisp.org>
11311
11312         Make it possible to use module 'gethostname' without module 'close'.
11313         * lib/unistd.in.h (close): Evoke a link error only if
11314         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11316         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11317         * modules/unistd (Makefile.am): Substitute
11318         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11319         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11320         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11322         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11323         * modules/sys_ioctl (Makefile.am): Substitute
11324         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11325         * modules/socket (configure.ac): On native Windows, set
11326         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11327         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11328         Reported by Sam Steingold <sds@gnu.org>.
11329
11330 2009-08-10  Bruno Haible  <bruno@clisp.org>
11331
11332         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11333         * modules/ioctl (configure.ac): Likewise.
11334
11335 2009-08-10  Bruno Haible  <bruno@clisp.org>
11336
11337         Avoid collision between gnulib wrapper and libintl wrapper.
11338         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11339         already defined in intl/printf.c.
11340         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11341         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11342
11343 2009-08-09  Bruno Haible  <bruno@clisp.org>
11344
11345         Make <sys/select.h> really self-contained, also on Solaris 10.
11346         * lib/sys_select.in.h: Include <string.h>.
11347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11348         Solaris 10 problem.
11349         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11350         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11351         Reported by Jim Meyering.
11352
11353 2009-08-09  Bruno Haible  <bruno@clisp.org>
11354
11355         Avoid warnings from 'aclocal' that are due to a use of macro name
11356         AM_XGETTEXT_OPTION that is not defined in automake.
11357         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11358         automake.
11359         * modules/error (configure.ac): Likewise.
11360         * modules/propername (configure.ac): Likewise.
11361         * modules/vasprintf (configure.ac): Likewise.
11362         * modules/verror (configure.ac): Likewise.
11363         * modules/xprintf (configure.ac): Likewise.
11364         * modules/xvasprintf (configure.ac): Likewise.
11365
11366 2009-08-08  Bruno Haible  <bruno@clisp.org>
11367
11368         Avoid compilation error in C++ mode.
11369         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11370         Reported by Sam Steingold <sds@gnu.org>.
11371
11372 2009-08-08  Bruno Haible  <bruno@clisp.org>
11373
11374         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11375         for the various Unix platforms.
11376         * doc/posix-headers/limits.texi: Update platforms list regarding
11377         HOST_NAME_MAX.
11378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11379
11380 2009-08-07  Jim Meyering  <meyering@redhat.com>
11381
11382         selinux-at: fix typo in a comment
11383         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11384         Spotted by Paolo Bonzini.
11385
11386         selinux-at: remove redundant m4 code, add documentation
11387         * modules/selinux-at (configure.ac): Remove redundant code.
11388         LIB_SELINUX is already set via the dependent module, selinux-h.
11389         (Include): Add quotes around selinux-at.h.
11390         * lib/selinux-at.h: Add documentation.
11391         Reported by Bruno Haible in
11392         http://marc.info/?l=gnulib-bug&m=124958988300749
11393
11394 2009-08-07  Bruno Haible  <bruno@clisp.org>
11395
11396         Avoid link error on MacOS X 10.3 and 10.4.
11397         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11398         on non-ELF systems.
11399         * lib/argp-pv.c (argp_program_version): Likewise.
11400         Reported by Simon Josefsson.
11401
11402 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11403
11404         * tests/test-version-etc.sh: Use $EXEEXT.
11405
11406 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11407
11408         update-copyright: update documentation to point to maint.mk
11409         * build-aux/update-copyright: Here.
11410
11411 2009-08-06  Jim Meyering  <meyering@redhat.com>
11412
11413         maint.mk: support update-copyright-local
11414         * top/maint.mk (update-copyright-local): Define place-holder.
11415         (update-copyright): Depend on $(update-copyright-local).
11416
11417 2009-08-06  Jim Meyering  <meyering@redhat.com>
11418
11419         selinux-at: new module
11420         Initially written for coreutils, this module will soon be
11421         used by findutils, too.
11422         * MODULES.html.sh [Misc]: Add selinux-at.
11423         * lib/selinux-at.h: New file, from coreutils.
11424         * lib/selinux-at.c: Likewise.
11425         * modules/selinux-at: Likewise.
11426         (License): Change from LGPL to GPL, since it depends
11427         on the GPL'd openat module.
11428
11429         doc: update README
11430         * README: Remove references to cogito.
11431         Remove cvs-repo-updating instructions from 2007.
11432         Don't imply that CVS is better if you have limited disk space.
11433
11434 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11435
11436         update-copyright: support C-style comments
11437         * build-aux/update-copyright: Implement and document.
11438         * tests/test-update-copyright.sh: Test.
11439
11440 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11441
11442         update-copyright: support omitted "(C)"
11443         * build-aux/update-copyright: Implement and document.  Also,
11444         allow variable whitespace before "(C)".
11445         * tests/test-update-copyright.sh: Test.
11446
11447 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11448
11449         update-copyright: don't trip on non-FSF copyright statements
11450         * build-aux/update-copyright: Fix so that the first correctly
11451         formatted FSF copyright statement is recognized no matter what
11452         appears before it.  Update documentation.
11453         * tests/test-update-copyright.sh: Test that.
11454
11455 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11456
11457         update-copyright: clean up code a little
11458         * build-aux/update-copyright: Append "_re" to the name of any
11459         variable holding a regular expression.
11460         Replace "old" and "new" with "stmt" in variable names.
11461         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11462         handled correctly.
11463         Format code more consistently.
11464
11465 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11466
11467         update-copyright-tests: improve portability
11468         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11469         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11470
11471 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11472
11473         update-copyright: support @copyright{} and &copy;
11474         * build-aux/update-copyright: Implement and document.
11475         * tests/test-update-copyright.sh: Test.
11476
11477 2009-08-04  Jim Meyering  <meyering@redhat.com>
11478
11479         update-copyright-tests: correctly test EOL=\r\n handling
11480         * tests/test-update-copyright.sh: Put \r at the end of some lines
11481         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11482
11483         maint.mk: make update-copyright exclusion list more configurable
11484         * top/maint.mk (update-copyright): Default to excluding COPYING,
11485         but allow an override, in case someone does want to update that file.
11486
11487         maint.mk: don't update copyright date in COPYING
11488         * top/maint.mk (update-copyright): Exclude COPYING.
11489
11490         maint.mk: add a copyright-updating rule
11491         * top/maint.mk (update-copyright): New rule.
11492         Derived from coreutils/Makefile.am.
11493
11494         update-copyright: rename some variables
11495         * build-aux/update-copyright: Rename a few variables for clarity.
11496         Tweak syntax.  List Joel E. Denny as coauthor.
11497
11498 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11499
11500         update-copyright: fix bug for 2-digit last year and add tests
11501         * build-aux/update-copyright: Fix bug.
11502         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11503         specified.
11504         * modules/update-copyright-tests: New
11505         * tests/test-update-copyright.sh: New.
11506
11507 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11508
11509         update-copyright: handle leading tabs in line prefix
11510         * build-aux/update-copyright: Count leading tabs as 8 spaces
11511         when computing margin.  This helps with the formatting of
11512         ChangeLogs, for example.
11513         Fix documentation a little.
11514
11515 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11516
11517         update-copyright: support EOL=\r\n
11518         * build-aux/update-copyright: Implement that.
11519
11520 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11521
11522         update-copyright: automatically format copyright statements
11523         * build-aux/update-copyright: Implement that.
11524         Also, be a little more predictable and safer by always failing
11525         when the full copyright format is not perfectly recognized as an
11526         unbroken whole.  Discussed at
11527         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11528         Rewrite documentation.
11529
11530 2009-08-03  Bruno Haible  <bruno@clisp.org>
11531
11532         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11533
11534 2009-08-02  Bruno Haible  <bruno@clisp.org>
11535
11536         Tests for module 'uname'.
11537         * modules/uname-tests: New file.
11538         * tests/test-uname.c: New file.
11539
11540         New module 'uname'.
11541         * lib/uname.c: New file.
11542         * m4/uname.m4: New file.
11543         * modules/uname: New file.
11544         * doc/posix-functions/uname.texi: Mention the new module.
11545
11546 2009-08-02  Bruno Haible  <bruno@clisp.org>
11547
11548         Tests for module 'sys_utsname'.
11549         * modules/sys_utsname-tests: New file.
11550         * tests/test-sys_utsname.c: New file.
11551
11552         New module 'sys_utsname'.
11553         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11554         * m4/sys_utsname_h.m4: New file.
11555         * modules/sys_utsname: New file.
11556         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11557
11558 2009-08-02  Bruno Haible  <bruno@clisp.org>
11559
11560         Implicitly initialize the sockets library.
11561         * lib/gethostname.c: Include sockets.h.
11562         (rpl_gethostname): Invoke gl_sockets_startup.
11563         * lib/socket.c: Include sockets.h.
11564         (rpl_socket): Invoke gl_sockets_startup.
11565         * modules/gethostname (Depends-on): Add sockets.
11566         * modules/socket (Depends-on): Likewise.
11567         * tests/test-poll.c: Don't include sockets.h.
11568         (main): Don't invoke gl_sockets_startup.
11569         * tests/test-select.c: Don't include sockets.h.
11570         (main): Don't invoke gl_sockets_startup.
11571
11572 2009-08-02  Bruno Haible  <bruno@clisp.org>
11573
11574         Allow multiple calls to gl_sockets_startup.
11575         * lib/sockets.c (initialized_sockets_version): New variable.
11576         (gl_sockets_startup): Do nothing if already called for this or a higher
11577         version.
11578         (gl_sockets_cleanup): Reset initialized_sockets_version.
11579
11580 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11581
11582         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11583         different project/version.
11584
11585 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11586             Bruno Haible  <bruno@clisp.org>
11587
11588         Tests for module 'pipe-filter-gi'.
11589         * modules/pipe-filter-gi-tests: New file.
11590         * tests/test-pipe-filter-gi1.sh: New file.
11591         * tests/test-pipe-filter-gi1.c: New file.
11592         * tests/test-pipe-filter-gi2.sh: New file.
11593         * tests/test-pipe-filter-gi2-main.c: New file.
11594         * tests/test-pipe-filter-gi2-child.c: New file.
11595
11596         New module 'pipe-filter-gi'.
11597         * lib/pipe-filter-gi.c: New file.
11598         * modules/pipe-filter-gi: New file.
11599
11600 2009-08-02  Bruno Haible  <bruno@clisp.org>
11601             Paolo Bonzini  <bonzini@gnu.org>
11602
11603         Tests for module 'pipe-filter-ii'.
11604         * modules/pipe-filter-ii-tests: New file.
11605         * tests/test-pipe-filter-ii1.sh: New file.
11606         * tests/test-pipe-filter-ii1.c: New file.
11607         * tests/test-pipe-filter-ii2.sh: New file.
11608         * tests/test-pipe-filter-ii2-main.c: New file.
11609         * tests/test-pipe-filter-ii2-child.c: New file.
11610
11611         New module 'pipe-filter-ii'.
11612         * lib/pipe-filter.h: New file.
11613         * lib/pipe-filter-ii.c: New file.
11614         * lib/pipe-filter-aux.h: New file.
11615         * modules/pipe-filter-ii: New file.
11616
11617 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11618
11619         * lib/gc-libgcrypt.c: Change copyright to FSF.
11620         * lib/gc-gnulib.c: Likewise.
11621
11622 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11623
11624         * lib/gethostname.c: Include limits.h.
11625
11626 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11627             Bruno Haible  <bruno@clisp.org>
11628
11629         Ensure HOST_NAME_MAX as part of the gethostname module.
11630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11631         define also HOST_NAME_MAX.
11632         * tests/test-gethostname.c: Include <limits.h>.
11633         (main): Check also HOST_NAME_MAX.
11634         * doc/posix-headers/limits.texi: Document the mingw problem.
11635
11636 2009-08-02  Bruno Haible  <bruno@clisp.org>
11637
11638         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11639         Add comments.
11640
11641 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11642
11643         * lib/gethostname.c: Add Windows wrapper.
11644         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11645         * modules/gethostname: Depend on sys_socket & errno, for also
11646         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11647         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11648
11649 2009-07-31  Jim Meyering  <meyering@redhat.com>
11650
11651         getloadavg: fix symbol name in comment
11652         * lib/getloadavg.c: Correct a typo I introduced when adding
11653         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11654         Matt Kraai spotted the problem.
11655
11656 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11657
11658         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11659         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11660         code also if ! defined N_NAME_POINTER.
11661         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11662         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11663         but the n_name member is a 12-byte array.
11664
11665 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11666
11667         update-copyright: generalize comment handling
11668         * build-aux/update-copyright: Handle copyright statements
11669         within more comment styles.
11670         Document usage.
11671         Report any file with an external copyright holder or parse failure.
11672
11673 2009-07-29  Jim Meyering  <meyering@redhat.com>
11674
11675         mktime: correct setting of REPLACE_MKTIME
11676         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11677
11678         update-copyright: new module
11679         * modules/update-copyright: New file.
11680         * build-aux/update-copyright: New file.
11681         * MODULES.html.sh (maint+release support): Add update-copyright.
11682
11683 2009-07-27  Bruno Haible  <bruno@clisp.org>
11684
11685         Fix compilation error when <ctime> is used and mktime is replaced.
11686         * lib/time.in.h (mktime): New declaration.
11687         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11688         REPLACE_MKTIME instead of defining mktime in config.h.
11689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11690         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11691         Reported by Ross McFarland <rwmcfa1@neces.com>.
11692
11693 2009-07-27  Bruno Haible  <bruno@clisp.org>
11694
11695         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11696         Reported by Matt Kraai <mkraai@beckman.com>.
11697
11698 2009-07-25  Jim Meyering  <meyering@redhat.com>
11699
11700         maint.mk: avoid warnings about missing files
11701         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11702         diagnostic when .prev-version does not exist.
11703         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11704         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11705         nonexistent cfg.mk.
11706         Suggestions from Simon Josefsson.
11707
11708 2009-07-25  Bruno Haible  <bruno@clisp.org>
11709
11710         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11711         defined as macros. Needed on QNX 6.4.1.
11712         Reported by Matt Kraai <mkraai@beckman.com>.
11713
11714 2009-07-23  Jim Meyering  <meyering@redhat.com>
11715
11716         maint.mk: invoke "make dist" with a working value of XZ_OPT
11717         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11718
11719 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11720
11721         Make fseeko.c compile on QNX.
11722         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11723
11724 2009-07-22  Peter Simons  <simons@cryp.to>
11725
11726         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11727         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11728         * lib/md4.h: Likewise.
11729         * lib/md5.h: Likewise.
11730         * lib/sha1.h: Likewise.
11731         * lib/sha256.h: Likewise.
11732         * lib/sha512.h: Likewise.
11733
11734         tests-sha1: don't assign literal string to 'char *' variable
11735         * tests/test-sha1.c (main): Declare locals with "const" to match
11736         attributes of the right hand side.
11737
11738 2009-07-21  Eric Blake  <ebb9@byu.net>
11739
11740         dup2: fix more mingw problems
11741         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11742         fd to itself.
11743         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11744         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11745         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11746         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11747         care of mingw bugs.
11748
11749 2009-07-21  Jim Meyering  <meyering@redhat.com>
11750
11751         vc-list-files: avoid failure when /bin/sh is dash
11752         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11753         On some Debian based systems, /bin/sh is a symlink to dash, and running
11754         this command would omit the "/" following each 'tests' prefix:
11755           dash -x build-aux/vc-list-files -C . tests
11756         That is because bash and dash work differently:
11757           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11758           bash ok
11759           dash odd
11760
11761 2009-07-21  Eric Blake  <ebb9@byu.net>
11762
11763         dup2-tests: test previous patch
11764         * modules/dup2-tests: New file.
11765         * tests/test-dup2.c: Likewise.
11766         * tests/test-open.c (main): Avoid unspecified behavior.
11767         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11768         test.
11769
11770         dup2: work around mingw and cygwin 1.5 bug
11771         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11773         * modules/unistd (Makefile.am): Substitute it.
11774         * lib/unistd.in.h (dup2): Declare the replacement.
11775         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11776         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11777         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11778         * modules/execute (Depends-on): Add dup2.
11779         * modules/fseterr (Depends-on): Likewise.
11780         * modules/pipe (Depends-on): Likewise.
11781         * modules/posix_spawn-internal (Depends-on): Likewise.
11782
11783 2009-07-21  Bruno Haible  <bruno@clisp.org>
11784
11785         * modules/.gitattributes: New file.
11786
11787 2009-07-20  Bruno Haible  <bruno@clisp.org>
11788
11789         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11790         (main): Use it.
11791
11792 2009-07-20  Eric Blake  <ebb9@byu.net>
11793
11794         test-pipe: make a bit more robust.
11795         * tests/test-pipe.c (myerr): Allow error messages regardless of
11796         what we do to stderr.
11797         (test_pipe): Rearrange to avoid deadlock.
11798         (child_main): Try a larger read, to ensure we avoided deadlock.
11799         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11800         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11801         if misused.
11802
11803 2009-07-19  Jim Meyering  <meyering@redhat.com>
11804
11805         fts: avoid false-positive cycle-detection
11806         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11807         for each new command line argument.
11808
11809 2009-07-19  Bruno Haible  <bruno@clisp.org>
11810
11811         Fix build error on mingw with the modules sys_select and unistd.
11812         * modules/acl-tests (Depends-on): Add close.
11813         * modules/binary-io-tests (Depends-on): Likewise.
11814         * modules/closein-tests (Depends-on): Likewise.
11815         * modules/flock-tests (Depends-on): Likewise.
11816         * modules/fsync-tests (Depends-on): Likewise.
11817         * modules/lseek-tests (Depends-on): Likewise.
11818         * modules/pipe-tests (Depends-on): Likewise.
11819         * modules/posix_spawn-tests (Depends-on): Likewise.
11820         * modules/posix_spawnp-tests (Depends-on): Likewise.
11821         * modules/stat-time-tests (Depends-on): Likewise.
11822         * modules/yesno-tests (Depends-on): Likewise.
11823
11824 2009-07-19  Bruno Haible  <bruno@clisp.org>
11825
11826         Unify conditionals.
11827         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11828         macros, not at the compiler macros.
11829         * lib/pipe.c: Likewise.
11830         * lib/execute.c: Likewise.
11831         * lib/spawni.c: Likewise.
11832
11833 2009-07-19  Bruno Haible  <bruno@clisp.org>
11834
11835         Fix handling of closed stdin/stdout/stderr on mingw.
11836         * lib/w32spawn.h: Include unistd.h.
11837         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11838         file descriptor with O_NOINHERIT flag.
11839         (fd_safer_noinherit): New function, based on fd-safer.c.
11840         (dup_safer_noinherit): New function, based on dup-safer.c.
11841         (undup_safer_noinherit): New function.
11842         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11843         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11844         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11845         instead of fd_safer.
11846         * tests/test-pipe.c: Include <windows.h>.
11847         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11848
11849         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11850         from main.
11851         (test_pipe): Pass an extra argument for disambiguation.
11852         (main): Invoke parent_main or child_main.
11853
11854         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11855         consistently.
11856
11857 2009-07-18  Eric Blake  <ebb9@byu.net>
11858
11859         test-pipe: fix mingw build
11860         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11861
11862 2009-07-18  Bruno Haible  <bruno@clisp.org>
11863
11864         * modules/pipe-tests (Makefile.am): Fix typo.
11865
11866 2009-07-18  Eric Blake  <ebb9@byu.net>
11867
11868         error: fix mingw build
11869         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11870         Reported by Bruno Haible.
11871
11872         error: avoid undefined use of stdout
11873         * lib/error.c (error, error_at_line): Check that fd 1 is open
11874         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11875         is handling faults and the close_stdout module wants to report the
11876         detection of closed stdout as an error.
11877
11878 2009-07-17  Eric Blake  <ebb9@byu.net>
11879
11880         pipe: be robust in face of closed fds
11881         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11882         should cause child to misbehave.
11883         * modules/pipe-tests: New module.
11884         * tests/test-pipe.c: New file.
11885         * tests/test-pipe.sh: New file.
11886         Reported by Akim Demaille.
11887
11888 2009-07-14  Bruno Haible  <bruno@clisp.org>
11889
11890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11891         Reported by anonymous kc.
11892
11893 2009-07-07  Jim Meyering  <meyering@redhat.com>
11894
11895         maint.mk: don't look for translatable strings in *.m4 or *.mk
11896         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11897         when searching for translatable strings.
11898
11899 2009-07-05  Jim Meyering  <meyering@redhat.com>
11900
11901         remove superfluous parentheses in STREQ definition
11902         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11903         * lib/getugroups.c (STREQ): Likewise.
11904         * lib/fnmatch.c (STREQ): Likewise.
11905         Spotted by Bruno Haible.
11906
11907 2009-07-04  Jim Meyering  <meyering@redhat.com>
11908
11909         argv-iter: new module
11910         * MODULES.html.sh: Add argv-iter.
11911         * lib/argv-iter.c, lib/argv-iter.h: New files.
11912         * modules/argv-iter: New file.
11913         * modules/argv-iter-tests: New file.
11914         * tests/test-argv-iter.c: Test it.
11915
11916 2009-07-04  Bruno Haible  <bruno@clisp.org>
11917
11918         Fix assertion.
11919         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11920         contains more exact copies of a given entry than file2, leave the extra
11921         copies unpaired rather than aborting.
11922         Reported by Eric Blake.
11923
11924 2009-07-02  Bruno Haible  <bruno@clisp.org>
11925
11926         Speedup git-merge-changelog for git cherry-pick.
11927         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11928         (entries_mapping_get): New function, extracted from compute_mapping.
11929         (entries_mapping_reverse_get): New function.
11930         (compute_mapping): Add a 'full' argument. Return the result in a
11931         'struct entries_mapping'.
11932         (main): Update. Access the mappings through entries_mapping_get.
11933         Reported by Eric Blake.
11934
11935 2009-07-02  Bruno Haible  <bruno@clisp.org>
11936
11937         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11938         best_i.
11939
11940 2009-07-02  Bruno Haible  <bruno@clisp.org>
11941
11942         Speed up approximate search for matching ChangeLog entries.
11943         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11944         argument. Call fstrcmp_bounded instead of fstrcmp.
11945         (compute_mapping, try_split_merged_entry, main): Update callers.
11946
11947 2009-07-02  Bruno Haible  <bruno@clisp.org>
11948
11949         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11950
11951 2009-06-30  Bruno Haible  <bruno@clisp.org>
11952
11953         Reduce the number of uc_is_cased calls.
11954         * lib/unicase.h (casing_suffix_context_t): Add
11955         'first_char_except_ignorable' field.
11956         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11957         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11958         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11959         Update initializer.
11960         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11961         case-ignorable characters.
11962         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11963         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11964         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11965         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11966         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11967
11968 2009-06-30  Bruno Haible  <bruno@clisp.org>
11969
11970         Tests for module 'unicase/ignorable'.
11971         * modules/unicase/ignorable-tests: New file.
11972         * tests/unicase/test-ignorable.c: New file, generated by
11973         gen-uni-tables.
11974
11975         Tests for module 'unicase/cased'.
11976         * modules/unicase/cased-tests: New file.
11977         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11978         * tests/unicase/test-predicate-part1.h: New file, derived from
11979         tests/unictype/test-predicate-part1.h.
11980         * tests/unicase/test-predicate-part2.h: New file, same as
11981         tests/unictype/test-predicate-part2.h.
11982
11983         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11984         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11985         (output_casing_properties): New function.
11986         (main): Call it.
11987         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11988         * lib/unicase/cased.c: Include unictype/bitmap.h.
11989         (uc_is_cased): Define through a bitmap lookup.
11990         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11991         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11992         (uc_is_case_ignorable): Define through a bitmap lookup.
11993         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11994         lib/unictype/bitmap.h.
11995         (Depends-on): Add inline. Clean up.
11996         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11997         lib/unictype/bitmap.h.
11998         (Depends-on): Add inline. Clean up.
11999         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12000         recognition.
12001         * tests/unicase/test-u16-tolower.c (main): Likewise.
12002         * tests/unicase/test-u32-tolower.c (main): Likewise.
12003
12004 2009-06-30  Bruno Haible  <bruno@clisp.org>
12005
12006         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12007         * lib/unicase/u16-casemap.c: Likewise.
12008         * lib/unicase/u32-casemap.c: Likewise.
12009
12010 2009-06-29  Bruno Haible  <bruno@clisp.org>
12011
12012         Define u32_casefold as a wrapper around u32_ct_casefold.
12013         * lib/unicase/u32-casefold.c: Update.
12014         * modules/unicase/u32-casefold (Depends-on): Add
12015         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12016         unicase/empty-suffix-context. Clean up.
12017
12018         Define u16_casefold as a wrapper around u16_ct_casefold.
12019         * lib/unicase/u16-casefold.c: Update.
12020         * modules/unicase/u16-casefold (Depends-on): Add
12021         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12022         unicase/empty-suffix-context. Clean up.
12023
12024         Define u8_casefold as a wrapper around u8_ct_casefold.
12025         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12026         * lib/unicase/u8-casefold.c: Update.
12027         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12028         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12029
12030         Define u32_totitle as a wrapper around u32_ct_totitle.
12031         * lib/unicase/u32-totitle.c: Update.
12032         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12033         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12034
12035         Define u16_totitle as a wrapper around u16_ct_totitle.
12036         * lib/unicase/u16-totitle.c: Update.
12037         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12038         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12039
12040         Define u8_totitle as a wrapper around u8_ct_totitle.
12041         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12042         functions.
12043         (FUNC): Delegate to U_CT_TOTITLE.
12044         * lib/unicase/u8-totitle.c: Update.
12045         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12046         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12047
12048         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12049         invocation.
12050         * modules/unicase/u32-tolower (Depends-on): Add
12051         unicase/empty-prefix-context, unicase/empty-suffix-context.
12052
12053         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12054         invocation.
12055         * modules/unicase/u16-tolower (Depends-on): Add
12056         unicase/empty-prefix-context, unicase/empty-suffix-context.
12057
12058         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12059         * modules/unicase/u8-tolower (Depends-on): Add
12060         unicase/empty-prefix-context, unicase/empty-suffix-context.
12061
12062         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12063         invocation.
12064         * modules/unicase/u32-toupper (Depends-on): Add
12065         unicase/empty-prefix-context, unicase/empty-suffix-context.
12066
12067         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12068         invocation.
12069         * modules/unicase/u16-toupper (Depends-on): Add
12070         unicase/empty-prefix-context, unicase/empty-suffix-context.
12071
12072         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12073         * modules/unicase/u8-toupper (Depends-on): Add
12074         unicase/empty-prefix-context, unicase/empty-suffix-context.
12075
12076         New module 'unicase/u32-ct-casefold'.
12077         * lib/unicase/u32-ct-casefold.c: New file.
12078         * modules/unicase/u32-ct-casefold: New file.
12079
12080         New module 'unicase/u16-ct-casefold'.
12081         * lib/unicase/u16-ct-casefold.c: New file.
12082         * modules/unicase/u16-ct-casefold: New file.
12083
12084         New module 'unicase/u8-ct-casefold'.
12085         * lib/unicase/u8-ct-casefold.c: New file.
12086         * lib/unicase/u-ct-casefold.h: New file, derived from
12087         lib/unicase/u-casefold.h.
12088         * modules/unicase/u8-ct-casefold: New file.
12089
12090         New module 'unicase/u32-ct-totitle'.
12091         * lib/unicase/u32-ct-totitle.c: New file.
12092         * modules/unicase/u32-ct-totitle: New file.
12093
12094         New module 'unicase/u16-ct-totitle'.
12095         * lib/unicase/u16-ct-totitle.c: New file.
12096         * modules/unicase/u16-ct-totitle: New file.
12097
12098         New module 'unicase/u8-ct-totitle'.
12099         * lib/unicase/u8-ct-totitle.c: New file.
12100         * lib/unicase/u-ct-totitle.h: New file, derived from
12101         lib/unicase/u-totitle.h.
12102         * modules/unicase/u8-ct-totitle: New file.
12103
12104         New module 'unicase/u32-ct-tolower'.
12105         * lib/unicase/u32-ct-tolower.c: New file.
12106         * modules/unicase/u32-ct-tolower: New file.
12107
12108         New module 'unicase/u16-ct-tolower'.
12109         * lib/unicase/u16-ct-tolower.c: New file.
12110         * modules/unicase/u16-ct-tolower: New file.
12111
12112         New module 'unicase/u8-ct-tolower'.
12113         * lib/unicase/u8-ct-tolower.c: New file.
12114         * modules/unicase/u8-ct-tolower: New file.
12115
12116         New module 'unicase/u32-ct-toupper'.
12117         * lib/unicase/u32-ct-toupper.c: New file.
12118         * modules/unicase/u32-ct-toupper: New file.
12119
12120         New module 'unicase/u16-ct-toupper'.
12121         * lib/unicase/u16-ct-toupper.c: New file.
12122         * modules/unicase/u16-ct-toupper: New file.
12123
12124         New module 'unicase/u8-ct-toupper'.
12125         * lib/unicase/u8-ct-toupper.c: New file.
12126         * modules/unicase/u8-ct-toupper: New file.
12127
12128         Add context arguments to u*_casemap functions.
12129         * lib/unicase/unicasemap.h: Include unicase.h.
12130         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12131         suffix_context arguments.
12132         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12133         functions.
12134         (FUNC): Add prefix_context and suffix_context arguments. Use
12135         uc_is_cased and uc_is_case_ignorable.
12136         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12137         * lib/unicase/u16-casemap.c: Likewise.
12138         * lib/unicase/u32-casemap.c: Likewise.
12139         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12140         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12141         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12142         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12143         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12144         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12145
12146         New module 'unicase/u32-suffix-context'.
12147         * lib/unicase/u32-suffix-context.c: New file.
12148         * modules/unicase/u32-suffix-context: New file.
12149
12150         New module 'unicase/u16-suffix-context'.
12151         * lib/unicase/u16-suffix-context.c: New file.
12152         * modules/unicase/u16-suffix-context: New file.
12153
12154         New module 'unicase/u8-suffix-context'.
12155         * lib/unicase/u8-suffix-context.c: New file.
12156         * lib/unicase/u-suffix-context.h: New file.
12157         * modules/unicase/u8-suffix-context: New file.
12158
12159         New module 'unicase/empty-suffix-context'.
12160         * lib/unicase/empty-suffix-context.c: New file.
12161         * modules/unicase/empty-suffix-context: New file.
12162
12163         New module 'unicase/u32-prefix-context'.
12164         * lib/unicase/u32-prefix-context.c: New file.
12165         * modules/unicase/u32-prefix-context: New file.
12166
12167         New module 'unicase/u16-prefix-context'.
12168         * lib/unicase/u16-prefix-context.c: New file.
12169         * modules/unicase/u16-prefix-context: New file.
12170
12171         New module 'unicase/u8-prefix-context'.
12172         * lib/unicase/u8-prefix-context.c: New file.
12173         * lib/unicase/u-prefix-context.h: New file.
12174         * lib/unicase/context.h: New file.
12175         * modules/unicase/u8-prefix-context: New file.
12176
12177         New module 'unicase/empty-prefix-context'.
12178         * lib/unicase/empty-prefix-context.c: New file.
12179         * modules/unicase/empty-prefix-context: New file.
12180
12181         New module 'unicase/ignorable'.
12182         * lib/unicase/ignorable.c: New file.
12183         * modules/unicase/ignorable: New file.
12184
12185         New module 'unicase/cased'.
12186         * lib/unicase/caseprop.h: New file.
12187         * lib/unicase/cased.c: New file.
12188         * modules/unicase/cased: New file.
12189
12190         New functions for case mapping of substrings.
12191         * lib/unicase.h (casing_prefix_context_t): New type.
12192         (unicase_empty_prefix_context): New variable.
12193         (u8_casing_prefix_context, u16_casing_prefix_context,
12194         u32_casing_prefix_context, u8_casing_prefixes_context,
12195         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12196         declarations.
12197         (casing_suffix_context_t): New type.
12198         (unicase_empty_suffix_context): New variable.
12199         (u8_casing_suffix_context, u16_casing_suffix_context,
12200         u32_casing_suffix_context, u8_casing_suffixes_context,
12201         u16_casing_suffixes_context, u32_casing_suffixes_context,
12202         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12203         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12204         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12205         declarations.
12206
12207 2009-06-28  Jim Meyering  <meyering@redhat.com>
12208
12209         boostrap: indent only with spaces
12210         * build-aux/bootstrap: Indent only with spaces, never TABs.
12211
12212         bootstrap: split long lines
12213         * build-aux/bootstrap: Keep line length < 80.
12214
12215         bootstrap: sync from coreutils
12216         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12217         just as autoreconf does.  Verify a list of prerequisite
12218         package-name,version-number pairs if defined in bootstrap.conf.
12219         Refer to README-prereq, if prerequisites are not satisfied.
12220
12221 2009-06-27  Eric Blake  <ebb9@byu.net>
12222
12223         tests: add test for bogus NULL definition
12224         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12225         * tests/test-stdlib.c: Likewise.
12226         * tests/test-string.c: Likewise.
12227         * tests/test-locale.c: Likewise.
12228         * tests/test-unistd.c: Likewise.
12229         * modules/stdio-tests (Depends-on): Add verify.
12230         * modules/stdlib-tests (Depends-on): Likewise.
12231         * modules/string-tests (Depends-on): Likewise.
12232         * modules/locale-tests (Depends-on): Likewise.
12233         * modules/unistd-tests (Depends-on): Likewise.
12234
12235 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12236
12237         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12238         self-explaining comment.
12239         * m4/selinux-selinux-h: Update serial.
12240         (gl_LIBSELINUX): New macro, adding a warning for missing development
12241         packages to code extracted from...
12242         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12243         Add warning for missing development packages here, too.
12244
12245 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12246
12247         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12248
12249 2009-06-25  Eric Blake  <ebb9@byu.net>
12250
12251         version-etc: fix regression
12252         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12253         gcc.
12254         (version_etc): Use it, to catch bugs with trailing NULL.
12255         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12256         (version_etc_va): Fix logic bug.
12257         * modules/version-etc-tests: Add test.
12258         * tests/test-version-etc.c: New file.
12259         * tests/test-version-etc.sh: Likewise.
12260
12261 2009-06-25  Sam Steingold  <sds@gnu.org>
12262
12263         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12264         mbtowc declaration.
12265
12266 2009-06-25  Eric Blake  <ebb9@byu.net>
12267
12268         fpurge: migrate into <stdio.h>
12269         * lib/fpurge.h: Delete...
12270         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12271         * lib/fpurge.c (fpurge): Change declaring header.
12272         * modules/fpurge (Files): Drop deleted file.
12273         (Depends-on): Add stdio.
12274         (configure.ac): Set witness.
12275         * modules/stdio (Makefile.am): Support fpurge macros.
12276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12277         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12278         * lib/fflush.c: Update client.
12279         * tests/test-fpurge.c: Likewise.
12280         * NEWS: Mention the change.
12281
12282 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12283
12284         * lib/argp-version-etc.c (program_authors): Add const
12285         qualifier.
12286         * lib/version-etc.c: Fix typos in the comments.
12287         * modules/argp-version-etc: Depends on version-etc.
12288
12289 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12290
12291         argp-version-etc: new module.
12292
12293         * lib/argp-version-etc.c: New file.
12294         * lib/argp-version-etc.h: New file.
12295         * modules/argp-version-etc: New file.
12296         * modules/argp-version-etc-tests: New file.
12297         * tests/test-argp-version-etc.c: New test.
12298         * tests/test-argp-version-etc-1.sh: New test.
12299
12300 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12301
12302         Provide additional interfaces and documentation for version-etc
12303         module.
12304
12305         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12306         interfaces.
12307         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12308         prototypes.
12309
12310 2009-06-24  Bruno Haible  <bruno@clisp.org>
12311
12312         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12313         HAVE_LIB${NAME} macro.
12314         Reported by Sam Steingold <sds@gnu.org>.
12315
12316 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12317
12318         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12319         needed.
12320
12321 2009-06-21  Bruno Haible  <bruno@clisp.org>
12322
12323         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12324         work.
12325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12326         together with LIB${NAME}, LTLIB${NAME}.
12327         Reported by Sam Steingold <sds@gnu.org>.
12328
12329 2009-06-20  Jim Meyering  <meyering@redhat.com>
12330
12331         tests: make sc_require_test_exit_idiom more generic
12332         * top/maint.mk (Exit_witness_file): New overridable variable.
12333         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12334         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12335
12336 2009-06-19  Jim Meyering  <meyering@redhat.com>
12337
12338         hash: reverse order of src/dst parameters in an internal interface
12339         * lib/hash.c (transfer_entries): Reverse order of parameters to
12340         put DST before SRC.  Adjust callers.
12341
12342         tests: test-hash: avoid wholesale duplication
12343         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12344         Instead, use a loop and add a single conditional.
12345
12346         tests: test-hash: allow seed selection via a command line argument
12347         * tests/test-hash.c (get_seed): New function.
12348         (main): Use it.
12349
12350 2009-06-19  Eric Blake  <ebb9@byu.net>
12351
12352         hash: avoid memory leak on allocation failure
12353         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12354         failure.  Factor repeated algorithm...
12355         (transfer_entries): ...into new helper routine.
12356         (hash_delete): React to hash_rehash return value.
12357
12358         hash: reduce memory pressure in hash_rehash no-op case
12359         * lib/hash.c (next_prime): Avoid overflow.
12360         (hash_initialize): Factor bucket size computation...
12361         (compute_bucket_size): ...into new helper function.
12362         (hash_rehash): Use new function and open coding to reduce memory
12363         pressure, and avoid a memory leak in USE_OBSTACK code.
12364         Reported by Jim Meyering.
12365
12366 2009-06-18  Eric Blake  <ebb9@byu.net>
12367
12368         hash: make rotation more obvious
12369         * modules/hash (Depends-on): Add bitrotate and stdint.
12370         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12371         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12372         (SIZE_MAX): Rely on headers for definition.
12373         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12374         (raw_hasher): Use rotr_sz.
12375         Suggested by Jim Meyering.
12376
12377         hash: fix memory leak in last patch
12378         * lib/hash.c (hash_rehash): Avoid memory leak.
12379
12380         hash: avoid no-op rehashing
12381         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12382
12383         hash: provide default callback functions
12384         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12385         (hash_initialize): Use them as defaults.
12386         * tests/test-hash.c (main): Test this.
12387
12388         hash: minor optimization
12389         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12390         when possible.
12391         (hash_initialize): Document this promise.
12392         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12393         * tests/test-hash.c (hash_compare_strings): Test this.
12394
12395 2009-06-18  Bruno Haible  <bruno@clisp.org>
12396
12397         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12398         going to be replaced anyway.
12399
12400 2009-06-18  Bruno Haible  <bruno@clisp.org>
12401
12402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12403         in one place.
12404         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12405         be replaced anyway.
12406
12407 2009-06-18  Eric Blake  <ebb9@byu.net>
12408
12409         hash: check for resize before insertion
12410         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12411         threshold before insertion, so that a pathological hash_rehash
12412         that fills every bucket can still trigger another rehash.
12413
12414 2009-06-18  Jim Meyering  <meyering@redhat.com>
12415
12416         hash-tests: add a loop around the small tests
12417         * tests/test-hash.c (main): Repeat small tests with selected
12418         small initial table sizes.
12419
12420 2009-06-17  Eric Blake  <ebb9@byu.net>
12421
12422         hash: minor cleanups
12423         * lib/hash.h (hash_entry): Make opaque, by moving...
12424         * lib/hash.c (hash_entry): ...here.
12425         (hash_insert): Clarify restrictions on what can be inserted.
12426         (hash_get_next): Clarify when it is safe to remove an element
12427         during traversal.
12428         (check_tuning): Skip verification when tuning is known safe.
12429         (hash_initialize): Clarify restrictions on tuning.
12430
12431 2009-06-17  Jim Meyering  <jim@meyering.net>
12432         and Eric Blake  <ebb9@byu.net>
12433
12434         hash-tests: new module
12435         * modules/hash-tests: New file.
12436         * tests/test-hash.c: New file.
12437
12438 2009-06-17  Eric Blake  <ebb9@byu.net>
12439
12440         strstr-simple: document new module
12441         * MODULES.html.sh: Document new module.
12442
12443         strstr, strcasestr: replace on platforms with broken memchr
12444         * modules/strstr: Split into...
12445         * modules/strstr-simple: ...new module that does not care about
12446         performance, but does care about glibc bug.
12447         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12448         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12449         if platform memchr is broken, per Debian bug 521737.
12450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12451         memchr.
12452         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12453         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12454         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12455         * modules/mountlist (Depends-on): Add strstr-simple.
12456         * modules/gen-uni-tables (Depends-on): Likewise.
12457         * modules/argz (Depends-on): Add strstr.
12458
12459 2009-06-17  Bruno Haible  <bruno@clisp.org>
12460
12461         * modules/posix_spawn-internal (Depends-on): Add errno.
12462
12463 2009-06-17  Bruno Haible  <bruno@clisp.org>
12464
12465         Define missing ESTALE on Interix 3.5.
12466         * lib/errno.in.h (ESTALE): Assign a value if missing.
12467         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12468         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12469         missing.
12470         * doc/posix-headers/errno.texi: Mention the Interix bug.
12471         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12472
12473 2009-06-15  Eric Blake  <ebb9@byu.net>
12474
12475         memchr, memchr2: add valgrind exception
12476         * lib/memchr.valgrind: New file.
12477         * lib/memchr2.valgrind: New file.
12478         * modules/memchr (Files): Distribute valgrind file.
12479         * modules/memchr2 (Files): Likewise.
12480
12481         docs: memchr is no longer obsolete
12482         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12483         * lib/string.in.h (memchr): Simplify logic.
12484
12485 2009-06-14  Jim Meyering  <meyering@redhat.com>
12486
12487         link-follow: fix the "checking..." message to not mention trailing slash
12488         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12489         never considered trailing slashes.
12490
12491 2009-06-14  Bruno Haible  <bruno@clisp.org>
12492
12493         * m4/memchr.m4: Mention also the bug on IA-64.
12494         * doc/posix-functions/memchr.texi: Likewise.
12495
12496 2009-06-12  Eric Blake  <ebb9@byu.net>
12497
12498         memchr: detect broken x86_64 and alpha implementations
12499         * modules/memchr-tests (Depends-on): Move mmap detection...
12500         * modules/memchr (Depends-on): ...here.
12501         (configure.ac): Set indicator.
12502         * lib/string.in.h (memchr): Declare replacement.
12503         * modules/string (Makefile.am): Trigger replacement.
12504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12505         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12506         bugs.
12507         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12508         * modules/getpagesize (License): Relax license.
12509
12510 2009-06-11  Bruno Haible  <bruno@clisp.org>
12511
12512         * lib/idpriv.h: Add more references.
12513
12514 2009-06-08  Bruno Haible  <bruno@clisp.org>
12515
12516         Tests for module 'idpriv-droptemp'.
12517         * modules/idpriv-droptemp-tests: New file.
12518         * tests/test-idpriv-droptemp.sh: New file.
12519         * tests/test-idpriv-droptemp.su.sh: New file.
12520         * tests/test-idpriv-droptemp.c: New file.
12521
12522         New module 'idpriv-droptemp'.
12523         * lib/idpriv-droptemp.c: New file.
12524         * modules/idpriv-droptemp: New file.
12525
12526 2009-06-08  Bruno Haible  <bruno@clisp.org>
12527
12528         Tests for module 'idpriv-drop'.
12529         * modules/idpriv-drop-tests: New file.
12530         * tests/test-idpriv-drop.sh: New file.
12531         * tests/test-idpriv-drop.su.sh: New file.
12532         * tests/test-idpriv-drop.c: New file.
12533
12534         New module 'idpriv-drop'.
12535         * lib/idpriv.h: New file.
12536         * lib-idpriv-drop.c: New file.
12537         * m4/idpriv.m4: New file.
12538         * modules/idpriv-drop: New file.
12539
12540 2009-06-08  Bruno Haible  <bruno@clisp.org>
12541
12542         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12543         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12544         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12545         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12546         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12547         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12548         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12549
12550 2009-06-08  Eric Blake  <ebb9@byu.net>
12551
12552         test-strstr: use memory fence, when possible
12553         * tests/test-strstr.c (main): Use memory fence, in order to be
12554         more likely to trigger Debian bug 521737.
12555         * modules/strstr-tests (Files): Pull in additional files.
12556
12557         memchr: no longer obsolete, for wider field testing
12558         * modules/memchr (Status, Notice): Delete, this module is no
12559         longer obsolete.
12560         * modules/vasnprintf (Depends-on): Add memchr.
12561
12562 2009-06-07  Jim Meyering  <meyering@redhat.com>
12563
12564         hash: declare some functions with the warn_unused_result attribute
12565         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12566
12567 2009-06-07  Bruno Haible  <bruno@clisp.org>
12568
12569         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12570         Reported by Eric Blake.
12571
12572 2009-06-06  Eric Blake  <ebb9@byu.net>
12573
12574         test-alignof: fix typo with long double
12575         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12576         compiler error.
12577
12578 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12579
12580         Escape non-texinfo { and }s.
12581         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12582         markup error.
12583
12584 2009-06-04  Jim Meyering  <meyering@redhat.com>
12585
12586         gitlog-to-changelog: don't infloop on an empty commit log
12587         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12588         Reported by Boris Petersen <transacid@centerim.org>.
12589
12590 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12591
12592         version-etc: extend for packagers
12593         Add three new configure options, intended for packagers:
12594           --with-packager="packager name"
12595           --with-packager-version="packager-specific version"
12596           --with-packager-bug-reports="packager bug reporting"
12597         An example with coreutils:
12598           $ ./configure \
12599             --with-packager=Gentoo \
12600             --with-packager-bug-report=http://bugs.gentoo.org/ \
12601             --with-packager-version="patchset 1.6"
12602           $ ./src/ls --version | head -n2
12603           ls (GNU coreutils) 7.1-dirty
12604           Packaged by Gentoo (patchset 1.6)
12605         Note that the bug reporting info via --help doesn't show up because
12606         coreutils uses its own custom emit_bug_reporting_address() implementation
12607         in src/system.h.  If it didn't, it'd look like:
12608           $ ./src/ls --help | tail -n4
12609           Report bugs to <bug-coreutils@gnu.org>.
12610           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12611           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12612           General help using GNU software: <http://www.gnu.org/gethelp/>.
12613         * lib/version-etc.c: Print new information, if provided.
12614         * m4/version-etc.m4: New file.
12615         * modules/version-etc (Files): Add m4/version-etc.m4.
12616         (configure.ac): Add gl_VERSION_ETC.
12617
12618 2009-05-31  Bruno Haible  <bruno@clisp.org>
12619
12620         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12621         and 'int64_t'.
12622         * modules/alignof-tests (Dependencies): Add stdint.
12623         Reported by Eric Blake.
12624
12625 2009-05-31  Bruno Haible  <bruno@clisp.org>
12626
12627         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12628         restriction due to compiler bugs.
12629         Reported by Eric Blake.
12630
12631 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12632             Bruno Haible  <bruno@clisp.org>
12633
12634         Fix test-alignof failure.
12635         * lib/alignof.h (alignof_slot): New macro.
12636         (alignof_type): New macro, with the same semantics as the previous
12637         'alignof'.
12638         (alignof): Alias to alignof_slot.
12639         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12640         check that the results are usable as constant expressions.
12641
12642 2009-05-31  Bruno Haible  <bruno@clisp.org>
12643
12644         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12645         * tests/test-memchr.c (main): Check that memchr does not read past the
12646         first occurrence of the byte.
12647         * tests/test-strstr.c (main): Update comment.
12648         Suggested by Eric Blake.
12649
12650 2009-05-30  Bruno Haible  <bruno@clisp.org>
12651
12652         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12653         detail how to use dumpbin.
12654         Reported by David Byron <dbyron@dbyron.com>.
12655
12656 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12657
12658         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12659
12660 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12661
12662         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12663
12664 2009-05-28  Bruno Haible  <bruno@clisp.org>
12665
12666         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12667         build-aux/ files.
12668
12669 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12670
12671         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12672
12673 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12674
12675         * gnulib-tool (sed_transform_main_lib_file)
12676         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12677         regexps.
12678
12679 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12680
12681         * tests/test-strstr.c: Add another self-test.
12682         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12683         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12684
12685 2009-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12688         change.
12689
12690 2009-05-21  Bruno Haible  <bruno@clisp.org>
12691
12692         Simplify use of mode_t varargs.
12693         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12694         uses 'mode_t' or 'int'.
12695         * lib/openat.c (openat): Likewise.
12696         * lib/open-safer.c (open_safer): Likewise.
12697         * m4/mode_t.m4: New file.
12698         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12699         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12700         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12701         * modules/open (Files): Add m4/mode_t.m4.
12702         * modules/openat (Files): Likewise.
12703         * modules/fcntl-safer (Files): Likewise.
12704         Suggested by Eric Blake.
12705
12706 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12707
12708         * doc/glibc-functions/fallocate.texi: New file.
12709         * doc/gnulib.texi: Include it.
12710
12711 2009-05-21  Eric Blake  <ebb9@byu.net>
12712             Bruno Haible  <bruno@clisp.org>
12713
12714         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12715         invocations.
12716         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12717
12718 2009-05-21  Eric Blake  <ebb9@byu.net>
12719             Bruno Haible  <bruno@clisp.org>
12720
12721         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12722         include_next. Fix of 2008-11-20 commit.
12723         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12724         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12725         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12726         NEXT_MATH_H.
12727         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12728         instead of NEXT_MATH_H.
12729
12730 2009-05-21  Bruno Haible  <bruno@clisp.org>
12731
12732         Avoid redefinition warnings for SIZE_MAX.
12733         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12734         Reported by Simon Josefsson.
12735
12736 2009-05-21  Bruno Haible  <bruno@clisp.org>
12737
12738         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12739         AC_CACHE_VAL.
12740
12741 2009-05-20  Bruno Haible  <bruno@clisp.org>
12742
12743         Make zeroptr.h work on mingw.
12744         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12745         mprotect.
12746         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12747         * modules/memchr2-tests (configure.ac): Likewise.
12748         * modules/memcmp-tests (configure.ac): Likewise.
12749         * modules/memmem-tests (configure.ac): Likewise.
12750         * modules/memrchr-tests (configure.ac): Likewise.
12751         Reported by Simon Josefsson.
12752
12753 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12754
12755         * tests/test-glob.c: Include string.h for strcmp prototype.
12756
12757 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12758
12759         * modules/getdelim (Depends-on): Add explicit stdint, although it
12760         was implicitly already pulled in via realloc-posix.
12761         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12762
12763 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12764
12765         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12766         G. Christensen" <tgc@jupiterrise.com>.
12767         * m4/sys_socket_h.m4: Check for sa_family_t.
12768         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12769         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12770         * tests/test-sys_socket.c: Check that sa_family_t works.
12771
12772 2009-05-18  Eric Blake  <ebb9@byu.net>
12773
12774         maint.mk: allow gnulib_dir in VPATH build
12775         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12776
12777 2009-05-15  Jim Meyering  <meyering@redhat.com>
12778
12779         maint.mk: Give gnulib_dir a default definition.
12780         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12781         Thus, most packages no longer need to specify this variable in cfg.mk
12782
12783 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12784
12785         rename.m4: fix typos that would make non-mingw cross-configure fail
12786         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12787
12788 2009-05-13  Eric Blake  <ebb9@byu.net>
12789
12790         mmap-anon: avoid out-of-order autoconf expansion
12791         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12792         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12793         * modules/memchr-tests (Depends-on): Add extensions.
12794         * modules/memchr2-tests (Depends-on): Add extensions.
12795         * modules/memcmp-tests (Depends-on): Add extensions.
12796         * modules/memmem-tests (Depends-on): Add extensions.
12797         * modules/memrchr-tests (Depends-on): Add extensions.
12798
12799 2009-05-13  Bruno Haible  <bruno@clisp.org>
12800
12801         Make some tests ISO C 99 compliant.
12802         * tests/zerosize-ptr.h: New file.
12803         * tests/test-memchr.c: Include zerosize-ptr.h.
12804         (main): Use a zero-size object pointer instead of NULL.
12805         * tests/test-memchr2.c: Include zerosize-ptr.h.
12806         (main): Use a zero-size object pointer instead of NULL.
12807         * tests/test-memcmp.c: Include zerosize-ptr.h.
12808         (main): Use a zero-size object pointer instead of NULL.
12809         * tests/test-memmem.c: Include zerosize-ptr.h.
12810         (main): Use a zero-size object pointer instead of NULL.
12811         * tests/test-memrchr.c: Include zerosize-ptr.h.
12812         (main): Use a zero-size object pointer instead of NULL.
12813         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12814         m4/mmap-anon.m4.
12815         (Depends-on): Add getpagesize.
12816         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12817         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12818         m4/mmap-anon.m4.
12819         (Depends-on): Add getpagesize.
12820         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12821         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12822         m4/mmap-anon.m4.
12823         (Depends-on): Add getpagesize.
12824         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12825         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12826         m4/mmap-anon.m4.
12827         (Depends-on): Add getpagesize.
12828         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12829         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12830         m4/mmap-anon.m4.
12831         (Depends-on): Add getpagesize.
12832         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12833
12834 2009-05-12  Bruno Haible  <bruno@clisp.org>
12835
12836         Tests for module 'alignof'.
12837         * modules/alignof-tests: New file.
12838         * tests/test-alignof.c: New file.
12839
12840 2009-05-12  Bruno Haible  <bruno@clisp.org>
12841
12842         Fix alignof macro.
12843         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12844         vendor compilers that are always correct.
12845
12846 2009-05-12  Bruno Haible  <bruno@clisp.org>
12847
12848         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12849         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12850         not whether its fully works.
12851
12852 2009-05-12  Bruno Haible  <bruno@clisp.org>
12853
12854         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12855
12856 2009-05-12  Jim Meyering  <meyering@redhat.com>
12857
12858         * top/maint.mk: Adjust backslash alignment.
12859
12860 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12861
12862         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12863
12864 2009-05-11  Eric Blake  <ebb9@byu.net>
12865
12866         argp: avoid undefined behavior
12867         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12868         macros.
12869
12870 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12871
12872         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12873         user.name to prevent git commit from complaining.
12874
12875 2009-05-10  Bruno Haible  <bruno@clisp.org>
12876
12877         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12878         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12879         it rewrites every file name only once.
12880         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12881
12882 2009-05-08  Bruno Haible  <bruno@clisp.org>
12883
12884         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12885         instead of 'max'.
12886
12887 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12888
12889         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12890         sockaddr_storage test.
12891
12892 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12893
12894         * modules/sys_socket (Makefile.am): Substitute
12895         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12896         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12897         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12898         * tests/test-sys_socket.c: Check sockaddr_storage.
12899
12900 2009-05-08  Bruno Haible  <bruno@clisp.org>
12901
12902         New module 'alignof'.
12903         * lib/alignof.h: New file.
12904         * modules/alignof: New file.
12905
12906 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12907             Bruno Haible  <bruno@clisp.org>
12908
12909         Fix test-file-has-acl on FreeBSD.
12910         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12911         mask is implicitly added.
12912         * tests/test-file-has-acl.c: Include <signal.h>.
12913         (main): Terminate the test after 5 seconds.
12914         * modules/acl-tests (configure.ac): Check for alarm function.
12915
12916 2009-05-04  Bruno Haible  <bruno@clisp.org>
12917
12918         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12919         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12920         * modules/errno (configure.ac): Drop AC_REQUIRE.
12921         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12922         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12923
12924 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12925
12926         * modules/glob-tests: New module.
12927         * tests/test-glob.c: Add.
12928
12929 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12930
12931         * modules/fnmatch-tests: New module.
12932         * tests/test-fnmatch.c: Add.
12933
12934 2009-05-04  Eric Blake  <ebb9@byu.net>
12935
12936         maint: make the new no-submodule-changes rule VPATH-safe
12937         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12938
12939 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12940             Bruno Haible  <bruno@clisp.org>
12941
12942         acl: Fix infinite loop on FreeBSD.
12943         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12944         of return value from acl_get_entry.
12945         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12946         Likewise.
12947
12948 2009-05-03  Bruno Haible  <bruno@clisp.org>
12949
12950         * lib/acl-internal.h (acl_entries): Clarify return value.
12951         * lib/acl_entries.c (acl_entries): Likewise.
12952
12953 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12954
12955         Bug fix in acl module.
12956         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12957
12958 2009-05-03  Bruno Haible  <bruno@clisp.org>
12959
12960         Create gperf-generated file in the source dir, not in the build dir.
12961         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12962         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12963         * modules/unicase/locale-language (unicase/locale-languages.h):
12964         Likewise.
12965         * modules/unicase/special-casing (unicase/special-casing-table.h):
12966         Likewise.
12967         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12968         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12969         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12970         Reported by Ralf Wildenhues.
12971
12972 2009-05-03  Bruno Haible  <bruno@clisp.org>
12973
12974         * modules/fnmatch (Description, configure.ac): Taken from
12975         fnmatch-posix.
12976         * modules/fnmatch-posix: Turn into a symbolic reference to the
12977         'fnmatch' module, and deprecate.
12978         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12979
12980 2009-05-03  Bruno Haible  <bruno@clisp.org>
12981
12982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12983         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12984         Reported by Ralf Wildenhues.
12985
12986 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12987
12988         * m4/fnmatch.m4: Fix fnmatch re-define.
12989
12990 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12991
12992         priv-set: new module and tests; adapt write-any-file
12993         * lib/priv-set.c: New file.
12994         * lib/priv-set.h: New file.
12995         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12996         * lib/write-any-file.c: Simplify by using priv-set module.
12997         * m4/priv-set.m4: New file.
12998         * modules/priv-set: New file.
12999         * modules/unlinkdir: Add dependency on priv-set module.
13000         * modules/write-any-file: Likewise.
13001
13002         Tests for module 'priv-set'.
13003         * modules/priv-set-tests: New file.
13004         * tests/test-priv-set.c: New file.
13005
13006 2009-05-03  Jim Meyering  <meyering@redhat.com>
13007             Bruno Haible  <bruno@clisp.org>
13008
13009         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13010         use the converted UTF-8 variant of the name instead.
13011
13012 2009-05-03  Jim Meyering  <meyering@redhat.com>
13013
13014         tests: tighten some getdate tests
13015         * tests/test-getdate.c (main): Tighten tests: require equality,
13016         not just greater than.  Set TZ envvar to UTC0.
13017
13018 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13019
13020         getdate: correctly interpret "next monday" when run on a Monday
13021         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13022         that e.g., "next tues" (when run on a tuesday) results in a date
13023         that is one week in the future, and not today's date.
13024         I.e., add a week when the wday is the same as the current one.
13025         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13026         and earlier by Martin Bernreuther and Jan Minář.
13027         * tests/test-getdate.c (main): Check that "next DAY" is always in
13028         the future and that "last DAY" is always in the past.
13029
13030 2009-05-02  Jim Meyering  <meyering@redhat.com>
13031
13032         build: ensure that a release build fails when a submodule is unclean
13033         * top/maint.mk (no-submodule-changes): New rule.
13034         (alpha beta major): Depend on it.
13035
13036 2009-05-02  Bruno Haible  <bruno@clisp.org>
13037
13038         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13039         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13040         shell variable gl_fnmatch_required to detect which variant is
13041         requested.
13042         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13043         gl_FUNC_FNMATCH_POSIX.
13044         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13045         exclude fnmatch-posix.
13046
13047 2009-05-02  Bruno Haible  <bruno@clisp.org>
13048
13049         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13050         * modules/mbsrtowcs (License): Change to LGPLv2+.
13051         * modules/strnlen1 (License): Likewise.
13052         Reported by Simon Josefsson.
13053
13054 2009-05-02  Bruno Haible  <bruno@clisp.org>
13055
13056         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13057         "cross".
13058         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13059         gnulib-tool was called with option --source-base=lib.
13060
13061 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13062
13063         Use automake *-local hooks without commands, for extensibility.
13064         * modules/localcharset (Makefile.am): Rename install-exec-local
13065         rule to install-exec-localcharset, and make it a prerequisite of
13066         install-exec-local.  Likewise, rename the uninstall-local rule to
13067         uninstall-localcharset, and make it a prerequisite of the former.
13068
13069 2009-05-01  Bruno Haible  <bruno@clisp.org>
13070
13071         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13072         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13073         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13075         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13076         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13077         m4/locale-zh.m4, m4/codeset.m4.
13078
13079         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13080         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13081         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13082         m4/locale-zh.m4.
13083
13084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13085         REPLACE_WCRTOMB if mbstate_t must be replaced.
13086         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13087         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13088
13089 2009-05-01  Bruno Haible  <bruno@clisp.org>
13090
13091         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13092         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13093         dngettext, dcngettext, textdomain, bindtextdomain,
13094         bind_textdomain_codeset): Undefine before redefining.
13095
13096 2009-04-30  Bruno Haible  <bruno@clisp.org>
13097
13098         Fix bug introduced on 2009-04-25.
13099         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13100         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13101         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13102         is defined.
13103         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13104         is defined.
13105         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13106         is defined.
13107         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13108
13109 2009-04-28  Bruno Haible  <bruno@clisp.org>
13110
13111         Comment tweaks.
13112         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13113         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13114         * lib/unicase.h (u*_casexfrm): Likewise.
13115         Reported by Paolo Bonzini.
13116
13117 2009-04-28  Bruno Haible  <bruno@clisp.org>
13118
13119         Fix a compilation error.
13120         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13121         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13122         Reported by Jim Meyering.
13123
13124 2009-04-27  Bruno Haible  <bruno@clisp.org>
13125
13126         New module 'libunistring'.
13127         * modules/libunistring: New file.
13128         * m4/libunistring.m4: New file.
13129         * MODULES.html.sh (Unicode string functions): Add it.
13130
13131 2009-04-27  Eric Blake  <ebb9@byu.net>
13132
13133         maint.mk: allow package-specific header to provide <config.h>
13134         * top/maint.mk (sc_require_config_h): New variable.
13135         (sc_require_config_h, sc_require_config_h_first): Use it.
13136
13137 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13138
13139         * top/maint.mk (sc_avoid_if_before_free): Except
13140         useless-if-before-free script.
13141
13142 2009-04-27  Eric Blake  <ebb9@byu.net>
13143
13144         maintainer-makefile: depend on all required helper scripts
13145         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13146         useless-if-before-free.
13147         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13148         version, rather than assuming gnulib checkout is available.
13149         Reported by Simen Josefsson.
13150
13151 2009-04-26  Bruno Haible  <bruno@clisp.org>
13152
13153         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13154         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13155         "../" or "..".
13156
13157 2009-04-26  Bruno Haible  <bruno@clisp.org>
13158
13159         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13160         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13161         AC_LIB_HAVE_LINKFLAGS.
13162
13163 2009-04-26  Bruno Haible  <bruno@clisp.org>
13164
13165         Simplify calling convention of u*_conv_from_encoding.
13166         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13167         u32_conv_from_encoding): Expect a resultbuf argument and return the
13168         result directly as a pointer.
13169         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13170         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13171         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13172         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13173         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13174         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13175         Update.
13176         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13177         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13178         * lib/vasnprintf.c (VASNPRINTF): Update.
13179         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13180         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13181         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13182         * NEWS: Mention the change.
13183
13184 2009-04-26  Bruno Haible  <bruno@clisp.org>
13185
13186         Simplify calling convention of u*_conv_to_encoding.
13187         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13188         u32_conv_to_encoding): Expect a resultbuf argument and return the
13189         result directly as a pointer.
13190         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13191         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13192         freeing scaled_offsets if mem_iconveha failed.
13193         * lib/unicase/u-casexfrm.h (FUNC): Update.
13194         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13195         * lib/vasnprintf.c (VASNPRINTF): Update.
13196         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13197         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13198         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13199         * NEWS: Mention the change.
13200
13201 2009-04-26  Bruno Haible  <bruno@clisp.org>
13202
13203         Avoid test failures on AIX and OSF/1.
13204         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13205         malloc(0).
13206         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13207         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13208         Likewise.
13209         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13210         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13211         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13212         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13213         * doc/posix-functions/malloc.texi: Document the portability problem
13214         related to malloc(0).
13215
13216 2009-04-26  Bruno Haible  <bruno@clisp.org>
13217
13218         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13219         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13220         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13221
13222 2009-04-25  Bruno Haible  <bruno@clisp.org>
13223
13224         Avoid link error when creating a namespace clean library.
13225         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13226         as macro with arguments if already defined as an alias.
13227         * lib/signbitf.c (gl_signbitf): Don't undefine.
13228         * lib/signbitd.c (gl_signbitd): Don't undefine.
13229         * lib/signbitl.c (gl_signbitl): Don't undefine.
13230
13231 2009-04-25  Jim Meyering  <meyering@redhat.com>
13232
13233         vc-list-files: fix another quoting bug
13234         * build-aux/vc-list-files: Avoid sed backslash expansion
13235         of pathological directory names.
13236
13237 2009-04-25  Eric Blake  <ebb9@byu.net>
13238
13239         vc-list-files: fix shell quoting error
13240         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13241         timestamp.
13242
13243 2009-04-25  Jim Meyering  <meyering@redhat.com>
13244
13245         vc-list-files: restore lost functionality with subdir argument
13246         * build-aux/vc-list-files: When given a non-"." sub-directory
13247         argument, substitute the $dir/ prefix back onto each resulting name.
13248         Otherwise, coreutils' root_tests check would fail.
13249
13250 2009-04-24  Eric Blake  <ebb9@byu.net>
13251
13252         vc-list-files: ignore git symlinks
13253         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13254         than ls-files, to ignore git symlinks.
13255
13256         maint.mk: import improvements from m4
13257         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13258         (move_if_change): Delete unused macro.
13259         (news-date-check, vc-diff-check): Support VPATH builds.
13260         (announcement): Likewise.  Split --bootstrap-tools list...
13261         (boostrap-tools): ...into separate list, which can be overridden
13262         in cfg.mk.
13263         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13264         requiring dependency on useless-if-before-free module.
13265         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13266         Support VPATH builds.
13267
13268 2009-04-24  Jim Meyering  <meyering@redhat.com>
13269
13270         maint.mk: remove coreutils-specific rules and variables
13271         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13272         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13273         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13274
13275         maint.mk: remove obsolete rule
13276         * top/maint.mk (rel-check): Remove rule.
13277         (WGET, WGETFLAGS): Remove now-unused variables.
13278
13279 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13280
13281         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13282         consistency.
13283
13284         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13285         '$(PATH_SEPARATOR)' instead of ':'.
13286
13287 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13288
13289         * lib/getopt1.c (main): Use 'const' for static array.
13290
13291 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13292
13293         * top/maint.mk: Sync with coreutils.
13294         * NEWS: Explain incompatibilities.
13295
13296 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13297             Bruno Haible  <bruno@clisp.org>
13298
13299         Fix cross-compilation results.
13300         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13301         statement, as third argument of AC_TRY_RUN.
13302         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13303         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13304         Likewise.
13305         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13306         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13307         Likewise.
13308         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13310         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13311
13312 2009-04-20  Bruno Haible  <bruno@clisp.org>
13313
13314         Avoid test failure on mingw.
13315         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13316
13317 2009-04-20  Bruno Haible  <bruno@clisp.org>
13318
13319         Avoid compilation error on mingw.
13320         * modules/localename-tests (Depends-on): Add locale.
13321
13322 2009-04-19  Bruno Haible  <bruno@clisp.org>
13323
13324         Support for building a shared library on Windows platforms.
13325         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13326         (main): Test the presence of UNINORM_NFC here.
13327         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13328         (main): Test the presence of UNINORM_NFD here.
13329         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13330         (main): Test the presence of UNINORM_NFKC here.
13331         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13332         (main): Test the presence of UNINORM_NFKD here.
13333
13334 2009-04-19  Bruno Haible  <bruno@clisp.org>
13335
13336         Avoid a compiler warning.
13337         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13338         Change type of variable 'sequence'.
13339
13340 2009-04-19  Bruno Haible  <bruno@clisp.org>
13341
13342         * modules/configmake (Makefile.am): When the contents of configmake.h
13343         does not change, arrange to preserve its modification time.
13344
13345 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13346
13347         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13348         gettext domain.
13349
13350 2009-04-16  Jim Meyering  <meyering@redhat.com>
13351
13352         useless-if-before-free: improve conversion code
13353         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13354         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13355
13356 2009-04-14  Bruno Haible  <bruno@clisp.org>
13357
13358         * modules/fcntl (Depends-on): Add extensions.
13359         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13360
13361 2009-04-12  Ben Pfaff  <blp@gnu.org>
13362
13363         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13364         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13365
13366 2009-03-20  Ben Pfaff  <blp@gnu.org>
13367
13368         Make rename replace existing destinations on Windows.
13369         * m4/rename.m4: Add test for Mingw.
13370         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13371         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13372         * doc/posix-functions/rename.texi: Document.
13373
13374 2009-04-10  Bruno Haible  <bruno@clisp.org>
13375
13376         New include file "iconveh.h".
13377         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13378         * lib/striconveh.h: Include it.
13379         (enum iconv_ilseq_handler): Remove definition.
13380         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13381         striconveh.h.
13382         * lib/striconveha.c: Include striconveh.h.
13383         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13384         * modules/striconveh (Files): Add lib/iconveh.h.
13385         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13386         lib/striconveh.h.
13387
13388 2009-04-10  Bruno Haible  <bruno@clisp.org>
13389
13390         * lib/uniconv.h: Update comment.
13391
13392 2009-04-10  Bruno Haible  <bruno@clisp.org>
13393
13394         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13395         always.
13396         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13397         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13398         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13399         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13400         "unistring-notinline.h", so that the function gets defined always.
13401         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13402         * lib/unistr/u8-uctomb.c: Likewise.
13403         * lib/unistr/u16-mbtouc.c: Likewise.
13404         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13405         * lib/unistr/u16-uctomb.c: Likewise.
13406         * lib/unistr/u32-mbtouc.c: Likewise.
13407         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13408         * lib/unistr/u32-uctomb.c: Likewise.
13409
13410 2009-04-10  Bruno Haible  <bruno@clisp.org>
13411
13412         Mark 'utime' obsolete.
13413         * modules/utime (Status, Notice): New sections.
13414         Suggested by Jim Meyering.
13415
13416         Fix cross-compile guess for utime test.
13417         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13418         autoconf.
13419         * doc/posix-functions/utime.texi: Give more precisions.
13420         Reported by Jan <ipif@ymail.com>.
13421
13422 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13423
13424         filevercmp: correct today's change
13425         * lib/filevercmp.c: Also handle coreutils' test inputs.
13426         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13427
13428         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13429         for reporting it.
13430         * lib/filevercmp.c: Special handle for "", "." and "..".
13431         * tests/test-filevercmp.c: Enlarge the set suite.
13432
13433 2009-04-07  Jim Meyering  <meyering@redhat.com>
13434
13435         useless-if-before-free: show how to remove braced useless free, too
13436         * build-aux/useless-if-before-free: still only in a comment, though.
13437
13438 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13439
13440         maint.mk: import changes to syntax-check macros from coreutils
13441         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13442         Use them in the relevant macros.
13443
13444 2009-04-06  Bruno Haible  <bruno@clisp.org>
13445
13446         Fix unportable use of bit-fields.
13447         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13448         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13449         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13450
13451 2009-04-06  Bruno Haible  <bruno@clisp.org>
13452
13453         Avoid test failures on AIX and OSF/1.
13454         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13455         that malloc(0) = NULL.
13456         * tests/unicase/test-u8-tolower.c (check): Likewise.
13457         * tests/unicase/test-u8-totitle.c (check): Likewise.
13458         * tests/unicase/test-u8-toupper.c (check): Likewise.
13459         * tests/unicase/test-u16-casefold.c (check): Likewise.
13460         * tests/unicase/test-u16-tolower.c (check): Likewise.
13461         * tests/unicase/test-u16-totitle.c (check): Likewise.
13462         * tests/unicase/test-u16-toupper.c (check): Likewise.
13463         * tests/unicase/test-u32-casefold.c (check): Likewise.
13464         * tests/unicase/test-u32-tolower.c (check): Likewise.
13465         * tests/unicase/test-u32-totitle.c (check): Likewise.
13466         * tests/unicase/test-u32-toupper.c (check): Likewise.
13467         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13468         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13469         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13470         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13471         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13472         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13473         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13474         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13475         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13476         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13477         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13478         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13479
13480 2009-04-05  Bruno Haible  <bruno@clisp.org>
13481
13482         Work around an autoconf limitation.
13483         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13484         comment line if it would be longer than 3 KB.
13485
13486 2009-04-05  Bruno Haible  <bruno@clisp.org>
13487
13488         Avoid test failure with libiconv-1.13.
13489         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13490         of the expected test results.
13491
13492 2009-04-05  Bruno Haible  <bruno@clisp.org>
13493
13494         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13495         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13496         that it should be installed.
13497
13498 2009-04-05  Bruno Haible  <bruno@clisp.org>
13499
13500         * gnulib-tool: New option --copy-file.
13501         (func_usage): Document it.
13502         (func_dest_tmpfilename): Moved out of func_import.
13503         (func_add_file, func_update_file): New functions, extracted from
13504         func_import.
13505         (func_import): Update.
13506
13507 2009-04-05  Karl Berry  <karl@gnu.org>
13508
13509         * README: prominently mention gnulib-tool.
13510         Rearrange sections so getting the code is near the top.
13511
13512 2009-04-05  Bruno Haible  <bruno@clisp.org>
13513
13514         * lib/unicase.h: Mention u*_cmp2.
13515         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13516         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13517         * lib/unicase/ulc-casecmp.c: Likewise.
13518         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13519         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13520         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13521         unistr/u8-cmp.
13522         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13523         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13524         unistr/u16-cmp.
13525         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13526         unistr/u32-cmp.
13527
13528         * lib/uninorm.h: Mention u*_cmp2.
13529         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13530         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13531         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13532         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13533         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13534         unistr/u8-cmp.
13535         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13536         unistr/u16-cmp.
13537         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13538         unistr/u32-cmp.
13539
13540         New module 'unistr/u32-cmp2'.
13541         * lib/unistr/u32-cmp2.c: New file.
13542         * modules/unistr/u32-cmp2: New file.
13543
13544         New module 'unistr/u16-cmp2'.
13545         * lib/unistr/u16-cmp2.c: New file.
13546         * modules/unistr/u16-cmp2: New file.
13547
13548         New module 'unistr/u8-cmp2'.
13549         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13550         * lib/unistr/u8-cmp2.c: New file.
13551         * lib/unistr/u-cmp2.h: New file.
13552         * modules/unistr/u8-cmp2: New file.
13553
13554 2009-04-05  Bruno Haible  <bruno@clisp.org>
13555
13556         * lib/unictype.h (uc_property_is_valid): New macro.
13557         * tests/unictype/test-pr_byname.c (main): Use it.
13558
13559         * lib/unistr.h: Doc fixes.
13560         * lib/uniconv.h: Doc fixes.
13561         * lib/unictype.h: Doc fixes.
13562
13563 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13564
13565         Port coreutils 7.2 to Solaris 8.
13566
13567         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13568         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13569         for Solaris 8.  This is a bit of a hack, as it means it's the
13570         caller's responsibility to add -lnsl if needed, but most likely it
13571         won't be needed since only getaddrinfo uses this and getaddrinfo
13572         isn't needed on Solaris 8.
13573
13574         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13575         problem to Solaris 8 encountered with coreutils 7.2, which
13576         resulted in a message "fnmatch.c:292: warning: passing argument 4
13577         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13578         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13579
13580 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13581
13582         * m4/ld-version-script.m4: Add FIXME comment.
13583
13584 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13585
13586         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13587         SOVERSION variable.
13588
13589 2009-04-02  Bruno Haible  <bruno@clisp.org>
13590
13591         * Makefile (info, html, dvi, pdf): Combine the rules.
13592         Suggested by Jim Meyering.
13593
13594 2009-04-01  Bruno Haible  <bruno@clisp.org>
13595
13596         * Makefile (info, html, dvi, pdf): New targets.
13597         Reported by Reuben Thomas <rrt@sc3d.org>.
13598
13599 2009-04-01  Bruno Haible  <bruno@clisp.org>
13600
13601         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13602         can be put into PATH.
13603         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13604
13605 2009-04-01  Bruno Haible  <bruno@clisp.org>
13606
13607         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13608
13609 2009-04-01  Bruno Haible  <bruno@clisp.org>
13610
13611         Rename module 'visibility'.
13612         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13613         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13614         * doc/gnulib.texi: Update.
13615         * MODULES.html.sh (Misc): Update.
13616         * NEWS: Mention the change.
13617
13618 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13619
13620         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13621         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13622         Eric Blake <ebb9@byu.net> for review.
13623         * MODULES.html.sh: Add lib-msvc-compat.
13624         * doc/gnulib.texi: Link to new section.
13625         * m4/ld-output-def.m4: New file.
13626         * doc/ld-output-def.texi: New file.
13627
13628 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13629
13630         Rename ld-version-script to lib-symbol-versions.  Suggested by
13631         Bruno Haible <bruno@clisp.org>.
13632         * modules/ld-version-script: Renamed to lib-symbol-versions.
13633         * doc/ld-version-script.texi: Fix module name.
13634         * MODULES.html.sh: Add lib-symbol-versions.
13635
13636 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13637
13638         * modules/u64-tests: New file.
13639         * tests/test-u64.c: New file.
13640
13641 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13642
13643         * MODULES.html.sh: Mention u64.
13644         * modules/u64: New module.
13645         * modules/crypto/sha512: Depend on u64 module instead of providing
13646         u64.h.
13647
13648 2009-03-27  Eric Blake  <ebb9@byu.net>
13649
13650         test-strerror: make debugging EAI_SYSTEM easier
13651         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13652         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13653         failure was EAI_SYSTEM.
13654
13655 2009-03-25  Bruno Haible  <bruno@clisp.org>
13656
13657         Fix a problem with --enable-relocatable on Solaris 7.
13658         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13659         since 2008-02-24.
13660
13661 2009-03-25  Eric Blake  <ebb9@byu.net>
13662
13663         test-sockets: avoid gcc warning
13664         * tests/test-sockets.c (main): Silence compiler warning.
13665
13666 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13667
13668         New modules nproc, pthread, contributed by Glen Lenker.
13669
13670         * MODULES.html.sh: Add pthread, nproc.
13671         * lib/nproc.c: New file.
13672         * lib/nproc.h: New file.
13673         * lib/pthread.in.h: New file.
13674         * m4/pthread.m4: New file.
13675         * modules/nproc: New file.
13676         * modules/pthread: New file.
13677
13678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13679
13680         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13681         New variable.
13682
13683 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13684
13685         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13686         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13687         * tests/test-filevercmp.c: Add tests for backup suffixes.
13688
13689 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13690
13691         * modules/stdlib (Depends-on): Add stdint, needed when defining
13692         struct random_data on, for example, HP-UX 10.20.  Reported by
13693         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13694
13695 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13696
13697         * lib/readline.c (readline): Call fflush on stdout after printing
13698         prompt.
13699
13700 2009-03-20  Bruno Haible  <bruno@clisp.org>
13701
13702         Remove dependency from 'close' module to -lws2_32 on native Windows.
13703         * lib/close-hook.h: New file.
13704         * lib/close-hook.c: New file.
13705         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13706         w32sock.h.
13707         (_gl_close_fd_maybe_socket): Remove function.
13708         (rpl_close): Invoke execute_all_close_hooks instead of
13709         _gl_close_fd_maybe_socket.
13710         * lib/sockets.c: Include close-hook.h, w32sock.h.
13711         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13712         (close_sockets_hook): New variable.
13713         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13714         (gl_sockets_cleanup): Unregister it.
13715         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13716         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13717         * modules/close-hook: New file.
13718         * modules/close (Files): Remove lib/w32sock.h.
13719         (Depends-on): Add close-hook.
13720         (Link): Remove section.
13721         * modules/sockets (Files): Add lib/w32sock.h.
13722         (Depends-on): Add close-hook.
13723         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13724         invocation.
13725         * NEWS: Mention that LIB_CLOSE is gone.
13726
13727 2009-03-23  Eric Blake  <ebb9@byu.net>
13728
13729         signal-tests: test previous patch
13730         * tests/test-signal.c: New file.
13731         * modules/signal-tests: Likewise.
13732
13733         signal.h: always support 'volatile sig_atomic_t'
13734         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13735         (gl_SIGNAL_H_DEFAULTS): Add a default.
13736         * modules/signal (Makefile.am): Substitute if needed.
13737         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13738         users can blindly add volatile.
13739         * doc/posix-headers/signal.texi (signal.h): Document it.
13740         Reported by Matthew Woehlke.
13741
13742 2009-03-23  Jim Meyering  <meyering@redhat.com>
13743
13744         pathmax: PATH_MAX: use pathconf only when available
13745         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13746         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13747         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13748         This avoids a link failure in a PSP cross-compilation environment
13749         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13750
13751         * lib/vasnprintf.c (divide): Fix typo in comment.
13752
13753 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13754
13755         * gnulib-tool (func_filter_filelist): Fix comment.
13756
13757 2009-03-20  Bruno Haible  <bruno@clisp.org>
13758
13759         Make sockets.h self-contained.
13760         * lib/sockets.c: Include sockets.h first.
13761         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13762
13763 2009-03-19  Eric Blake  <ebb9@byu.net>
13764
13765         doc: mention more functions added in cygwin 1.7.0
13766         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13767         addition.
13768         * doc/posix-functions/log2f.texi: Likewise.
13769
13770 2009-03-19  Jim Meyering  <meyering@redhat.com>
13771
13772         fsusage: avoid syntax error due to statement-before-declaration
13773         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13774         after all declarations.  Reported by Matthew Woehlke in
13775         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13776
13777 2009-03-18  Eric Blake  <ebb9@byu.net>
13778
13779         build-aux/compile: sync from automake
13780         * build-aux/compile: New file, from automake.
13781         * config/srclist.txt: Mention build-aux/compile.
13782
13783 2009-03-17  Bruno Haible  <bruno@clisp.org>
13784
13785         * lib/git-merge-changelog.c: Fix typo in comment.
13786         Reported by Reuben Thomas <rrt@sc3d.org>.
13787
13788 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13789
13790         * m4/regex.m4: update and improve help for
13791         --without-included-regex.
13792
13793 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13794
13795         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13796         failure on missing include files.
13797
13798 2009-03-17  Eric Blake  <ebb9@byu.net>
13799
13800         doc: mention more functions added in cygwin 1.7.0
13801         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13802         addition.
13803         * doc/posix-functions/fwscanf.texi: Likewise.
13804         * doc/posix-functions/swprintf.texi: Likewise.
13805         * doc/posix-functions/swscanf.texi: Likewise.
13806         * doc/posix-functions/vfwprintf.texi: Likewise.
13807         * doc/posix-functions/vfwscanf.texi: Likewise.
13808         * doc/posix-functions/vswprintf.texi: Likewise.
13809         * doc/posix-functions/vswscanf.texi: Likewise.
13810         * doc/posix-functions/vwprintf.texi: Likewise.
13811         * doc/posix-functions/vwscanf.texi: Likewise.
13812         * doc/posix-functions/wcscasecmp.texi: Likewise.
13813         * doc/posix-functions/wcsdup.texi: Likewise.
13814         * doc/posix-functions/wcsftime.texi: Likewise.
13815         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13816         * doc/posix-functions/wprintf.texi: Likewise.
13817         * doc/posix-functions/wscanf.texi: Likewise.
13818         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13819
13820 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13821
13822         maint.mk: really add $(AM_MAKEFLAGS)
13823         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13824         was inadvertently omitted in the last commit.
13825         Spotted by Bruno Haible.
13826
13827         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13828         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13829         $(AM_MAKEFLAGS)' rather than plain `make'.
13830
13831         gnulib-tool: execute $MAKE not make
13832         * gnulib-tool: Default $MAKE to 'make'.
13833         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13834         than make.  Initialize $MAKE in the do-autobuild script.
13835
13836         gnulib-tool: use $MAKE not make in generated files
13837         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13838         make, in generated files.  Initialize $MAKE in the do-autobuild
13839         script.
13840
13841         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13842
13843         GNUmakefile: disable parallelism only for multiple, recursive targets
13844         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13845         additions in the Makefile.
13846         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13847         by Automake.
13848         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13849         are listed on the command line and at least one of them is
13850         listed in $(ALL_RECURSIVE_TARGETS).
13851
13852 2009-03-14  Bruno Haible  <bruno@clisp.org>
13853
13854         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13855         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13856         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13857         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13858         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13859         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13860         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13861         unistr/u8-uctomb.
13862         * modules/unistr/u8-strchr (Depends-on): Likewise.
13863         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13864         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13865         unistr/u16-uctomb.
13866         * modules/unistr/u16-strchr (Depends-on): Likewise.
13867         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13868
13869 2009-03-12  Bruno Haible  <bruno@clisp.org>
13870
13871         Work around select() bug on Interix 3.5.
13872         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13873         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13874         * m4/select.m4: New file.
13875         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13876         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13877         * modules/select (Files): Add m4/select.m4.
13878         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13879         * modules/nanosleep (Depends-on): Add select.
13880         * modules/poll (Depends-on): Likewise.
13881         * doc/posix-functions/select.texi: Mention the Interix bug.
13882         Reported by Markus Duft <mduft@gentoo.org>.
13883
13884         * lib/select.c: Renamed from lib/winsock-select.c.
13885         * modules/select (Files): Add lib/select.c, remove
13886         lib/winsock-select.c.
13887         (configure.ac): Update.
13888
13889 2009-03-12  Jim Meyering  <meyering@redhat.com>
13890
13891         avoid gcc warnings about unused macro definitions
13892         * lib/readtokens.c (STREQ): Remove unused definition.
13893         * lib/xmalloc.c (SIZE_MAX): Likewise.
13894         * lib/openat-die.c (N_): Likewise.
13895         * lib/mountlist.c (SIZE_MAX): Remove definition.
13896         Instead, include <stdint.h>.
13897         * lib/readutmp.c: Likewise.
13898         * modules/readutmp (Depends-on): Add stdint.
13899         * modules/mountlist (Depends-on): Add stdint.
13900         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13901
13902 2009-03-10  Bruno Haible  <bruno@clisp.org>
13903
13904         Tests for module 'mbmemcasecoll'.
13905         * modules/mbmemcasecoll-tests: New file.
13906         * tests/test-mbmemcasecoll1.sh: New file.
13907         * tests/test-mbmemcasecoll2.sh: New file.
13908         * tests/test-mbmemcasecoll3.sh: New file.
13909         * tests/test-mbmemcasecoll.c: New file.
13910
13911         New module 'mbmemcasecoll'.
13912         * lib/mbmemcasecoll.h: New file.
13913         * lib/mbmemcasecoll.c: New file.
13914         * modules/mbmemcasecoll: New file.
13915
13916         * tests/test-mbmemcasecmp.h: New file, extracted from
13917         tests/test-mbmemcasecmp.c.
13918         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13919         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13920         (main): Update.
13921         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13922
13923 2009-03-09  Bruno Haible  <bruno@clisp.org>
13924
13925         Tests for module 'mbmemcasecmp'.
13926         * modules/mbmemcasecmp-tests: New file.
13927         * tests/test-mbmemcasecmp1.sh: New file.
13928         * tests/test-mbmemcasecmp2.sh: New file.
13929         * tests/test-mbmemcasecmp3.sh: New file.
13930         * tests/test-mbmemcasecmp.c: New file.
13931
13932         New module 'mbmemcasecmp'.
13933         * lib/mbmemcasecmp.h: New file.
13934         * lib/mbmemcasecmp.c: New file.
13935         * modules/mbmemcasecmp: New file.
13936
13937 2009-03-09  Bruno Haible  <bruno@clisp.org>
13938
13939         Tests for module 'unicase/ulc-casecoll'.
13940         * modules/unicase/ulc-casecoll-tests: New file.
13941         * tests/unicase/test-ulc-casecoll1.sh: New file.
13942         * tests/unicase/test-ulc-casecoll2.sh: New file.
13943         * tests/unicase/test-ulc-casecoll.c: New file.
13944
13945         New module 'unicase/ulc-casecoll'.
13946         * lib/unicase.h (ulc_casecoll): New declaration.
13947         * lib/unicase/ulc-casecoll.c: New file.
13948         * modules/unicase/ulc-casecoll: New file.
13949
13950         New module 'unicase/ulc-casexfrm'.
13951         * lib/unicase.h (ulc_casexfrm): New declaration.
13952         * lib/unicase/ulc-casexfrm.c: New file.
13953         * modules/unicase/ulc-casexfrm: New file.
13954
13955 2009-03-09  Bruno Haible  <bruno@clisp.org>
13956
13957         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13958         invocations.
13959
13960         * m4/mbscasecmp.m4: Remove file.
13961         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13962         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13963
13964         * m4/mbscasestr.m4: Remove file.
13965         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13966         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13967
13968         * m4/mbschr.m4: Remove file.
13969         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13970         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13971
13972         * m4/mbscspn.m4: Remove file.
13973         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13974         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13975
13976         * m4/mbslen.m4: Remove file.
13977         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13978         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13979
13980         * m4/mbsncasecmp.m4: Remove file.
13981         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13982         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13983
13984         * m4/mbsnlen.m4: Remove file.
13985         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13986         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13987
13988         * m4/mbspbrk.m4: Remove file.
13989         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13990         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13991
13992         * m4/mbspcasecmp.m4: Remove file.
13993         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13994         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13995
13996         * m4/mbsrchr.m4: Remove file.
13997         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13998         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13999
14000         * m4/mbssep.m4: Remove file.
14001         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14002         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14003
14004         * m4/mbsspn.m4: Remove file.
14005         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14006         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14007
14008         * m4/mbsstr.m4: Remove file.
14009         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14010         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14011
14012         * m4/mbstok_r.m4: Remove file.
14013         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14014         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14015
14016         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14017
14018         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14019         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14020
14021         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14022
14023 2009-03-08  Bruno Haible  <bruno@clisp.org>
14024
14025         Tests for module 'unicase/ulc-casecmp'.
14026         * modules/unicase/ulc-casecmp-tests: New file.
14027         * tests/unicase/test-ulc-casecmp1.sh: New file.
14028         * tests/unicase/test-ulc-casecmp2.sh: New file.
14029         * tests/unicase/test-ulc-casecmp.c: New file.
14030
14031         New module 'unicase/ulc-casecmp'.
14032         * lib/unicase.h (ulc_casecmp): New declaration.
14033         * lib/unicase/ulc-casecmp.c: New file.
14034         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14035         'const SRC_UNIT *'.
14036         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14037         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14038         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14039         * modules/unicase/ulc-casecmp: New file.
14040
14041         Tests for module 'unicase/u32-is-cased'.
14042         * modules/unicase/u32-is-cased-tests: New file.
14043         * tests/unicase/test-u32-is-cased.c: New file.
14044
14045         Tests for module 'unicase/u16-is-cased'.
14046         * modules/unicase/u16-is-cased-tests: New file.
14047         * tests/unicase/test-u16-is-cased.c: New file.
14048
14049         Tests for module 'unicase/u8-is-cased'.
14050         * modules/unicase/u8-is-cased-tests: New file.
14051         * tests/unicase/test-u8-is-cased.c: New file.
14052         * tests/unicase/test-is-cased.h: New file.
14053
14054         New module 'unicase/u32-is-cased'.
14055         * lib/unicase/u32-is-cased.c: New file.
14056         * modules/unicase/u32-is-cased: New file.
14057
14058         New module 'unicase/u16-is-cased'.
14059         * lib/unicase/u16-is-cased.c: New file.
14060         * modules/unicase/u16-is-cased: New file.
14061
14062         New module 'unicase/u8-is-cased'.
14063         * lib/unicase/u8-is-cased.c: New file.
14064         * lib/unicase/u-is-cased.h: New file.
14065         * modules/unicase/u8-is-cased: New file.
14066
14067         Tests for module 'unicase/u32-is-casefolded'.
14068         * modules/unicase/u32-is-casefolded-tests: New file.
14069         * tests/unicase/test-u32-is-casefolded.c: New file.
14070
14071         Tests for module 'unicase/u16-is-casefolded'.
14072         * modules/unicase/u16-is-casefolded-tests: New file.
14073         * tests/unicase/test-u16-is-casefolded.c: New file.
14074
14075         Tests for module 'unicase/u8-is-casefolded'.
14076         * modules/unicase/u8-is-casefolded-tests: New file.
14077         * tests/unicase/test-u8-is-casefolded.c: New file.
14078         * tests/unicase/test-is-casefolded.h: New file.
14079
14080         New module 'unicase/u32-is-casefolded'.
14081         * lib/unicase/u32-is-casefolded.c: New file.
14082         * modules/unicase/u32-is-casefolded: New file.
14083
14084         New module 'unicase/u16-is-casefolded'.
14085         * lib/unicase/u16-is-casefolded.c: New file.
14086         * modules/unicase/u16-is-casefolded: New file.
14087
14088         New module 'unicase/u8-is-casefolded'.
14089         * lib/unicase/u8-is-casefolded.c: New file.
14090         * modules/unicase/u8-is-casefolded: New file.
14091
14092         Tests for module 'unicase/u32-is-titlecase'.
14093         * modules/unicase/u32-is-titlecase-tests: New file.
14094         * tests/unicase/test-u32-is-titlecase.c: New file.
14095
14096         Tests for module 'unicase/u16-is-titlecase'.
14097         * modules/unicase/u16-is-titlecase-tests: New file.
14098         * tests/unicase/test-u16-is-titlecase.c: New file.
14099
14100         Tests for module 'unicase/u8-is-titlecase'.
14101         * modules/unicase/u8-is-titlecase-tests: New file.
14102         * tests/unicase/test-u8-is-titlecase.c: New file.
14103         * tests/unicase/test-is-titlecase.h: New file.
14104
14105         New module 'unicase/u32-is-titlecase'.
14106         * lib/unicase/u32-is-titlecase.c: New file.
14107         * modules/unicase/u32-is-titlecase: New file.
14108
14109         New module 'unicase/u16-is-titlecase'.
14110         * lib/unicase/u16-is-titlecase.c: New file.
14111         * modules/unicase/u16-is-titlecase: New file.
14112
14113         New module 'unicase/u8-is-titlecase'.
14114         * lib/unicase/u8-is-titlecase.c: New file.
14115         * modules/unicase/u8-is-titlecase: New file.
14116
14117         Tests for module 'unicase/u32-is-lowercase'.
14118         * modules/unicase/u32-is-lowercase-tests: New file.
14119         * tests/unicase/test-u32-is-lowercase.c: New file.
14120
14121         Tests for module 'unicase/u16-is-lowercase'.
14122         * modules/unicase/u16-is-lowercase-tests: New file.
14123         * tests/unicase/test-u16-is-lowercase.c: New file.
14124
14125         Tests for module 'unicase/u8-is-lowercase'.
14126         * modules/unicase/u8-is-lowercase-tests: New file.
14127         * tests/unicase/test-u8-is-lowercase.c: New file.
14128         * tests/unicase/test-is-lowercase.h: New file.
14129
14130         New module 'unicase/u32-is-lowercase'.
14131         * lib/unicase/u32-is-lowercase.c: New file.
14132         * modules/unicase/u32-is-lowercase: New file.
14133
14134         New module 'unicase/u16-is-lowercase'.
14135         * lib/unicase/u16-is-lowercase.c: New file.
14136         * modules/unicase/u16-is-lowercase: New file.
14137
14138         New module 'unicase/u8-is-lowercase'.
14139         * lib/unicase/u8-is-lowercase.c: New file.
14140         * modules/unicase/u8-is-lowercase: New file.
14141
14142         Tests for module 'unicase/u32-is-uppercase'.
14143         * modules/unicase/u32-is-uppercase-tests: New file.
14144         * tests/unicase/test-u32-is-uppercase.c: New file.
14145
14146         Tests for module 'unicase/u16-is-uppercase'.
14147         * modules/unicase/u16-is-uppercase-tests: New file.
14148         * tests/unicase/test-u16-is-uppercase.c: New file.
14149
14150         Tests for module 'unicase/u8-is-uppercase'.
14151         * modules/unicase/u8-is-uppercase-tests: New file.
14152         * tests/unicase/test-u8-is-uppercase.c: New file.
14153         * tests/unicase/test-is-uppercase.h: New file.
14154
14155         New module 'unicase/u32-is-uppercase'.
14156         * lib/unicase/u32-is-uppercase.c: New file.
14157         * modules/unicase/u32-is-uppercase: New file.
14158
14159         New module 'unicase/u16-is-uppercase'.
14160         * lib/unicase/u16-is-uppercase.c: New file.
14161         * modules/unicase/u16-is-uppercase: New file.
14162
14163         New module 'unicase/u8-is-uppercase'.
14164         * lib/unicase/u8-is-uppercase.c: New file.
14165         * modules/unicase/u8-is-uppercase: New file.
14166
14167         New module 'unicase/u32-is-invariant'.
14168         * lib/unicase/u32-is-invariant.c: New file.
14169         * modules/unicase/u32-is-invariant: New file.
14170
14171         New module 'unicase/u16-is-invariant'.
14172         * lib/unicase/u16-is-invariant.c: New file.
14173         * modules/unicase/u16-is-invariant: New file.
14174
14175         New module 'unicase/u8-is-invariant'.
14176         * lib/unicase/u8-is-invariant.c: New file.
14177         * lib/unicase/invariant.h: New file.
14178         * lib/unicase/u-is-invariant.h: New file.
14179         * modules/unicase/u8-is-invariant: New file.
14180
14181         Tests for module 'unicase/u32-casecoll'.
14182         * modules/unicase/u32-casecoll-tests: New file.
14183         * tests/unicase/test-u32-casecoll.c: New file.
14184
14185         Tests for module 'unicase/u16-casecoll'.
14186         * modules/unicase/u16-casecoll-tests: New file.
14187         * tests/unicase/test-u16-casecoll.c: New file.
14188
14189         Tests for module 'unicase/u8-casecoll'.
14190         * modules/unicase/u8-casecoll-tests: New file.
14191         * tests/unicase/test-u8-casecoll.c: New file.
14192
14193         New module 'unicase/u32-casecoll'.
14194         * lib/unicase/u32-casecoll.c: New file.
14195         * modules/unicase/u32-casecoll: New file.
14196
14197         New module 'unicase/u16-casecoll'.
14198         * lib/unicase/u16-casecoll.c: New file.
14199         * modules/unicase/u16-casecoll: New file.
14200
14201         New module 'unicase/u8-casecoll'.
14202         * lib/unicase/u8-casecoll.c: New file.
14203         * lib/unicase/u-casecoll.h: New file.
14204         * modules/unicase/u8-casecoll: New file.
14205
14206         New module 'unicase/u32-casexfrm'.
14207         * lib/unicase/u32-casexfrm.c: New file.
14208         * modules/unicase/u32-casexfrm: New file.
14209
14210         New module 'unicase/u16-casexfrm'.
14211         * lib/unicase/u16-casexfrm.c: New file.
14212         * modules/unicase/u16-casexfrm: New file.
14213
14214         New module 'unicase/u8-casexfrm'.
14215         * lib/unicase/u8-casexfrm.c: New file.
14216         * lib/unicase/u-casexfrm.h: New file.
14217         * modules/unicase/u8-casexfrm: New file.
14218
14219         Tests for module 'unicase/u32-casecmp'.
14220         * modules/unicase/u32-casecmp-tests: New file.
14221         * tests/unicase/test-u32-casecmp.c: New file.
14222
14223         Tests for module 'unicase/u16-casecmp'.
14224         * modules/unicase/u16-casecmp-tests: New file.
14225         * tests/unicase/test-u16-casecmp.c: New file.
14226
14227         Tests for module 'unicase/u8-casecmp'.
14228         * modules/unicase/u8-casecmp-tests: New file.
14229         * tests/unicase/test-u8-casecmp.c: New file.
14230         * tests/unicase/test-casecmp.h: New file.
14231
14232         New module 'unicase/u32-casecmp'.
14233         * lib/unicase/u32-casecmp.c: New file.
14234         * modules/unicase/u32-casecmp: New file.
14235
14236         New module 'unicase/u16-casecmp'.
14237         * lib/unicase/u16-casecmp.c: New file.
14238         * modules/unicase/u16-casecmp: New file.
14239
14240         New module 'unicase/u8-casecmp'.
14241         * lib/unicase/u8-casecmp.c: New file.
14242         * lib/unicase/u-casecmp.h: New file.
14243         * modules/unicase/u8-casecmp: New file.
14244
14245         Tests for module 'unicase/u32-casefold'.
14246         * modules/unicase/u32-casefold-tests: New file.
14247         * tests/unicase/test-u32-casefold.c: New file.
14248
14249         Tests for module 'unicase/u16-casefold'.
14250         * modules/unicase/u16-casefold-tests: New file.
14251         * tests/unicase/test-u16-casefold.c: New file.
14252
14253         Tests for module 'unicase/u8-casefold'.
14254         * modules/unicase/u8-casefold-tests: New file.
14255         * tests/unicase/test-u8-casefold.c: New file.
14256
14257         New module 'unicase/u32-casefold'.
14258         * lib/unicase/u32-casefold.c: New file.
14259         * modules/unicase/u32-casefold: New file.
14260
14261         New module 'unicase/u16-casefold'.
14262         * lib/unicase/u16-casefold.c: New file.
14263         * modules/unicase/u16-casefold: New file.
14264
14265         New module 'unicase/u8-casefold'.
14266         * lib/unicase/u8-casefold.c: New file.
14267         * lib/unicase/u-casefold.h: New file.
14268         * modules/unicase/u8-casefold: New file.
14269
14270         New module 'unicase/tocasefold'.
14271         * lib/unicase/casefold.h: New file.
14272         * lib/unicase/tocasefold.c: New file.
14273         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14274         * modules/unicase/tocasefold: New file.
14275
14276         Tests for module 'unicase/u32-totitle'.
14277         * modules/unicase/u32-totitle-tests: New file.
14278         * tests/unicase/test-u32-totitle.c: New file.
14279
14280         Tests for module 'unicase/u16-totitle'.
14281         * modules/unicase/u16-totitle-tests: New file.
14282         * tests/unicase/test-u16-totitle.c: New file.
14283
14284         Tests for module 'unicase/u8-totitle'.
14285         * modules/unicase/u8-totitle-tests: New file.
14286         * tests/unicase/test-u8-totitle.c: New file.
14287
14288         New module 'unicase/u32-totitle'.
14289         * lib/unicase/u32-totitle.c: New file.
14290         * modules/unicase/u32-totitle: New file.
14291
14292         New module 'unicase/u16-totitle'.
14293         * lib/unicase/u16-totitle.c: New file.
14294         * modules/unicase/u16-totitle: New file.
14295
14296         New module 'unicase/u8-totitle'.
14297         * lib/unicase/u8-totitle.c: New file.
14298         * lib/unicase/u-totitle.h: New file.
14299         * modules/unicase/u8-totitle: New file.
14300
14301         Tests for module 'unicase/u32-tolower'.
14302         * modules/unicase/u32-tolower-tests: New file.
14303         * tests/unicase/test-u32-tolower.c: New file.
14304
14305         Tests for module 'unicase/u16-tolower'.
14306         * modules/unicase/u16-tolower-tests: New file.
14307         * tests/unicase/test-u16-tolower.c: New file.
14308
14309         Tests for module 'unicase/u8-tolower'.
14310         * modules/unicase/u8-tolower-tests: New file.
14311         * tests/unicase/test-u8-tolower.c: New file.
14312
14313         New module 'unicase/u32-tolower'.
14314         * lib/unicase/u32-tolower.c: New file.
14315         * modules/unicase/u32-tolower: New file.
14316
14317         New module 'unicase/u16-tolower'.
14318         * lib/unicase/u16-tolower.c: New file.
14319         * modules/unicase/u16-tolower: New file.
14320
14321         New module 'unicase/u8-tolower'.
14322         * lib/unicase/u8-tolower.c: New file.
14323         * modules/unicase/u8-tolower: New file.
14324
14325         Tests for module 'unicase/u32-toupper'.
14326         * modules/unicase/u32-toupper-tests: New file.
14327         * tests/unicase/test-u32-toupper.c: New file.
14328
14329         Tests for module 'unicase/u16-toupper'.
14330         * modules/unicase/u16-toupper-tests: New file.
14331         * tests/unicase/test-u16-toupper.c: New file.
14332
14333         Tests for module 'unicase/u8-toupper'.
14334         * modules/unicase/u8-toupper-tests: New file.
14335         * tests/unicase/test-u8-toupper.c: New file.
14336
14337         New module 'unicase/u32-toupper'.
14338         * lib/unicase/u32-toupper.c: New file.
14339         * modules/unicase/u32-toupper: New file.
14340
14341         New module 'unicase/u16-toupper'.
14342         * lib/unicase/u16-toupper.c: New file.
14343         * modules/unicase/u16-toupper: New file.
14344
14345         New module 'unicase/u8-toupper'.
14346         * lib/unicase/u8-toupper.c: New file.
14347         * modules/unicase/u8-toupper: New file.
14348
14349         New module 'unicase/u32-casemap'.
14350         * lib/unicase/u32-casemap.c: New file.
14351         * modules/unicase/u32-casemap: New file.
14352
14353         New module 'unicase/u16-casemap'.
14354         * lib/unicase/u16-casemap.c: New file.
14355         * modules/unicase/u16-casemap: New file.
14356
14357         New module 'unicase/u8-casemap'.
14358         * lib/unicase/unicasemap.h: New file.
14359         * lib/unicase/u8-casemap.c: New file.
14360         * lib/unicase/u-casemap.h: New file.
14361         * modules/unicase/u8-casemap: New file.
14362
14363         New module 'unicase/special-casing'.
14364         * lib/unicase/special-casing.h: New file.
14365         * lib/unicase/special-casing.c: New file.
14366         * lib/unicase/special-casing-table.gperf: New file, generated by
14367         gen-uni-tables.c.
14368         * modules/unicase/special-casing: New file.
14369
14370         Tests for module 'unicase/locale-language'.
14371         * modules/unicase/locale-language-tests: New file.
14372         * tests/unicase/test-locale-language.sh: New file.
14373         * tests/unicase/test-locale-language.c: New file.
14374
14375         New module 'unicase/locale-language'.
14376         * lib/unicase/locale-language.c: New file.
14377         * lib/unicase/locale-languages.gperf: New file.
14378         * modules/unicase/locale-language: New file.
14379
14380         Generate more tables for case conversion and case folding.
14381         * lib/gen-uni-tables.c (SCC_*): New enum items.
14382         (struct special_casing_rule): New type.
14383         (casing_rules, num_casing_rules, allocated_casing_rules): New
14384         variables.
14385         (add_casing_rule, fill_casing_rules): New functions.
14386         (struct casefold_rule): New type.
14387         (casefolding_rules, num_casefolding_rules,
14388         allocated_casefolding_rules): New variables.
14389         (fill_casefolding_rules): New function.
14390         (unicode_casefold): New variable.
14391         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14392         sort_casing_rules, output_casing_rules): New functions.
14393         (main): Accept to more arguments: SpecialCasing.txt and
14394         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14395         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14396         Output mapping for casefolding.
14397
14398         * lib/unicase.h: Include stdbool.h, uninorm.h.
14399         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14400         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14401         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14402         arguments.
14403         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14404         resultp arguments.
14405         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14406         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14407         resultp arguments.
14408         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14409         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14410         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14411         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14412         declarations.
14413         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14414
14415 2009-03-08  Bruno Haible  <bruno@clisp.org>
14416
14417         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14418         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14419         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14420         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14421
14422 2009-03-07  Bruno Haible  <bruno@clisp.org>
14423
14424         Adjust u*_normcmp, u*_normcoll API.
14425         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14426         u16_normcoll, u32_normcoll): Change failure conventions.
14427         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14428         errno and return -1.
14429         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14430
14431 2009-03-07  Bruno Haible  <bruno@clisp.org>
14432
14433         Tests for module 'uninorm/u32-normcoll'.
14434         * modules/uninorm/u32-normcoll-tests: New file.
14435         * tests/uninorm/test-u32-normcoll.c: New file.
14436
14437         Tests for module 'uninorm/u16-normcoll'.
14438         * modules/uninorm/u16-normcoll-tests: New file.
14439         * tests/uninorm/test-u16-normcoll.c: New file.
14440
14441         Tests for module 'uninorm/u8-normcoll'.
14442         * modules/uninorm/u8-normcoll-tests: New file.
14443         * tests/uninorm/test-u8-normcoll.c: New file.
14444
14445 2009-03-07  Bruno Haible  <bruno@clisp.org>
14446
14447         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14448         tests/uninorm/test-u32-normcmp.c.
14449         * tests/uninorm/test-u32-normcmp.c: Include it.
14450         (test_nonascii): New function, extracted from main. Add some more
14451         tests.
14452         (main): Invoke test_ascii and test_nonascii.
14453         * modules/uninorm/u32-normcmp-tests (Files): Add
14454         tests/uninorm/test-u32-normcmp.h.
14455         (Depends-on): Remove uninorm/u32-normcmp.
14456
14457         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14458         tests/uninorm/test-u16-normcmp.c.
14459         * tests/uninorm/test-u16-normcmp.c: Include it.
14460         (test_nonascii): New function, extracted from main. Add some more
14461         tests.
14462         (main): Invoke test_ascii and test_nonascii.
14463         * modules/uninorm/u16-normcmp-tests (Files): Add
14464         tests/uninorm/test-u16-normcmp.h.
14465         (Depends-on): Remove uninorm/u16-normcmp.
14466
14467         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14468         tests/uninorm/test-u8-normcmp.c.
14469         * tests/uninorm/test-u8-normcmp.c: Include it.
14470         (test_nonascii): New function, extracted from main. Add some more
14471         tests.
14472         (main): Invoke test_ascii and test_nonascii.
14473         * modules/uninorm/u8-normcmp-tests (Files): Add
14474         tests/uninorm/test-u8-normcmp.h.
14475         (Depends-on): Remove uninorm/u8-normcmp.
14476
14477 2009-03-07  Bruno Haible  <bruno@clisp.org>
14478
14479         New module 'uninorm/u32-normcoll'.
14480         * lib/uninorm/u32-normcoll.c: New file.
14481         * modules/uninorm/u32-normcoll: New file.
14482
14483         New module 'uninorm/u16-normcoll'.
14484         * lib/uninorm/u16-normcoll.c: New file.
14485         * modules/uninorm/u16-normcoll: New file.
14486
14487         New module 'uninorm/u8-normcoll'.
14488         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14489         declarations.
14490         * lib/uninorm/u8-normcoll.c: New file.
14491         * lib/uninorm/u-normcoll.h: New file.
14492         * modules/uninorm/u8-normcoll: New file.
14493
14494         New module 'uninorm/u32-normxfrm'.
14495         * lib/uninorm/u32-normxfrm.c: New file.
14496         * modules/uninorm/u32-normxfrm: New file.
14497
14498         New module 'uninorm/u16-normxfrm'.
14499         * lib/uninorm/u16-normxfrm.c: New file.
14500         * modules/uninorm/u16-normxfrm: New file.
14501
14502         New module 'uninorm/u8-normxfrm'.
14503         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14504         declarations.
14505         * lib/uninorm/u8-normxfrm.c: New file.
14506         * lib/uninorm/u-normxfrm.h: New file.
14507         * modules/uninorm/u8-normxfrm: New file.
14508
14509 2009-03-07  Bruno Haible  <bruno@clisp.org>
14510
14511         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14512         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14513         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14514
14515 2009-03-07  Bruno Haible  <bruno@clisp.org>
14516
14517         New module 'memxfrm'.
14518         * lib/memxfrm.h: New file.
14519         * lib/memxfrm.c: New file.
14520         * modules/memxfrm: New file.
14521
14522 2009-03-07  Bruno Haible  <bruno@clisp.org>
14523
14524         New module 'memcmp2'.
14525         * lib/memcmp2.h: New file.
14526         * lib/memcmp2.c: New file.
14527         * modules/memcmp2: New file.
14528
14529 2009-03-07  Bruno Haible  <bruno@clisp.org>
14530
14531         Tests for module 'uninorm/decomposing-form'.
14532         * modules/uninorm/decomposing-form-tests: New file.
14533         * tests/uninorm/test-decomposing-form.c: New file.
14534
14535         New module 'uninorm/decomposing-form'.
14536         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14537         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14538         Add 'decomposing_variant' field.
14539         * lib/uninorm/decomposing-form.c: New file.
14540         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14541         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14542         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14543         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14544         * modules/uninorm/decomposing-form: New file.
14545         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14546         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14547
14548 2009-03-07  Bruno Haible  <bruno@clisp.org>
14549
14550         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14551         strings.
14552
14553 2009-03-06  Bruno Haible  <bruno@clisp.org>
14554
14555         Tests for module 'uninorm/u32-normcmp'.
14556         * tests/uninorm/test-u32-normcmp.c: New file.
14557         * modules/uninorm/u32-normcmp-tests: New file.
14558
14559         Tests for module 'uninorm/u16-normcmp'.
14560         * tests/uninorm/test-u16-normcmp.c: New file.
14561         * modules/uninorm/u16-normcmp-tests: New file.
14562
14563         Tests for module 'uninorm/u8-normcmp'.
14564         * tests/uninorm/test-u8-normcmp.c: New file.
14565         * modules/uninorm/u8-normcmp-tests: New file.
14566
14567         New module 'uninorm/u32-normcmp'.
14568         * lib/uninorm/u32-normcmp.c: New file.
14569         * modules/uninorm/u32-normcmp: New file.
14570
14571         New module 'uninorm/u16-normcmp'.
14572         * lib/uninorm/u16-normcmp.c: New file.
14573         * modules/uninorm/u16-normcmp: New file.
14574
14575         New module 'uninorm/u8-normcmp'.
14576         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14577         declarations.
14578         * lib/uninorm/u8-normcmp.c: New file.
14579         * lib/uninorm/u-normcmp.h: New file.
14580         * modules/uninorm/u8-normcmp: New file.
14581
14582 2009-03-06  Bruno Haible  <bruno@clisp.org>
14583
14584         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14585         Reported by Eric Blake.
14586
14587 2009-03-06  Eric Blake  <ebb9@byu.net>
14588             Bruno Haible  <bruno@clisp.org>
14589
14590         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14591         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14592         condition.
14593         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14594         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14595         condition.
14596         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14597
14598 2009-03-06  Eric Blake  <ebb9@byu.net>
14599
14600         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14601         to avoid compiler warnings.
14602         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14603
14604 2009-03-05  Bruno Haible  <bruno@clisp.org>
14605
14606         * tests/test-ftell.c (main): Disable test beyond end of file on
14607         FreeMiNT.
14608         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14609
14610 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14611
14612         * lib/filevercmp.c: Move hidden files up in ordering.
14613         * tests/test-filevercmp.c: Add tests for hidden files.
14614
14615 2009-03-04  Bruno Haible  <bruno@clisp.org>
14616
14617         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14618         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14619         AM_CFLAGS.
14620         Reported by Simon Josefsson.
14621
14622 2009-03-03  Bruno Haible  <bruno@clisp.org>
14623
14624         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14625         Reported by Simon Josefsson.
14626
14627         * doc/ld-version-script.texi: Update node reference.
14628
14629 2009-03-03  Bruno Haible  <bruno@clisp.org>
14630
14631         * modules/visibility (License): Change to 'unlimited'.
14632         Suggested by Simon Josefsson.
14633
14634 2009-03-03  Jim Meyering  <meyering@redhat.com>
14635
14636         unlinkdir: cannot_unlink_dir may modify process state
14637         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14638         it's neither thread-safe nor appropriate for use in a library.
14639
14640 2009-03-03  Eric Blake  <ebb9@byu.net>
14641
14642         test-closein: silence test under Darwin
14643         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14644         care if it dies from EPIPE or EBADF.
14645
14646 2009-03-03  Bruno Haible  <bruno@clisp.org>
14647
14648         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14649         earlier.
14650         * doc/visibility.texi: Fix @node and @section.
14651
14652 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14653
14654         * doc/gnulib.texi: Link to sections for ld version script and
14655         visibility.
14656         * doc/visibility.texi: Add @node and @section.
14657         * modules/ld-version-script: New module.
14658         * m4/ld-version-script.m4: New file.
14659         * doc/ld-version-script.texi: New file.
14660
14661 2009-03-02  David Lutterkort  <lutter@redhat.com>
14662
14663         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14665
14666 2009-03-02  Bruno Haible  <bruno@clisp.org>
14667
14668         * doc/visibility.texi: Mention libtool's -export-symbols option.
14669
14670 2009-03-02  Jim Meyering  <meyering@redhat.com>
14671
14672         announce-gen: new option: --no-print-checksums
14673         * build-aux/announce-gen (usage): Describe it.
14674         (print_checksums): Print a newline here, not in the [*] footnote.
14675         (main): Honor it.
14676
14677 2009-03-01  Bruno Haible  <bruno@clisp.org>
14678
14679         Use socklen_t in the native Windows replacements prototypes.
14680         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14681         instead of 'int'.
14682         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14683         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14684         * modules/getsockopt (Depends-on): Add socklen.
14685         * modules/setsockopt (Depends-on): Add socklen.
14686
14687 2009-03-01  Bruno Haible  <bruno@clisp.org>
14688
14689         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14690         least 4.2.
14691
14692 2009-03-01  Eric Blake  <ebb9@byu.net>
14693             Bruno Haible  <bruno@clisp.org>
14694
14695         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14696         error messages.
14697         * lib/wait-process.c (wait_subprocess): Omit error message about
14698         deadly signal sent to the child of termsigp != NULL.
14699
14700 2009-03-01  Eric Blake  <ebb9@byu.net>
14701
14702         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14703
14704 2009-03-01  Bruno Haible  <bruno@clisp.org>
14705
14706         Avoid a gcc warning.
14707         * tests/test-sched.c (b): Make global.
14708         Reported by Eric Blake.
14709
14710 2009-01-19  Martin Lambers  <marlam@marlam.de>
14711
14712         Provide POSIX semantics for socket timeout options on W32.
14713         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14714         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14715         * modules/setsockopt: Depend on sys_time module for struct timeval.
14716         * modules/getsockopt: Depend on sys_time module for struct timeval.
14717
14718 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14719
14720         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14721         __USE_GNU, for consistency with netdb.in.h.
14722         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14723
14724 2009-03-01  Bruno Haible  <bruno@clisp.org>
14725
14726         More support for FreeMiNT.
14727         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14728         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14729
14730 2009-03-01  Bruno Haible  <bruno@clisp.org>
14731
14732         More support for FreeMiNT.
14733         * lib/fpurge.c (fpurge): Correct last commit.
14734         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14735
14736 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14737
14738         Fix unportable awk script in vc-list-files.
14739         * build-aux/vc-list-files: In the replacement awk script, use
14740         substr with a second argument of 1, not zero.
14741         Report by Simon Josefsson.
14742
14743 2009-02-28  Bruno Haible  <bruno@clisp.org>
14744
14745         More support for FreeMiNT.
14746         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14747         to FreeMiNT today.
14748         * lib/fwriting.c (fwriting): Likewise.
14749         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14750
14751 2009-02-28  Bruno Haible  <bruno@clisp.org>
14752
14753         * tests/test-freadseek.c (main): Disable test beyond end of file on
14754         FreeMiNT.
14755         * tests/test-ftello.c (main): Likewise.
14756         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14757
14758 2009-02-28  Bruno Haible  <bruno@clisp.org>
14759
14760         Add tentative support for FreeMiNT.
14761         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14762         * lib/fpurge.c (fpurge): Likewise.
14763         * lib/freadable.c (freadable): Likewise.
14764         * lib/freading.c (freading): Likewise.
14765         * lib/freadptr.c (freadptr): Likewise.
14766         * lib/freadseek.c (freadptrinc): Likewise.
14767         * lib/fseeko.c (rpl_fseeko): Likewise.
14768         * lib/fseterr.c (fseterr): Likewise.
14769         * lib/fwritable.c (fwritable): Likewise.
14770         * lib/fwriting.c (fwriting): Likewise.
14771         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14772         Hourihane.
14773         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14774
14775 2009-02-28  Bruno Haible  <bruno@clisp.org>
14776
14777         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14778         SIGCHLD.
14779         Reported by Jim Meyering.
14780
14781 2009-02-28  Bruno Haible  <bruno@clisp.org>
14782
14783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14784         Mention the results of these tests on various platforms.
14785         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14786         order.
14787         * doc/posix-functions/printf.texi: Likewise.
14788         * doc/posix-functions/snprintf.texi: Likewise.
14789         * doc/posix-functions/sprintf.texi: Likewise.
14790         * doc/posix-functions/vfprintf.texi: Likewise.
14791         * doc/posix-functions/vprintf.texi: Likewise.
14792         * doc/posix-functions/vsnprintf.texi: Likewise.
14793         * doc/posix-functions/vsprintf.texi: Likewise.
14794         * doc/glibc-functions/obstack_printf.texi: Likewise.
14795         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14796
14797 2009-02-28  Bruno Haible  <bruno@clisp.org>
14798
14799         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14800         Reported by Loïc Minier <lool@dooz.org>.
14801
14802 2009-02-27  Bruno Haible  <bruno@clisp.org>
14803
14804         * gnulib-tool (func_import): Make the sed expression used to create the
14805         sed script for updating the .gitignore file POSIX compliant.
14806         Reported by Eric Blake.
14807
14808 2009-02-27  Bruno Haible  <bruno@clisp.org>
14809
14810         * gnulib-tool (sed): Don't alias as "sed --posix".
14811         Reported by Eric Blake.
14812
14813 2009-02-27  Bruno Haible  <bruno@clisp.org>
14814
14815         Avoid test link errors.
14816         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14817         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14818         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14819         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14821
14822 2009-02-27  Bruno Haible  <bruno@clisp.org>
14823
14824         Avoid spurious "(cached)" in configure output.
14825         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14826         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14827         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14828         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14829         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14830         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14831         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14832         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14833         Reported by Eric Blake.
14834
14835 2009-02-27  Eric Blake  <ebb9@byu.net>
14836
14837         printf: fix regression in previous patch
14838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14839
14840 2009-02-27  Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14843         value.
14844         * lib/stdint.in.h: Likewise.
14845         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14846
14847 2009-02-27  Eric Blake  <ebb9@byu.net>
14848
14849         doc: mention more functions added in cygwin 1.7.0
14850         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14851         addition.
14852         * doc/posix-functions/open_wmemstream.texi: Likewise.
14853         * doc/posix-functions/wcsnlen.texi: Likewise.
14854         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14855         * doc/posix-functions/wcstod.texi: Likewise.
14856         * doc/posix-functions/wcstof.texi: Likewise.
14857         * doc/posix-functions/wcstoimax.texi: Likewise.
14858         * doc/posix-functions/wcstok.texi: Likewise.
14859         * doc/posix-functions/wcstoumax.texi: Likewise.
14860
14861         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14862         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14863         * doc/posix-functions/fprintf.texi: Update.
14864         * doc/posix-functions/printf.texi: Update.
14865         * doc/posix-functions/snprintf.texi: Update.
14866         * doc/posix-functions/sprintf.texi: Update.
14867         * doc/posix-functions/vfprintf.texi: Update.
14868         * doc/posix-functions/vprintf.texi: Update.
14869         * doc/posix-functions/vsnprintf.texi: Update.
14870         * doc/posix-functions/vsprintf.texi: Update.
14871         * doc/glibc-functions/obstack_printf.texi: Update.
14872         * doc/glibc-functions/obstack_vprintf.texi: Update.
14873
14874 2009-02-26  Eric Blake  <ebb9@byu.net>
14875
14876         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14877         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14878         compilation bug by using runtime conversion.
14879         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14880         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14881         * modules/ceill-tests (Files): Use nan.h.
14882         * modules/floorl-tests (Files): Likewise.
14883         * modules/frexpl-tests (Files): Likewise.
14884         * modules/isnanl-tests (Files): Likewise.
14885         * modules/ldexpl-tests (Files): Likewise.
14886         * modules/roundl-tests (Files): Likewise.
14887         * modules/truncl-tests (Files): Likewise.
14888         * tests/test-ceill.c (main): Use a working NaN.
14889         * tests/test-floorl.c (main): Likewise.
14890         * tests/test-frexpl.c (main): Likewise.
14891         * tests/test-isnan.c (test_long_double): Likewise.
14892         * tests/test-isnanl.h (main): Likewise.
14893         * tests/test-ldexpl.h (main): Likewise.
14894         * tests/test-roundl.h (main): Likewise.
14895         * tests/test-truncl.h (main): Likewise.
14896         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14897
14898 2009-02-26  Eric Blake  <ebb9@byu.net>
14899             Bruno Haible  <bruno@clisp.org>
14900
14901         Work around a *printf bug with %ls on Solaris.
14902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14903         precision is specified, sprintf stops converting the wide string
14904         argument when the number of bytes that have been produced by this
14905         conversion equals or exceeds the precision.
14906         * doc/posix-functions/fprintf.texi: Update.
14907         * doc/posix-functions/printf.texi: Update.
14908         * doc/posix-functions/snprintf.texi: Update.
14909         * doc/posix-functions/sprintf.texi: Update.
14910         * doc/posix-functions/vfprintf.texi: Update.
14911         * doc/posix-functions/vprintf.texi: Update.
14912         * doc/posix-functions/vsnprintf.texi: Update.
14913         * doc/posix-functions/vsprintf.texi: Update.
14914         * doc/glibc-functions/obstack_printf.texi: Update.
14915         * doc/glibc-functions/obstack_vprintf.texi: Update.
14916
14917 2009-02-26  Eric Blake  <ebb9@byu.net>
14918
14919         stdlib: favor compiler check of random.h
14920         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14921         to avoid an ObjC random.h installed by Swarm.
14922
14923 2009-02-26  Bruno Haible  <bruno@clisp.org>
14924
14925         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14926         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14927         Reported by Gary V. Vaughan <gary@gnu.org>.
14928
14929 2009-02-26  Bruno Haible  <bruno@clisp.org>
14930
14931         Fix *printf behaviour regarding the %ls directive.
14932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14933         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14934         NEED_PRINTF_DIRECTIVE_LS.
14935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14936         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14937         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14938         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14939         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14940         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14941         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14945         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14946         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14950         * doc/posix-functions/fprintf.texi: Update.
14951         * doc/posix-functions/printf.texi: Update.
14952         * doc/posix-functions/snprintf.texi: Update.
14953         * doc/posix-functions/sprintf.texi: Update.
14954         * doc/posix-functions/vfprintf.texi: Update.
14955         * doc/posix-functions/vprintf.texi: Update.
14956         * doc/posix-functions/vsnprintf.texi: Update.
14957         * doc/posix-functions/vsprintf.texi: Update.
14958         * doc/glibc-functions/obstack_printf.texi: Update.
14959         * doc/glibc-functions/obstack_vprintf.texi: Update.
14960         Reported by Eric Blake.
14961
14962 2009-02-25  Bruno Haible  <bruno@clisp.org>
14963
14964         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14965         with known value.
14966         Reported by Gary V. Vaughan <gary@gnu.org>.
14967
14968 2009-02-25  Bruno Haible  <bruno@clisp.org>
14969
14970         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14971         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14972         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14973         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14974         Reported by Gary V. Vaughan <gary@gnu.org>.
14975
14976 2009-02-25  Bruno Haible  <bruno@clisp.org>
14977
14978         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14979         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14980         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14981         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14982         Reported by Gary V. Vaughan <gary@gnu.org>.
14983
14984 2009-02-25  Eric Blake  <ebb9@byu.net>
14985
14986         tests: skip fseek/ftell tests if ungetc is broken
14987         * m4/ungetc.m4: New file.
14988         * modules/fseek-tests: Split test, so ungetc dependency is
14989         separate from rest of test.
14990         * modules/fseeko-tests: Likewise.
14991         * modules/ftell-tests: Likewise.
14992         * modules/ftello-tests: Likewise.
14993         * tests/test-fseek.c (main): Isolate ungetc dependency.
14994         * tests/test-fseeko.c (main): Likewise.
14995         * tests/test-ftell.c (main): Likewise.
14996         * tests/test-ftello.c (main): Likewise.
14997         * tests/test-fseek2.sh: New file.
14998         * tests/test-fseeko2.sh: Likewise.
14999         * tests/test-ftell2.sh: Likewise.
15000         * tests/test-ftello2.sh: Likewise.
15001
15002 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
15003
15004         test-getaddrinfo: fix usage of skip return code 77
15005         * tests/test-gettaddrinfo.c: Return skip code 77 only
15006         for first occurance of skip (4x77 is not 77)
15007
15008 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15009
15010         strtod: avoid C99 decl-after-statement
15011         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15012
15013 2009-02-24  Eric Blake  <ebb9@byu.net>
15014
15015         strtod: detect HP-UX 11.31 bug
15016         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15017         Reported by Gary V. Vaughan.
15018
15019 2009-02-23  Bruno Haible  <bruno@clisp.org>
15020
15021         Fix invalid read past end of memory block.
15022         * lib/vasnprintf.c (DCHAR_SET): Define.
15023         (local_wcslen): Define only when needed.
15024         (local_strnlen, local_wcsnlen): New functions.
15025         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15026         directives that involve a conversion ourselves.
15027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15028         wcsnlen, mbrtowc, wcrtomb.
15029         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15030         * tests/test-vasprintf-posix.c (test_function): Likewise.
15031         * tests/test-snprintf-posix.h (test_function): Likewise.
15032         * tests/test-sprintf-posix.h (test_function): Likewise.
15033         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15034
15035 2009-02-22  Bruno Haible  <bruno@clisp.org>
15036
15037         Implement new clarified decomposition of Hangul syllables.
15038         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15039         of type LTV, return only a pairwise decomposition.
15040         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15041         Likewise.
15042         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15043         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15044         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15045
15046 2009-02-22  Bruno Haible  <bruno@clisp.org>
15047
15048         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15049         zero-length results and shrink excess allocated memory.
15050         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15051         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15052         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15053         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15054         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15055         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15056         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15057         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15058         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15059         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15060         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15061         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15062
15063 2009-02-21  Bruno Haible  <bruno@clisp.org>
15064
15065         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15066         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15067         spaces after a period. Put a space between a macro name and its
15068         argument list. Trivial rewordings.
15069         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15070         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15071         (main): Return 0 explicitly.
15072
15073 2009-02-21  Bruno Haible  <bruno@clisp.org>
15074
15075         Tests for module 'uninorm/filter'.
15076         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15077         * modules/uninorm/filter-tests: New file.
15078
15079         New module 'uninorm/filter'.
15080         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15081         uninorm_filter_flush, uninorm_filter_free): New declarations.
15082         * lib/uninorm/uninorm-filter.c: New file.
15083         * modules/uninorm/filter: New file.
15084
15085 2009-02-21  Bruno Haible  <bruno@clisp.org>
15086
15087         Tests for module 'uninorm/nfkc'.
15088         * tests/uninorm/test-nfkc.c: New file.
15089         * tests/uninorm/test-u8-nfkc.c: New file.
15090         * tests/uninorm/test-u16-nfkc.c: New file.
15091         * tests/uninorm/test-u32-nfkc.c: New file.
15092         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15093         * tests/uninorm/test-u32-nfkc-big.c: New file.
15094         * modules/uninorm/nfkc-tests: New file.
15095
15096         New module 'uninorm/nfkc'.
15097         * lib/uninorm/nfkc.c: New file.
15098         * modules/uninorm/nfkc: New file.
15099
15100         Tests for module 'uninorm/nfkd'.
15101         * tests/uninorm/test-nfkd.c: New file.
15102         * tests/uninorm/test-u8-nfkd.c: New file.
15103         * tests/uninorm/test-u16-nfkd.c: New file.
15104         * tests/uninorm/test-u32-nfkd.c: New file.
15105         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15106         * tests/uninorm/test-u32-nfkd-big.c: New file.
15107         * modules/uninorm/nfkd-tests: New file.
15108
15109         New module 'uninorm/nfkd'.
15110         * lib/uninorm/nfkd.c: New file.
15111         * modules/uninorm/nfkd: New file.
15112
15113         Tests for module 'uninorm/nfc'.
15114         * tests/uninorm/test-nfc.c: New file.
15115         * tests/uninorm/test-u8-nfc.c: New file.
15116         * tests/uninorm/test-u16-nfc.c: New file.
15117         * tests/uninorm/test-u32-nfc.c: New file.
15118         * tests/uninorm/test-u32-nfc-big.sh: New file.
15119         * tests/uninorm/test-u32-nfc-big.c: New file.
15120         * modules/uninorm/nfc-tests: New file.
15121
15122         New module 'uninorm/nfc'.
15123         * lib/uninorm/nfc.c: New file.
15124         * modules/uninorm/nfc: New file.
15125
15126         Tests for module 'uninorm/nfd'.
15127         * tests/uninorm/test-nfd.c: New file.
15128         * tests/uninorm/test-u8-nfd.c: New file.
15129         * tests/uninorm/test-u16-nfd.c: New file.
15130         * tests/uninorm/test-u32-nfd.c: New file.
15131         * tests/uninorm/test-u32-nfd-big.sh: New file.
15132         * tests/uninorm/test-u32-nfd-big.c: New file.
15133         * tests/uninorm/test-u32-normalize-big.h: New file.
15134         * tests/uninorm/test-u32-normalize-big.c: New file.
15135         * tests/uninorm/NormalizationTest.txt: New file, created from
15136         Unicode 5.1.0 NormalizationTest.txt.
15137         * modules/uninorm/nfd-tests: New file.
15138
15139         New module 'uninorm/nfd'.
15140         * lib/uninorm/nfd.c: New file.
15141         * modules/uninorm/nfd: New file.
15142
15143         New module 'uninorm/u32-normalize'.
15144         * lib/uninorm/u32-normalize.c: New file.
15145         * modules/uninorm/u32-normalize: New file.
15146
15147         New module 'uninorm/u16-normalize'.
15148         * lib/uninorm/u16-normalize.c: New file.
15149         * modules/uninorm/u16-normalize: New file.
15150
15151         New module 'uninorm/u8-normalize'.
15152         * lib/uninorm/u8-normalize.c: New file.
15153         * lib/uninorm/normalize-internal.h: New file.
15154         * lib/uninorm/u-normalize-internal.h: New file.
15155         * modules/uninorm/u8-normalize: New file.
15156
15157         New module 'uninorm/decompose-internal'.
15158         * lib/uninorm/decompose-internal.c: New file.
15159         * modules/uninorm/decompose-internal: New file.
15160
15161         Tests for module 'uninorm/composition'.
15162         * tests/uninorm/test-composition.c: New file.
15163         * modules/uninorm/composition-tests: New file.
15164
15165         New module 'uninorm/composition'.
15166         * lib/uninorm/composition.c: New file.
15167         * lib/uninorm/composition-table.gperf: New file, generated by
15168         gen-uni-tables.
15169         * modules/uninorm/composition: New file.
15170
15171         Tests for module 'uninorm/compat-decomposition'.
15172         * tests/uninorm/test-compat-decomposition.c: New file.
15173         * modules/uninorm/compat-decomposition-tests: New file.
15174
15175         New module 'uninorm/compat-decomposition'.
15176         * lib/uninorm/decompose-internal.h: New file.
15177         * lib/uninorm/compat-decomposition.c: New file.
15178         * modules/uninorm/compat-decomposition: New file.
15179
15180         Tests for module 'uninorm/canonical-decomposition'.
15181         * tests/uninorm/test-canonical-decomposition.c: New file.
15182         * modules/uninorm/canonical-decomposition-tests: New file.
15183
15184         New module 'uninorm/canonical-decomposition'.
15185         * lib/uninorm/canonical-decomposition.c: New file.
15186         * modules/uninorm/canonical-decomposition: New file.
15187
15188         Tests for module 'uninorm/decomposition'.
15189         * tests/uninorm/test-decomposition.c: New file.
15190         * modules/uninorm/decomposition-tests: New file.
15191
15192         New module 'uninorm/decomposition'.
15193         * lib/uninorm/decomposition.c: New file.
15194         * modules/uninorm/decomposition: New file.
15195
15196         New module 'uninorm/decomposition-table'.
15197         * lib/uninorm/decomposition-table.h: New file.
15198         * lib/uninorm/decomposition-table.c: New file.
15199         * lib/uninorm/decomposition-table1.h: New file, generated by
15200         gen-uni-tables.
15201         * lib/uninorm/decomposition-table2.h: New file, generated by
15202         gen-uni-tables.
15203         * modules/uninorm/decomposition-table: New file.
15204
15205         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15206         (UC_DECOMP_*): New enumeration items.
15207         (get_decomposition): New function.
15208         (struct decomp_table): New type.
15209         (output_decomposition, output_decomposition_tables): New functions.
15210         (unicode_composition_exclusions): New variable.
15211         (fill_composition_exclusions, debug_output_composition_tables): New
15212         functions.
15213         (main): Accept one more argument. Invoke fill_composition_exclusions.
15214         Output decomposition and composition tables.
15215
15216         New module 'uninorm/base'.
15217         * lib/uninorm.h: New file.
15218         * lib/unictype.h: Update comment.
15219         * modules/uninorm/base: New file.
15220
15221 2009-02-21  David Lutterkort  <lutter@redhat.com>
15222
15223         Tests for module 'safe-alloc'.
15224         * tests/test-safe-alloc.c: New file.
15225         * modules/safe-alloc-tests: New file.
15226
15227         New module 'safe-alloc'.
15228         * lib/safe-alloc.h: New file.
15229         * lib/safe-alloc.c: New file.
15230         * m4/safe-alloc.m4: New file.
15231         * modules/safe-alloc: New file.
15232         * doc/safe-alloc.texi: New file.
15233         * doc/gnulib.texi: Include it.
15234         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15235         safe-alloc.
15236
15237 2009-02-18  Bruno Haible  <bruno@clisp.org>
15238
15239         Fix link error on non-glibc systems.
15240         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15241         variable.
15242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15243
15244 2009-02-18  Jim Meyering  <meyering@redhat.com>
15245
15246         fts: avoid used-uninitialized error due to recent change
15247         * lib/fts.c (fts_read): Guard uses of the new member,
15248         parent->fts_n_dirs_remaining, since it's not relevant for
15249         the parent of a directory specified on the command-line.
15250
15251 2009-02-17  James Youngman  <jay@gnu.org>
15252             Bruno Haible  <bruno@clisp.org>
15253
15254         * m4/include_next.m4: Reformulate comment.
15255
15256 2009-02-16  Jim Meyering  <meyering@redhat.com>
15257
15258         fts: add #if guards so that the fts_lgpl module still builds
15259         * lib/fts.c: Guard just-added hash-table-using parts with
15260         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15261         Reported by Simon Josefsson.
15262
15263 2009-02-15  Bruno Haible  <bruno@clisp.org>
15264
15265         * modules/array-mergesort-tests: New file.
15266         * tests/test-array-mergesort.c: New file.
15267
15268         New module 'array-mergesort'.
15269         * modules/array-mergesort: New file.
15270         * lib/array-mergesort.h: New file.
15271
15272 2009-02-15  Bruno Haible  <bruno@clisp.org>
15273
15274         Fix 2009-02-07 commit.
15275         * lib/gen-uni-tables.c (output_predicate, output_category,
15276         output_combclass, output_bidi_category, output_decimal_digit,
15277         output_digit, output_numeric, output_mirror, output_scripts,
15278         output_ident_category, output_simple_mapping): Fix format directives.
15279         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15280
15281 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15282
15283         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15284         fixes are available from IBM.
15285
15286 2009-02-13  Jim Meyering  <meyering@redhat.com>
15287
15288         fts: arrange not to stat non-directories in more cases
15289         This makes GNU find (when it doesn't need to stat each file)
15290         *much* more efficient at traversing reiserfs file systems.
15291         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15292         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15293         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15294         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15295         (leaf_optimization_applies): New function.
15296         (LCO_hash, LCO_compare): New helper functions.
15297         (link_count_optimize_ok): New function.
15298         (fts_stat): Initialize new member (if dir).
15299         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15300         we've just stat'ed a directory.  Skip the stat call when possible.
15301         ---
15302         Note this AFS-related exchange:
15303         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15304         and note find's pioctl call in find/fstype.c.
15305         But that is necessary only if you want to enable the
15306         optimization for AFS, and for now, I don't.
15307
15308         fts: move a function definition "up" (no semantic change)
15309         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15310         "up" to precede upcoming use of a related function.
15311
15312 2009-02-11  Jim Meyering  <meyering@redhat.com>
15313
15314         fts: correct internal computation of nlinks (optimization-related)
15315         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15316         whether the current entry is a directory, so don't test it.
15317
15318 2009-02-10  Bruno Haible  <bruno@clisp.org>
15319
15320         Tests for module 'uniwbrk/ulc-wordbreaks'.
15321         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15322         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15323         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15324
15325         Tests for module 'uniwbrk/u32-wordbreaks'.
15326         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15327         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15328
15329         Tests for module 'uniwbrk/u16-wordbreaks'.
15330         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15331         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15332
15333         Tests for module 'uniwbrk/u8-wordbreaks'.
15334         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15335         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15336
15337 2009-02-10  Bruno Haible  <bruno@clisp.org>
15338
15339         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15340         property.
15341         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15342         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15343         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15344
15345 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15346
15347         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15348         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15349
15350 2009-02-10  Bruno Haible  <bruno@clisp.org>
15351
15352         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15353         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15354         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15355         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15356         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15357         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15358
15359 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15360
15361         * lib/sockets.h (gl_fd_to_handle): New function.
15362
15363         * tests/test-sockets.c: Call gl_fd_to_handle.
15364
15365 2009-02-09  Bruno Haible  <bruno@clisp.org>
15366
15367         * doc/havelib.texi: Document the conventions on bi-arch systems.
15368
15369 2009-02-08  Bruno Haible  <bruno@clisp.org>
15370
15371         Document the AC_LIB_LINKFLAGS macro.
15372         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15373         * doc/gnulib.texi: Include it.
15374
15375 2009-02-08  Bruno Haible  <bruno@clisp.org>
15376
15377         Fix wrong order of sections, compared to TOC.
15378         * doc/gnulib.texi: Include relocatable-maint.texi after the
15379         "Regular expressions" node, not before.
15380
15381 2009-02-08  Bruno Haible  <bruno@clisp.org>
15382
15383         Tests for module 'unicase/totitle'.
15384         * modules/unicase/totitle-tests: New file.
15385
15386         Tests for module 'unicase/tolower'.
15387         * modules/unicase/tolower-tests: New file.
15388
15389         Tests for module 'unicase/toupper'.
15390         * modules/unicase/toupper-tests: New file.
15391         * tests/unicase/test-mapping-part1.h: New file.
15392         * tests/unicase/test-mapping-part2.h: New file.
15393
15394         New module 'unicase/totitle'.
15395         * modules/unicase/totitle: New file.
15396         * lib/unicase/totitle.c: New file.
15397
15398         New module 'unicase/tolower'.
15399         * modules/unicase/tolower: New file.
15400         * lib/unicase/tolower.c: New file.
15401
15402         New module 'unicase/toupper'.
15403         * modules/unicase/toupper: New file.
15404         * lib/unicase/toupper.c: New file.
15405         * lib/unicase/simple-mapping.h: New file.
15406
15407         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15408         (mapping_table): New structure.
15409         (output_simple_mapping): New function.
15410         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15411         * modules/gen-uni-tables (Description): Update.
15412         * lib/unicase/toupper.h: New file, automatically generated by
15413         gen-uni-tables.
15414         * lib/unicase/tolower.h: New file, automatically generated by
15415         gen-uni-tables.
15416         * lib/unicase/totitle.h: New file, automatically generated by
15417         gen-uni-tables.
15418         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15419         gen-uni-tables.
15420         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15421         gen-uni-tables.
15422         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15423         gen-uni-tables.
15424
15425         New module 'unicase/base'.
15426         * modules/unicase/base: New file.
15427         * lib/unicase.h: New file.
15428
15429 2009-02-08  Bruno Haible  <bruno@clisp.org>
15430
15431         New module 'uniwbrk/ulc-wordbreaks'.
15432         * modules/uniwbrk/ulc-wordbreaks: New file.
15433         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15434
15435         New module 'uniwbrk/u32-wordbreaks'.
15436         * modules/uniwbrk/u32-wordbreaks: New file.
15437         * lib/uniwbrk/u32-wordbreaks.c: New file.
15438
15439         New module 'uniwbrk/u16-wordbreaks'.
15440         * modules/uniwbrk/u16-wordbreaks: New file.
15441         * lib/uniwbrk/u16-wordbreaks.c: New file.
15442
15443         New module 'uniwbrk/u8-wordbreaks'.
15444         * modules/uniwbrk/u8-wordbreaks: New file.
15445         * lib/uniwbrk/u8-wordbreaks.c: New file.
15446         * lib/uniwbrk/u-wordbreaks.h: New file.
15447
15448         New module 'uniwbrk/table'.
15449         * modules/uniwbrk/table: New file.
15450         * lib/uniwbrk/wbrktable.h: New file.
15451         * lib/uniwbrk/wbrktable.c: New file.
15452
15453         New module 'uniwbrk/wordbreak-property'.
15454         * modules/uniwbrk/wordbreak-property: New file.
15455         * lib/uniwbrk/wordbreak-property.c: New file.
15456
15457         * lib/gen-uni-tables.c (WBP_*): New enum items.
15458         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15459         (unicode_org_wbp): New variable.
15460         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15461         New functions.
15462         (wbp_table): New structure.
15463         (output_wbp, output_wbrk_tables): New functions.
15464         (main): Accept additional argument. Invoke fill_org_wbp,
15465         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15466         output_wbrk_tables.
15467         * modules/gen-uni-tables (Description): Update.
15468         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15469         gen-uni-tables.
15470
15471         New module 'uniwbrk/base'.
15472         * modules/uniwbrk/base: New file.
15473         * lib/uniwbrk.h: New file.
15474
15475 2009-02-08  Bruno Haible  <bruno@clisp.org>
15476
15477         Update to Unicode 5.1.0.
15478         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15479         U+2185..U+2188.
15480         (is_property_default_ignorable_code_point): Don't include characters
15481         of category Cc or Cs and not-a-characters.
15482         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15483         U+0D79, U+109E, U+109F, U+A60C.
15484         * lib/unictype/bidi_of.h: Regenerated.
15485         * lib/unictype/blocks.h: Regenerated.
15486         * lib/unictype/categ_C.h: Regenerated.
15487         * lib/unictype/categ_Cf.h: Regenerated.
15488         * lib/unictype/categ_Cn.h: Regenerated.
15489         * lib/unictype/categ_L.h: Regenerated.
15490         * lib/unictype/categ_Ll.h: Regenerated.
15491         * lib/unictype/categ_Lm.h: Regenerated.
15492         * lib/unictype/categ_Lo.h: Regenerated.
15493         * lib/unictype/categ_Lu.h: Regenerated.
15494         * lib/unictype/categ_M.h: Regenerated.
15495         * lib/unictype/categ_Mc.h: Regenerated.
15496         * lib/unictype/categ_Me.h: Regenerated.
15497         * lib/unictype/categ_Mn.h: Regenerated.
15498         * lib/unictype/categ_N.h: Regenerated.
15499         * lib/unictype/categ_Nd.h: Regenerated.
15500         * lib/unictype/categ_Nl.h: Regenerated.
15501         * lib/unictype/categ_No.h: Regenerated.
15502         * lib/unictype/categ_P.h: Regenerated.
15503         * lib/unictype/categ_Pd.h: Regenerated.
15504         * lib/unictype/categ_Pe.h: Regenerated.
15505         * lib/unictype/categ_Pf.h: Regenerated.
15506         * lib/unictype/categ_Pi.h: Regenerated.
15507         * lib/unictype/categ_Po.h: Regenerated.
15508         * lib/unictype/categ_Ps.h: Regenerated.
15509         * lib/unictype/categ_S.h: Regenerated.
15510         * lib/unictype/categ_Sk.h: Regenerated.
15511         * lib/unictype/categ_Sm.h: Regenerated.
15512         * lib/unictype/categ_So.h: Regenerated.
15513         * lib/unictype/categ_of.h: Regenerated.
15514         * lib/unictype/combining.h: Regenerated.
15515         * lib/unictype/ctype_alnum.h: Regenerated.
15516         * lib/unictype/ctype_alpha.h: Regenerated.
15517         * lib/unictype/ctype_graph.h: Regenerated.
15518         * lib/unictype/ctype_lower.h: Regenerated.
15519         * lib/unictype/ctype_print.h: Regenerated.
15520         * lib/unictype/ctype_punct.h: Regenerated.
15521         * lib/unictype/ctype_upper.h: Regenerated.
15522         * lib/unictype/decdigit.h: Regenerated.
15523         * lib/unictype/digit.h: Regenerated.
15524         * lib/unictype/mirror.h: Regenerated.
15525         * lib/unictype/numeric.h: Regenerated.
15526         * lib/unictype/pr_alphabetic.h: Regenerated.
15527         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15528         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15529         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15530         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15531         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15532         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15533         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15534         * lib/unictype/pr_combining.h: Regenerated.
15535         * lib/unictype/pr_dash.h: Regenerated.
15536         * lib/unictype/pr_decimal_digit.h: Regenerated.
15537         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15538         * lib/unictype/pr_deprecated.h: Regenerated.
15539         * lib/unictype/pr_diacritic.h: Regenerated.
15540         * lib/unictype/pr_extender.h: Regenerated.
15541         * lib/unictype/pr_format_control.h: Regenerated.
15542         * lib/unictype/pr_grapheme_base.h: Regenerated.
15543         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15544         * lib/unictype/pr_grapheme_link.h: Regenerated.
15545         * lib/unictype/pr_id_continue.h: Regenerated.
15546         * lib/unictype/pr_id_start.h: Regenerated.
15547         * lib/unictype/pr_ideographic.h: Regenerated.
15548         * lib/unictype/pr_ignorable_control.h: Regenerated.
15549         * lib/unictype/pr_lowercase.h: Regenerated.
15550         * lib/unictype/pr_math.h: Regenerated.
15551         * lib/unictype/pr_numeric.h: Regenerated.
15552         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15553         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15554         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15555         * lib/unictype/pr_other_id_continue.h: Regenerated.
15556         * lib/unictype/pr_other_lowercase.h: Regenerated.
15557         * lib/unictype/pr_other_math.h: Regenerated.
15558         * lib/unictype/pr_punctuation.h: Regenerated.
15559         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15560         * lib/unictype/pr_soft_dotted.h: Regenerated.
15561         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15562         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15563         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15564         * lib/unictype/pr_uppercase.h: Regenerated.
15565         * lib/unictype/pr_xid_continue.h: Regenerated.
15566         * lib/unictype/pr_xid_start.h: Regenerated.
15567         * lib/unictype/pr_zero_width.h: Regenerated.
15568         * lib/unictype/scripts.h: Regenerated.
15569         * lib/unictype/scripts_byname.gperf: Regenerated.
15570         * lib/unictype/sy_java_ident.h: Regenerated.
15571         * lib/unilbrk/lbrkprop1.h: Regenerated.
15572         * lib/unilbrk/lbrkprop2.h: Regenerated.
15573         * tests/unictype/test-categ_C.c: Regenerated.
15574         * tests/unictype/test-categ_Cf.c: Regenerated.
15575         * tests/unictype/test-categ_Cn.c: Regenerated.
15576         * tests/unictype/test-categ_L.c: Regenerated.
15577         * tests/unictype/test-categ_Ll.c: Regenerated.
15578         * tests/unictype/test-categ_Lm.c: Regenerated.
15579         * tests/unictype/test-categ_Lo.c: Regenerated.
15580         * tests/unictype/test-categ_Lu.c: Regenerated.
15581         * tests/unictype/test-categ_M.c: Regenerated.
15582         * tests/unictype/test-categ_Mc.c: Regenerated.
15583         * tests/unictype/test-categ_Me.c: Regenerated.
15584         * tests/unictype/test-categ_Mn.c: Regenerated.
15585         * tests/unictype/test-categ_N.c: Regenerated.
15586         * tests/unictype/test-categ_Nd.c: Regenerated.
15587         * tests/unictype/test-categ_Nl.c: Regenerated.
15588         * tests/unictype/test-categ_No.c: Regenerated.
15589         * tests/unictype/test-categ_P.c: Regenerated.
15590         * tests/unictype/test-categ_Pd.c: Regenerated.
15591         * tests/unictype/test-categ_Pe.c: Regenerated.
15592         * tests/unictype/test-categ_Pf.c: Regenerated.
15593         * tests/unictype/test-categ_Pi.c: Regenerated.
15594         * tests/unictype/test-categ_Po.c: Regenerated.
15595         * tests/unictype/test-categ_Ps.c: Regenerated.
15596         * tests/unictype/test-categ_S.c: Regenerated.
15597         * tests/unictype/test-categ_Sk.c: Regenerated.
15598         * tests/unictype/test-categ_Sm.c: Regenerated.
15599         * tests/unictype/test-categ_So.c: Regenerated.
15600         * tests/unictype/test-ctype_alnum.c: Regenerated.
15601         * tests/unictype/test-ctype_alpha.c: Regenerated.
15602         * tests/unictype/test-ctype_graph.c: Regenerated.
15603         * tests/unictype/test-ctype_lower.c: Regenerated.
15604         * tests/unictype/test-ctype_print.c: Regenerated.
15605         * tests/unictype/test-ctype_punct.c: Regenerated.
15606         * tests/unictype/test-ctype_upper.c: Regenerated.
15607         * tests/unictype/test-decdigit.h: Regenerated.
15608         * tests/unictype/test-digit.h: Regenerated.
15609         * tests/unictype/test-numeric.h: Regenerated.
15610         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15611         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15612         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15613         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15614         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15615         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15616         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15617         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15618         * tests/unictype/test-pr_combining.c: Regenerated.
15619         * tests/unictype/test-pr_dash.c: Regenerated.
15620         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15621         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15622         * tests/unictype/test-pr_deprecated.c: Regenerated.
15623         * tests/unictype/test-pr_diacritic.c: Regenerated.
15624         * tests/unictype/test-pr_extender.c: Regenerated.
15625         * tests/unictype/test-pr_format_control.c: Regenerated.
15626         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15627         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15628         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15629         * tests/unictype/test-pr_id_continue.c: Regenerated.
15630         * tests/unictype/test-pr_id_start.c: Regenerated.
15631         * tests/unictype/test-pr_ideographic.c: Regenerated.
15632         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15633         * tests/unictype/test-pr_lowercase.c: Regenerated.
15634         * tests/unictype/test-pr_math.c: Regenerated.
15635         * tests/unictype/test-pr_numeric.c: Regenerated.
15636         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15637         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15638         Regenerated.
15639         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15640         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15641         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15642         * tests/unictype/test-pr_other_math.c: Regenerated.
15643         * tests/unictype/test-pr_punctuation.c: Regenerated.
15644         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15645         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15646         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15647         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15648         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15649         * tests/unictype/test-pr_uppercase.c: Regenerated.
15650         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15651         * tests/unictype/test-pr_xid_start.c: Regenerated.
15652         * tests/unictype/test-pr_zero_width.c: Regenerated.
15653
15654         Update to Unicode 5.1.0.
15655         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15656         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15657         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15658         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15659         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15660         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15661         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15662         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15663         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15664         (nonspacing_table_ind): Update.
15665         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15666
15667         Update to Unicode 5.1.0.
15668         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15669         code transform.
15670         * lib/uniname/uniname.c (unicode_character_name,
15671         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15672         * lib/uniname/uninames.h: Regenerated.
15673         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15674
15675 2009-02-07  Bruno Haible  <bruno@clisp.org>
15676
15677         Merge gen-ctype and gen-lbrk into a single program.
15678         * lib/gen-uni-tables.c: New file, incorporating
15679         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15680         Add directory prefixes to the names of the generated files.
15681         * lib/unictype/gen-ctype.c: Remove file.
15682         * lib/unilbrk/gen-lbrk.c: Remove file.
15683         * modules/gen-uni-tables: New file.
15684         * modules/unictype/gen-ctype: Remove file.
15685         * modules/unilbrk/gen-lbrk: Remove file.
15686
15687 2009-02-07  Bruno Haible  <bruno@clisp.org>
15688
15689         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15690
15691         New module 'unistr/u32-strcoll'.
15692         * modules/unistr/u32-strcoll: New file.
15693         * lib/unistr/u32-strcoll.c: New file.
15694
15695         New module 'unistr/u16-strcoll'.
15696         * modules/unistr/u16-strcoll: New file.
15697         * lib/unistr/u16-strcoll.c: New file.
15698
15699         New module 'unistr/u8-strcoll'.
15700         * modules/unistr/u8-strcoll: New file.
15701         * lib/unistr/u8-strcoll.c: New file.
15702         * lib/unistr/u-strcoll.h: New file.
15703
15704 2009-02-07  Bruno Haible  <bruno@clisp.org>
15705
15706         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15707         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15708         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15709         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15710         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15711         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15712
15713 2009-02-07  Bruno Haible  <bruno@clisp.org>
15714
15715         Make 64-bit clean.
15716         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15717         output_combclass, output_bidi_category, output_decimal_digit,
15718         output_digit, output_numeric, output_mirror, output_scripts,
15719         output_ident_category): Use proper width specifier in format strings.
15720
15721 2009-02-07  Bruno Haible  <bruno@clisp.org>
15722
15723         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15724         failure behaviour.
15725
15726 2009-02-07  Jim Meyering  <meyering@redhat.com>
15727
15728         regex: avoid compilation failure with upcoming gcc-4.4
15729         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15730         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15731         "... error: integer overflow in preprocessor expression".
15732
15733 2009-02-05  Ben Pfaff  <blp@gnu.org>
15734
15735         Fix link errors on Windows when close module is used.
15736         * modules/close: Add $(LIB_CLOSE) to Link section.
15737         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15738         $(LIB_CLOSE) on Windows.
15739
15740 2009-02-05  Jim Meyering  <meyering@redhat.com>
15741
15742         still avoid unused-parameter warnings, but do it cleanly
15743         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15744         (get_fs_usage): Cast to void instead.
15745         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15746         (dev_from_mount_options, read_file_system_list): Cast to void.
15747         Prompted by Bruno Haible.
15748
15749 2009-02-04  Jim Meyering  <meyering@redhat.com>
15750
15751         fsusage.c: correct copyright year
15752         * lib/fsusage.c: Reflect year in which the change is pushed into
15753
15754         avoid misc. warnings
15755         * lib/fsusage.c (UNUSED_PARAM): Define.
15756         (get_fs_usage): Mark parameter "disk" as unused.
15757         * lib/getugroups.c (getgrent): Use "void" in prototype.
15758         * lib/mountlist.c: Mark unused parameters.
15759         (read_file_system_list): Declare a local with "const".
15760         * lib/nanosleep.c (getnow): Declare static.
15761         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15762
15763         dirfd: set errno upon failure
15764         * lib/dirfd.c: Include <errno.h>.
15765         Set errno to ENOTSUP when returning -1.
15766         * modules/dirfd (Depends-on): Add errno.
15767         Suggested by John Kodis <kodis@comcast.net>.
15768
15769 2009-02-01  Bruno Haible  <bruno@clisp.org>
15770
15771         Don't assume sizeof (long) >= sizeof (void *).
15772         * lib/memcmp.c: Include stdint.h.
15773         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15774         srcp2 to 'const byte *'.
15775         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15776         types to uintptr_t.
15777         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15778         * modules/memcmp (Depends-on): Add stdint.
15779         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15780
15781 2009-01-30  Eric Blake  <ebb9@byu.net>
15782
15783         fix more require-before-expand issues
15784         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15785         expand, AC_PROG_AWK.
15786         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15787
15788 2009-01-28  Eric Blake  <ebb9@byu.net>
15789
15790         version-etc: use consistent URL formatting
15791         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15792         Improve formatting.  Use fputs for string without %.
15793
15794 2009-01-28  Jim Meyering  <meyering@redhat.com>
15795
15796         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15797         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15798         "underquoted definition of NAME" from autoconf-2.59.
15799
15800 2009-01-28  Bruno Haible  <bruno@clisp.org>
15801
15802         * doc/gnulib.texi: Add "Obsolete modules" to index.
15803
15804 2009-01-28  Jim Meyering  <meyering@redhat.com>
15805
15806         useless-if-before-free: recognize more variants
15807         * build-aux/useless-if-before-free: Also recognize e.g.,
15808         if (NULL != p) free (p);
15809
15810 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15811
15812         test-getaddrinfo: skip (don't fail) this test when there's no network
15813         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15814         on the presumption that it means you lack network access.
15815
15816 2009-01-26  Jim Meyering  <meyering@redhat.com>
15817
15818         fflush: avoid warnings on modern systems
15819         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15820         pos and result, into scopes where they're used.
15821
15822 2009-01-26  Eric Blake  <ebb9@byu.net>
15823
15824         Silence warning reintroduced by recent extensions patch.
15825         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15826         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15827         autoconf.
15828
15829         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15830         * m4/00gnulib.m4: New file.
15831         * gnulib-tool (func_get_filelist): Always use it.
15832         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15833         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15834
15835 2009-01-25  Bruno Haible  <bruno@clisp.org>
15836
15837         Make test-quotearg work on MacOS X and AIX.
15838         * tests/test-quotearg.sh: New file.
15839         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15840         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15841         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15842         include <libintl.h>.
15843         (fake_locale): Remove variable.
15844         (gettext, dgettext, dcgettext): Remove functions.
15845         (main): Instead of setting a fake locale, set a real locale. Call
15846         textdomain and bindtextdomain.
15847         * modules/quotearg-tests (Files): Add the new files.
15848         (Depends-on): Add gettext, setenv, unsetenv.
15849         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15850         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15851         Augment TESTS_ENVIRONMENT.
15852
15853 2009-01-25  Bruno Haible  <bruno@clisp.org>
15854
15855         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15856         fr_FR.ISO8859-1 locale on MacOS X.
15857         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15858         ja_JP.eucJP locale on MacOS X.
15859         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15860         zh_CN.GB18030 locale on MacOS X.
15861
15862 2009-01-25  Bruno Haible  <bruno@clisp.org>
15863
15864         Avoid link errors on MacOS X 10.3.
15865         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15866         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15867
15868 2009-01-25  Bruno Haible  <bruno@clisp.org>
15869
15870         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15871         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15872         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15873         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15874         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15875         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15876         posix_spawnattr_init, posix_spawnattr_setsigmask,
15877         posix_spawnattr_setflags, posix_spawnattr_destroy.
15878
15879         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15880         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15881         * modules/execute (Files): Remove m4/posix_spawn.m4.
15882         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15883         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15884         posix_spawnattr_init, posix_spawnattr_setsigmask,
15885         posix_spawnattr_setflags, posix_spawnattr_destroy.
15886
15887 2009-01-25  Bruno Haible  <bruno@clisp.org>
15888
15889         * lib/glthread/threadlib.c: Include <stdlib.h>.
15890
15891 2009-01-25  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/glthread/threadlib.c (dummy): New declaration.
15894
15895 2009-01-25  Bruno Haible  <bruno@clisp.org>
15896
15897         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15898         multibyte characters also for the GB18030 encoding. Don't crash when
15899         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15900
15901 2009-01-25  Bruno Haible  <bruno@clisp.org>
15902
15903         Avoid redefining 'struct random_data' on OSF/1 5.1.
15904         * lib/stdlib.in.h: Include <random.h> if it exists.
15905         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15906         HAVE_RANDOM_H. Include <random.h> when testing whether
15907         'struct random_data' exists.
15908         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15909
15910 2009-01-25  Bruno Haible  <bruno@clisp.org>
15911
15912         Don't install charset.alias on MacOS X >= 10.3.
15913         * lib/localcharset.c (DARWIN7): New macro.
15914         (get_charset_aliases): Hardcode the result for Darwin7.
15915         * modules/localcharset (install-exec-local): Don't install
15916         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15917
15918 2009-01-25  Bruno Haible  <bruno@clisp.org>
15919
15920         Don't install charset.alias on mingw and Cygwin.
15921         * modules/localcharset (install-exec-local): Don't install
15922         charset.alias on mingw and Cygwin, if the file does not yet exist.
15923         The result for these platforms is hardcoded in localcharset.c.
15924
15925 2009-01-25  Bruno Haible  <bruno@clisp.org>
15926
15927         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15928         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15929         before requiring AC_USE_SYSTEM_EXTENSIONS.
15930
15931 2009-01-25  Jim Meyering  <meyering@redhat.com>
15932
15933         c-strtod: avoid warnings
15934         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15935         "assignment discards qualifiers from pointer target type" warnings.
15936
15937 2009-01-24  Bruno Haible  <bruno@clisp.org>
15938
15939         Add support for non-UTF-8 locales on MacOS X.
15940         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15941         canonical encodings. For Darwin 7 and newer, don't map traditional
15942         encodings to UTF-8.
15943         Reported by Vincent Lefevre <vincent@vinc17.org>
15944         at <http://savannah.gnu.org/bugs/?25235>.
15945
15946 2009-01-24  Bruno Haible  <bruno@clisp.org>
15947
15948         * doc/gnulib.texi (Obsolete modules): New section.
15949         Reported by Mike Frysinger <vapier@gentoo.org>.
15950
15951 2009-01-24  Bruno Haible  <bruno@clisp.org>
15952
15953         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15954         (%.dvi): New rule.
15955
15956 2009-01-24  Bruno Haible  <bruno@clisp.org>
15957
15958         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15959         Reported by Eric Blake.
15960
15961 2009-01-24  Bruno Haible  <bruno@clisp.org>
15962
15963         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15964         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15965         Reported by Gary V. Vaughan <gary@gnu.org>.
15966
15967 2009-01-24  Bruno Haible  <bruno@clisp.org>
15968
15969         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15970
15971 2009-01-23  Bruno Haible  <bruno@clisp.org>
15972
15973         Make c-strtod, c-strtold usable in libraries.
15974         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15975         (C_STRTOD): Call strdup instead of xstrdup.
15976         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15977         * modules/c-strtold (Depends-on): Likewise.
15978         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15979         * NEWS: Mention the change.
15980         Reported by Michael Gold <mgold@ncf.ca>.
15981
15982 2009-01-23  Jim Meyering  <meyering@redhat.com>
15983
15984         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15985         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15986         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15987
15988 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15989
15990         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15991         GNU CoreUtils.
15992         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15993         * modules/version-etc (Description): Update.
15994
15995 2009-01-22  Bruno Haible  <bruno@clisp.org>
15996
15997         Cache the C locale object.
15998         * lib/c-strtod.c (c_locale_cache): New variable.
15999         (c_locale): New function.
16000         (C_STRTOD): Use it, and don't call freelocale.
16001         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16002         Suggested by Paolo Bonzini.
16003
16004 2009-01-21  Bruno Haible  <bruno@clisp.org>
16005
16006         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16007         conditions other than overflow.
16008
16009 2009-01-21  Bruno Haible  <bruno@clisp.org>
16010
16011         * lib/c-strtod.c: Include errno.h.
16012         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16013         value from STRTOD_L and STRTOD.
16014
16015 2009-01-21  Bruno Haible  <bruno@clisp.org>
16016         and Jim Meyering  <meyering@redhat.com>
16017
16018         nanosleep: skip configure test (fail it) for apple universal builds
16019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16020         universal builds, assume that nanosleep does not work.
16021         * modules/nanosleep (Depends-on): Add multiarch.
16022
16023         mktime: skip configure test (fail it) for apple universal builds
16024         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16025         universal builds, assume that mktime does not work.
16026         * modules/mktime (Depends-on): Add multiarch.
16027
16028 2009-01-21  Eric Blake  <ebb9@byu.net>
16029
16030         multiarch: avoid expand-before-require warning
16031         * modules/multiarch (configure.ac): Require, rather than expand,
16032         gl_MULTIARCH.
16033         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16034         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16035         enforce that all clients require it.  Partial reversion of
16036         2008-12-29 patch.
16037
16038         error: avoid expand-before-require warning
16039         * modules/errno (configure.ac): Require, rather than expand,
16040         gl_HEADER_ERRNO_H.
16041         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16042         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16043         enforce that all clients require it.
16044
16045         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16046         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16047         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16048         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16049
16050 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16051
16052         Revert:
16053         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16054
16055         regex: do not depend on obsolete modules.
16056         * modules/regex: Remove memcmp and memmove.
16057
16058 2009-01-20  Bruno Haible  <bruno@clisp.org>
16059
16060         Make the 'link' module link on Windows NT 4.
16061         * lib/link.c (_WIN32_WINNT): Don't define.
16062         (CreateHardLinkFuncType): New type.
16063         (CreateHardLinkFunc, initialized): New variables.
16064         (initialize): New function.
16065         (link): Invoke CreateHardLink indirectly through the function pointer.
16066
16067 2009-01-20  Bruno Haible  <bruno@clisp.org>
16068
16069         Fix compilation failure on mingw.
16070         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16071
16072 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16073
16074         * doc/c-strtod.texi: Mention a couple of restrictions.
16075
16076 2009-01-20  Jim Meyering  <meyering@redhat.com>
16077
16078         gettimeofday: move more declarations out of functions
16079         * lib/gettimeofday.c: Move extern declarations of tzset and
16080         gmtime out of containing functions.  Prompted by Bruno Haible.
16081
16082 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16083
16084         regex: do not depend on obsolete modules.
16085         * modules/regex: Remove memcmp and memmove.
16086
16087 2009-01-19  Bruno Haible  <bruno@clisp.org>
16088
16089         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16090         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16091         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16092         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16093         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16094
16095 2009-01-19  Bruno Haible  <bruno@clisp.org>
16096
16097         * tests/test-link.c: Include <errno.h>.
16098         (main): Exit with code 77 when a hard link cannot be created due to
16099         the file system.
16100         * tests/test-link.sh: Skip test when a hard link cannot be created due
16101         to the file system.
16102         Suggested by Eric Blake.
16103
16104 2009-01-19  Martin Lambers  <marlam@marlam.de>
16105
16106         * modules/link-tests: New file.
16107         * tests/test-link.sh: New file.
16108         * tests/test-link.c: New file.
16109
16110 2009-01-19  Eric Blake  <ebb9@byu.net>
16111
16112         doc: mention another function added in cygwin 1.7.0
16113         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16114         Another new function in cygwin 1.7.
16115
16116 2009-01-19  Bruno Haible  <bruno@clisp.org>
16117
16118         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16119         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16120         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16121         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16122         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16123         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16124         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16125         * m4/md4.m4 (gl_MD4): Likewise.
16126         * m4/md5.m4 (gl_MD5): Likewise.
16127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16128         * m4/sha1.m4 (gl_SHA1): Likewise.
16129         * m4/sha256.m4 (gl_SHA256): Likewise.
16130         * m4/sha512.m4 (gl_SHA512): Likewise.
16131
16132 2009-01-19  Bruno Haible  <bruno@clisp.org>
16133
16134         * modules/uniname/uniname-tests (Depends-on): Add progname.
16135         * tests/uniname/test-uninames.c: Include progname.h.
16136         (main): Call set_program_name.
16137
16138         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16139         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16140         (main): Call set_program_name.
16141
16142         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16143         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16144         (main): Call set_program_name.
16145
16146         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16147         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16148         (main): Call set_program_name.
16149
16150         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16151         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16152         (main): Call set_program_name.
16153
16154         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16155         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16156         (main): Call set_program_name.
16157
16158         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16159         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16160         (main): Call set_program_name.
16161
16162         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16163         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16164         (main): Call set_program_name.
16165
16166         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16167         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16168         (main): Call set_program_name.
16169
16170 2009-01-19  Eric Blake  <ebb9@byu.net>
16171
16172         test-unistd: test previous patch
16173         * tests/test-unistd.c: Test *_FILENO macros.
16174
16175         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16176         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16177         Guarantee a definition.
16178         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16179         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16180         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16181         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16182         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16183         Likewise.
16184         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16185         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16186         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16187         Likewise.
16188         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16189         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16190         (STDERR_FILENO): Likewise.
16191         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16192         (STDERR_FILENO): Likewise.
16193         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16194         (STDERR_FILENO): Likewise.
16195         Reported by Elbert Pol.
16196
16197 2009-01-19  Eric Blake  <ebb9@byu.net>
16198
16199         doc: mention more functions added in cygwin 1.7.0
16200         * doc/posix-functions/abort.texi (abort): Update wording related
16201         to cygwin.
16202         * doc/posix-functions/daylight.texi (daylight): Likewise.
16203         * doc/posix-functions/optarg.texi (optarg): Likewise.
16204         * doc/posix-functions/optarg.texi (opterr): Likewise.
16205         * doc/posix-functions/optarg.texi (optind): Likewise.
16206         * doc/posix-functions/optarg.texi (optopt): Likewise.
16207         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16208         worked in 1.5.x, and was withdrawn in 1.7.
16209         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16210         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16211         cygwin versions.
16212         * doc/posix-functions/perror.texi (perror): Likewise.
16213         * doc/posix-functions/printf.texi (printf): Likewise.
16214         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16215         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16216         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16217         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16218         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16219         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16220         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16221         Likewise.
16222         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16223         Likewise.
16224         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16225         this function.
16226         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16227         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16228         Likewise.
16229         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16230         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16231         * doc/posix-functions/confstr.texi (confstr): Likewise.
16232         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16233         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16234         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16235         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16236         * doc/posix-functions/fputws.texi (fputws): Likewise.
16237         * doc/posix-functions/fwide.texi (fwide): Likewise.
16238         * doc/posix-functions/getwc.texi (getwc): Likewise.
16239         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16240         * doc/posix-functions/putwc.texi (putwc): Likewise.
16241         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16242         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16243         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16244         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16245         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16246         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16247         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16248         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16249         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16250         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16251         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16252
16253 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16254
16255         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16256         * lib/ioctl.c: Include <sys/ioctl.h>.
16257
16258 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16259
16260         * modules/getdate-tests (Depends-on): Add progname.
16261         * tests/test-getdate.c: Use progname module, to avoid link errors
16262         on non-glibc systems.
16263
16264 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16265
16266         * modules/filenamecat-tests (Depends-on): Add progname.
16267         * modules/fstrcmp-tests (Depends-on): Likewise.
16268
16269         * tests/test-filenamecat.c: Use progname module, to avoid link
16270         errors on non-glibc systems.
16271         * tests/test-fstrcmp.c: Likewise.
16272
16273 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16274
16275         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16276         * lib/gettimeofday.c: Move extern declaration out of function.
16277
16278 2009-01-18  Bruno Haible  <bruno@clisp.org>
16279
16280         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16281         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16282         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16283
16284 2009-01-18  Bruno Haible  <bruno@clisp.org>
16285
16286         * lib/strftime.c (MEMPCPY): Remove unused macro.
16287         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16288
16289 2009-01-18  Martin Lambers  <marlam@marlam.de>
16290
16291         New module 'link'.
16292         * lib/unistd.in.h (link): New declaration.
16293         * lib/link.c: New file.
16294         * m4/link.m4: New file.
16295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16296         HAVE_LINK.
16297         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16298         * modules/link: New file.
16299         * doc/posix-functions/link.texi: Mention the new module.
16300
16301 2009-01-18  Bruno Haible  <bruno@clisp.org>
16302
16303         * tests/test-avltree_list.c (main): Call set_program_name.
16304         * tests/test-avltree_oset.c (main): Likewise.
16305         * tests/test-obstack-printf.c: Include progname.h.
16306         (main): Call set_program_name.
16307         * tests/test-quotearg.c: Include progname.h.
16308         (main): Call set_program_name.
16309         * tests/test-xmemdup0.c: Include progname.h.
16310         (main): Call set_program_name.
16311
16312 2009-01-18  Bruno Haible  <bruno@clisp.org>
16313
16314         New module 'alphasort'.
16315         * lib/dirent.in.h (alphasort): New declaration.
16316         * lib/alphasort.c: New file, from glibc with modifications.
16317         * m4/alphasort.m4: New file.
16318         * modules/alphasort: New file.
16319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16320         HAVE_ALPHASORT.
16321         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16322         HAVE_ALPHASORT.
16323         * doc/posix-functions/alphasort.texi: Mention the new module and the
16324         portability problems.
16325
16326 2009-01-18  Bruno Haible  <bruno@clisp.org>
16327
16328         New module 'scandir'.
16329         * lib/dirent.in.h (scandir): New declaration.
16330         * lib/scandir.c: New file, from glibc with modifications.
16331         * m4/scandir.m4: New file.
16332         * modules/scandir: New file.
16333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16334         HAVE_SCANDIR.
16335         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16336         HAVE_SCANDIR.
16337         * doc/posix-functions/scandir.texi: Mention the new module and the
16338         portability problems.
16339
16340 2009-01-17  Bruno Haible  <bruno@clisp.org>
16341
16342         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16343         Update documentation.
16344         (func_remove_suffix): Escape all dots in the suffix. Update
16345         documentation.
16346         (func_filter_filelist): Update documentation.
16347         Reported by Ralf Wildenhues.
16348
16349 2009-01-17  Bruno Haible  <bruno@clisp.org>
16350
16351         * modules/dprintf-posix-tests: New file.
16352         * tests/test-dprintf-posix.sh: New file.
16353         * tests/test-dprintf-posix.c: New file.
16354
16355         New modules 'dprintf', 'dprintf-posix'.
16356         * lib/stdio.in.h (dprintf): New declaration.
16357         * lib/dprintf.c: New file.
16358         * m4/dprintf.m4: New file.
16359         * m4/dprintf-posix.m4: New file.
16360         * modules/dprintf: New file.
16361         * modules/dprintf-posix: New file.
16362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16363         HAVE_DPRINTF, REPLACE_DPRINTF.
16364         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16365         HAVE_DPRINTF, REPLACE_DPRINTF.
16366         * doc/posix-functions/dprintf.texi: Mention the new modules.
16367
16368 2009-01-17  Bruno Haible  <bruno@clisp.org>
16369
16370         * modules/vdprintf-posix-tests: New file.
16371         * tests/test-vdprintf-posix.sh: New file.
16372         * tests/test-vdprintf-posix.c: New file.
16373
16374         New modules 'vdprintf', 'vdprintf-posix'.
16375         * lib/stdio.in.h (vdprintf): New declaration.
16376         * lib/vdprintf.c: New file.
16377         * m4/vdprintf.m4: New file.
16378         * m4/vdprintf-posix.m4: New file.
16379         * modules/vdprintf: New file.
16380         * modules/vdprintf-posix: New file.
16381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16382         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16383         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16384         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16385         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16386
16387 2009-01-17  Bruno Haible  <bruno@clisp.org>
16388
16389         Fix replacement of fopen on mingw.
16390         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16391         mingw.
16392
16393 2009-01-17  Bruno Haible  <bruno@clisp.org>
16394
16395         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16396         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16397
16398 2009-01-17  Bruno Haible  <bruno@clisp.org>
16399
16400         Avoid test-fflush2.sh failure on mingw.
16401         * tests/test-fflush2.c: Include binary-io.h.
16402         (main): Put standard input into binary mode.
16403         * modules/fflush-tests (Depends-on): Add binary-io.
16404
16405 2009-01-17  Bruno Haible  <bruno@clisp.org>
16406
16407         * lib/wchar.in.h: In another particular situation, include only the
16408         system's <wchar.h> file.
16409         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16410         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16411         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16412
16413 2009-01-17  Bruno Haible  <bruno@clisp.org>
16414
16415         Support for stripping executables in --enable-relocatable.
16416         * build-aux/install-reloc: Expect one more argument, or an environment
16417         variable RELOC_STRIP_PROG. If set, strip the destination program and
16418         its wrapper.
16419         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16420         RELOC_STRIP_PROG.
16421         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16422         to set RELOCATABLE_STRIP.
16423         * NEWS: Mention the new Makefile requirement.
16424
16425 2009-01-17  Bruno Haible  <bruno@clisp.org>
16426
16427         * build-aux/install-reloc: Remove debugging information left over by
16428         C compiler on MacOS X.
16429
16430 2009-01-17  Bruno Haible  <bruno@clisp.org>
16431
16432         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16433         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16434         _NSGetExecutablePath.
16435
16436 2009-01-16  Jim Meyering  <meyering@redhat.com>
16437
16438         strerror: avoid warnings about discarding "const"
16439         * lib/strerror.c (rpl_strerror): Instead of returning a const
16440         string from each and every "case", use a variable, and add a single
16441         cast after the switch.
16442
16443 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16444
16445         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16446
16447 2009-01-16  Bruno Haible  <bruno@clisp.org>
16448
16449         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16450         array initializer syntax that also works in C++ mode.
16451         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16452
16453 2009-01-16  Jim Meyering  <meyering@redhat.com>
16454
16455         poll: suppress a warning
16456         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16457         to ignore "...unsigned expression < 0 is always false" warnings.
16458
16459 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16460
16461         poll: remove declarations of unused variables
16462         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16463         sockbuf and optlen.
16464
16465 2009-01-15  Bruno Haible  <bruno@clisp.org>
16466
16467         Make fflush-after-ungetc POSIX compliant on BSD systems.
16468         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16469         (clear_ungetc_buffer): Implement also for other systems.
16470         (rpl_fflush): On glibc systems, invoke
16471         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16472         clear_ungetc_buffer after fetching the stream's position, not before.
16473
16474 2009-01-15  Bruno Haible  <bruno@clisp.org>
16475
16476         Make fflush-after-ungetc POSIX compliant on glibc systems.
16477         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16478         after ungetc.
16479         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16480         (rpl_fflush): On glibc systems, simply call the system's fflush
16481         function after clearing the ungetc buffer.
16482         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16483         Instead, lseek only to the end of file, then use the system's fseeko
16484         for the rest. On glibc systems, reset the EOF indicator bit.
16485
16486 2009-01-15  Jim Meyering  <meyering@redhat.com>
16487
16488         openmp.m4: revert quote-adding change, for portability to older autoconf
16489         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16490         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16491         Simon Josefsson noticed the problem when using autoconf-2.61.
16492
16493 2009-01-15  Bruno Haible  <bruno@clisp.org>
16494
16495         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16496         * tests/test-fflush2.c (ASSERT): Always fail.
16497         (main): Add two tests for fflush() after ungetc(), taking into account
16498         the Austin Group's clarification.
16499         Suggested by Eric Blake.
16500
16501 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16502
16503         mktime.m4: remove K&R-style function prototypes
16504         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16505         for the Sun C++ compiler.
16506
16507 2009-01-14  Bruno Haible  <bruno@clisp.org>
16508
16509         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16510         while including <wchar.h>.
16511         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16512         the system's <wchar.h> file.
16513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16514
16515 2009-01-14  Bruno Haible  <bruno@clisp.org>
16516
16517         * m4/csharp.m4: Don't mention gettext on the serial number line.
16518         * m4/csharpexec.m4: Likewise.
16519         * m4/eaccess.m4: Likewise.
16520         * m4/javaexec.m4: Likewise.
16521         * m4/sig_atomic_t.m4: Likewise.
16522         * m4/tmpdir.m4: Likewise.
16523         * m4/intldir.m4: Bump gettext version.
16524         * m4/lib-ld.m4: Likewise.
16525
16526 2009-01-14  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/progname.c (set_program_name): Add more comments.
16529         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16530
16531 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16532
16533         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16534         were sys/stat.h does not define it.
16535
16536 2009-01-14  Jim Meyering  <meyering@redhat.com>
16537
16538         many *.m4 files: improve m4 quoting
16539         99% of this change was performed by running the following commands:
16540         git ls-files | grep '\.m4$' | xargs perl -pi \
16541           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16542           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16543           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16544           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16545         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16546         The remainder were to add Copyright dates, increment serial numbers,
16547         undo some changes in comments, exclude m4/intl.m4, and add quotes
16548         around the "1" in ",1" where the unusual spacing prohibited the
16549         above regexps from doing the job.  For more details, see
16550         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16551         * m4/acl.m4: Modified.
16552         * m4/afs.m4: Likewise.
16553         * m4/alloca.m4: Likewise.
16554         * m4/argp.m4: Likewise.
16555         * m4/argz.m4: Likewise.
16556         * m4/atexit.m4: Likewise.
16557         * m4/bison-i18n.m4: Likewise.
16558         * m4/bison.m4: Likewise.
16559         * m4/byteswap.m4: Likewise.
16560         * m4/c-stack.m4: Likewise.
16561         * m4/c-strtod.m4: Likewise.
16562         * m4/calloc.m4: Likewise.
16563         * m4/canonicalize-lgpl.m4: Likewise.
16564         * m4/chown.m4: Likewise.
16565         * m4/clock_time.m4: Likewise.
16566         * m4/codeset.m4: Likewise.
16567         * m4/copy-file.m4: Likewise.
16568         * m4/csharp.m4: Likewise.
16569         * m4/csharpcomp.m4: Likewise.
16570         * m4/csharpexec.m4: Likewise.
16571         * m4/d-ino.m4: Likewise.
16572         * m4/d-type.m4: Likewise.
16573         * m4/dirfd.m4: Likewise.
16574         * m4/double-slash-root.m4: Likewise.
16575         * m4/eaccess.m4: Likewise.
16576         * m4/eealloc.m4: Likewise.
16577         * m4/environ.m4: Likewise.
16578         * m4/errno_h.m4: Likewise.
16579         * m4/euidaccess.m4: Likewise.
16580         * m4/execute.m4: Likewise.
16581         * m4/fatal-signal.m4: Likewise.
16582         * m4/fchdir.m4: Likewise.
16583         * m4/fcntl_h.m4: Likewise.
16584         * m4/fileblocks.m4: Likewise.
16585         * m4/filenamecat.m4: Likewise.
16586         * m4/findprog.m4: Likewise.
16587         * m4/flexmember.m4: Likewise.
16588         * m4/fnmatch.m4: Likewise.
16589         * m4/fopen.m4: Likewise.
16590         * m4/fpending.m4: Likewise.
16591         * m4/fprintf-posix.m4: Likewise.
16592         * m4/free.m4: Likewise.
16593         * m4/frexp.m4: Likewise.
16594         * m4/frexpl.m4: Likewise.
16595         * m4/fsusage.m4: Likewise.
16596         * m4/ftruncate.m4: Likewise.
16597         * m4/gc-camellia.m4: Likewise.
16598         * m4/gc-random.m4: Likewise.
16599         * m4/gc.m4: Likewise.
16600         * m4/getaddrinfo.m4: Likewise.
16601         * m4/getcwd-abort-bug.m4: Likewise.
16602         * m4/getcwd-path-max.m4: Likewise.
16603         * m4/getdate.m4: Likewise.
16604         * m4/getdomainname.m4: Likewise.
16605         * m4/getgroups.m4: Likewise.
16606         * m4/gethostname.m4: Likewise.
16607         * m4/gethrxtime.m4: Likewise.
16608         * m4/getline.m4: Likewise.
16609         * m4/getloadavg.m4: Likewise.
16610         * m4/getndelim2.m4: Likewise.
16611         * m4/getpass.m4: Likewise.
16612         * m4/gettext.m4: Likewise.
16613         * m4/gettime.m4: Likewise.
16614         * m4/gettimeofday.m4: Likewise.
16615         * m4/gnulib-common.m4: Likewise.
16616         * m4/group-member.m4: Likewise.
16617         * m4/host-os.m4: Likewise.
16618         * m4/iconv.m4: Likewise.
16619         * m4/iconv_open.m4: Likewise.
16620         * m4/inet_ntop.m4: Likewise.
16621         * m4/inet_pton.m4: Likewise.
16622         * m4/inline.m4: Likewise.
16623         * m4/intldir.m4: Likewise.
16624         * m4/intlmacosx.m4: Likewise.
16625         * m4/intmax.m4: Likewise.
16626         * m4/intmax_t.m4: Likewise.
16627         * m4/inttypes.m4: Likewise.
16628         * m4/inttypes_h.m4: Likewise.
16629         * m4/inttypes-pri.m4: Likewise.
16630         * m4/isapipe.m4: Likewise.
16631         * m4/isnand.m4: Likewise.
16632         * m4/isnanf.m4: Likewise.
16633         * m4/isnanl.m4: Likewise.
16634         * m4/javacomp.m4: Likewise.
16635         * m4/javaexec.m4: Likewise.
16636         * m4/jm-winsz1.m4: Likewise.
16637         * m4/jm-winsz2.m4: Likewise.
16638         * m4/lchown.m4: Likewise.
16639         * m4/lcmessage.m4: Likewise.
16640         * m4/ldexpl.m4: Likewise.
16641         * m4/lib-ld.m4: Likewise.
16642         * m4/lib-link.m4: Likewise.
16643         * m4/libsigsegv.m4: Likewise.
16644         * m4/link-follow.m4: Likewise.
16645         * m4/localcharset.m4: Likewise.
16646         * m4/locale-fr.m4: Likewise.
16647         * m4/locale-ja.m4: Likewise.
16648         * m4/locale-tr.m4: Likewise.
16649         * m4/locale-zh.m4: Likewise.
16650         * m4/lock.m4: Likewise.
16651         * m4/longlong.m4: Likewise.
16652         * m4/ls-mntd-fs.m4: Likewise.
16653         * m4/lstat.m4: Likewise.
16654         * m4/malloc.m4: Likewise.
16655         * m4/mathl.m4: Likewise.
16656         * m4/mbrtowc.m4: Likewise.
16657         * m4/mbstate_t.m4: Likewise.
16658         * m4/mbswidth.m4: Likewise.
16659         * m4/memchr.m4: Likewise.
16660         * m4/memcmp.m4: Likewise.
16661         * m4/memcpy.m4: Likewise.
16662         * m4/memmem.m4: Likewise.
16663         * m4/memmove.m4: Likewise.
16664         * m4/mempcpy.m4: Likewise.
16665         * m4/memrchr.m4: Likewise.
16666         * m4/memset.m4: Likewise.
16667         * m4/minmax.m4: Likewise.
16668         * m4/mkdir-slash.m4: Likewise.
16669         * m4/mkdtemp.m4: Likewise.
16670         * m4/mktime.m4: Likewise.
16671         * m4/mmap-anon.m4: Likewise.
16672         * m4/mountlist.m4: Likewise.
16673         * m4/nanosleep.m4: Likewise.
16674         * m4/nls.m4: Likewise.
16675         * m4/nocrash.m4: Likewise.
16676         * m4/open.m4: Likewise.
16677         * m4/openat.m4: Likewise.
16678         * m4/openmp.m4: Likewise.
16679         * m4/pathmax.m4: Likewise.
16680         * m4/perl.m4: Likewise.
16681         * m4/physmem.m4: Likewise.
16682         * m4/pipe.m4: Likewise.
16683         * m4/po.m4: Likewise.
16684         * m4/poll.m4: Likewise.
16685         * m4/posixtm.m4: Likewise.
16686         * m4/posixver.m4: Likewise.
16687         * m4/printf-frexp.m4: Likewise.
16688         * m4/printf-frexpl.m4: Likewise.
16689         * m4/printf-posix.m4: Likewise.
16690         * m4/printf-posix-rpl.m4: Likewise.
16691         * m4/printf.m4: Likewise.
16692         * m4/progtest.m4: Likewise.
16693         * m4/putenv.m4: Likewise.
16694         * m4/readline.m4: Likewise.
16695         * m4/readlink.m4: Likewise.
16696         * m4/readutmp.m4: Likewise.
16697         * m4/realloc.m4: Likewise.
16698         * m4/regex.m4: Likewise.
16699         * m4/relocatable.m4: Likewise.
16700         * m4/relocatable-lib.m4: Likewise.
16701         * m4/rename-dest-slash.m4: Likewise.
16702         * m4/rename.m4: Likewise.
16703         * m4/rmdir-errno.m4: Likewise.
16704         * m4/rmdir.m4: Likewise.
16705         * m4/roundf.m4: Likewise.
16706         * m4/roundl.m4: Likewise.
16707         * m4/rpmatch.m4: Likewise.
16708         * m4/save-cwd.m4: Likewise.
16709         * m4/selinux-selinux-h.m4: Likewise.
16710         * m4/setenv.m4: Likewise.
16711         * m4/settime.m4: Likewise.
16712         * m4/sig2str.m4: Likewise.
16713         * m4/sig_atomic_t.m4: Likewise.
16714         * m4/signalblocking.m4: Likewise.
16715         * m4/signbit.m4: Likewise.
16716         * m4/sigpipe.m4: Likewise.
16717         * m4/sockets.m4: Likewise.
16718         * m4/sockpfaf.m4: Likewise.
16719         * m4/st_dm_mode.m4: Likewise.
16720         * m4/stat-time.m4: Likewise.
16721         * m4/stdbool.m4: Likewise.
16722         * m4/stdint.m4: Likewise.
16723         * m4/stdint_h.m4: Likewise.
16724         * m4/stpcpy.m4: Likewise.
16725         * m4/stpncpy.m4: Likewise.
16726         * m4/strcase.m4: Likewise.
16727         * m4/strchrnul.m4: Likewise.
16728         * m4/strcspn.m4: Likewise.
16729         * m4/strdup.m4: Likewise.
16730         * m4/strftime.m4: Likewise.
16731         * m4/strndup.m4: Likewise.
16732         * m4/strnlen.m4: Likewise.
16733         * m4/strpbrk.m4: Likewise.
16734         * m4/strptime.m4: Likewise.
16735         * m4/strsep.m4: Likewise.
16736         * m4/strtod.m4: Likewise.
16737         * m4/strtoimax.m4: Likewise.
16738         * m4/strtok_r.m4: Likewise.
16739         * m4/strtol.m4: Likewise.
16740         * m4/strtoll.m4: Likewise.
16741         * m4/strtoul.m4: Likewise.
16742         * m4/strtoull.m4: Likewise.
16743         * m4/strtoumax.m4: Likewise.
16744         * m4/strverscmp.m4: Likewise.
16745         * m4/threadlib.m4: Likewise.
16746         * m4/timegm.m4: Likewise.
16747         * m4/tm_gmtoff.m4: Likewise.
16748         * m4/tmpdir.m4: Likewise.
16749         * m4/tmpfile.m4: Likewise.
16750         * m4/tzset.m4: Likewise.
16751         * m4/uintmax_t.m4: Likewise.
16752         * m4/unlinkdir.m4: Likewise.
16753         * m4/unlocked-io.m4: Likewise.
16754         * m4/uptime.m4: Likewise.
16755         * m4/userspec.m4: Likewise.
16756         * m4/utimbuf.m4: Likewise.
16757         * m4/utime.m4: Likewise.
16758         * m4/utimes-null.m4: Likewise.
16759         * m4/utimes.m4: Likewise.
16760         * m4/vararrays.m4: Likewise.
16761         * m4/vasnprintf.m4: Likewise.
16762         * m4/vfprintf-posix.m4: Likewise.
16763         * m4/vprintf-posix.m4: Likewise.
16764         * m4/wait-process.m4: Likewise.
16765         * m4/wchar_t.m4: Likewise.
16766         * m4/wint_t.m4: Likewise.
16767         * m4/write-any-file.m4: Likewise.
16768         * m4/yield.m4: Likewise.
16769
16770 2009-01-13  Bruno Haible  <bruno@clisp.org>
16771
16772         Avoid test-copy-file.sh failures when ACL support insufficient.
16773         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16774         TESTS_ENVIRONMENT.
16775         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16776         Reported by Jim Meyering.
16777
16778 2009-01-13  Bruno Haible  <bruno@clisp.org>
16779
16780         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16781         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16782         * modules/unistdio/u8-printf-parse (Files): Likewise.
16783         * modules/unistdio/u32-printf-parse (Files): Likewise.
16784         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16785
16786 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16787
16788         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16789         and m4/inttypes_h.m4 too.
16790
16791 2009-01-12  Eric Blake  <ebb9@byu.net>
16792
16793         tests: IRIX 6.2 cc can't compile -0.0 into .data
16794         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16795         rather than at compile-time.
16796         * tests/test-floorl.c (minus_zero): Likewise.
16797         * tests/test-frexpl.c (minus_zero): Likewise.
16798         * tests/test-isnan.c (minus_zerol): Likewise.
16799         * tests/test-isnanl.h (minus_zero): Likewise.
16800         * tests/test-ldexpl.c (minus_zero): Likewise.
16801         * tests/test-roundl.c (minus_zero): Likewise.
16802         * tests/test-signbit.c (minus_zerol): Likewise.
16803         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16804         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16805         * tests/test-truncl.c (minus_zero): Likewise.
16806         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16807         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16808         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16809
16810 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16811
16812         regex: fix glibc bug 9697
16813         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16814         handling.
16815
16816 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16817
16818         regex: fix glibc bug 697
16819         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16820         being NULL also if there are no backreferences.
16821
16822 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16823
16824         regex: merge glibc changes
16825         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16826         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16827         re_string_skip_chars, re_string_reconstruct): Likewise.
16828         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16829
16830 2009-01-07  Jim Meyering  <meyering@redhat.com>
16831
16832         poll: filter through cppi
16833         * lib/poll.c: Indent cpp directives to reflect nesting.
16834
16835 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16836
16837         poll: don't return uninitialized
16838         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16839
16840 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16841
16842         avoid compile failure on AIX 6.1
16843         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16844         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16845
16846 2009-01-04  Jim Meyering  <meyering@redhat.com>
16847
16848         remove duplicate inclusion of <stdio.h>
16849         * tests/test-fprintf-posix.c: Likewise.
16850         * tests/test-printf-posix.c: Likewise.
16851         * tests/test-snprintf-posix.c: Likewise.
16852         * tests/test-sprintf-posix.c: Likewise.
16853         * tests/test-vasprintf-posix.c: Likewise.
16854         * tests/test-vfprintf-posix.c: Likewise.
16855         * tests/test-vprintf-posix.c: Likewise.
16856         * tests/test-vsnprintf-posix.c: Likewise.
16857         * tests/test-vsprintf-posix.c: Likewise.
16858
16859 2009-01-03  Jim Meyering  <meyering@redhat.com>
16860
16861         gnulib-tool: fix sed-based filtering
16862         * gnulib-tool (func_filter_filelist): Remove extra backslash
16863         in sed_fff_filter definition.
16864
16865 2009-01-02  Jim Meyering  <meyering@redhat.com>
16866
16867         strftime: avoid compilation failure on Solaris 2.6
16868         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16869         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16870         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16871         be available.  Reported by Tom G. Christensen.  Details in
16872         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16873
16874 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16875             Bruno Haible  <bruno@clisp.org>
16876
16877         Speed up gnulib-tool by doing more string processing through shell
16878         built-ins.
16879         * gnulib-tool (fast_func_append): New variable.
16880         (func_remove_prefix, func_remove_suffix): New functions.
16881         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16882         (func_filter_filelist): New function.
16883         (func_get_dependencies): Use func_remove_suffix instead of sed.
16884         (func_get_automake_snippet): Use func_filter_filelist instead of a
16885         subshell and sed invocation.
16886
16887 2009-01-01  Bruno Haible  <bruno@clisp.org>
16888
16889         Fix a security bug.
16890         * gnulib-tool (func_import, import, update): Don't allow the characters
16891         '"', '$', '`', '\' in macro arguments that become part of commands that
16892         are evaluated.
16893
16894 2009-01-01  Bruno Haible  <bruno@clisp.org>
16895
16896         * gnulib-tool (func_reset_sigpipe): Add more comments.
16897
16898 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16899
16900         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16901         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16902         already know the answer.
16903
16904 2009-01-01  Jim Meyering  <meyering@redhat.com>
16905
16906         * lib/version-etc.c (version_etc_va): Update copyright year.
16907
16908 2008-12-30  Bruno Haible  <bruno@clisp.org>
16909
16910         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16911         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16912         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16913
16914 2008-12-29  Eric Blake  <ebb9@byu.net>
16915
16916         multiarch: avoid autoconf AC_REQUIRE bug
16917         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16918         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16919         2.63 and older.
16920         Reported by Bruno Haible, and analyzed in
16921         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16922
16923 2008-12-29  Bruno Haible  <bruno@clisp.org>
16924
16925         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16926         files in subdirectories correctly.
16927         Reported by Ralf Wildenhues.
16928
16929 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16930
16931         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16932         rather than 'join FILE -', for Solaris join.
16933
16934 2008-12-29  Bruno Haible  <bruno@clisp.org>
16935
16936         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16937         quoting.
16938         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16939         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16940         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16941         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16942         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16943         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16944         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16945         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16946         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16947         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16948         * m4/nls.m4 (AM_NLS): Likewise.
16949         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16950         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16951         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16952         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16953         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16954         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16955         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16956         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16957         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16958         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16959         * m4/xsize.m4 (gl_XSIZE): Likewise.
16960         Suggested by Jim Meyering.
16961
16962 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16963
16964         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16965         * lib/parse-duration.c: use a switch instead of cascading if's.
16966
16967 2008-12-29  Eric Blake  <ebb9@byu.net>
16968
16969         wchar.h: supply WEOF on Irix 5.3
16970         * lib/wchar.in.h (wint_t): Also supply WEOF.
16971         * lib/wctype.in.h (wint_t): Likewise.
16972         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16973         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16974         Reported by Tom G. Christensen.
16975
16976 2008-12-26  Bruno Haible  <bruno@clisp.org>
16977
16978         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16979         i486, i586, i686.
16980
16981 2008-12-26  Bruno Haible  <bruno@clisp.org>
16982
16983         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16984
16985 2008-12-26  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16988         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16989         not __STDC_CONSTANT_MACROS.
16990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16991
16992 2008-12-25  Bruno Haible  <bruno@clisp.org>
16993
16994         Add support for universal builds to vasnprintf.
16995         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16996         universal builds, guess no.
16997         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16998         * modules/vasprintf-posix (Depends-on): Likewise.
16999         * modules/fprintf-posix (Depends-on): Likewise.
17000         * modules/vfprintf-posix (Depends-on): Likewise.
17001         * modules/snprintf-posix (Depends-on): Likewise.
17002         * modules/vsnprintf-posix (Depends-on): Likewise.
17003         * modules/sprintf-posix (Depends-on): Likewise.
17004         * modules/vsprintf-posix (Depends-on): Likewise.
17005         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17006         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17007         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17008         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17009         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17010         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17011         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17012
17013         Add support for universal builds to <inttypes.h>.
17014         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17015         _SCNu64_PREFIX): In Apple
17016         universal builds, define directly, using _LP64.
17017         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17018         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17019         * modules/inttypes (Depends-on): Add multiarch.
17020         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17021
17022         Add support for universal builds to <stdint.h>.
17023         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17024         universal builds, define directly, using _LP64.
17025         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17026         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17027         and size_t.
17028         * modules/stdint (Depends-on): Add multiarch.
17029         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17030
17031         New module 'multiarch'.
17032         * modules/multiarch: New file.
17033         * m4/multiarch.m4: New file.
17034
17035 2008-12-25  Bruno Haible  <bruno@clisp.org>
17036
17037         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17038
17039 2008-12-25  Bruno Haible  <bruno@clisp.org>
17040
17041         * modules/btowc (License): Relicense under LGPLv2+.
17042         * modules/mbsinit (License): Likewise.
17043         * modules/mbrtowc (License): Likewise.
17044         * modules/wcrtomb (License): Likewise.
17045         * modules/streq (License): Likewise.
17046         Reported by David Lutterkort <lutter@redhat.com>.
17047
17048 2008-12-23  Bruno Haible  <bruno@clisp.org>
17049
17050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17051
17052 2008-12-23  Bruno Haible  <bruno@clisp.org>
17053
17054         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17056         GETADDRINFO_LIB, not in LIBS.
17057         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17058         * modules/canon-host (Link): Likewise.
17059         * NEWS: Mention the change.
17060         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17061         GETADDRINFO_LIB.
17062
17063 2008-12-22  Bruno Haible  <bruno@clisp.org>
17064
17065         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17066         * doc/posix-functions/iswalpha_l.texi: Likewise.
17067         * doc/posix-functions/iswblank_l.texi: Likewise.
17068         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17069         * doc/posix-functions/iswctype_l.texi: Likewise.
17070         * doc/posix-functions/iswdigit_l.texi: Likewise.
17071         * doc/posix-functions/iswgraph_l.texi: Likewise.
17072         * doc/posix-functions/iswlower_l.texi: Likewise.
17073         * doc/posix-functions/iswprint_l.texi: Likewise.
17074         * doc/posix-functions/iswpunct_l.texi: Likewise.
17075         * doc/posix-functions/iswspace_l.texi: Likewise.
17076         * doc/posix-functions/iswupper_l.texi: Likewise.
17077         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17078         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17079         * doc/posix-functions/open_wmemstream.texi: Likewise.
17080         * doc/posix-functions/swscanf.texi: Likewise.
17081         * doc/posix-functions/towctrans_l.texi: Likewise.
17082         * doc/posix-functions/towlower.texi: Likewise.
17083         * doc/posix-functions/towlower_l.texi: Likewise.
17084         * doc/posix-functions/towupper.texi: Likewise.
17085         * doc/posix-functions/towupper_l.texi: Likewise.
17086         * doc/posix-functions/vfwprintf.texi: Likewise.
17087         * doc/posix-functions/vfwscanf.texi: Likewise.
17088         * doc/posix-functions/vswscanf.texi: Likewise.
17089         * doc/posix-functions/vwprintf.texi: Likewise.
17090         * doc/posix-functions/vwscanf.texi: Likewise.
17091         * doc/posix-functions/wcpcpy.texi: Likewise.
17092         * doc/posix-functions/wcpncpy.texi: Likewise.
17093         * doc/posix-functions/wcscasecmp.texi: Likewise.
17094         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17095         * doc/posix-functions/wcscoll_l.texi: Likewise.
17096         * doc/posix-functions/wcsdup.texi: Likewise.
17097         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17098         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17099         * doc/posix-functions/wcsnlen.texi: Likewise.
17100         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17101         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17102         * doc/posix-functions/wctrans_l.texi: Likewise.
17103         * doc/posix-functions/wctype_l.texi: Likewise.
17104         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17105         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17106         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17107         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17108         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17109         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17110         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17111         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17112         * doc/glibc-functions/wcschrnul.texi: Likewise.
17113         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17114         * doc/glibc-functions/wcstod_l.texi: Likewise.
17115         * doc/glibc-functions/wcstof_l.texi: Likewise.
17116         * doc/glibc-functions/wcstol_l.texi: Likewise.
17117         * doc/glibc-functions/wcstold_l.texi: Likewise.
17118         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17119         * doc/glibc-functions/wcstoq.texi: Likewise.
17120         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17121         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17122         * doc/glibc-functions/wcstouq.texi: Likewise.
17123         * doc/glibc-functions/wmempcpy.texi: Likewise.
17124
17125 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17126             Eric Blake  <ebb9@byu.net>
17127             Paolo Bonzini  <bonzini@gnu.org>
17128             Bruno Haible  <bruno@clisp.org>
17129
17130         Make c-stack work on Haiku.
17131         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17132         (c_stack_action): Use SA_ONSTACK flag.
17133
17134 2008-12-22  Bruno Haible  <bruno@clisp.org>
17135
17136         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17137
17138 2008-12-22  Bruno Haible  <bruno@clisp.org>
17139
17140         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17141         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17142         being overridden.
17143         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17144         New macros.
17145         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17147         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17148         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17149
17150 2008-12-22  Bruno Haible  <bruno@clisp.org>
17151
17152         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17153         from test code.
17154
17155 2008-12-22  Eric Blake  <ebb9@byu.net>
17156
17157         Avoid gcc warnings on cygwin.
17158         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17159         Avoid unused variable.
17160         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17161         Likewise.
17162
17163 2008-12-22  Bruno Haible  <bruno@clisp.org>
17164
17165         Remove HAVE_MBRTOWC conditionals.
17166         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17167         (mbscasecmp): Assume mbrtowc function.
17168         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17169         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17170         * lib/mbschr.c: Include mbuiter.h unconditionally.
17171         (mbschr): Assume mbrtowc function.
17172         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17173         (mbscspn): Assume mbrtowc function.
17174         * lib/mbslen.c: Include mbuiter.h unconditionally.
17175         (mbslen): Assume mbrtowc function.
17176         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17177         (mbsncasecmp): Assume mbrtowc function.
17178         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17179         (mbsnlen): Assume mbrtowc function.
17180         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17181         (mbspbrk): Assume mbrtowc function.
17182         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17183         (mbspcasecmp): Assume mbrtowc function.
17184         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17185         (mbsrchr): Assume mbrtowc function.
17186         * lib/mbssep.c: Include mbuiter.h unconditionally.
17187         (mbssep): Assume mbrtowc function.
17188         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17189         (mbsspn): Assume mbrtowc function.
17190         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17191         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17192         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17193         (mbstok_r): Assume mbrtowc function.
17194         * lib/propername.c: Include mbuiter.h unconditionally.
17195         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17196         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17197         (trim2): Assume mbrtowc function.
17198         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17199         (mbsnwidth): Assume mbrtowc function.
17200         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17201         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17202         fallback definitions.
17203         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17204
17205 2008-12-22  Bruno Haible  <bruno@clisp.org>
17206
17207         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17208
17209 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17210
17211         * modules/regex: Request emulations for the mb*/wc* functions we need.
17212         * m4/regex.m4: Don't look for those functions here.
17213         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17214
17215 2008-12-22  Bruno Haible  <bruno@clisp.org>
17216
17217         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17218
17219 2008-12-21  Bruno Haible  <bruno@clisp.org>
17220
17221         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17222         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17223         (Include): Remove conditionalization.
17224         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17225         (Include): Remove conditionalization.
17226         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17227         (Include): Remove conditionalization.
17228         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17229         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17230         * NEWS: Mention the change.
17231         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17232         via Sergey Poznyakoff <gray@gnu.org.ua>.
17233
17234 2008-12-21  Bruno Haible  <bruno@clisp.org>
17235
17236         * MODULES.html.sh (Extended multibyte and wide character utilities
17237         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17238         wcrtomb, wcsrtombs.
17239         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17240         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17241         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17242         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17243
17244 2008-12-21  Bruno Haible  <bruno@clisp.org>
17245
17246         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17247
17248 2008-12-21  Bruno Haible  <bruno@clisp.org>
17249
17250         * modules/wcsnrtombs-tests: New file.
17251         * tests/test-wcsnrtombs1.sh: New file.
17252         * tests/test-wcsnrtombs2.sh: New file.
17253         * tests/test-wcsnrtombs3.sh: New file.
17254         * tests/test-wcsnrtombs4.sh: New file.
17255         * tests/test-wcsnrtombs.c: New file.
17256
17257         New module 'wcsnrtombs'.
17258         * lib/wchar.in.h (wcsnrtombs): New declaration.
17259         * lib/wcsnrtombs.c: New file.
17260         * lib/wcsrtombs-state.c: New file.
17261         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17262         (internal_state): Remove variable.
17263         * m4/wcsnrtombs.m4: New file.
17264         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17265         compilation units.
17266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17267         HAVE_WCSNRTOMBS.
17268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17269         HAVE_WCSNRTOMBS.
17270         * modules/wcsnrtombs: New file.
17271         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17272         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17273
17274 2008-12-21  Bruno Haible  <bruno@clisp.org>
17275
17276         * modules/wcsrtombs-tests: New file.
17277         * tests/test-wcsrtombs1.sh: New file.
17278         * tests/test-wcsrtombs2.sh: New file.
17279         * tests/test-wcsrtombs3.sh: New file.
17280         * tests/test-wcsrtombs4.sh: New file.
17281         * tests/test-wcsrtombs.c: New file.
17282
17283         New module 'wcsrtombs'.
17284         * lib/wchar.in.h (wcsrtombs): New declaration.
17285         * lib/wcsrtombs.c: New file.
17286         * m4/wcsrtombs.m4: New file.
17287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17288         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17290         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17291         * modules/wcsrtombs: New file.
17292         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17293         bugs.
17294
17295 2008-12-21  Bruno Haible  <bruno@clisp.org>
17296
17297         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17298         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17299         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17300         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17301         if not correct.
17302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17303         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17304         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17305         m4/locale-zh.m4, m4/codeset.m4.
17306         * doc/posix-functions/wcrtomb.texi: Document the bug.
17307
17308 2008-12-21  Bruno Haible  <bruno@clisp.org>
17309
17310         Work around a btowc() bug on IRIX 6.5.
17311         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17312         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17313         REPLACE_WTOBC if not.
17314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17315         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17316         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17317
17318 2008-12-21  Bruno Haible  <bruno@clisp.org>
17319
17320         * modules/wcrtomb-tests: New file.
17321         * tests/test-wcrtomb.sh: New file.
17322         * tests/test-wcrtomb.c: New file.
17323
17324         New module 'wcrtomb'.
17325         * lib/wchar.in.h (wcrtomb): New declaration.
17326         * lib/wcrtomb.c: New file.
17327         * m4/wcrtomb.m4: New file.
17328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17329         HAVE_WCRTOMB.
17330         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17331         HAVE_WCRTOMB.
17332         * modules/wcrtomb: New file.
17333         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17334
17335 2008-12-21  Bruno Haible  <bruno@clisp.org>
17336
17337         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17338         * modules/mbsrtowcs (Files): Likewise.
17339         * modules/wctob (Files): Likewise.
17340         * modules/c-strcase-tests (Files): Likewise.
17341         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17342         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17343         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17344         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17345         * modules/vasnprintf-posix-tests (Files): Likewise.
17346
17347 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17348
17349         gitlog-to-changelog: pass all command-line arguments to git-log
17350         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17351         it is sometimes convenient to filter the commits in various ways.
17352         gitlog-to-changelog only allows --since to specify a start date,
17353         but git-log itself supports many other filtering mechanisms.
17354         At the moment, I want to filter by branch name.  Rather than
17355         adding a --branch option to gitlog-to-changelog, it seems more
17356         flexible to simply pass all options directly to git-log and let
17357         git do the work.  Notice that this effectively makes --since a
17358         redundant option for gitlog-to-changelog, but removing it would
17359         require current usage to change since calls would then require
17360         an additional '--'.
17361
17362 2008-12-21  Bruno Haible  <bruno@clisp.org>
17363
17364         * modules/mbsnrtowcs-tests: New file.
17365         * tests/test-mbsnrtowcs1.sh: New file.
17366         * tests/test-mbsnrtowcs2.sh: New file.
17367         * tests/test-mbsnrtowcs3.sh: New file.
17368         * tests/test-mbsnrtowcs4.sh: New file.
17369         * tests/test-mbsnrtowcs.c: New file.
17370
17371         New module 'mbsnrtowcs'.
17372         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17373         * lib/mbsnrtowcs.c: New file.
17374         * lib/mbsrtowcs-state.c: New file.
17375         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17376         (internal_state): Remove variable.
17377         * m4/mbsnrtowcs.m4: New file.
17378         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17379         compilation units.
17380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17381         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17382         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17383         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17384         * modules/mbsnrtowcs: New file.
17385         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17386         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17387         portability problem.
17388
17389 2008-12-21  Bruno Haible  <bruno@clisp.org>
17390
17391         Work around mbsrtowcs bug.
17392         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17393         (gl_FUNC_MBSRTOWCS): Invoke it.
17394         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17395         m4/locale-zh.m4.
17396         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17397
17398 2008-12-21  Bruno Haible  <bruno@clisp.org>
17399
17400         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17401
17402 2008-12-21  Bruno Haible  <bruno@clisp.org>
17403
17404         Update doc for AIX.
17405         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17406         16-bit wchar_t type.
17407         * doc/posix-functions/btowc.texi: Likewise.
17408         * doc/posix-functions/fgetwc.texi: Likewise.
17409         * doc/posix-functions/fgetws.texi: Likewise.
17410         * doc/posix-functions/fputwc.texi: Likewise.
17411         * doc/posix-functions/fputws.texi: Likewise.
17412         * doc/posix-functions/fwide.texi: Likewise.
17413         * doc/posix-functions/fwprintf.texi: Likewise.
17414         * doc/posix-functions/fwscanf.texi: Likewise.
17415         * doc/posix-functions/getwchar.texi: Likewise.
17416         * doc/posix-functions/getwc.texi: Likewise.
17417         * doc/posix-functions/iswalnum.texi: Likewise.
17418         * doc/posix-functions/iswalpha.texi: Likewise.
17419         * doc/posix-functions/iswblank.texi: Likewise.
17420         * doc/posix-functions/iswcntrl.texi: Likewise.
17421         * doc/posix-functions/iswctype.texi: Likewise.
17422         * doc/posix-functions/iswdigit.texi: Likewise.
17423         * doc/posix-functions/iswgraph.texi: Likewise.
17424         * doc/posix-functions/iswlower.texi: Likewise.
17425         * doc/posix-functions/iswprint.texi: Likewise.
17426         * doc/posix-functions/iswpunct.texi: Likewise.
17427         * doc/posix-functions/iswspace.texi: Likewise.
17428         * doc/posix-functions/iswupper.texi: Likewise.
17429         * doc/posix-functions/iswxdigit.texi: Likewise.
17430         * doc/posix-functions/mbrtowc.texi: Likewise.
17431         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17432         * doc/posix-functions/mbstowcs.texi: Likewise.
17433         * doc/posix-functions/mbtowc.texi: Likewise.
17434         * doc/posix-functions/putwchar.texi: Likewise.
17435         * doc/posix-functions/putwc.texi: Likewise.
17436         * doc/posix-functions/swprintf.texi: Likewise.
17437         * doc/posix-functions/tolower.texi: Likewise.
17438         * doc/posix-functions/toupper.texi: Likewise.
17439         * doc/posix-functions/towctrans.texi: Likewise.
17440         * doc/posix-functions/ungetwc.texi: Likewise.
17441         * doc/posix-functions/vswprintf.texi: Likewise.
17442         * doc/posix-functions/wcrtomb.texi: Likewise.
17443         * doc/posix-functions/wcscat.texi: Likewise.
17444         * doc/posix-functions/wcschr.texi: Likewise.
17445         * doc/posix-functions/wcscmp.texi: Likewise.
17446         * doc/posix-functions/wcscoll.texi: Likewise.
17447         * doc/posix-functions/wcscpy.texi: Likewise.
17448         * doc/posix-functions/wcscspn.texi: Likewise.
17449         * doc/posix-functions/wcsftime.texi: Likewise.
17450         * doc/posix-functions/wcslen.texi: Likewise.
17451         * doc/posix-functions/wcsncat.texi: Likewise.
17452         * doc/posix-functions/wcsncmp.texi: Likewise.
17453         * doc/posix-functions/wcsncpy.texi: Likewise.
17454         * doc/posix-functions/wcspbrk.texi: Likewise.
17455         * doc/posix-functions/wcsrchr.texi: Likewise.
17456         * doc/posix-functions/wcsrtombs.texi: Likewise.
17457         * doc/posix-functions/wcsspn.texi: Likewise.
17458         * doc/posix-functions/wcsstr.texi: Likewise.
17459         * doc/posix-functions/wcstod.texi: Likewise.
17460         * doc/posix-functions/wcstof.texi: Likewise.
17461         * doc/posix-functions/wcstoimax.texi: Likewise.
17462         * doc/posix-functions/wcstok.texi: Likewise.
17463         * doc/posix-functions/wcstold.texi: Likewise.
17464         * doc/posix-functions/wcstoll.texi: Likewise.
17465         * doc/posix-functions/wcstol.texi: Likewise.
17466         * doc/posix-functions/wcstombs.texi: Likewise.
17467         * doc/posix-functions/wcstoull.texi: Likewise.
17468         * doc/posix-functions/wcstoul.texi: Likewise.
17469         * doc/posix-functions/wcstoumax.texi: Likewise.
17470         * doc/posix-functions/wcswidth.texi: Likewise.
17471         * doc/posix-functions/wcsxfrm.texi: Likewise.
17472         * doc/posix-functions/wctob.texi: Likewise.
17473         * doc/posix-functions/wctomb.texi: Likewise.
17474         * doc/posix-functions/wctrans.texi: Likewise.
17475         * doc/posix-functions/wctype.texi: Likewise.
17476         * doc/posix-functions/wcwidth.texi: Likewise.
17477         * doc/posix-functions/wmemchr.texi: Likewise.
17478         * doc/posix-functions/wmemcmp.texi: Likewise.
17479         * doc/posix-functions/wmemcpy.texi: Likewise.
17480         * doc/posix-functions/wmemmove.texi: Likewise.
17481         * doc/posix-functions/wmemset.texi: Likewise.
17482         * doc/posix-functions/wprintf.texi: Likewise.
17483         * doc/posix-functions/wscanf.texi: Likewise.
17484
17485 2008-12-21  Bruno Haible  <bruno@clisp.org>
17486
17487         Update doc for HP-UX 11.11.
17488         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17489         in HP-UX version 11.00, not in all versions of HP-UX 11.
17490         * doc/posix-functions/fwide.texi: Likewise.
17491         * doc/posix-functions/fwprintf.texi: Likewise.
17492         * doc/posix-functions/fwscanf.texi: Likewise.
17493         * doc/posix-functions/inet_ntop.texi: Likewise.
17494         * doc/posix-functions/inet_pton.texi: Likewise.
17495         * doc/posix-functions/mbrlen.texi: Likewise.
17496         * doc/posix-functions/mbrtowc.texi: Likewise.
17497         * doc/posix-functions/mbsinit.texi: Likewise.
17498         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17499         * doc/posix-functions/swprintf.texi: Likewise.
17500         * doc/posix-functions/swscanf.texi: Likewise.
17501         * doc/posix-functions/towctrans.texi: Likewise.
17502         * doc/posix-functions/vfwprintf.texi: Likewise.
17503         * doc/posix-functions/vswprintf.texi: Likewise.
17504         * doc/posix-functions/vwprintf.texi: Likewise.
17505         * doc/posix-functions/wcrtomb.texi: Likewise.
17506         * doc/posix-functions/wcsrtombs.texi: Likewise.
17507         * doc/posix-functions/wcsstr.texi: Likewise.
17508         * doc/posix-functions/wctob.texi: Likewise.
17509         * doc/posix-functions/wctrans.texi: Likewise.
17510         * doc/posix-functions/wmemchr.texi: Likewise.
17511         * doc/posix-functions/wmemcmp.texi: Likewise.
17512         * doc/posix-functions/wmemcpy.texi: Likewise.
17513         * doc/posix-functions/wmemmove.texi: Likewise.
17514         * doc/posix-functions/wmemset.texi: Likewise.
17515         * doc/posix-functions/wprintf.texi: Likewise.
17516         * doc/posix-functions/wscanf.texi: Likewise.
17517
17518 2008-12-21  Bruno Haible  <bruno@clisp.org>
17519
17520         Work around a portability problem.
17521         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17522         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17523
17524 2008-12-20  Bruno Haible  <bruno@clisp.org>
17525
17526         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17527         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17528         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17530         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17531
17532         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17533         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17534         set.
17535         (GNULIB_defined_mbstate_t): New macro.
17536         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17537         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17538         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17539         reuses the system's mbrtowc function but works around the bugs.
17540         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17541         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17542         macros.
17543         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17544         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17545         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17546         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17547         REPLACE_MBSINIT if mbsinit needs to be overridden.
17548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17549         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17550         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17551         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17552         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17553         m4/locale-zh.m4.
17554         (Depends): Add mbsinit.
17555         * modules/mbsinit (Depends): Add mbrtowc.
17556         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17557
17558 2008-12-20  Bruno Haible  <bruno@clisp.org>
17559
17560         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17561         so that there are no conversion errors on AIX.
17562         * tests/test-mbsrtowcs.c (main): LIkewise.
17563
17564 2008-12-20  Bruno Haible  <bruno@clisp.org>
17565
17566         Work around wctob bug on Solaris <= 9.
17567         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17568         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17570         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17571         * modules/wctob (Files): Add m4/locale-fr.m4.
17572         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17573
17574 2008-12-20  Bruno Haible  <bruno@clisp.org>
17575
17576         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17577         /dev/null.
17578         * tests/test-select-in.sh: Likewise.
17579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17580
17581 2008-12-20  Bruno Haible  <bruno@clisp.org>
17582
17583         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17584         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17585         Cygwin 1.5.x.
17586
17587 2008-12-20  Bruno Haible  <bruno@clisp.org>
17588
17589         Ensure mbstate_t is defined on HP-UX 11.11.
17590         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17591         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17592         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17593         AC_USE_SYSTEM_EXTENSIONS.
17594         * modules/fnmatch (Depends-on): Add extensions.
17595         * modules/mbrlen (Depends-on): Likewise.
17596         * modules/mbrtowc (Depends-on): Likewise.
17597         * modules/mbsinit (Depends-on): Likewise.
17598         * modules/mbsrtowcs (Depends-on): Likewise.
17599         * modules/mbswidth (Depends-on): Likewise.
17600         * modules/quotearg (Depends-on): Likewise.
17601         * modules/strftime (Depends-on): Likewise.
17602
17603 2008-12-20  Bruno Haible  <bruno@clisp.org>
17604
17605         Ensure wctob is declared on IRIX 6.5.
17606         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17607         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17608         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17610         of HAVE_WCTOB.
17611         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17612         HAVE_WCTOB.
17613         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17614
17615 2008-12-19  Bruno Haible  <bruno@clisp.org>
17616
17617         * modules/mbsrtowcs-tests: New file.
17618         * tests/test-mbsrtowcs1.sh: New file.
17619         * tests/test-mbsrtowcs2.sh: New file.
17620         * tests/test-mbsrtowcs3.sh: New file.
17621         * tests/test-mbsrtowcs4.sh: New file.
17622         * tests/test-mbsrtowcs.c: New file.
17623
17624         New module 'mbsrtowcs'.
17625         * lib/wchar.in.h (mbsrtowcs): New declaration.
17626         * lib/mbsrtowcs.c: New file.
17627         * m4/mbsrtowcs.m4: New file.
17628         * modules/mbsrtowcs: New file.
17629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17630         HAVE_MBSRTOWCS.
17631         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17632         HAVE_MBSRTOWCS.
17633         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17634
17635 2008-12-19  Bruno Haible  <bruno@clisp.org>
17636
17637         New module 'mbrlen'.
17638         * lib/wchar.in.h (mbrlen): New declaration.
17639         * lib/mbrlen.c: New file.
17640         * m4/mbrlen.m4: New file.
17641         * modules/mbrlen: New file.
17642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17643         HAVE_MBRLEN.
17644         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17645         HAVE_MBRLEN.
17646         * doc/posix-functions/mbrlen.texi: Document the new module.
17647
17648 2008-12-19  Bruno Haible  <bruno@clisp.org>
17649
17650         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17651         * modules/mbrtowc (Depends-on): Add verify.
17652         Suggested by Paul Eggert.
17653
17654 2008-12-18  Bruno Haible  <bruno@clisp.org>
17655
17656         * modules/mbsinit-tests: New file.
17657         * tests/test-mbsinit.sh: New file.
17658         * tests/test-mbsinit.c: New file.
17659
17660 2008-12-18  Bruno Haible  <bruno@clisp.org>
17661
17662         * modules/mbrtowc-tests: New file.
17663         * tests/test-mbrtowc1.sh: New file.
17664         * tests/test-mbrtowc2.sh: New file.
17665         * tests/test-mbrtowc3.sh: New file.
17666         * tests/test-mbrtowc4.sh: New file.
17667         * tests/test-mbrtowc.c: New file.
17668
17669         New module 'mbrtowc'.
17670         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17671         mbsinit and mbrtowc.
17672         (mbrtowc): New declaration.
17673         * lib/mbrtowc.c: New file.
17674         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17675         * modules/mbrtowc: New file.
17676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17677         HAVE_MBRTOWC.
17678         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17679         HAVE_MBRTOWC.
17680         * doc/posix-functions/mbrtowc.texi: Document the new module.
17681
17682 2008-12-18  Bruno Haible  <bruno@clisp.org>
17683
17684         New module 'wctob'.
17685         * lib/wchar.in.h (wctob): New declaration.
17686         * lib/wctob.c: New file.
17687         * m4/wctob.m4: New file.
17688         * modules/wctob: New file.
17689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17690         HAVE_WCTOB.
17691         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17692         * doc/posix-functions/wctob.texi: Document the new module.
17693
17694 2008-12-18  Bruno Haible  <bruno@clisp.org>
17695
17696         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17697         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17698
17699 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17700
17701         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17702         G. Christensen" <tgc@jupiterrise.com>.
17703
17704         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17705         G. Christensen" <tgc@jupiterrise.com>.
17706
17707         * lib/flock.c: Need to include string.h.  Reported by "Tom
17708         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17709         <ebb9@byu.net>.
17710
17711 2008-12-18  Bruno Haible  <bruno@clisp.org>
17712
17713         * m4/locale-ja.m4: New file, from GNU gettext.
17714
17715 2008-12-17  Bruno Haible  <bruno@clisp.org>
17716
17717         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17718         Suggested by Eric Blake.
17719
17720 2008-12-17  Bruno Haible  <bruno@clisp.org>
17721
17722         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17723
17724 2008-12-17  Bruno Haible  <bruno@clisp.org>
17725
17726         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17727         * modules/mbsinit (Depends-on): Add verify.
17728         Suggested by Paul Eggert.
17729
17730 2008-12-17  Bruno Haible  <bruno@clisp.org>
17731
17732         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17733         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17734         gl_FUNC_MBRTOWC.
17735         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17736         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17737         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17738         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17739         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17740         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17741         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17742         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17743         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17744         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17745         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17746         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17747         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17748         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17749         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17750         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17751         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17752         * modules/trim (configure.ac): Likewise.
17753
17754 2008-12-17  Bruno Haible  <bruno@clisp.org>
17755
17756         * modules/btowc-tests: New file.
17757         * tests/test-btowc1.sh: New file.
17758         * tests/test-btowc2.sh: New file.
17759         * tests/test-btowc.c: New file.
17760
17761         New module 'btowc'.
17762         * lib/wchar.in.h (btowc): New declaration.
17763         * lib/btowc.c: New file.
17764         * m4/btowc.m4: New file.
17765         * modules/btowc: New file.
17766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17767         HAVE_BTOWC.
17768         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17769         * doc/posix-functions/btowc.texi: Document the new module.
17770
17771 2008-12-17  Bruno Haible  <bruno@clisp.org>
17772
17773         New module 'mbsinit'.
17774         * lib/wchar.in.h (mbsinit): New declaration.
17775         * lib/mbsinit.c: New file.
17776         * m4/mbsinit.m4: New file.
17777         * modules/mbsinit: New file.
17778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17779         HAVE_MBSINIT.
17780         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17781         HAVE_MBSINIT.
17782         * doc/posix-functions/mbsinit.texi: Document the new module.
17783
17784 2008-12-16  Bruno Haible  <bruno@clisp.org>
17785
17786         * lib/unistd.in.h: Add comment.
17787         * tests/test-environ.c: Don't include <stdlib.h>.
17788
17789 2008-12-16  Bruno Haible  <bruno@clisp.org>
17790
17791         * lib/parse-duration.h (parse_duration): Document return value
17792         convention.
17793         * lib/parse-duration.c: Include specification header first. Add
17794         comments.
17795         (_): Remove macro.
17796         (parse_year_month_day, parse_hour_minute_second): Move side effects
17797         outside of strchr call.
17798         (parse_non_iso8601): Move side effects outside of isspace call.
17799         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17800         call.
17801
17802 2008-12-16  Bruno Haible  <bruno@clisp.org>
17803
17804         * tests/test-parse-duration.sh: Produce no output when the test
17805         succeeds.
17806
17807 2008-12-16  Bruno Haible  <bruno@clisp.org>
17808
17809         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17810         expressions.
17811
17812 2008-12-15  Bruno Haible  <bruno@clisp.org>
17813
17814         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17815         * doc/glibc-functions/flistxattr.texi: Likewise.
17816         * doc/glibc-functions/fopencookie.texi: Likewise.
17817         * doc/glibc-functions/fremovexattr.texi: Likewise.
17818         * doc/glibc-functions/fsetxattr.texi: Likewise.
17819         * doc/glibc-functions/getxattr.texi: Likewise.
17820         * doc/glibc-functions/lgetxattr.texi: Likewise.
17821         * doc/glibc-functions/listxattr.texi: Likewise.
17822         * doc/glibc-functions/llistxattr.texi: Likewise.
17823         * doc/glibc-functions/lremovexattr.texi: Likewise.
17824         * doc/glibc-functions/lsetxattr.texi: Likewise.
17825         * doc/glibc-functions/removexattr.texi: Likewise.
17826         * doc/glibc-functions/setxattr.texi: Likewise.
17827         * doc/posix-functions/open_memstream.texi: Likewise.
17828
17829 2008-12-15  Eric Blake  <ebb9@byu.net>
17830
17831         Update doc for cygwin 1.7.
17832         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17833         functions.
17834         * doc/posix-functions/fchmodat.texi: Likewise.
17835         * doc/posix-functions/fchownat.texi: Likewise.
17836         * doc/posix-functions/fdopendir.texi: Likewise.
17837         * doc/posix-functions/fmemopen.texi: Likewise.
17838         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17839         * doc/posix-functions/fstatat.texi: Likewise.
17840         * doc/posix-functions/futimens.texi: Likewise.
17841         * doc/posix-functions/gai_strerror.texi: Likewise.
17842         * doc/posix-functions/getaddrinfo.texi: Likewise.
17843         * doc/posix-functions/getnameinfo.texi: Likewise.
17844         * doc/posix-functions/if_freenameindex.texi: Likewise.
17845         * doc/posix-functions/if_indextoname.texi: Likewise.
17846         * doc/posix-functions/if_nameindex.texi: Likewise.
17847         * doc/posix-functions/if_nametoindex.texi: Likewise.
17848         * doc/posix-functions/insque.texi: Likewise.
17849         * doc/posix-functions/linkat.texi: Likewise.
17850         * doc/posix-functions/llrint.texi: Likewise.
17851         * doc/posix-functions/llrintf.texi: Likewise.
17852         * doc/posix-functions/llrintl.texi: Likewise.
17853         * doc/posix-functions/lockf.texi: Likewise.
17854         * doc/posix-functions/lrintl.texi: Likewise.
17855         * doc/posix-functions/mkdirat.texi: Likewise.
17856         * doc/posix-functions/mkfifoat.texi: Likewise.
17857         * doc/posix-functions/mknodat.texi: Likewise.
17858         * doc/posix-functions/mq_close.texi: Likewise.
17859         * doc/posix-functions/mq_getattr.texi: Likewise.
17860         * doc/posix-functions/mq_notify.texi: Likewise.
17861         * doc/posix-functions/mq_open.texi: Likewise.
17862         * doc/posix-functions/mq_receive.texi: Likewise.
17863         * doc/posix-functions/mq_send.texi: Likewise.
17864         * doc/posix-functions/mq_setattr.texi: Likewise.
17865         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17866         * doc/posix-functions/mq_timedsend.texi: Likewise.
17867         * doc/posix-functions/mq_unlink.texi: Likewise.
17868         * doc/posix-functions/open_memstream.texi: Likewise.
17869         * doc/posix-functions/openat.texi: Likewise.
17870         * doc/posix-functions/posix_fadvise.texi: Likewise.
17871         * doc/posix-functions/posix_fallocate.texi: Likewise.
17872         * doc/posix-functions/posix_madvise.texi: Likewise.
17873         * doc/posix-functions/posix_memalign.texi: Likewise.
17874         * doc/posix-functions/posix_openpt.texi: Likewise.
17875         * doc/posix-functions/readlinkat.texi: Likewise.
17876         * doc/posix-functions/remque.texi: Likewise.
17877         * doc/posix-functions/renameat.texi: Likewise.
17878         * doc/posix-functions/rintl.texi: Likewise.
17879         * doc/posix-functions/sem_unlink.texi: Likewise.
17880         * doc/posix-functions/shm_open.texi: Likewise.
17881         * doc/posix-functions/shm_unlink.texi: Likewise.
17882         * doc/posix-functions/signgam.texi: Likewise.
17883         * doc/posix-functions/sigset.texi: Likewise.
17884         * doc/posix-functions/stpcpy.texi: Likewise.
17885         * doc/posix-functions/stpncpy.texi: Likewise.
17886         * doc/posix-functions/strerror.texi: Likewise.
17887         * doc/posix-functions/strtod.texi: Likewise.
17888         * doc/posix-functions/symlinkat.texi: Likewise.
17889         * doc/posix-functions/unlinkat.texi: Likewise.
17890         * doc/posix-functions/utimensat.texi: Likewise.
17891         * doc/glibc-functions/bindresvport.texi: Likewise.
17892         * doc/glibc-functions/dn_expand.texi: Likewise.
17893         * doc/glibc-functions/exp10.texi: Likewise.
17894         * doc/glibc-functions/exp10f.texi: Likewise.
17895         * doc/glibc-functions/fgetxattr.texi: Likewise.
17896         * doc/glibc-functions/flistxattr.texi: Likewise.
17897         * doc/glibc-functions/fopencookie.texi: Likewise.
17898         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17899         * doc/glibc-functions/fremovexattr.texi: Likewise.
17900         * doc/glibc-functions/fsetxattr.texi: Likewise.
17901         * doc/glibc-functions/getifaddrs.texi: Likewise.
17902         * doc/glibc-functions/getxattr.texi: Likewise.
17903         * doc/glibc-functions/lgetxattr.texi: Likewise.
17904         * doc/glibc-functions/listxattr.texi: Likewise.
17905         * doc/glibc-functions/llistxattr.texi: Likewise.
17906         * doc/glibc-functions/lremovexattr.texi: Likewise.
17907         * doc/glibc-functions/lsetxattr.texi: Likewise.
17908         * doc/glibc-functions/pow10.texi: Likewise.
17909         * doc/glibc-functions/pow10f.texi: Likewise.
17910         * doc/glibc-functions/rcmd_af.texi: Likewise.
17911         * doc/glibc-functions/removexattr.texi: Likewise.
17912         * doc/glibc-functions/res_init.texi: Likewise.
17913         * doc/glibc-functions/res_mkquery.texi: Likewise.
17914         * doc/glibc-functions/res_query.texi: Likewise.
17915         * doc/glibc-functions/res_querydomain.texi: Likewise.
17916         * doc/glibc-functions/res_send.texi: Likewise.
17917         * doc/glibc-functions/rresvport_af.texi: Likewise.
17918         * doc/glibc-functions/setxattr.texi: Likewise.
17919         * doc/glibc-functions/strcasestr.texi: Likewise.
17920
17921 2008-12-15  Bruno Haible  <bruno@clisp.org>
17922
17923         Fix compilation error on OSF/1 4.0.
17924         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17925         <sys/time.h>, simply delegate to the system header.
17926         Reported by Daniel Richard G. <oss@teragram.com>.
17927
17928 2008-12-15  Bruno Haible  <bruno@clisp.org>
17929
17930         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17931         * doc/posix-functions/fchmodat.texi: Likewise.
17932         * doc/posix-functions/fchownat.texi: Likewise.
17933         * doc/posix-functions/fdopendir.texi: Likewise.
17934         * doc/posix-functions/fstatat.texi: Likewise.
17935         * doc/posix-functions/mkdirat.texi: Likewise.
17936         * doc/posix-functions/unlinkat.texi: Likewise.
17937
17938 2008-12-14  Bruno Haible  <bruno@clisp.org>
17939
17940         Update doc for POSIX:2008.
17941         * doc/posix-functions/faccessat.texi: New file.
17942         * doc/posix-functions/fchmodat.texi: New file.
17943         * doc/posix-functions/fchownat.texi: New file.
17944         * doc/posix-functions/fdopendir.texi: New file.
17945         * doc/posix-functions/fstatat.texi: New file.
17946         * doc/posix-functions/futimens.texi: New file.
17947         * doc/posix-functions/linkat.texi: New file.
17948         * doc/posix-functions/mkdirat.texi: New file.
17949         * doc/posix-functions/mkfifoat.texi: New file.
17950         * doc/posix-functions/mknodat.texi: New file.
17951         * doc/posix-functions/open_wmemstream.texi: New file.
17952         * doc/posix-functions/openat.texi: New file.
17953         * doc/posix-functions/psiginfo.texi: New file.
17954         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17955         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17956         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17957         * doc/posix-functions/readlinkat.texi: New file.
17958         * doc/posix-functions/renameat.texi: New file.
17959         * doc/posix-functions/strerror_l.texi: New file.
17960         * doc/posix-functions/symlinkat.texi: New file.
17961         * doc/posix-functions/unlinkat.texi: New file.
17962         * doc/posix-functions/utimensat.texi: New file.
17963         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17964
17965 2008-12-14  Bruno Haible  <bruno@clisp.org>
17966
17967         Update doc for POSIX:2008.
17968         * doc/posix-functions/alphasort.texi: Renamed from
17969         doc/glibc-functions/alphasort.texi.
17970         * doc/posix-functions/dirfd.texi: Renamed from
17971         doc/glibc-functions/dirfd.texi.
17972         * doc/posix-functions/dprintf.texi: Renamed from
17973         doc/glibc-functions/dprintf.texi.
17974         * doc/posix-functions/duplocale.texi: Renamed from
17975         doc/glibc-functions/duplocale.texi.
17976         * doc/posix-functions/fexecve.texi: Renamed from
17977         doc/glibc-functions/fexecve.texi.
17978         * doc/posix-functions/fmemopen.texi: Renamed from
17979         doc/glibc-functions/fmemopen.texi.
17980         * doc/posix-functions/freelocale.texi: Renamed from
17981         doc/glibc-functions/freelocale.texi.
17982         * doc/posix-functions/getdate_err.texi: Renamed from
17983         doc/glibc-functions/getdate_err.texi.
17984         * doc/posix-functions/isalnum_l.texi: Renamed from
17985         doc/glibc-functions/isalnum_l.texi.
17986         * doc/posix-functions/isalpha_l.texi: Renamed from
17987         doc/glibc-functions/isalpha_l.texi.
17988         * doc/posix-functions/isblank_l.texi: Renamed from
17989         doc/glibc-functions/isblank_l.texi.
17990         * doc/posix-functions/iscntrl_l.texi: Renamed from
17991         doc/glibc-functions/iscntrl_l.texi.
17992         * doc/posix-functions/isdigit_l.texi: Renamed from
17993         doc/glibc-functions/isdigit_l.texi.
17994         * doc/posix-functions/isgraph_l.texi: Renamed from
17995         doc/glibc-functions/isgraph_l.texi.
17996         * doc/posix-functions/islower_l.texi: Renamed from
17997         doc/glibc-functions/islower_l.texi.
17998         * doc/posix-functions/isprint_l.texi: Renamed from
17999         doc/glibc-functions/isprint_l.texi.
18000         * doc/posix-functions/ispunct_l.texi: Renamed from
18001         doc/glibc-functions/ispunct_l.texi.
18002         * doc/posix-functions/isspace_l.texi: Renamed from
18003         doc/glibc-functions/isspace_l.texi.
18004         * doc/posix-functions/isupper_l.texi: Renamed from
18005         doc/glibc-functions/isupper_l.texi.
18006         * doc/posix-functions/iswalnum_l.texi: Renamed from
18007         doc/glibc-functions/iswalnum_l.texi.
18008         * doc/posix-functions/iswalpha_l.texi: Renamed from
18009         doc/glibc-functions/iswalpha_l.texi.
18010         * doc/posix-functions/iswblank_l.texi: Renamed from
18011         doc/glibc-functions/iswblank_l.texi.
18012         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18013         doc/glibc-functions/iswcntrl_l.texi.
18014         * doc/posix-functions/iswctype_l.texi: Renamed from
18015         doc/glibc-functions/iswctype_l.texi.
18016         * doc/posix-functions/iswdigit_l.texi: Renamed from
18017         doc/glibc-functions/iswdigit_l.texi.
18018         * doc/posix-functions/iswgraph_l.texi: Renamed from
18019         doc/glibc-functions/iswgraph_l.texi.
18020         * doc/posix-functions/iswlower_l.texi: Renamed from
18021         doc/glibc-functions/iswlower_l.texi.
18022         * doc/posix-functions/iswprint_l.texi: Renamed from
18023         doc/glibc-functions/iswprint_l.texi.
18024         * doc/posix-functions/iswpunct_l.texi: Renamed from
18025         doc/glibc-functions/iswpunct_l.texi.
18026         * doc/posix-functions/iswspace_l.texi: Renamed from
18027         doc/glibc-functions/iswspace_l.texi.
18028         * doc/posix-functions/iswupper_l.texi: Renamed from
18029         doc/glibc-functions/iswupper_l.texi.
18030         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18031         doc/glibc-functions/iswxdigit_l.texi.
18032         * doc/posix-functions/isxdigit_l.texi: Renamed from
18033         doc/glibc-functions/isxdigit_l.texi.
18034         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18035         doc/glibc-functions/mbsnrtowcs.texi.
18036         * doc/posix-functions/mkdtemp.texi: Renamed from
18037         doc/glibc-functions/mkdtemp.texi.
18038         * doc/posix-functions/newlocale.texi: Renamed from
18039         doc/glibc-functions/newlocale.texi.
18040         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18041         doc/glibc-functions/nl_langinfo_l.texi.
18042         * doc/posix-functions/open_memstream.texi: Renamed from
18043         doc/glibc-functions/open_memstream.texi.
18044         * doc/posix-functions/opterr.texi: Renamed from
18045         doc/glibc-functions/opterr.texi.
18046         * doc/posix-functions/optind.texi: Renamed from
18047         doc/glibc-functions/optind.texi.
18048         * doc/posix-functions/optopt.texi: Renamed from
18049         doc/glibc-functions/optopt.texi.
18050         * doc/posix-functions/psignal.texi: Renamed from
18051         doc/glibc-functions/psignal.texi.
18052         * doc/posix-functions/scandir.texi: Renamed from
18053         doc/glibc-functions/scandir.texi.
18054         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18055         doc/glibc-functions/sched_get_priority_min.texi.
18056         * doc/posix-functions/signgam.texi: Renamed from
18057         doc/glibc-functions/signgam.texi.
18058         * doc/posix-functions/stpcpy.texi: Renamed from
18059         doc/glibc-functions/stpcpy.texi.
18060         * doc/posix-functions/stpncpy.texi: Renamed from
18061         doc/glibc-functions/stpncpy.texi.
18062         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18063         doc/glibc-functions/strcasecmp_l.texi.
18064         * doc/posix-functions/strcoll_l.texi: Renamed from
18065         doc/glibc-functions/strcoll_l.texi.
18066         * doc/posix-functions/strfmon_l.texi: Renamed from
18067         doc/glibc-functions/strfmon_l.texi.
18068         * doc/posix-functions/strftime_l.texi: Renamed from
18069         doc/glibc-functions/strftime_l.texi.
18070         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18071         doc/glibc-functions/strncasecmp_l.texi.
18072         * doc/posix-functions/strndup.texi: Renamed from
18073         doc/glibc-functions/strndup.texi.
18074         * doc/posix-functions/strnlen.texi: Renamed from
18075         doc/glibc-functions/strnlen.texi.
18076         * doc/posix-functions/strsignal.texi: Renamed from
18077         doc/glibc-functions/strsignal.texi.
18078         * doc/posix-functions/strxfrm_l.texi: Renamed from
18079         doc/glibc-functions/strxfrm_l.texi.
18080         * doc/posix-functions/timer_gettime.texi: Renamed from
18081         doc/glibc-functions/timer_gettime.texi.
18082         * doc/posix-functions/tolower_l.texi: Renamed from
18083         doc/glibc-functions/tolower_l.texi.
18084         * doc/posix-functions/toupper_l.texi: Renamed from
18085         doc/glibc-functions/toupper_l.texi.
18086         * doc/posix-functions/towctrans_l.texi: Renamed from
18087         doc/glibc-functions/towctrans_l.texi.
18088         * doc/posix-functions/towlower_l.texi: Renamed from
18089         doc/glibc-functions/towlower_l.texi.
18090         * doc/posix-functions/towupper_l.texi: Renamed from
18091         doc/glibc-functions/towupper_l.texi.
18092         * doc/posix-functions/uselocale.texi: Renamed from
18093         doc/glibc-functions/uselocale.texi.
18094         * doc/posix-functions/vdprintf.texi: Renamed from
18095         doc/glibc-functions/vdprintf.texi.
18096         * doc/posix-functions/wcpcpy.texi:
18097         Renamed from doc/glibc-functions/wcpcpy.texi.
18098         * doc/posix-functions/wcpncpy.texi: Renamed from
18099         doc/glibc-functions/wcpncpy.texi.
18100         * doc/posix-functions/wcscasecmp.texi: Renamed from
18101         doc/glibc-functions/wcscasecmp.texi.
18102         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18103         doc/glibc-functions/wcscasecmp_l.texi.
18104         * doc/posix-functions/wcscoll_l.texi: Renamed from
18105         doc/glibc-functions/wcscoll_l.texi.
18106         * doc/posix-functions/wcsdup.texi: Renamed from
18107         doc/glibc-functions/wcsdup.texi.
18108         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18109         doc/glibc-functions/wcsncasecmp.texi.
18110         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18111         doc/glibc-functions/wcsncasecmp_l.texi.
18112         * doc/posix-functions/wcsnlen.texi: Renamed from
18113         doc/glibc-functions/wcsnlen.texi.
18114         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18115         doc/glibc-functions/wcsnrtombs.texi.
18116         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18117         doc/glibc-functions/wcsxfrm_l.texi.
18118         * doc/posix-functions/wctrans_l.texi: Renamed from
18119         doc/glibc-functions/wctrans_l.texi.
18120         * doc/posix-functions/wctype_l.texi: Renamed from
18121         doc/glibc-functions/wctype_l.texi.
18122         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18123         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18124         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18125         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18126         these subsections.
18127         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18128         Remove sections.
18129
18130 2008-12-14  Bruno Haible  <bruno@clisp.org>
18131
18132         Update doc for POSIX:2008.
18133         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18134
18135 2008-12-14  Bruno Haible  <bruno@clisp.org>
18136
18137         Update doc for POSIX:2008.
18138         * doc/pastposix-functions/bcmp.texi: Renamed from
18139         doc/posix-functions/bcmp.texi.
18140         * doc/pastposix-functions/bcopy.texi: Renamed from
18141         doc/posix-functions/bcopy.texi.
18142         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18143         doc/posix-functions/bsd_signal.texi.
18144         * doc/pastposix-functions/bzero.texi: Renamed from
18145         doc/posix-functions/bzero.texi.
18146         * doc/pastposix-functions/ecvt.texi: Renamed from
18147         doc/posix-functions/ecvt.texi.
18148         * doc/pastposix-functions/fcvt.texi: Renamed from
18149         doc/posix-functions/fcvt.texi.
18150         * doc/pastposix-functions/ftime.texi: Renamed from
18151         doc/posix-functions/ftime.texi.
18152         * doc/pastposix-functions/gcvt.texi: Renamed from
18153         doc/posix-functions/gcvt.texi.
18154         * doc/pastposix-functions/getcontext.texi: Renamed from
18155         doc/posix-functions/getcontext.texi.
18156         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18157         doc/posix-functions/gethostbyaddr.texi.
18158         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18159         doc/posix-functions/gethostbyname.texi.
18160         * doc/pastposix-functions/getwd.texi: Renamed from
18161         doc/posix-functions/getwd.texi.
18162         * doc/pastposix-functions/h_errno.texi: Renamed from
18163         doc/posix-functions/h_errno.texi.
18164         * doc/pastposix-functions/index.texi: Renamed from
18165         doc/posix-functions/index.texi.
18166         * doc/pastposix-functions/makecontext.texi: Renamed from
18167         doc/posix-functions/makecontext.texi.
18168         * doc/pastposix-functions/mktemp.texi: Renamed from
18169         doc/posix-functions/mktemp.texi.
18170         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18171         doc/posix-functions/pthread_attr_getstackaddr.texi.
18172         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18173         doc/posix-functions/pthread_attr_setstackaddr.texi.
18174         * doc/pastposix-functions/rindex.texi: Renamed from
18175         doc/posix-functions/rindex.texi.
18176         * doc/pastposix-functions/scalb.texi: Renamed from
18177         doc/posix-functions/scalb.texi.
18178         * doc/pastposix-functions/setcontext.texi: Renamed from
18179         doc/posix-functions/setcontext.texi.
18180         * doc/pastposix-functions/swapcontext.texi: Renamed from
18181         doc/posix-functions/swapcontext.texi.
18182         * doc/pastposix-functions/ualarm.texi: Renamed from
18183         doc/posix-functions/ualarm.texi.
18184         * doc/pastposix-functions/usleep.texi: Renamed from
18185         doc/posix-functions/usleep.texi.
18186         * doc/pastposix-functions/vfork.texi: Renamed from
18187         doc/posix-functions/vfork.texi.
18188         * doc/pastposix-functions/wcswcs.texi: Renamed from
18189         doc/posix-functions/wcswcs.texi.
18190         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18191         (Function Substitutes): Update.
18192
18193 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18194
18195         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18196         m4/strerror.m4.
18197
18198 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18199             Bruno Haible  <bruno@clisp.org>
18200
18201         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18202
18203 2008-12-13  Bruno Haible  <bruno@clisp.org>
18204
18205         * modules/strtoull (Depends-on): Remove unistd.
18206
18207 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18208
18209         * modules/strtoull (Depends-on): Add stdlib.
18210
18211 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18212
18213         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18214
18215 2008-12-10  Jim Meyering  <meyering@redhat.com>
18216
18217         gl_ASSERT: don't say assertions are disabled when they're not
18218         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18219         "checking whether to enable assertions... no", when they are in
18220         fact enabled.  This is solely a bug in the output of configure.
18221         In spite of saying "no", NDEBUG was not defined in that case.
18222         Also, as noted by Eric Blake, leave assertions enabled upon
18223         --enable-assert=INVALID.
18224
18225 2008-12-10  Bruno Haible  <bruno@clisp.org>
18226
18227         Change MODULES.html to refer to POSIX:2008 where possible.
18228         * MODULES.html.sh (POSIX2008_URL): New variable.
18229         (posix_headers): Remove sys/timeb, ucontext.
18230         (posix2001_headers): New variable.
18231         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18232         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18233         index, makecontext, mktemp, pthread_attr_getstackaddr,
18234         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18235         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18236         (posix2001_functions): New variable.
18237         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18238         otherwise.
18239
18240 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18241
18242         add missing include to parse-duration.c
18243         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18244         * modules/parse-duration (Depends-on): Add xalloc.
18245
18246         fix sed script reading maint.mk
18247         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18248         (syntax-check-rules): Use it.
18249
18250 2008-12-09  Bruno Haible  <bruno@clisp.org>
18251
18252         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18253         MacOS X 10.4/PowerPC.
18254         Reported by Simon Josefsson.
18255
18256 2008-12-08  Jim Meyering  <meyering@redhat.com>
18257
18258         work around mingw's lack of some S_IF definitions
18259         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18260         Reported by Simon Josefsson.
18261
18262 2008-12-08  Bruno Haible  <bruno@clisp.org>
18263
18264         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18265         applied to variables. Needed on MacOS X 10.4/PowerPC.
18266         Reported by Simon Josefsson.
18267
18268 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18269         and Eric Blake  <ebb9@byu.net>
18270
18271         assert: honor --enable-assert
18272         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18273         order to honor --enable-assert, rather than treating it as a
18274         synonym for --disable-assert.
18275
18276 2008-12-08  Jim Meyering  <meyering@redhat.com>
18277
18278         * lib/posixtm.c: Remove now-useless declaration of mktime.
18279
18280         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18281
18282 2008-12-07  Bruno Haible  <bruno@clisp.org>
18283
18284         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18285         test_once): Mark functions as static.
18286         * tests/test-tls.c (test_tls): Likewise.
18287
18288 2008-12-07  Bruno Haible  <bruno@clisp.org>
18289
18290         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18291         iconv_register_autodetect.
18292
18293 2008-12-07  Jim Meyering  <meyering@redhat.com>
18294
18295         posixtm.c: avoid a warning
18296         * lib/posixtm.c (posixtime): Don't initialize tm0.
18297         It's no longer needed to placate gcc4's -Wuninitialized,
18298         and the attempt to placate would elicit a new warning.
18299
18300         unicodeio.c: mark unused parameters
18301         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18302         (fallback_failure_callback): Likewise.
18303
18304 2008-12-07  Bruno Haible  <bruno@clisp.org>
18305
18306         * gnulib-tool (func_create_testdir): When building the tests
18307         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18308         Reported by Simon Josefsson.
18309
18310 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18311
18312         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18313
18314 2008-12-06  Bruno Haible  <bruno@clisp.org>
18315
18316         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18317         Suggested by Eric Blake.
18318
18319 2008-12-06  Bruno Haible  <bruno@clisp.org>
18320
18321         Fix a c-stack test failure on MacOS X.
18322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18323         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18324         handler for SIGBUS as well.
18325         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18326         install a signal handler for SIGBUS as well.
18327         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18328
18329 2008-12-06  Bruno Haible  <bruno@clisp.org>
18330
18331         Advocacy documentation.
18332         * doc/gnulib-intro.texi (Benefits): New section.
18333         * doc/gnulib.texi: Update.
18334
18335 2008-12-06  Bruno Haible  <bruno@clisp.org>
18336
18337         Document the 'manywarnings' module.
18338         * doc/manywarnings.texi: New file.
18339         * doc/gnulib.texi: Include it.
18340
18341 2008-12-05  Eric Blake  <ebb9@byu.net>
18342
18343         tests: silence some gcc warnings
18344         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18345         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18346         type mismatches.
18347
18348 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18349             Bruno Haible  <bruno@clisp.org>
18350
18351         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18352
18353 2008-11-29  Jim Meyering  <meyering@redhat.com>
18354
18355         unicodeio.c: mark unused parameters
18356         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18357         (fallback_failure_callback): Likewise.
18358
18359         fts: fix a thinko
18360         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18361         (set_stat_type): Return S_IF*-valued "type" directly.
18362         Prompted by James Youngman's spotting a related bug.
18363         Confirmed by further testing through find.
18364
18365         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18366         * lib/fts.c (D_TYPE): Define.
18367         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18368         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18369         (s_ifmt_shift_bits): New function.
18370         (set_stat_type): New function.
18371         (fts_build): When not calling fts_stat, call set_stat_type
18372         to propagate dirent.d_type info to fts_read caller.
18373         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18374         fts_statp->st_mode type information may be valid.
18375
18376 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18377
18378         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18379         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18380         <sds@gnu.org>.
18381
18382 2008-11-20  Bruno Haible  <bruno@clisp.org>
18383
18384         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18385         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18386         INCLUDE_NEXT.
18387         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18388         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18389         * modules/math (Makefile.am): Substitute
18390         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18391         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18392
18393 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18394             Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/stdint.in.h: Define all type macros so that their expansion is
18397         a single typedef'ed token. Fixes a compilation failure in Boost which
18398         does "using ::int8_t;".
18399
18400 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18401
18402         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18403         gl_MANYWARN_ALL_GCC.
18404         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18405         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18406         * modules/manywarnings: New file.
18407         * MODULES.html.sh: Mention manywarnings module.
18408
18409 2008-11-18  Bruno Haible  <bruno@clisp.org>
18410
18411         * doc/gnulib-tool.texi (Unit tests): New section.
18412
18413 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18414
18415         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18416         paths like 'lib/po/foo.po'.
18417
18418 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18419
18420         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18421         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18422
18423 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18424
18425         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18426         parameter works.
18427
18428 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18429
18430         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18431
18432 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18433
18434         * modules/parse-duration-tests: New file.
18435         * tests/test-parse-duration.sh: New file.
18436         * tests/test-parse-duration.c: New file.
18437
18438         New module 'parse-duration'.
18439         * lib/parse-duration.h: New file.
18440         * lib/parse-duration.c: New file.
18441         * modules/parse-duration: New file.
18442
18443 2008-11-17  Bruno Haible  <bruno@clisp.org>
18444
18445         * tests/test-select-out.sh: Comment out the first pipe test.
18446         Reported by Simon Josefsson.
18447
18448 2008-11-17  Bruno Haible  <bruno@clisp.org>
18449
18450         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18452         gl_HOSTENT.
18453
18454 2008-11-17  Bruno Haible  <bruno@clisp.org>
18455
18456         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18457         -lnetwork and -lnet. Needed for Haiku and BeOS.
18458
18459 2008-11-16  Bruno Haible  <bruno@clisp.org>
18460
18461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18462
18463 2008-11-16  Bruno Haible  <bruno@clisp.org>
18464
18465         Avoid test failure on Haiku.
18466         * tests/test-fsync.c: Include <errno.h>.
18467         (main): Don't require that fsync (0) fails.
18468
18469 2008-11-15  Bruno Haible  <bruno@clisp.org>
18470
18471         New module 'hostent'.
18472         * modules/hostent: New file.
18473         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18474
18475 2008-11-15  Bruno Haible  <bruno@clisp.org>
18476
18477         New module 'servent'.
18478         * modules/servent: New file.
18479         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18480
18481 2008-11-15  Bruno Haible  <bruno@clisp.org>
18482
18483         Avoid generating same test program with two different rules.
18484         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18485         test-frexp to test-frexp-nolibm.
18486         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18487         test-frexpl to test-frexpl-nolibm.
18488
18489 2008-11-15  Bruno Haible  <bruno@clisp.org>
18490
18491         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18492         $(FREXPL_LIBM).
18493
18494 2008-11-15  Bruno Haible  <bruno@clisp.org>
18495
18496         * lib/netdb.in.h: Activate the definitions also when the system's
18497         <netdb.h> has 'struct addrinfo'.
18498         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18499         EAI_OVERFLOW or AI_NUMERICSERV.
18500         * doc/posix-headers/netdb.texi: Document the problem.
18501
18502 2008-11-15  Bruno Haible  <bruno@clisp.org>
18503
18504         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18505
18506         Make the 'sched' module work on platforms where <sched.h> exists but
18507         is incomplete (such as Haiku).
18508         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18509         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18510         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18511         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18512         HAVE_STRUCT_SCHED_PARAM.
18513         * modules/sched (Depends-on): Add include_next.
18514         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18515         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18516         * doc/posix-headers/sched.texi: Document the issue.
18517
18518 2008-11-13  Jim Meyering  <meyering@redhat.com>
18519
18520         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18521         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18522         test would fail due to the difference in the Report bugs to ...
18523         line.  The expected address is empty, "<>", while the actual
18524         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18525
18526 2008-11-12  Bruno Haible  <bruno@clisp.org>
18527
18528         lstat: don't compile lstat.c on systems lacking lstat
18529         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18530         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18531         Reported by Daniel P. Berrange via Jim Meyering.
18532
18533 2008-11-12  Jim Meyering  <meyering@redhat.com>
18534
18535         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18536
18537 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18538
18539         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18540         instead.
18541
18542 2008-11-12  Bruno Haible  <bruno@clisp.org>
18543
18544         * lib/unicodeio.c: Include unistr.h.
18545         (utf8_wctomb): Remove function.
18546         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18547
18548 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18549
18550         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18551         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18552         <bruno@clisp.org>.
18553         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18554
18555 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18556
18557         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18558         * doc/gnulib.texi: Add section for warnings.
18559
18560 2008-11-11  Bruno Haible  <bruno@clisp.org>
18561
18562         * lib/sockets.h: Add a comment.
18563
18564 2008-11-11  Karl Berry  <karl@gnu.org>
18565
18566         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18567
18568 2008-11-11  Eric Blake  <ebb9@byu.net>
18569
18570         fdl.texi: avoid git symlinks
18571         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18572
18573 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18574
18575         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18576
18577 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18578
18579         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18580         (gl_WARN_ADD): Substitute $2 if literal.
18581
18582 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18583
18584         * m4/warning.m4: Remove.
18585
18586 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18587
18588         * m4/warnings.m4: Almost complete rewrite. :-)
18589
18590 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18591
18592         * modules/warnings: New module.
18593         * m4/warnings.m4: New file.
18594         * MODULES.html.sh: Mention warnings module.
18595         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18596         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18597
18598 2008-11-10  Eric Blake  <ebb9@byu.net>
18599
18600         fdl.texi: make a symlink to the latest version
18601         * doc/standards.texi: Revert today's earlier change.
18602         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18603         * doc/fdl.texi: ...and replace this with a symlink to the newer
18604         fdl-1.3.texi.
18605
18606 2008-11-10  Bruno Haible  <bruno@clisp.org>
18607
18608         * tests/test-select-fd.c (main): Accept the result file name as fourth
18609         argument.
18610         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18611         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18612
18613 2008-11-10  Bruno Haible  <bruno@clisp.org>
18614
18615         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18616         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18617         as autoconf-substituted macros.
18618         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18620         gl_NETDB_H_DEFAULTS. Set these variables.
18621         * modules/netdb (Makefile.am): Substitute these variables.
18622
18623 2008-11-10  Eric Blake  <ebb9@byu.net>
18624
18625         standards.texi: include correct file for FDL 1.3
18626         * doc/standards.texi (GNU Free Documentation License): Change
18627         include file to pull in FDL 1.3, not 1.2.
18628
18629         fdl.texi: revert accidental change to license
18630         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18631
18632 2008-11-10  Bruno Haible  <bruno@clisp.org>
18633
18634         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18635         cross-compiling guesses also when the native compile gives no result.
18636
18637 2008-11-10  Bruno Haible  <bruno@clisp.org>
18638
18639         * lib/spawni.c (__spawni): Force variable into the stack.
18640
18641 2008-11-10  Bruno Haible  <bruno@clisp.org>
18642
18643         Add support for Haiku.
18644         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18645         glibc and BeOS, but also on Haiku.
18646         * lib/fpurge.c (fpurge): Likewise.
18647         * lib/freadable.c (freadable): Likewise.
18648         * lib/freadahead.c (freadahead): Likewise.
18649         * lib/freading.c (freading): Likewise.
18650         * lib/freadptr.c (freadptr): Likewise.
18651         * lib/freadseek.c (freadptrinc): Likewise.
18652         * lib/fseeko.c (rpl_fseeko): Likewise.
18653         * lib/fseterr.c (fseterr): Likewise.
18654         * lib/fwritable.c (fwritable): Likewise.
18655         * lib/fwriting.c (fwriting): Likewise.
18656         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18657
18658 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18659
18660         * lib/config.charset: Treat Haiku like BeOS.
18661
18662 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18663
18664         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18665         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18666
18667 2008-11-08  Bruno Haible  <bruno@clisp.org>
18668
18669         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18670         AC_CACHE_CHECK.
18671
18672 2008-11-08  Bruno Haible  <bruno@clisp.org>
18673
18674         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18675
18676 2008-11-08  Bruno Haible  <bruno@clisp.org>
18677
18678         * tests/test-select-fd.c: New file.
18679         * tests/test-select-in.sh: New file.
18680         * tests/test-select-out.sh: New file.
18681         * tests/test-select-stdin.c: New file.
18682         * modules/select-tests (Files): Add the new files.
18683         (Depends-on): Add gettimeofday.
18684         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18685         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18686         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18687
18688 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18689             Bruno Haible  <bruno@clisp.org>
18690
18691         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18692
18693 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18694
18695         * build-aux/pmccabe2html: Added support for C++ source files.
18696
18697 2008-11-05  Ben Pfaff  <blp@gnu.org>
18698
18699         Fix lib/close.c build on Windows.
18700         * modules/close (Files): Add lib/w32sock.h.
18701
18702 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18703
18704         Accept Bison's NEWS format.
18705         * build-aux/announce-gen (print_news_deltas): Tweak
18706         $re_prefix.
18707
18708 2008-11-04  Bruno Haible  <bruno@clisp.org>
18709
18710         * modules/random_r (Maintainer): Add glibc.
18711
18712 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18713
18714         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18715         by karl@freefriends.org (Karl Berry).
18716         * doc/alloca.texi: Likewise.
18717         * doc/c-ctype.texi: Likewise.
18718         * doc/c-strcase.texi: Likewise.
18719         * doc/c-strcaseeq.texi: Likewise.
18720         * doc/c-strcasestr.texi: Likewise.
18721         * doc/c-strstr.texi: Likewise.
18722         * doc/c-strtod.texi: Likewise.
18723         * doc/c-strtold.texi: Likewise.
18724         * doc/ctime.texi: Likewise.
18725         * doc/error.texi: Likewise.
18726         * doc/fdl.texi: Likewise.
18727         * doc/gcd.texi: Likewise.
18728         * doc/getdate.texi: Likewise.
18729         * doc/gnulib-intro.texi: Likewise.
18730         * doc/gnulib-tool.texi: Likewise.
18731         * doc/gnulib.texi: Likewise.
18732         * doc/inet_ntoa.texi: Likewise.
18733         * doc/maintain.texi: Likewise.
18734         * doc/make-stds.texi: Likewise.
18735         * doc/quote.texi: Likewise.
18736         * doc/regexprops-generic.texi: Likewise.
18737         * doc/standards.texi: Likewise.
18738         * doc/verify.texi: Likewise.
18739         * doc/visibility.texi: Likewise.
18740         * doc/gnulib.texi (GNU Free Documentation License): Include
18741         fdl-1.3.texi instead of fdl.texi.
18742
18743 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18744
18745         * doc/fdl-1.3.texi: New file, from
18746         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18747         * modules/fdl-1.3: Add.
18748         * MODULES.html.sh: Add fdl-1.3.
18749
18750 2008-11-03  Bruno Haible  <bruno@clisp.org>
18751
18752         Make determination of absolute name of header file work with AIX xlc.
18753         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18754         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18755         preprocessing.
18756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18757         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18758
18759 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18760
18761         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18762         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18763         <ludo@gnu.org>.
18764
18765 2008-11-02  Bruno Haible  <bruno@clisp.org>
18766
18767         Mark 'strpbrk' obsolete.
18768         * modules/strpbrk (Status, Notice): New sections.
18769         * modules/strtok_r (Depends-on): Add strpbrk.
18770
18771 2008-11-02  Bruno Haible  <bruno@clisp.org>
18772
18773         Mark 'strdup' obsolete.
18774         * modules/strdup (Status, Notice): New sections.
18775         * modules/findprog (Depends-on): Add strdup.
18776         * modules/getaddrinfo (Depends-on): Likewise.
18777         * modules/localename (Depends-on): Likewise.
18778         * modules/relocatable-lib (Depends-on): Likewise.
18779         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18780         * modules/relocatable-prog (Depends-on): Likewise.
18781         * modules/trim (Depends-on): Likewise.
18782         * modules/unictype/gen-ctype (Depends-on): Likewise.
18783         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18784
18785 2008-11-02  Bruno Haible  <bruno@clisp.org>
18786
18787         Mark 'strcspn' obsolete.
18788         * modules/strcspn (Status, Notice): New sections.
18789
18790 2008-11-02  Bruno Haible  <bruno@clisp.org>
18791
18792         Mark 'rmdir' obsolete.
18793         * modules/rmdir (Status, Notice): New sections.
18794         * modules/clean-temp (Depends-on): Add rmdir.
18795         * modules/openat (Depends-on): Likewise.
18796
18797 2008-11-02  Bruno Haible  <bruno@clisp.org>
18798
18799         Mark 'raise' obsolete.
18800         * modules/raise (Status, Notice): New sections.
18801         (Include): Specify <signal.h>.
18802         * modules/stdio (Depends-on): Add raise.
18803         * modules/write (Depends-on): Likewise.
18804
18805 2008-11-02  Bruno Haible  <bruno@clisp.org>
18806
18807         Mark 'memset' obsolete.
18808         * modules/memset (Status, Notice): New sections.
18809
18810 2008-11-02  Bruno Haible  <bruno@clisp.org>
18811
18812         Mark 'memmove' obsolete.
18813         * modules/memmove (Status, Notice): New sections.
18814         * modules/argp (Depends-on): Add memmove.
18815         * modules/argz (Depends-on): Likewise.
18816         * modules/canonicalize (Depends-on): Likewise.
18817         * modules/canonicalize-lgpl (Depends-on): Likewise.
18818         * modules/fts (Depends-on): Likewise.
18819         * modules/getcwd (Depends-on): Likewise.
18820         * modules/human (Depends-on): Likewise.
18821         * modules/regex (Depends-on): Likewise.
18822         * modules/striconveh (Depends-on): Likewise.
18823         * modules/trim (Depends-on): Likewise.
18824         * modules/unistr/u8-move (Depends-on): Likewise.
18825         * modules/unistr/u16-move (Depends-on): Likewise.
18826         * modules/unistr/u32-move (Depends-on): Likewise.
18827
18828 2008-11-02  Bruno Haible  <bruno@clisp.org>
18829
18830         Mark 'memcpy' obsolete.
18831         * modules/memcpy (Status, Notice): New sections.
18832
18833 2008-11-02  Bruno Haible  <bruno@clisp.org>
18834
18835         Mark 'memcmp' obsolete.
18836         * modules/memcmp (Status, Notice): New sections.
18837         * modules/argmatch (Depends-on): Add memchr.
18838         * modules/backupfile (Depends-on): Likewise.
18839         * modules/c-strcasestr (Depends-on): Likewise.
18840         * modules/crypto/des (Depends-on): Likewise.
18841         * modules/csharpcomp (Depends-on): Likewise.
18842         * modules/fnmatch (Depends-on): Likewise.
18843         * modules/git-merge-changelog (Depends-on): Likewise.
18844         * modules/isnand (Depends-on): Likewise.
18845         * modules/isnand-nolibm (Depends-on): Likewise.
18846         * modules/isnanf (Depends-on): Likewise.
18847         * modules/isnanf-nolibm (Depends-on): Likewise.
18848         * modules/isnanl (Depends-on): Likewise.
18849         * modules/isnanl-nolibm (Depends-on): Likewise.
18850         * modules/mbchar (Depends-on): Likewise.
18851         * modules/memcoll (Depends-on): Likewise.
18852         * modules/quotearg (Depends-on): Likewise.
18853         * modules/regex (Depends-on): Likewise.
18854         * modules/relocatable-prog (Depends-on): Likewise.
18855         * modules/same (Depends-on): Likewise.
18856         * modules/signbit (Depends-on): Likewise.
18857         * modules/strcasestr-simple (Depends-on): Likewise.
18858         * modules/unictype/gen-ctype (Depends-on): Likewise.
18859         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18860         * modules/uniname/uniname (Depends-on): Likewise.
18861         * modules/unistr/u8-cmp (Depends-on): Likewise.
18862
18863 2008-11-02  Bruno Haible  <bruno@clisp.org>
18864
18865         Mark 'memchr' obsolete.
18866         * modules/memchr (Status, Notice): New sections.
18867         * modules/argp (Depends-on): Add memchr.
18868         * modules/base64 (Depends-on): Likewise.
18869         * modules/c-strcasestr (Depends-on): Likewise.
18870         * modules/chdir-long (Depends-on): Likewise.
18871         * modules/fnmatch (Depends-on): Likewise.
18872         * modules/getsubopt (Depends-on): Likewise.
18873         * modules/git-merge-changelog (Depends-on): Likewise.
18874         * modules/glob (Depends-on): Likewise.
18875         * modules/strcasestr-simple (Depends-on): Likewise.
18876         * modules/strnlen (Depends-on): Likewise.
18877
18878 2008-11-02  Bruno Haible  <bruno@clisp.org>
18879
18880         Mark 'atexit' obsolete.
18881         * modules/atexit (Status, Notice): New sections.
18882         * modules/chdir-long (Depends-on): Add atexit.
18883         * modules/wait-process (Depends-on): Likewise.
18884
18885 2008-11-02  Bruno Haible  <bruno@clisp.org>
18886
18887         * gnulib-tool: New option --with-obsolete.
18888         (func_usage): Document it.
18889         (func_modules_transitive_closure): Drop obsolete dependencies if
18890         incobsolete is not true.
18891         (func_import): Read and save the incobsolete variable to the cache.
18892
18893 2008-11-02  Bruno Haible  <bruno@clisp.org>
18894
18895         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18896         * gnulib-tool: New option --extract-status.
18897         (func_usage): Document it.
18898         (sed_extract_prog): Recognize it.
18899         (func_get_status): New function.
18900
18901 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18902
18903         * modules/sockets (License): Change from LGPL to LGPLv2+.
18904
18905 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18906
18907         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18908
18909 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18910
18911         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18912         Mention times and sys_times.
18913         * modules/sys_times, modules/sys_times-tests: New modules.
18914         * modules/times, modules/times-tests: Likewise
18915         * m4/sys_times_h.m4: New file.
18916         * lib/sys_times.in.h: Likewise
18917         * lib/times.c: Likewise.
18918         * tests/test-sys_times.c: Likewise.
18919         * tests/test-times.c: Likewise.
18920         * doc/posix-headers/sys_times.texi: Update.
18921         * doc/posix-functions/times.texi: Update.
18922
18923 2008-10-28  Jim Meyering  <meyering@redhat.com>
18924
18925         * modules/tempname (Depends-on): Add lstat.
18926
18927         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18928
18929 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18930
18931         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18932         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18933         using idiom used elsewhere in gnulib.
18934
18935 2008-10-27  Jim Meyering  <meyering@redhat.com>
18936
18937         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18938
18939 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18940
18941         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18942         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18943         programs.
18944         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18945
18946 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18947
18948         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18949
18950 2008-10-27  Bruno Haible  <bruno@clisp.org>
18951
18952         * tests/test-lstat.c: Include <stdio.h>.
18953
18954 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18955
18956         * modules/lstat-tests: New module.
18957         * tests/test-lstat.c: New file.
18958
18959 2008-10-26  Jim Meyering  <meyering@redhat.com>
18960
18961         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18962
18963 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18964             Bruno Haible  <bruno@clisp.org>
18965
18966         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18967         * modules/configmake (Include): Add a note that the include must come
18968         after all system headers.
18969         * lib/javaversion.c: Include configmake.h after all other includes.
18970
18971 2008-10-26  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18974         HAVE_STRUCT_RANDOM_DATA to 1.
18975         (gl_STDLIB_H): Simplify.
18976
18977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18978
18979         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18980         substitute HAVE_STRUCT_RANDOM_DATA.
18981         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18982         random_data.
18983         * modules/stdlib (Makefile.am): Substitute
18984         HAVE_STRUCT_RANDOM_DATA.
18985
18986 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18987
18988         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18989         * doc/gnulib-intro.texi (Copyright): Likewise.
18990
18991 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18992
18993         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18994         findings.
18995
18996 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18997             Bruno Haible  <bruno@clisp.org>
18998
18999         * lib/unistd.in.h: Include <winsock2.h>.
19000         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19001         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19002         Provide dummy declarations.
19003         (gethostname): Override.
19004         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19005         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19006         gl_PREREQ_SYS_H_WINSOCK2.
19007         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19008         * doc/posix-functions/gethostname.texi: More details.
19009
19010 2008-10-25  Bruno Haible  <bruno@clisp.org>
19011
19012         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19013         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19014         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19015
19016         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19017         here ...
19018         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19019         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19020         gl_UNISTD_H_DEFAULTS.
19021
19022 2008-10-25  Eric Blake  <ebb9@byu.net>
19023
19024         signbit: avoid spurious compiler failure
19025         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19026         declarations inside function.
19027
19028 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19029             Bruno Haible  <bruno@clisp.org>
19030
19031         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19032         * modules/random_r (Depends-on): Add stdint.
19033
19034 2008-10-24  Bruno Haible  <bruno@clisp.org>
19035
19036         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19037         Eggert.
19038         * modules/strerror (License): Likewise.
19039
19040 2008-10-24  Jim Meyering  <meyering@redhat.com>
19041
19042         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19043         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19044
19045 2008-10-24  Eric Blake  <ebb9@byu.net>
19046
19047         getgroups: fix compilation when getgroups is available
19048         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19049         but with <config.h> override of getgroups disabled.
19050
19051 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19052
19053         * doc/gnulib.texi (Header files): Add note about C++ problems.
19054         Explained by Bruno Haible <bruno@clisp.org>.
19055
19056 2008-10-23  Bruno Haible  <bruno@clisp.org>
19057
19058         Define a dummy SA_NODEFER macro on Interix.
19059         * lib/signal.in.h (SA_NODEFER): Define fallback.
19060         Reported by Aleksey Cheusov <cheusov@tut.by> via
19061         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19062
19063 2008-10-23  Bruno Haible  <bruno@clisp.org>
19064
19065         * modules/freadahead (License): Change to LGPLv2+.
19066         Suggested by Simon Josefsson.
19067
19068 2008-10-23  Jim Meyering  <meyering@redhat.com>
19069
19070         random_r: new module
19071         * modules/random_r: New file.
19072         * m4/random_r.m4: New file.
19073         * lib/random_r.c: New file, from glibc.
19074         * modules/random_r-tests: New file.
19075         * tests/test-random_r.c: New file.
19076         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19077          Declare.
19078         (RAND_MAX): Define.
19079         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19080         * modules/stdlib: Substitute them, too.
19081         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19082         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19083         * doc/glibc-functions/random_r.texi: Likewise.
19084         * doc/glibc-functions/setstate_r.texi: Likewise.
19085         * doc/glibc-functions/srandom_r.texi: Likewise.
19086         * config/srclist.txt: Mention it.
19087
19088 2008-10-23  David Lutterkort  <lutter@redhat.com>
19089
19090         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19091         link requirement
19092
19093 2008-10-23  Jim Meyering  <meyering@redhat.com>
19094
19095         selinux-h: mark parameters of stub functions as intentionally unused
19096         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19097         * lib/se-context.in.h: Likewise.
19098
19099 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19100
19101         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19102
19103 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19104
19105         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19106
19107 2008-10-22  Eric Blake  <ebb9@byu.net>
19108
19109         glthread/thread: avoid compiler warning
19110         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19111         Add unreachable abort to silence compiler.
19112
19113 2008-10-22  Eric Blake  <ebb9@byu.net>
19114
19115         netdb: also supply struct addrinfo for cygwin 1.5.x
19116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19117         older cygwin.
19118         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19119         cygwin.
19120         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19121
19122 2008-10-22  Bruno Haible  <bruno@clisp.org>
19123
19124         * users.txt: Update entry about pspp.
19125
19126 2008-10-21  Bruno Haible  <bruno@clisp.org>
19127
19128         Simplification.
19129         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19130         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19131
19132         Simplification.
19133         * lib/ioctl.c (ioctl): Don't undefine.
19134         * lib/socket.c (socket): Don't undefine.
19135
19136         Remove unused module indicator macros.
19137         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19138         GNULIB_$1 as a C macro.
19139
19140         * doc/posix-functions/close.texi: Undo last change.
19141         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19142         Windows platforms.
19143
19144 2008-10-21  Bruno Haible  <bruno@clisp.org>
19145
19146         Add gethostname() declaration to <unistd.h>.
19147         * lib/unistd.in.h (gethostname): New declaration.
19148         * lib/gethostname.c: Include <unistd.h>.
19149         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19150         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19152         and HAVE_GETHOSTNAME.
19153         * modules/gethostname (Depends-on): Add unistd.
19154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19155         (Include): Specify <unistd.h>.
19156         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19157         HAVE_GETHOSTNAME.
19158         * tests/test-gethostname.c: Include <unistd.h> first.
19159
19160 2008-10-21  Bruno Haible  <bruno@clisp.org>
19161
19162         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19163         * modules/select-tests (Depends-on): Likewise.
19164         Reported by Simon Josefsson.
19165
19166 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19167
19168         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19169         * lib/accept.c: New file, based on winsock.c.
19170         * lib/bind.c: New file, based on winsock.c.
19171         * lib/connect.c: New file, based on winsock.c.
19172         * lib/getpeername.c: New file, based on winsock.c.
19173         * lib/getsockname.c: New file, based on winsock.c.
19174         * lib/getsockopt.c: New file, based on winsock.c.
19175         * lib/ioctl.c: New file, based on winsock.c.
19176         * lib/listen.c: New file, based on winsock.c.
19177         * lib/recv.c: New file, based on winsock.c.
19178         * lib/recvfrom.c: New file, based on winsock.c.
19179         * lib/send.c: New file, based on winsock.c.
19180         * lib/sendto.c: New file, based on winsock.c.
19181         * lib/setsockopt.c: New file, based on winsock.c.
19182         * lib/shutdown.c: New file, based on winsock.c.
19183         * lib/socket.c: New file, based on winsock.c.
19184         * lib/w32sock.h: New file, based on winsock.c.
19185         * lib/winsock.c: Remove file.
19186         * modules/accept: Likewise.
19187         * modules/bind: Likewise.
19188         * modules/connect: Likewise.
19189         * modules/getpeername: Likewise.
19190         * modules/getsockname: Likewise.
19191         * modules/getsockopt: Likewise.
19192         * modules/ioctl: Likewise.
19193         * modules/listen: Likewise.
19194         * modules/recv: Likewise.
19195         * modules/recvfrom: Likewise.
19196         * modules/send: Likewise.
19197         * modules/sendto: Likewise.
19198         * modules/setsockopt: Likewise.
19199         * modules/shutdown: Likewise.
19200         * modules/socket: Use socket.c instead of winsock.c.
19201         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19202         * doc/posix-functions/accept.texi: Doc fix.
19203         * doc/posix-functions/bind.texi: Doc fix.
19204         * doc/posix-functions/close.texi: Doc fix.
19205         * doc/posix-functions/connect.texi: Doc fix.
19206         * doc/posix-functions/getpeername.texi: Doc fix.
19207         * doc/posix-functions/getsockname.texi: Doc fix.
19208         * doc/posix-functions/getsockopt.texi: Doc fix.
19209         * doc/posix-functions/ioctl.texi: Doc fix.
19210         * doc/posix-functions/listen.texi: Doc fix.
19211         * doc/posix-functions/recv.texi: Doc fix.
19212         * doc/posix-functions/recvfrom.texi: Doc fix.
19213         * doc/posix-functions/send.texi: Doc fix.
19214         * doc/posix-functions/sendto.texi: Doc fix.
19215         * doc/posix-functions/setsockopt.texi: Doc fix.
19216         * doc/posix-functions/shutdown.texi: Doc fix.
19217         * doc/posix-functions/socket.texi: Doc fix.
19218
19219 2008-10-20  Bruno Haible  <bruno@clisp.org>
19220
19221         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19222         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19223         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19224         as an alias for SIGABRT.
19225         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19226         (sigaction): Map it to SIGABRT.
19227         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19228
19229 2008-10-20  Bruno Haible  <bruno@clisp.org>
19230
19231         * lib/fts.c: Don't include lstat.h.
19232         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19233
19234         Move the lstat() declaration to <sys/stat.h>.
19235         * lib/lstat.h: Remove file.
19236         * lib/sys_stat.in.h: Add special invocation convention.
19237         (lstat): New declaration.
19238         * lib/lstat.c (orig_lstat): New function.
19239         (rpl_lstat): Use orig_lstat instead of lstat.
19240         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19241         AC_C_INLINE. Set REPLACE_LSTAT.
19242         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19243         and REPLACE_LSTAT.
19244         * modules/lstat (Files): Remove lib/lstat.h.
19245         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19246         (Include): Specify <sys/stat.h> instead of lstat.h.
19247         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19248         REPLACE_LSTAT.
19249         * NEWS: Mention the change.
19250
19251 2008-10-20  Bruno Haible  <bruno@clisp.org>
19252
19253         * modules/posix_spawn-tests: New file.
19254         * tests/test-posix_spawn3.c: New file.
19255
19256 2008-10-20  Bruno Haible  <bruno@clisp.org>
19257
19258         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19259         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19260         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19261         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19262         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19263
19264 2008-10-20  Bruno Haible  <bruno@clisp.org>
19265
19266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19267         of posix_spawn on AIX 5.3.
19268
19269 2008-10-20  Bruno Haible  <bruno@clisp.org>
19270
19271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19272
19273 2008-10-20  Bruno Haible  <bruno@clisp.org>
19274
19275         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19276         of AC_LANG_PROGRAM.
19277
19278 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19279
19280         * lib/netdb.in.h: Don't define GNU specific constants until they
19281         are supported or needed.  Reported by Bruno Haible
19282         <bruno@clisp.org>.
19283
19284 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19285
19286         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19287
19288 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19289
19290         * lib/getaddrinfo.h: Remove file.
19291         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19292         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19293         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19294         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19295         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19296         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19297         * tests/test-getaddrinfo.c: Likewise.
19298         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19299         * NEWS: Mention change.
19300
19301 2008-10-19  Bruno Haible  <bruno@clisp.org>
19302
19303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19304
19305 2008-10-19  Bruno Haible  <bruno@clisp.org>
19306
19307         * lib/wait-process.c: Include simply <sys/wait.h>.
19308         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19309         WIFSTOPPED): Remove fallback definitions.
19310         * modules/wait-process (Depends-on): Add sys_wait.
19311
19312         New module 'sys_wait'.
19313         * modules/sys_wait: New file.
19314         * lib/sys_wait.in.h: New file, partially copied from
19315         lib/wait-process.c.
19316         * m4/sys_wait_h.m4: New file.
19317         * doc/posix-headers/sys_wait.texi: Mention the new module.
19318
19319 2008-10-19  Bruno Haible  <bruno@clisp.org>
19320
19321         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19322
19323 2008-10-19  Bruno Haible  <bruno@clisp.org>
19324
19325         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19326         * lib/wait-process.c (WAIT_T): Remove type.
19327         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19328         (wait_subprocess): Update.
19329
19330 2008-10-19  Bruno Haible  <bruno@clisp.org>
19331
19332         New module 'atoll'.
19333         * modules/atoll: New file.
19334         * lib/stdlib.in.h (atoll): New declaration.
19335         * lib/atoll.c: New file, from glibc with modifications.
19336         * m4/atoll.m4: New file.
19337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19338         HAVE_ATOLL.
19339         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19340         * doc/posix-functions/atoll.texi: Mention the new module.
19341
19342 2008-10-19  Bruno Haible  <bruno@clisp.org>
19343
19344         Add strtoull() declaration to <stdlib.h>.
19345         * lib/stdlib.in.h (strtoull): New declaration.
19346         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19347         Set HAVE_STRTOULL.
19348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19349         HAVE_STRTOULL.
19350         * modules/strtoull (Depends-on): Add stdlib.
19351         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19352         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19353         HAVE_STRTOULL.
19354
19355 2008-10-19  Bruno Haible  <bruno@clisp.org>
19356
19357         Add strtoll() declaration to <stdlib.h>.
19358         * lib/stdlib.in.h (strtoll): New declaration.
19359         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19360         Set HAVE_STRTOLL.
19361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19362         HAVE_STRTOLL.
19363         * modules/strtoll (Depends-on): Add stdlib.
19364         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19365         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19366
19367 2008-10-19  Bruno Haible  <bruno@clisp.org>
19368
19369         * modules/bcopy (Depends-on): Add strings.
19370         (Include): Specify <strings.h>.
19371
19372 2008-10-19  Bruno Haible  <bruno@clisp.org>
19373
19374         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19375
19376 2008-10-19  Bruno Haible  <bruno@clisp.org>
19377
19378         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19379         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19380         mingw.
19381
19382 2008-10-19  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/atanl.c: Don't include isnanl.h.
19385         * lib/cosl.c: Likewise.
19386         * lib/ldexpl.c: Likewise.
19387         * lib/logl.c: Likewise.
19388         * lib/sinl.c: Likewise.
19389         * lib/sqrtl.c: Likewise.
19390         * lib/tanl.c: Likewise.
19391
19392         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19393         * lib/isnanf.h: Remove file.
19394         * lib/isnand.h: Remove file.
19395         * lib/isnanl.h: Remove file.
19396         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19397         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19398         macros.
19399         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19400         HAVE_ISNANF, don't define it as a C macro.
19401         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19402         HAVE_ISNAND, don't define it as a C macro.
19403         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19404         HAVE_ISNANL, don't define it as a C macro.
19405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19406         HAVE_ISNAN[FDL].
19407         * modules/isnanf (Files): Remove lib/isnanf.h.
19408         (Depends-on): Add math.
19409         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19410         (Include): Specify <math.h> instead of isnanf.h.
19411         * modules/isnand (Files): Remove lib/isnand.h.
19412         (Depends-on): Add math.
19413         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19414         (Include): Specify <math.h> instead of isnand.h.
19415         * modules/isnanl (Files): Remove lib/isnanl.h.
19416         (Depends-on): Add math.
19417         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19418         (Include): Specify <math.h> instead of isnanl.h.
19419         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19420         HAVE_ISNAN[FDL].
19421         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19422         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19423         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19424         * NEWS: Mention the change.
19425
19426 2008-10-18  Bruno Haible  <bruno@clisp.org>
19427
19428         Add getusershell(), setusershell(), endusershell() declarations to
19429         <unistd.h>.
19430         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19431         declarations.
19432         * lib/getusershell.c: Include unistd.h.
19433         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19434         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19435         HAVE_GETUSERSHELL.
19436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19437         and HAVE_GETUSERSHELL.
19438         * modules/getusershell (Depends-on): Add unistd, extensions.
19439         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19440         (Include): Specify <unistd.h>.
19441         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19442         HAVE_GETUSERSHELL.
19443
19444 2008-10-18  Bruno Haible  <bruno@clisp.org>
19445
19446         Add a getloadavg() declaration to <stdlib.h>.
19447         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19448         getloadavg declaration.
19449         (getloadavg): New declaration.
19450         * lib/getloadavg.c: Include <stdlib.h> first.
19451         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19452         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19453         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19455         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19456         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19457         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19458         (Include): Specify <stdlib.h>.
19459         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19460         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19461
19462 2008-10-18  Bruno Haible  <bruno@clisp.org>
19463
19464         * lib/dirchownmod.c: Don't include lchmod.h.
19465
19466         Move the lchmod() declaration to <sys/stat.h>.
19467         * lib/lchmod.h: Remove file.
19468         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19469         (lchmod): New declaration, moved here from lib/lchown.h.
19470         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19471         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19472         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19473         and HAVE_LCHMOD.
19474         * modules/lchmod (Files): Remove lib/lchmod.h.
19475         (Depends-on): Add sys_stat, extensions.
19476         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19477         (Include): Specify <sys/stat.h> instead of lchmod.h.
19478         * modules/sys_stat (Depends-on): Add link-warning.
19479         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19480         definition of GL_LINK_WARNING.
19481         * NEWS: Mention the change.
19482
19483 2008-10-18  Bruno Haible  <bruno@clisp.org>
19484
19485         * lib/fchdir.c: Don't include dirfd.h.
19486         * lib/fts.c: Likewise.
19487         * lib/getcwd.c: Likewise.
19488         * lib/glob.c: Likewise.
19489
19490         Move the dirfd() declaration to <dirent.h>.
19491         * lib/dirfd.h: Remove file.
19492         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19493         (dirfd): New declaration.
19494         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19496         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19497         HAVE_DECL_DIRFD.
19498         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19499         HAVE_DECL_DIRFD.
19500         * modules/dirfd (Files): Remove lib/dirfd.h.
19501         (Depends-on): Add dirent, extensions.
19502         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19503         (Include): Specify <dirent.h> instead of dirfd.h.
19504         * modules/dirent (Depends-on): Add link-warning.
19505         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19506         definition of GL_LINK_WARNING.
19507         * NEWS: Mention the change.
19508
19509 2008-10-18  Bruno Haible  <bruno@clisp.org>
19510
19511         Move the euidaccess() declaration to <unistd.h>.
19512         * lib/euidaccess.h: Remove file.
19513         * lib/unistd.in.h (euidaccess): New declaration.
19514         * lib/euidaccess.c: Don't include euidaccess.h.
19515         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19516         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19518         and HAVE_EUIDACCESS.
19519         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19520         (Depends-on): Add unistd.
19521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19522         (Include): Specify <unistd.h> instead of euidaccess.h.
19523         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19524         HAVE_EUIDACCESS.
19525         * NEWS: Mention the change.
19526
19527 2008-10-18  Bruno Haible  <bruno@clisp.org>
19528
19529         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19530
19531         Move the getdomainname() declaration to <unistd.h>.
19532         * lib/getdomainname.h: Remove file.
19533         * lib/unistd.in.h (getdomainname): New declaration.
19534         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19535         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19536         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19537         HAVE_GETDOMAINNAME.
19538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19539         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19540         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19541         (Depends-on): Add unistd, extensions.
19542         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19543         (Includes): Specify <unistd.h> instead of getdomainname.h.
19544         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19545         HAVE_GETDOMAINNAME.
19546         * NEWS: Mention the change.
19547
19548 2008-10-18  Bruno Haible  <bruno@clisp.org>
19549
19550         * modules/dirent: New file.
19551         * m4/dirent_h.m4: New file.
19552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19553         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19554         * modules/fchdir (Files): Remove lib/dirent.in.h.
19555         (Depends-on): Add dirent.
19556         (Makefile.am): Move rules to modules/dirent.
19557         * doc/posix-headers/dirent.texi: Mention the new module.
19558
19559 2008-10-18  Bruno Haible  <bruno@clisp.org>
19560
19561         Avoid -Wunused-parameter warnings in public gnulib header files.
19562         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19563         macro.
19564         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19565
19566 2008-10-18  Bruno Haible  <bruno@clisp.org>
19567
19568         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19569         * doc/glibc-functions/error.texi: Mention the module 'error'.
19570         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19571         * doc/glibc-functions/getdomainname.texi: Mention the module
19572         'getdomainname'.
19573         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19574         * doc/glibc-functions/getpagesize.texi: Mention the module
19575         'getpagesize'.
19576         * doc/glibc-functions/getusershell.texi: Mention the module
19577         'getusershell'.
19578         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19579         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19580         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19581         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19582         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19583         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19584         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19585         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19586         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19587         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19588         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19589         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19590         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19591         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19592
19593 2008-10-17  Bruno Haible  <bruno@clisp.org>
19594
19595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19596         HP-UX and IRIX, use -0.0L.
19597         * tests/test-ceill.c (minus_zero): Likewise.
19598         * tests/test-floorl.c (minus_zero): Likewise.
19599         * tests/test-frexpl.c (minus_zero): Likewise.
19600         * tests/test-isnan.c (minus_zerol): Likewise.
19601         * tests/test-isnanl.h (minus_zero): Likewise.
19602         * tests/test-ldexpl.c (minus_zero): Likewise.
19603         * tests/test-roundl.c (minus_zero): Likewise.
19604         * tests/test-signbit.c (minus_zerol): Likewise.
19605         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19606         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19607         * tests/test-truncl.c (minus_zero): Likewise.
19608         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19609         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19610         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19611         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19612
19613 2008-10-17  Bruno Haible  <bruno@clisp.org>
19614
19615         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19616         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19617         that it gets activated only for gcc >= 3.0.
19618         * lib/dirent.in.h: Likewise.
19619         * lib/errno.in.h: Likewise.
19620         * lib/fcntl.in.h: Likewise.
19621         * lib/float.in.h: Likewise.
19622         * lib/iconv.in.h: Likewise.
19623         * lib/inttypes.in.h: Likewise.
19624         * lib/locale.in.h: Likewise.
19625         * lib/math.in.h: Likewise.
19626         * lib/netdb.in.h: Likewise.
19627         * lib/netinet_in.in.h: Likewise.
19628         * lib/search.in.h: Likewise.
19629         * lib/signal.in.h: Likewise.
19630         * lib/spawn.in.h: Likewise.
19631         * lib/stdarg.in.h: Likewise.
19632         * lib/stdint.in.h: Likewise.
19633         * lib/stdio.in.h: Likewise.
19634         * lib/stdlib.in.h: Likewise.
19635         * lib/string.in.h: Likewise.
19636         * lib/strings.in.h: Likewise.
19637         * lib/sys_file.in.h: Likewise.
19638         * lib/sys_ioctl.in.h: Likewise.
19639         * lib/sys_select.in.h: Likewise.
19640         * lib/sys_socket.in.h: Likewise.
19641         * lib/sys_stat.in.h: Likewise.
19642         * lib/sys_time.in.h: Likewise.
19643         * lib/sysexits.in.h: Likewise.
19644         * lib/time.in.h: Likewise.
19645         * lib/unistd.in.h: Likewise.
19646         * lib/wchar.in.h: Likewise.
19647         * lib/wctype.in.h: Likewise.
19648         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19649
19650 2008-10-17  Jim Meyering  <meyering@redhat.com>
19651
19652         ignore-value: don't depend on inline module
19653         * modules/ignore-value (Depends-on): Remove 'inline'.
19654         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19655         Suggestion from Bruno Haible.
19656
19657 2008-10-17  Bruno Haible  <bruno@clisp.org>
19658
19659         New implementation of condition variables for Win32.
19660         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19661         (gl_linked_waitqueue_t): New type.
19662         (gl_cond_t): Use it.
19663         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19664         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19665         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19666         (glthread_cond_init_func, glthread_cond_wait_func,
19667         glthread_cond_timedwait_func, glthread_cond_signal_func,
19668         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19669         Reimplemented on the basis of gl_linked_waitqueue_t.
19670         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19671         gl_waitqueue_t.
19672         (gl_rwlock_t): Update.
19673         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19674
19675 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19676
19677         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19678         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19679
19680 2008-10-17  Jim Meyering  <meyering@redhat.com>
19681
19682         ignore-value: new module
19683         * modules/ignore-value: New file.
19684         * lib/ignore-value.h: New file.
19685         * MODULES.html.sh (Compiler warning management): New section,
19686         just for this module.  More to come.
19687
19688 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19689
19690         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19691         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19692         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19693
19694 2008-10-16  Jim Meyering  <meyering@redhat.com>
19695
19696         openat-die.c: avoid 'no previous prototype' warning
19697         * lib/openat-die.c: Include "openat.h".
19698         Reported by Reuben Thomas <rrt@sc3d.org>.
19699
19700 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19701
19702         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19703         * lib/netdb.in.h: Fix typo.
19704         Reported by Bruno Haible  <bruno@clisp.org>
19705
19706         * lib/netdb.in.h: Include sys/socket.h for platforms without
19707         netdb.h, to get structures like hostent on MinGW.
19708         * modules/netdb (Depends-on): Add sys_socket.
19709
19710 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19711
19712         * modules/netdb, modules/netdb-tests: New file.
19713         * m4/netdb_h.m4: New file.
19714         * lib/netdb.in.h: Add, currently just an empty file pending
19715         definitions.
19716         * tests/test-netdb.c: New file.
19717         * doc/posix-headers/netdb.texi: Mention that we replace it if
19718         needed.
19719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19720         netdb.
19721
19722 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19723
19724         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19725         with code.
19726
19727 2008-10-13  Bruno Haible  <bruno@clisp.org>
19728
19729         * lib/glthread/cond.c (glthread_cond_wait_func,
19730         glthread_cond_timedwait_func): Add a comment.
19731
19732 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19733
19734         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19735         * tests/test-select.c: Likewise,
19736
19737 2008-10-13  Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/glthread/cond.c (glthread_cond_wait_func,
19740         glthread_cond_timedwait_func): Fix variable name.
19741         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19742
19743 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19744
19745         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19746         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19747         struct sockaddr.sa_len.
19748         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19749
19750 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19751
19752         * build-aux/pmccabe2html: Add css and css_url parameters.
19753
19754 2008-10-12  Bruno Haible  <bruno@clisp.org>
19755
19756         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19757         calling aclx_get.
19758         Reported by Rainer Tammer <tammer@tammer.net>.
19759
19760 2008-10-12  Bruno Haible  <bruno@clisp.org>
19761
19762         Use msvcrt aware primitives for creation/termination of Win32 threads.
19763         * lib/glthread/thread.c: Include <process.h>.
19764         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19765         (wrapper_func): Update signature.
19766         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19767
19768 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19769             Bruno Haible  <bruno@clisp.org>
19770
19771         Provide a Win32 implementation of the 'cond' module.
19772         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19773         * lib/glthread/cond.c (glthread_cond_init_func,
19774         glthread_cond_wait_func, glthread_cond_timedwait_func,
19775         glthread_cond_signal_func, glthread_cond_broadcast_func,
19776         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19777         * modules/cond (Dependencies): Add gettimeofday.
19778
19779 2008-10-11  Bruno Haible  <bruno@clisp.org>
19780
19781         Make sleep work on older versions of mingw.
19782         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19783         only whether it exists.
19784         * doc/posix-functions/sleep.texi: Mention the problem with older
19785         versions of mingw.
19786
19787 2008-10-11  Bruno Haible  <bruno@clisp.org>
19788
19789         New module 'shutdown'.
19790         * modules/shutdown: New file.
19791         * lib/sys_socket.in.h (shutdown): New declaration.
19792         * lib/winsock.c (shutdown): New function.
19793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19794         GNULIB_SHUTDOWN.
19795         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19796         * doc/posix-functions/shutdown.texi: Document the new module.
19797
19798 2008-10-11  Jim Meyering  <meyering@redhat.com>
19799
19800         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19801
19802 2008-10-11  Bruno Haible  <bruno@clisp.org>
19803
19804         New module 'fclose'.
19805         * modules/fclose: New file.
19806         * lib/stdio.in.h (fclose): New declaration.
19807         * lib/fclose.c: New file.
19808         * m4/fclose.m4: New file.
19809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19810         REPLACE_FCLOSE.
19811         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19812         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19813         REPLACE_FCLOSE.
19814         * modules/close (Depends-on): fclose.
19815         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19816
19817 2008-10-11  Bruno Haible  <bruno@clisp.org>
19818
19819         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19820         set errno and don't call _close.
19821
19822 2008-10-10  Bruno Haible  <bruno@clisp.org>
19823
19824         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19825         ACL, not afterwards. Fixes test failure on Cygwin.
19826
19827 2008-10-09  Ben Pfaff  <blp@gnu.org>
19828
19829         * build-aux/announce-gen: Fix gnulib version related part of usage
19830         message.  Die with a useful error message if no tarballs are
19831         found.
19832
19833 2008-10-10  Jim Meyering  <meyering@redhat.com>
19834
19835         bootstrap: use git's --depth=N option only if it's supported
19836         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19837         recognize the --depth option.  Reported by Pádraig Brady.
19838
19839 2008-10-09  Bruno Haible  <bruno@clisp.org>
19840
19841         New module 'ioctl'.
19842         * modules/ioctl: New file.
19843         * lib/sys_socket.in.h (ioctl): Remove declaration.
19844         * lib/winsock.c: Include <sys/ioctl.h>.
19845         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19846         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19847         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19848         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19849         * doc/posix-functions/ioctl.texi: Mention the new module.
19850
19851 2008-10-09  Bruno Haible  <bruno@clisp.org>
19852
19853         New module 'sys_ioctl'.
19854         * lib/sys_ioctl.in.h: New file.
19855         * m4/sys_ioctl_h.m4: New file.
19856         * modules/sys_ioctl: New file.
19857         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19858
19859 2008-10-09  Bruno Haible  <bruno@clisp.org>
19860
19861         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19862         * lib/winsock.c: Include <stdarg.h>.
19863         (rpl_ioctl): Change to second argument 'int' and then varargs.
19864
19865 2008-10-09  Bruno Haible  <bruno@clisp.org>
19866
19867         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19868         when the sys_socket module is present and the system has <winsock2.h>.
19869
19870 2008-10-09  Bruno Haible  <bruno@clisp.org>
19871
19872         * doc/posix-functions/close.texi: Mention module 'close' instead of
19873         module 'sys_socket'.
19874
19875 2008-10-09  Bruno Haible  <bruno@clisp.org>
19876
19877         * doc/glibc-headers/sys_ioctl.texi: New file.
19878         * doc/gnulib.texi: Include it.
19879
19880 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19881             Bruno Haible  <bruno@clisp.org>
19882
19883         Combine the two replacements of 'close'.
19884         * lib/sys_socket.in.h (close): Define to a reminder to include
19885         <unistd.h>.
19886         (_gl_close_fd_maybe_socket): New declaration.
19887         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19888         * lib/winsock.c (close): Remove undefinition.
19889         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19890         needed for the gnulib module 'close'.
19891         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19892         define to an error symbol or to a warning, if suitable.
19893         * lib/close.c: Include <sys/socket.h>.
19894         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19895         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19896         UNISTD_H_HAVE_WINSOCK2_H.
19897         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19899         UNISTD_H_HAVE_WINSOCK2_H.
19900         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19901         (configure.ac): Set a module indicator.
19902         (Makefile.am): Substitute GNULIB_CLOSE.
19903         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19904         * modules/poll-tests (Depends-on): Add close.
19905         * modules/select-tests (Depends-on): Likewise.
19906
19907 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19908             Bruno Haible  <bruno@clisp.org>
19909
19910         New module 'close'.
19911         * modules/close: New file.
19912         * lib/unistd.in.h (close): Move declaration out of the
19913         FCHDIR_REPLACEMENT scope.
19914         (_gl_unregister_fd): New declaration.
19915         * lib/close.c: New file.
19916         * lib/fchdir.c (rpl_close): Remove function.
19917         * m4/close.m4: New file.
19918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19919         close.
19920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19921         REPLACE_CLOSE.
19922         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19923         REPLACE_CLOSE.
19924         * modules/fchdir (Depends-on): Add close.
19925
19926 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19927             Bruno Haible  <bruno@clisp.org>
19928
19929         * lib/fcntl.in.h (open): Simplify conditionals.
19930         (_gl_register_fd): New declaration.
19931         * lib/fchdir.c (rpl_open): Remove function.
19932         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19933         also.
19934         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19936         open.
19937
19938 2008-10-09  Jim Meyering  <meyering@redhat.com>
19939
19940         GNUmakefile: use the more name-space-friendly "_version"
19941         * top/GNUmakefile (_dummy): Update.
19942         (_version): Rename from "version".
19943
19944 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19945             Bruno Haible  <bruno@clisp.org>
19946
19947         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19948         rpl_close.
19949         (_gl_register_fd): New function, extracted from rpl_open.
19950         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19951         (rpl_open, rpl_opendir): Use _gl_register_fd.
19952
19953 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19954
19955         Fix organization of 'open' replacement.
19956         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19957         (gl_FUNC_OPEN): Use it.
19958         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19959
19960 2008-10-08  Bruno Haible  <bruno@clisp.org>
19961
19962         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19963
19964 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19965
19966         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19967         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19968         listen).
19969
19970 2008-10-08  Eric Blake  <ebb9@byu.net>
19971
19972         GNUmakefile: add 'make version' target
19973         * top/GNUmakefile (_curr-ver): Split version update rules...
19974         (version): ...into a target.
19975
19976 2008-10-07  Bruno Haible  <bruno@clisp.org>
19977
19978         Use a more portable replacement expression for -0.0L.
19979         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19980         instead of -0.0L. Fix m4 quotation.
19981
19982         * tests/test-signbit.c: Include <float.h>.
19983         (minus_zero): New variable.
19984         (test_signbitl): Use minus_zero instead of -zero.
19985         * modules/signbit-tests (Depends-on): Add float.
19986
19987         * tests/test-ceill.c: Include <float.h>.
19988         (zero): Remove variable.
19989         (minus_zero): New variable.
19990         (main): Use minus_zero instead of -zero.
19991         * modules/ceill-tests (Depends-on): Add float.
19992
19993         * tests/test-floorl.c: Include <float.h>.
19994         (zero): Remove variable.
19995         (minus_zero): New variable.
19996         (main): Use minus_zero instead of -zero.
19997         * modules/floorl-tests (Depends-on): Add float.
19998
19999         * tests/test-roundl.c: Include <float.h>.
20000         (zero): Remove variable.
20001         (minus_zero): New variable.
20002         (main): Use minus_zero instead of -zero.
20003         * modules/roundl-tests (Depends-on): Add float.
20004
20005         * tests/test-truncl.c: Include <float.h>.
20006         (zero): Remove variable.
20007         (minus_zero): New variable.
20008         (main): Use minus_zero instead of -zero.
20009         * modules/truncl-tests (Depends-on): Add float.
20010
20011         * tests/test-frexpl.c (zero): Remove variable.
20012         (minus_zero): New variable.
20013         (main): Use minus_zero instead of -zero.
20014         * modules/frexpl-tests (Depends-on): Add float.
20015
20016         * tests/test-isnan.c (zerol): Remove variable.
20017         (minus_zerol): New variable.
20018         (test_long_double): Use minus_zerol instead of -zerol.
20019         * modules/isnan-tests (Depends-on): Add float.
20020
20021         * tests/test-isnanl.h (zero): Remove variable.
20022         (minus_zero): New variable.
20023         (main): Use minus_zero instead of -zero.
20024         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20025         * modules/isnanl-tests (Depends-on): Add float.
20026
20027         * tests/test-ldexpl.c (zero): Remove variable.
20028         (minus_zero): New variable.
20029         (main): Use minus_zero instead of -zero.
20030         * modules/ldexpl-tests (Depends-on): Add float.
20031
20032         * tests/test-snprintf-posix.h (zerol): Remove variable.
20033         (minus_zerol): New variable.
20034         (test_function): Use minus_zerol instead of -zerol.
20035         * modules/snprintf-posix-tests (Depends-on): Add float.
20036         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20037
20038         * tests/test-sprintf-posix.h (zerol): Remove variable.
20039         (minus_zerol): New variable.
20040         (test_function): Use minus_zerol instead of -zerol.
20041         * modules/sprintf-posix-tests (Depends-on): Add float.
20042         * modules/vsprintf-posix-tests (Depends-on): Add float.
20043
20044         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20045         (minus_zerol): New variable.
20046         (test_function): Use minus_zerol instead of -zerol.
20047         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20048
20049         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20050         (minus_zerol): New variable.
20051         (test_function): Use minus_zerol instead of -zerol.
20052         * modules/vasprintf-posix-tests (Depends-on): Add float.
20053
20054 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20055
20056         * MODULES.html.sh (Support for building documentation): Mention
20057         pmccabe2html.  Sort entries.
20058
20059         Add pmccabe2html module, from gnupdf.
20060         * build-aux/pmccabe.css: New file.
20061         * build-aux/pmccabe2html: New file.
20062         * m4/pmccabe2html.m4: New file.
20063         * modules/pmccabe2html: New file.
20064
20065 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20066
20067         flock: new module
20068         * MODULES.html.sh: Add to list of modules.
20069         * lib/flock.c: flock implementation for Windows and Unix systems
20070         which have fcntl.
20071         * doc/glibc-functions/flock.texi: Update documentation.
20072         * lib/sys_file.in.h: <sys/file.h> header file.
20073         * m4/flock.m4: M4 macros.
20074         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20075         * modules/flock: flock module.
20076         * modules/flock-tests: flock tests module.
20077         * modules/sys_file: sys/file.h module.
20078         * tests/test-flock.c: test suite for flock.
20079
20080 2008-10-06  Jim Meyering  <meyering@redhat.com>
20081
20082         bootstrap: check for LT_INIT more portably still ;-)
20083         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20084         Spotted by Bruno Haible.
20085
20086 2008-10-06  Eric Blake  <ebb9@byu.net>
20087
20088         test-signbit: avoid tripping Irix cc bug on -0.0L
20089         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20090         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20091         entire testsuite consistent and avoids an Irix 6.2 bug.
20092
20093 2008-10-05  Bruno Haible  <bruno@clisp.org>
20094             Jim Meyering  <jim@meyering.net>
20095
20096         Add an option for ignoring EPIPE during close_stdout.
20097         * lib/closeout.h: Include <stdbool.h>.
20098         (close_stdout_set_ignore_EPIPE): New declaration.
20099         * lib/closeout.c: Include <stdbool.h>.
20100         (ignore_EPIPE): New variable.
20101         (close_stdout_set_ignore_EPIPE): New function.
20102         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20103         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20104         failure.
20105         * modules/closeout (Depends-on): Add stdbool.
20106
20107 2008-10-05  Bruno Haible  <bruno@clisp.org>
20108
20109         * modules/accept: New file.
20110         * modules/bind: New file.
20111         * modules/connect: New file.
20112         * modules/getpeername: New file.
20113         * modules/getsockname: New file.
20114         * modules/getsockopt: New file.
20115         * modules/listen: New file.
20116         * modules/recv: New file.
20117         * modules/recvfrom: New file.
20118         * modules/send: New file.
20119         * modules/sendto: New file.
20120         * modules/setsockopt: New file.
20121         * modules/socket: New file.
20122         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20123         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20124         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20125         the particular module is requested. Add a link warning when the
20126         particular module is not requested.
20127         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20128         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20129         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20130         the particular module is requested.
20131         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20132         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20133         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20134         * modules/sys_socket (Depends-on): Add link-warning.
20135         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20136         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20137         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20138         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20139         GL_LINK_WARNING.
20140         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20141         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20142         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20143         * doc/posix-functions/getpeername.texi: Mention the new module
20144         'getpeername'.
20145         * doc/posix-functions/getsockname.texi: Mention the new module
20146         'getsockname'.
20147         * doc/posix-functions/getsockopt.texi: Mention the new module
20148         'getsockopt'.
20149         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20150         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20151         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20152         * doc/posix-functions/send.texi: Mention the new module 'send'.
20153         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20154         * doc/posix-functions/setsockopt.texi: Mention the new module
20155         'setsockopt'.
20156         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20157         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20158         listen, connect, accept.
20159         * modules/select-tests (Depends-on): Likewise.
20160
20161 2008-10-05  Bruno Haible  <bruno@clisp.org>
20162
20163         * lib/winsock.c (strerror): Remove unused #undef.
20164         (rpl_close): Remove unused local variable.
20165
20166         * modules/sys_socket (Depends-on); Add errno.
20167
20168 2008-10-05  Bruno Haible  <bruno@clisp.org>
20169
20170         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20171         (select): Add a link warning when the 'select' module is not used.
20172         * modules/sys_select (Depends-on): Add link-warning.
20173         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20174         Suggested by Paolo Bonzini.
20175
20176 2008-10-05  Jim Meyering  <meyering@redhat.com>
20177
20178         bootstrap: check for LT_INIT more portably
20179         * build-aux/bootstrap: Avoid using grep -E, since it's not
20180         portable enough.  Suggestion from Bruno Haible.
20181
20182 2008-10-05  Bruno Haible  <bruno@clisp.org>
20183
20184         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20185         as being fixed by gnulib.
20186
20187 2008-10-05  Bruno Haible  <bruno@clisp.org>
20188
20189         * modules/select-tests: New file, mostly copied from
20190         modules/sys_select-tests.
20191         * tests/test-select.c: New file, mostly copied from
20192         tests/test-sys_select.c.
20193         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20194         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20195         (Makefile.am): Remove test_sys_select_LDADD.
20196
20197         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20198         to an undefined symbol, for an error message.
20199         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20200         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20201         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20202         winsock-select.c here.
20203         * modules/sys_select (Files): Remove lib/winsock-select.c.
20204         (Depends-on): Remove alloca.
20205         (Makefile.am): Substitute GNULIB_SELECT.
20206         * modules/select: New file.
20207         * doc/posix-functions/select.texi: Update.
20208
20209 2008-10-05  Bruno Haible  <bruno@clisp.org>
20210
20211         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20212         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20213         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20214         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20215         getdtablesize.
20216         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20217         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20218
20219 2008-10-05  Bruno Haible  <bruno@clisp.org>
20220
20221         * modules/getdtablesize-tests: New file.
20222         * tests/test-getdtablesize.c: New file.
20223
20224         New module 'getdtablesize'.
20225         * lib/unistd.in.h (getdtablesize): New declaration.
20226         * lib/getdtablesize.c: New file.
20227         * m4/getdtablesize.m4: New file.
20228         * modules/getdtablesize: New file.
20229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20230         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20231         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20232         HAVE_GETDTABLESIZE.
20233         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20234
20235 2008-10-05  Bruno Haible  <bruno@clisp.org>
20236
20237         * modules/sched (Makefile.am): Fix typo.
20238         Reported by Simon Josefsson.
20239
20240 2008-10-05  Jim Meyering  <meyering@redhat.com>
20241
20242         bootstrap: check for LT_INIT, too
20243         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20244         are deprecated.  Suggestion from Ralf Wildenhues.
20245
20246 2008-10-05  Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20249         overriding them by ours.
20250         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20251
20252 2008-10-05  Jim Meyering  <meyering@redhat.com>
20253
20254         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20255         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20256         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20257
20258 2008-10-04  Bruno Haible  <bruno@clisp.org>
20259
20260         * modules/dup2 (License): Change to LGPLv2+.
20261         * modules/sleep (License): Likewise.
20262         * modules/perror (License): Likewise.
20263         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20264         Blake.
20265         * modules/signal (License): Likewise.
20266         * modules/sigprocmask (License): Likewise.
20267         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20268         Meyering.
20269
20270 2008-10-04  Bruno Haible  <bruno@clisp.org>
20271
20272         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20273         Reported by Rainer Tammer <tammer@tammer.net>.
20274
20275 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20276             Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20279         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20280         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20281
20282 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20283
20284         filevercmp: new module
20285         * lib/filevercmp.h: New function filevercmp comparing version strings.
20286         * lib/filevercmp.c: Implementation of filevercmp function.
20287         * modules/filevercmp: Module metadata.
20288         * tests/test-filevercmp.c: Unit test for new module.
20289         * modules/filevercmp-tests: Unit test metadata.
20290         * MODULES.html.sh: Add filevercmp module.
20291
20292 2008-10-03  Bruno Haible  <bruno@clisp.org>
20293
20294         * lib/c-ctype.h: Add comment.
20295         Reported by Jim Meyering.
20296
20297 2008-10-02  Bruno Haible  <bruno@clisp.org>
20298
20299         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20300
20301 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20302
20303         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20304         name of bootstrap.conf accordingly.
20305
20306 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20307
20308         * build-aux/bootstrap: Install git-merge-changelog configuration
20309         items into .gitconfig if needed.
20310
20311 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20312
20313         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20314         git repository, and initialize/update it accordingly.
20315
20316 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20317
20318         * modules/fsync-tests: New file.
20319         * tests/test-fsync.c: New file.
20320
20321         New module 'fsync'.
20322         * lib/fsync.c: New file.
20323         * m4/fsync.m4: New file.
20324         * modules/fsync: New file.
20325         * lib/unistd.in.h (fsync): New declaration.
20326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20327         GNULIB_FSYNC and HAVE_FSYNC.
20328         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20329         * MODULES.html.sh (posix_functions): Add fsync.
20330         * doc/posix-functions/fsync.texi: Mention the new module.
20331
20332 2008-10-02  Jim Meyering  <meyering@redhat.com>
20333
20334         fts.c: sync with similar code from coreutils' remove.c
20335         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20336         Guard also with "#if defined __linux__", since for now at least,
20337         this code is Linux-kernel-specific.
20338
20339 2008-10-02  Jim Meyering  <meyering@redhat.com>
20340
20341         fts: bug fixes
20342         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20343         Include <sys/vfs.h>, not <sys/statfs.h>.
20344
20345         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20346         Include <sys/vfs.h>, not <sys/statfs.h>.
20347
20348 2008-10-01  Bruno Haible  <bruno@clisp.org>
20349
20350         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20351         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20352         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20353         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20354         * doc/posix-functions/posix_spawnp.texi: Likewise.
20355         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20356         whether posix_spawn actually works.
20357         * m4/pipe.m4 (gl_PIPE): Likewise.
20358         * modules/execute (Files): Add m4/posix_spawn.m4.
20359         * modules/pipe (Files): Add m4/posix_spawn.m4.
20360         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20361
20362 2008-10-01  Jim Meyering  <meyering@redhat.com>
20363
20364         remove trailing spaces
20365         * NEWS: Likewise.
20366         * lib/poll.c (poll): Likewise.
20367         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20368         * lib/winsock.c (rpl_close): Likewise.
20369         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20370         * modules/yield: Likewise.
20371         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20372         * tests/test-sys_select.c (connect_to_socket): Likewise.
20373
20374         fts.c: adjust a new interface to be more generally useful
20375         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20376         (fts_build): Adjust caller.
20377
20378 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20379
20380         * modules/cond-tests: New file.
20381         * tests/test-cond.c: New file.
20382
20383 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20384             Bruno Haible  <bruno@clisp.org>
20385
20386         * modules/cond (Dependencies): Add errno, time.
20387         * lib/glthread/cond.h: Include <time.h>.
20388         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20389         across platforms.
20390
20391 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20392             Bruno Haible  <bruno@clisp.org>
20393
20394         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20395
20396 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20397             Bruno Haible  <bruno@clisp.org>
20398
20399         * modules/tls-tests (Depends-on): Add thread, yield.
20400         (configure.ac): Remove all checks.
20401         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20402         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20403         gl_thread_self): Remove definitions. Include glthread/thread.h and
20404         glthread/yield.h instead.
20405         (test_tls): Pass an additional NULL argument to gl_thread_join.
20406
20407 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20408             Bruno Haible  <bruno@clisp.org>
20409
20410         * modules/lock-tests (Depends-on): Add thread, yield.
20411         (configure.ac): Remove all checks.
20412         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20413         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20414         gl_thread_self): Remove definitions. Include glthread/thread.h and
20415         glthread/yield.h instead.
20416         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20417         additional NULL argument to gl_thread_join.
20418
20419 2008-09-30  Bruno Haible  <bruno@clisp.org>
20420
20421         Fix the Win32 implementation of the 'thread' module.
20422         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20423         pointer type.
20424         (gl_thread_self): Invoke gl_thread_self_func.
20425         (gl_thread_self_func): New declaration.
20426         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20427         (do_init_self_key, init_self_key): New functions.
20428         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20429         Remove some fields.
20430         (running_threads, running_lock): Remove variables.
20431         (get_current_thread_handle): New function.
20432         (gl_thread_self_func, wrapper_func, glthread_create_func,
20433         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20434         simplified.
20435
20436 2008-09-30  Bruno Haible  <bruno@clisp.org>
20437
20438         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20439         files.
20440
20441 2008-09-30  Jim Meyering  <meyering@redhat.com>
20442
20443         fts.m4: correct the test for statfs.f_type
20444         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20445         when checking for statfs.f_type.
20446
20447 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20448
20449         tests: avoid some compiler warnings
20450         * tests/test-memchr.c (main): Pass NULL indirectly.
20451         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20452
20453 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20454
20455         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20456         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20457         exactly specified dayshifts.
20458         (dayshift): New rule.
20459         (rel): Add dayshift.
20460         (relative_time_table) [tomorrow, yesterday, today, now]:
20461         Use tDAY_SHIFT in place of tDAY_UNIT.
20462         * tests/test-getdate.c: Add tests for now-disallowed countable
20463         dayshifts, e.g., "4 yesterday ago".
20464
20465 2008-09-29  Bruno Haible  <bruno@clisp.org>
20466
20467         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20468         * tests/test-posix_spawn1.in.sh: Renamed from
20469         tests/test-posix_spawn.in.sh.
20470         * tests/test-posix_spawn2.c: New file.
20471         * tests/test-posix_spawn2.in.sh: New file.
20472         * modules/posix_spawnp-tests (Files): Update.
20473         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20474
20475 2008-09-29  Bruno Haible  <bruno@clisp.org>
20476
20477         Propagate effects of putenv/setenv/unsetenv to child processes.
20478         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20479         * lib/pipe.c (create_pipe): Likewise.
20480
20481 2008-09-29  Bruno Haible  <bruno@clisp.org>
20482
20483         Enable use of shell scripts as executables in mingw.
20484         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20485         run the program as a shell script.
20486         * lib/pipe.c (create_pipe): Likewise.
20487         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20488         resulting array.
20489
20490 2008-09-29  Eric Blake  <ebb9@byu.net>
20491
20492         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20493
20494 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20495
20496         * doc/posix-functions/accept.texi: Update mingw problems.
20497         * doc/posix-functions/bind.texi: Update mingw problems.
20498         * doc/posix-functions/close.texi: Update mingw problems.
20499         * doc/posix-functions/connect.texi: Update mingw problems.
20500         * doc/posix-functions/getpeername.texi: Update mingw problems.
20501         * doc/posix-functions/getsockname.texi: Update mingw problems.
20502         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20503         * doc/posix-functions/ioctl.texi: Update mingw problems.
20504         * doc/posix-functions/listen.texi: Update mingw problems.
20505         * doc/posix-functions/recv.texi: Update mingw problems.
20506         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20507         * doc/posix-functions/select.texi: Update mingw problems.
20508         * doc/posix-functions/send.texi: Update mingw problems.
20509         * doc/posix-functions/sendto.texi: Update mingw problems.
20510         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20511         * doc/posix-functions/socket.texi: Update mingw problems.
20512
20513 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20514             Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/sys_select.in.h: Include sys/time.h.
20517         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20518         * modules/sys_select: Depend on sys_time.
20519         * tests/test-sys_select.c: Test that sys/select.h defines struct
20520         timeval fully.
20521
20522 2008-09-29  Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20525         * lib/sys_select.in.h: Likewise.
20526
20527 2008-09-29  Bruno Haible  <bruno@clisp.org>
20528
20529         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20530
20531 2008-09-29  Bruno Haible  <bruno@clisp.org>
20532
20533         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20534         Set LIBSOCKET instead of augmenting LIBS.
20535         * modules/sockets (Link): New section.
20536         * modules/sockets-tests (test_sockets_LDADD): New variable.
20537         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20538         * modules/poll-tests (test_poll_LDADD): New variable.
20539         * NEWS: Document the change.
20540
20541 2008-09-29  Bruno Haible  <bruno@clisp.org>
20542
20543         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20544         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20545         ARPA_INET_H directly.
20546         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20547
20548 2008-09-28  Bruno Haible  <bruno@clisp.org>
20549
20550         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20551         from gl_HEADER_SYS_SOCKET.
20552         (gl_HEADER_SYS_SOCKET): Invoke it.
20553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20554
20555 2008-09-28  Bruno Haible  <bruno@clisp.org>
20556
20557         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20558         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20559         Needed on OSF/1 4.0.
20560
20561 2008-09-28  Bruno Haible  <bruno@clisp.org>
20562
20563         Override open more carefully.
20564         * lib/open.c (orig_open): New function.
20565         (rpl_open): Use orig_open instead of open.
20566         * lib/fcntl.in.h: Add special invocation convention.
20567         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20568         (gl_FUNC_OPEN): Invoke it.
20569
20570         Override freopen more carefully.
20571         * lib/freopen.c (orig_freopen): New function.
20572         (rpl_freopen): Use orig_freopen instead of freopen.
20573         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20574         (gl_FUNC_FREOPEN): Invoke it.
20575
20576         Override fopen more carefully.
20577         * lib/fopen.c (orig_fopen): New function.
20578         (rpl_fopen): Use orig_fopen instead of fopen.
20579         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20580         (gl_FUNC_FOPEN): Invoke it.
20581         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20582
20583 2008-09-28  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20586         SIGPIPE.
20587
20588 2008-09-28  Bruno Haible  <bruno@clisp.org>
20589
20590         * tests/test-sigaction.c (handler, main): Disable the check whether
20591         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20592         glibc systems with LinuxThreads.
20593
20594 2008-09-28  Bruno Haible  <bruno@clisp.org>
20595
20596         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20597
20598         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20599         with AIX xlc.
20600         * lib/fcntl.in.h (open): Likewise.
20601         Reported by Rainer Tammer <tammer@tammer.net>.
20602
20603 2008-09-28  Bruno Haible  <bruno@clisp.org>
20604
20605         * modules/posix_spawnp-tests: New file.
20606         * tests/test-posix_spawn.c: New file.
20607         * tests/test-posix_spawn.in.sh: New file.
20608
20609         New module 'posix_spawnp'.
20610         * modules/posix_spawnp: New file.
20611         * lib/spawnp.c: New file, from GNU libc with modifications.
20612         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20613
20614         New module 'posix_spawn'.
20615         * modules/posix_spawn: New file.
20616         * lib/spawn.c: New file, from GNU libc with modifications.
20617         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20618
20619         New module 'posix_spawnattr_destroy'.
20620         * modules/posix_spawnattr_destroy: New file.
20621         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20622         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20623         module.
20624
20625         New module 'posix_spawnattr_setsigmask'.
20626         * modules/posix_spawnattr_setsigmask: New file.
20627         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20628         modifications.
20629         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20630         new module.
20631
20632         New module 'posix_spawnattr_getsigmask'.
20633         * modules/posix_spawnattr_getsigmask: New file.
20634         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20635         modifications.
20636         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20637         new module.
20638
20639         New module 'posix_spawnattr_setsigdefault'.
20640         * modules/posix_spawnattr_setsigdefault: New file.
20641         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20642         modifications.
20643         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20644         new module.
20645
20646         New module 'posix_spawnattr_getsigdefault'.
20647         * modules/posix_spawnattr_getsigdefault: New file.
20648         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20649         modifications.
20650         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20651         new module.
20652
20653         New module 'posix_spawnattr_setschedpolicy'.
20654         * modules/posix_spawnattr_setschedpolicy: New file.
20655         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20656         modifications.
20657         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20658         new module.
20659
20660         New module 'posix_spawnattr_getschedpolicy'.
20661         * modules/posix_spawnattr_getschedpolicy: New file.
20662         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20663         modifications.
20664         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20665         new module.
20666
20667         New module 'posix_spawnattr_setschedparam'.
20668         * modules/posix_spawnattr_setschedparam: New file.
20669         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20670         modifications.
20671         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20672         new module.
20673
20674         New module 'posix_spawnattr_getschedparam'.
20675         * modules/posix_spawnattr_getschedparam: New file.
20676         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20677         modifications.
20678         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20679         new module.
20680
20681         New module 'posix_spawnattr_setpgroup'.
20682         * modules/posix_spawnattr_setpgroup: New file.
20683         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20684         modifications.
20685         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20686         module.
20687
20688         New module 'posix_spawnattr_getpgroup'.
20689         * modules/posix_spawnattr_getpgroup: New file.
20690         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20691         modifications.
20692         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20693         module.
20694
20695         New module 'posix_spawnattr_setflags'.
20696         * modules/posix_spawnattr_setflags: New file.
20697         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20698         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20699         module.
20700
20701         New module 'posix_spawnattr_getflags'.
20702         * modules/posix_spawnattr_getflags: New file.
20703         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20704         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20705         module.
20706
20707         New module 'posix_spawnattr_init'.
20708         * modules/posix_spawnattr_init: New file.
20709         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20710         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20711         module.
20712
20713         New module 'posix_spawn_file_actions_destroy'.
20714         * modules/posix_spawn_file_actions_destroy: New file.
20715         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20716         modifications.
20717         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20718         the new module.
20719
20720         New module 'posix_spawn_file_actions_addopen'.
20721         * modules/posix_spawn_file_actions_addopen: New file.
20722         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20723         modifications.
20724         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20725         the new module.
20726
20727         New module 'posix_spawn_file_actions_adddup2'.
20728         * modules/posix_spawn_file_actions_adddup2: New file.
20729         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20730         modifications.
20731         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20732         the new module.
20733
20734         New module 'posix_spawn_file_actions_addclose'.
20735         * modules/posix_spawn_file_actions_addclose: New file.
20736         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20737         modifications.
20738         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20739         the new module.
20740
20741         New module 'posix_spawn_file_actions_init'.
20742         * modules/posix_spawn_file_actions_init: New file.
20743         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20744         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20745         new module.
20746
20747         New module 'posix_spawn-internal'.
20748         * modules/posix_spawn-internal: New file.
20749         * lib/spawn_int.h: New file, from GNU libc with modifications.
20750         * lib/spawni.c: New file, from GNU libc with modifications.
20751         * m4/posix_spawn.m4: New file.
20752
20753         New module 'spawn'.
20754         * modules/spawn: New file.
20755         * lib/spawn.in.h: New file, from GNU libc with modifications.
20756         * m4/spawn_h.m4: New file.
20757         * doc/posix-headers/spawn.texi: Mention the new module.
20758
20759 2008-09-28  Bruno Haible  <bruno@clisp.org>
20760
20761         * modules/sched-tests: New file.
20762         * tests/test-sched.c: New file.
20763
20764         New module 'sched'.
20765         * modules/sched: New file.
20766         * lib/sched.in.h: New file.
20767         * m4/sched_h.m4: New file.
20768         * doc/posix-headers/sched.texi: Mention the new module.
20769
20770 2008-09-27  Eric Blake  <ebb9@byu.net>
20771
20772         Fix previous patch, and tweak references to $0.
20773         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20774         (func_version, func_gnulib_dir): Don't call this program
20775         gnulib-tool.
20776         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20777         with using $0 in function.
20778         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20779         (func_fatal_error): Reuse the name the user invoked us with.
20780
20781 2008-09-27  Bruno Haible  <bruno@clisp.org>
20782
20783         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20784         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20785         (gl_ICONV_H): Not here.
20786         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20787         instead of assigning ICONV_H directly.
20788
20789         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20791         WCHAR_H directly.
20792
20793 2008-09-27  Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20796         * modules/arpa_inet (Depends-on): Add link-warning.
20797         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20798         * modules/unistd (Makefile.am): Likewise.
20799
20800 2008-09-26  Bruno Haible  <bruno@clisp.org>
20801
20802         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20803         variables.
20804         (func_version): Essentially copied from gnulib-tool.
20805         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20806         func_readlink): Copied from gnulib-tool.
20807
20808 2008-09-26  Bruno Haible  <bruno@clisp.org>
20809
20810         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20811         invoking git-version-gen.
20812
20813 2008-09-26  Bruno Haible  <bruno@clisp.org>
20814
20815         * posix-modules: Update to directory names changed on 2008-01-19.
20816         Remove commas in output before splitting into words. No more need to
20817         avoid 'ftruncate' since 2007-02-19.
20818
20819 2008-09-26  Bruno Haible  <bruno@clisp.org>
20820
20821         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20822
20823 2008-09-26  Bruno Haible  <bruno@clisp.org>
20824
20825         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20826         * modules/fwriteerror (Depends-on): Add errno.
20827
20828 2008-09-26  Bruno Haible  <bruno@clisp.org>
20829
20830         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20831         * tests/test-vc-list-files-cvs.sh: Likewise.
20832
20833 2008-09-26  Bruno Haible  <bruno@clisp.org>
20834
20835         * doc/posix-headers/sys_resource.texi: Reorder items.
20836
20837 2008-09-26  Jim Meyering  <meyering@redhat.com>
20838
20839         fts: tweak inode comparison function
20840         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20841         inode numbers, as documented.
20842
20843         fts: sort dirent entries on inode number before traversing
20844         This avoids a quadratic, seek-related performance penalty when
20845         operating on a directory containing many entries (measurable at 10k;
20846         3.5 hours at 2 million entries with a cold cache) on certain types
20847         of file systems, including ext3 and ext4, but not tmpfs.
20848         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20849         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20850         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20851         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20852         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20853         (fts_build): Set the stat.st_ino member from D_INO.
20854         If it is likely to be useful, sort dirent entries on inode number.
20855
20856         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20857         and the struct statfs.f_type member.
20858         * modules/fts (Depends-on): Add d-ino.
20859
20860 2008-09-26  Bruno Haible  <bruno@clisp.org>
20861
20862         * modules/sigpipe-die (Depends-on): Add sigpipe.
20863
20864         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20865         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20866         and GNULIB_STDIO_H_SIGPIPE are set.
20867         * lib/stdio-write.c: New file.
20868         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20869         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20870         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20871         REPLACE_STDIO_WRITE_FUNCS.
20872         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20873         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20874         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20875         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20876         * modules/stdio (Files): Add lib/stdio-write.c.
20877         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20878         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20879         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20880         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20881         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20882         REPLACE_FPRINTF_POSIX.
20883         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20884         REPLACE_PRINTF_POSIX.
20885         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20886         REPLACE_VFPRINTF_POSIX.
20887         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20888         REPLACE_VPRINTF_POSIX.
20889         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20890         SIGPIPE issue.
20891         * doc/posix-functions/fputc.texi: Likewise.
20892         * doc/posix-functions/fputs.texi: Likewise.
20893         * doc/posix-functions/fwrite.texi: Likewise.
20894         * doc/posix-functions/printf.texi: Likewise.
20895         * doc/posix-functions/putc.texi: Likewise.
20896         * doc/posix-functions/putchar.texi: Likewise.
20897         * doc/posix-functions/puts.texi: Likewise.
20898         * doc/posix-functions/vfprintf.texi: Likewise.
20899         * doc/posix-functions/vprintf.texi: Likewise.
20900
20901         * modules/safe-write (Depends-on): Add write.
20902
20903         * modules/sigpipe-tests: New file.
20904         * tests/test-sigpipe.c: New file.
20905         * tests/test-sigpipe.sh: New file.
20906
20907         * modules/write: New file.
20908         * lib/unistd.in.h: Include <sys/types.h>.
20909         (write): New declaration.
20910         * lib/write.c: New file.
20911         * m4/write.m4: New file.
20912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20913         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20914         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20915         GNULIB_WRITE, REPLACE_WRITE.
20916         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20917         and the SIGPIPE issue.
20918
20919         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20920         (raise): New declaration.
20921         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20922         (ext_signal): New function.
20923         (rpl_raise): New function.
20924         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20925         GNULIB_SIGNAL_H_SIGPIPE.
20926         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20927         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20928
20929         * modules/sigpipe: New file.
20930         * m4/sigpipe.m4: New file.
20931
20932 2008-09-25  Derek Price  <derek@ximbiot.com>
20933             Bruno Haible  <bruno@clisp.org>
20934
20935         * gnulib-tool (func_import): Report all license incompatibilities, not
20936         just the first one.
20937
20938 2008-09-25  Bruno Haible  <bruno@clisp.org>
20939
20940         * gnulib-tool (func_import): When computing the edits, consider not
20941         only the Makefile.ams that exist but also those that will be generated.
20942
20943 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20944
20945         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20946         fixes gnulib-tool --test warning about duplicate dependency.
20947
20948 2008-09-25  Bruno Haible  <bruno@clisp.org>
20949
20950         * gnulib-tool: Don't ask the user to perform edits in the generated
20951         Makefile.ams.
20952         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20953         apply to the Makefile.am being generated.
20954         (func_emit_tests_Makefile_am): Execute edits that apply to the
20955         Makefile.am being generated.
20956         (func_import): Setup list of Makefile.am edits before emitting the
20957         Makefile.ams, not at the end.
20958         (func_create_testdir): Update.
20959         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20960
20961 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20962
20963         * gnulib-tool (func_import): Store the --tests-base option in the
20964         comment in gnulib-cache.m4.
20965
20966 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20967
20968         * NEWS: Document increased portability that sys_select now provides.
20969
20970         * lib/sys_select.in.h: Install select wrapper.
20971         * lib/sys_socket.in.h: Use more descriptive name when there is no
20972         select wrapper.
20973         * lib/winsock-select.c: New.
20974         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20975         Require gl_HEADER_SYS_SOCKET.
20976         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20977         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20978         * tests/test-sys_select.c: Add functional tests.
20979
20980 2008-09-24  Eric Blake  <ebb9@byu.net>
20981
20982         open, fopen: close fd leak in last patch
20983         * lib/open.c (rpl_open): Close fd before returning error.
20984         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20985         * doc/posix-functions/open.texi (open): Document that Irix also
20986         has the bug.
20987         * doc/posix-functions/fopen.texi (fopen): Likewise.
20988         Reported by Paolo Bonzini.
20989
20990 2008-09-24  Bruno Haible  <bruno@clisp.org>
20991
20992         Ensure that a filename ending in a slash cannot be used to access a
20993         non-directory.
20994         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20995         to check whether it's really a directory.
20996         * lib/fopen.c: Include fcntl.h, unistd.h.
20997         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20998         and fdopen().
20999         * modules/fopen (Depends-on): Add unistd.
21000         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21001         * tests/test-fopen.c (main): Likewise.
21002         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21003         * doc/posix-functions/fopen.texi: Likewise.
21004         Reported by Eric Blake.
21005
21006 2008-09-23  Eric Blake  <ebb9@byu.net>
21007
21008         c-stack: avoid compiler optimizations when provoking overflow
21009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21010         recursion harder to optimize, to ensure a stack overflow occurs.
21011         * tests/test-c-stack.c (recurse): Likewise.
21012         Borrowed from libsigsegv.
21013
21014         c-stack: work around Irix sigaltstack bug
21015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21016         whether sigaltstack uses wrong end of stack_t (copied in part from
21017         libsigsegv).
21018         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21019         Irix bug, without requiring an over-allocation.
21020         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21021         bug.
21022
21023         fopen: document mingw bug on directories
21024         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21025         not allowing a stream visiting a directory, even though reading
21026         from such a stream is not portable.
21027
21028 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21029
21030         * lib/poll.c: Rewrite.
21031         * modules/poll: Depend on alloca.
21032
21033 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21034
21035         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21036         instead define prototypes for a full set of wrappers.  Ensure
21037         that Cygwin does not use the compatibility code, which is only
21038         for MinGW.
21039         * lib/winsock.c: New.
21040         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21041         * modules/sys_socket: Add lib/winsock.c.
21042
21043         * modules/poll-tests: Add errno and perror.
21044         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21045
21046 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21047
21048         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21049
21050 2008-09-23  Bruno Haible  <bruno@clisp.org>
21051
21052         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21053         * doc/glibc-functions/*: Likewise.
21054
21055 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21056
21057         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21058         success.
21059
21060 2008-09-22  Eric Blake  <ebb9@byu.net>
21061             Bruno Haible  <bruno@clisp.org>
21062
21063         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21064         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21065         supply %A but mishandle pseudo-NaN.
21066         Reported by Simon Josefsson.
21067
21068 2008-09-21  Bruno Haible  <bruno@clisp.org>
21069
21070         * tests/test-lock.c (main): Tweak skip message.
21071         * tests/test-tls.c (main): Likewise.
21072
21073 2008-09-21  Bruno Haible  <bruno@clisp.org>
21074
21075         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21076         whether 'struct sigaction' has sa_sigaction here...
21077         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21078         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21079
21080 2008-09-21  Bruno Haible  <bruno@clisp.org>
21081
21082         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21083         section.
21084         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21085         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21086         the new section.
21087         (Support for obsolete systems lacking POSIX:2001): New section.
21088         (String handling <string.h>): Move strdup to the new section.
21089         Suggested by Simon Josefsson and Paolo Bonzini.
21090
21091 2008-09-21  Bruno Haible  <bruno@clisp.org>
21092
21093         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21094         exponents in %e and %g results on 'long double'. Needed for mingw's
21095         improved *printf functions.
21096         * tests/test-vasprintf-posix.c (test_function): Likewise.
21097         * tests/test-snprintf-posix.h (test_function): Likewise.
21098         * tests/test-sprintf-posix.h (test_function): Likewise.
21099         Reported by Eric Blake.
21100
21101 2008-09-21  Bruno Haible  <bruno@clisp.org>
21102
21103         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21104         * tests/test-sprintf-posix.h (test_function): Likewise.
21105
21106 2008-09-21  Bruno Haible  <bruno@clisp.org>
21107
21108         * modules/getpass (Depends-on): Add strdup-posix.
21109
21110         New module 'strdup-posix'.
21111         * modules/strdup-posix: New file.
21112         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21113         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21115         REPLACE_STRDUP.
21116         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21117         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21119         strdup-posix.
21120
21121         * modules/strdup (Depends-on): Remove malloc-posix.
21122
21123 2008-09-20  Bruno Haible  <bruno@clisp.org>
21124
21125         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21126         Wildenhues.
21127
21128 2008-09-20  Bruno Haible  <bruno@clisp.org>
21129
21130         Ensure that wint_t gets defined on IRIX 5.3.
21131         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21132         * lib/wctype.in.h (wint_t): Likewise.
21133         (__wctype_wint_t): Remove type.
21134         (isw*): Use wint_t instead of __wctype_wint_t.
21135         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21136         * modules/wchar (Files): Add m4/wint_t.m4.
21137         (Makefile.am): Substitute HAVE_WINT_T.
21138         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21139         * tests/test-wctype.c: Check that wint_t is defined.
21140         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21141         * doc/posix-headers/wctype.texi: Likewise.
21142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21143
21144 2008-09-18  Bruno Haible  <bruno@clisp.org>
21145
21146         * gnulib-tool (func_exit): Update comment.
21147
21148 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21149
21150         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21151         assumes strdup exists and does not depend on strdup to return
21152         ENOMEM on out of memory conditions.
21153
21154 2008-09-18  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21157         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21158         digits for the exponent.
21159
21160 2008-09-18  Jim Meyering  <meyering@redhat.com>
21161             Bruno Haible  <bruno@clisp.org>
21162
21163         * lib/vasnprintf.c (decimal_point_char): Define also if
21164         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21165
21166 2008-09-16  Bruno Haible  <bruno@clisp.org>
21167         and Eric Blake  <ebb9@byu.net>
21168
21169         vasnprintf: support Irix 5.3
21170         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21171         that mishandle long double infinity.
21172         Reported by Tom G. Christensen.
21173
21174 2008-09-16  Bruno Haible  <bruno@clisp.org>
21175
21176         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21177         Solaris 9.
21178         * doc/glibc-functions/alphasort.texi: Likewise.
21179         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21180
21181 2008-09-16  Jim Meyering  <meyering@redhat.com>
21182
21183         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21184         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21185         a umask modification leak out of a subshell.  Otherwise, the
21186         opensolaris /bin/sh would be accepted and thus cause unwarranted
21187         failures in the coreutils test suite.
21188
21189 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21190
21191         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21192         to succeed.
21193
21194 2008-09-16  Jim Meyering  <meyering@redhat.com>
21195
21196         avoid spurious test failure when library is built without ACL support
21197         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21198         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21199         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21200         * tests/test-copy-acl.sh: Likewise.
21201
21202 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21203
21204         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21205         based on character occurrence counts.
21206
21207 2008-09-15  Eric Blake  <ebb9@byu.net>
21208
21209         tests: avoid some compiler warnings
21210         * tests/test-memchr.c (main): Pass NULL indirectly.
21211         * tests/test-closein.c (main): Avoid unused variable.
21212
21213 2008-09-15  Bruno Haible  <bruno@clisp.org>
21214
21215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21216         are missing on OpenBSD 4.0 individually.
21217         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21218
21219 2008-09-15  Bruno Haible  <bruno@clisp.org>
21220
21221         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21222         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21223         * doc/posix-functions/perror.texi: Likewise.
21224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21225         is missing.
21226         Reported by Eric Blake.
21227
21228         * lib/errno.in.h: Use replacement values >= 2000.
21229         Reported by Eric Blake.
21230
21231 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21232
21233         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21234         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21235         limit.
21236         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21237         compareseq was aborted.
21238
21239 2008-09-14  Bruno Haible  <bruno@clisp.org>
21240
21241         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21242         yvec_edit_count.
21243         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21244         (fstrcmp_bounded): Simplify result computation accordingly.
21245
21246 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21247
21248         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21249         (fstrcmp): Define in terms of fstrcmp_bounded.
21250         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21251         lower_bound argument.
21252         Return quickly if the result is certainly < lower_bound.
21253         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21254
21255 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21256
21257         * lib/diffseq.h (EARLY_ABORT): New macro.
21258         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21259         evaluates to true.
21260
21261 2008-09-14  Bruno Haible  <bruno@clisp.org>
21262
21263         * modules/perror-tests: New file.
21264         * tests/test-perror.sh: New file.
21265         * tests/test-perror.c: New file.
21266
21267         New module 'perror'.
21268         * lib/stdio.in.h (perror): New declaration.
21269         * lib/perror.c: New file.
21270         * m4/perror.m4: New file.
21271         * modules/perror: New file.
21272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21273         * doc/posix-functions/perror.texi: Mention the perror module.
21274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21275         REPLACE_PERROR.
21276         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21277         REPLACE_PERROR.
21278
21279 2008-09-14  Bruno Haible  <bruno@clisp.org>
21280
21281         * modules/stdio (Makefile.am): Reorder to match the order in
21282         lib/stdio.in.h.
21283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21284
21285 2008-09-13  Bruno Haible  <bruno@clisp.org>
21286
21287         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21288
21289 2008-09-13  Bruno Haible  <bruno@clisp.org>
21290
21291         Extend strerror to cover the added errno values.
21292         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21293         (rpl_strerror): Provide error messages for the added errno values and
21294         for the WSA* values.
21295         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21296         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21297         strerror.
21298         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21299         * modules/strerror (Depends-on): Add errno.
21300         * doc/posix-functions/strerror.texi: Document the change.
21301         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21302         and EOVERFLOW.
21303
21304 2008-09-13  Bruno Haible  <bruno@clisp.org>
21305
21306         * modules/EOVERFLOW: Remove file.
21307         * m4/eoverflow.m4: Remove file.
21308         * modules/EOVERFLOW-tests: Remove file.
21309         * tests/test-EOVERFLOW.c: Remove file.
21310         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21311         * modules/ftell (Depends-on): Likewise.
21312         * modules/getdelim (Depends-on): Likewise.
21313         * modules/getugroups (Depends-on): Likewise.
21314         * modules/poll (Depends-on): Likewise.
21315         * modules/snprintf (Depends-on): Likewise.
21316         * modules/sprintf-posix (Depends-on): Likewise.
21317         * modules/vasnprintf (Depends-on): Likewise.
21318         * modules/vasprintf (Depends-on): Likewise.
21319         * modules/vfprintf-posix (Depends-on): Likewise.
21320         * modules/vsnprintf (Depends-on): Likewise.
21321         * modules/vsprintf-posix (Depends-on): Likewise.
21322         * modules/xvasprintf (Depends-on): Likewise.
21323         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21324         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21325         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21326         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21327         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21328         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21329         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21330         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21331         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21332         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21333         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21334         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21336         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21337         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21338         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21339         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21340         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21341         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21342         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21343         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21344         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21345         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21346         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21347         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21348         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21349         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21350         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21351         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21352         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21353         * MODULES.html.sh: Remove EOVERFLOW.
21354         * NEWS: Mention the change.
21355
21356 2008-09-13  Bruno Haible  <bruno@clisp.org>
21357
21358         * modules/errno-tests: New file.
21359         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21360
21361         * lib/errno.in.h: New file.
21362         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21363         * modules/errno: New file.
21364         * doc/posix-headers/errno.texi: Update documentation.
21365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21366
21367 2008-09-13  Bruno Haible  <bruno@clisp.org>
21368
21369         * tests/test-poll.c: Use #if for native Windows, rather than testing
21370         __MSVCRT__.
21371
21372 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21373             Bruno Haible  <bruno@clisp.org>
21374
21375         * lib/glob.c: Don't include <pwd.h> on native Windows.
21376         (WINDOWS32): New macro.
21377         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21378
21379 2008-09-13  Bruno Haible  <bruno@clisp.org>
21380
21381         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21382         (ETIMEDOUT): Remove macro.
21383         (glthread_cond_timedwait_multithreaded): New declaration.
21384         (glthread_cond_timedwait): Use it.
21385         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21386         (glthread_cond_timedwait_multithreaded): New function.
21387
21388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21389
21390         * modules/poll-tests: Do not check for io.h.
21391         * tests/test-poll.c: Check for __MSVCRT__ instead.
21392
21393 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21394
21395         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21396         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21397         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21398
21399 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21400
21401         * modules/poll-tests: New.
21402         * tests/test-poll.c: New.
21403
21404 2008-09-12  Eric Blake  <ebb9@byu.net>
21405
21406         frexp: test for NetBSD failure on -0.0
21407         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21408         not all, bugs from NetBSD 3.0 have been fixed.
21409         * doc/posix-functions/frexp.texi (frexp): Document bug.
21410         Reported by Thomas Klausner.
21411
21412         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21413         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21414         literal -0.0.
21415         Reported by Jonathan C. Patschke <jp@centtech.com>.
21416
21417 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21418
21419         * lib/glthread/cond.h: Use dummy implementation also if
21420         USE_WIN32_THREADS.
21421
21422 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21423
21424         * modules/fnmatch-posix (License): Change to LGPLv2+.
21425         * modules/fnmatch-gnu (License): Likewise.
21426
21427 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21428
21429         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21430
21431 2008-09-11  Jim Meyering  <meyering@redhat.com>
21432
21433         * users.txt: Add gtk-vnc.
21434
21435 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21436
21437         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21438         rotate amounts.
21439
21440         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21441         required for 16-bit and 8-bit rotates.
21442         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21443         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21444         UINT8_MAX instead of hard-coded constants.
21445         Suggested by Paul Eggert.
21446
21447 2008-09-07  Bruno Haible  <bruno@clisp.org>
21448
21449         * tests/test-striconveh.c (main): Check behaviour when converting from
21450         UTF-7.
21451
21452         Make striconveh work better with stateful encodings.
21453         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21454         that iconv does not increment the inptr when returning -1/EINVAL.
21455
21456 2008-09-07  Bruno Haible  <bruno@clisp.org>
21457
21458         * build-aux/config.rpath: Update according to libtool-2.2.6.
21459         * build-aux/config.libpath: Likewise.
21460
21461 2008-09-06  Bruno Haible  <bruno@clisp.org>
21462
21463         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21464         * lib/freadptr.c (freadptr): Likewise.
21465         * lib/freadseek.c (freadptrinc): Likewise.
21466         Reported by Simon Josefsson.
21467
21468 2008-09-06  Bruno Haible  <bruno@clisp.org>
21469
21470         * modules/freadptr (License): Change to LGPLv2+.
21471         * modules/freadseek (License): Likewise.
21472         Suggested by Eric Blake.
21473
21474         * modules/memchr2 (License): Change to LGPLv2+.
21475         Approved by Eric Blake.
21476
21477 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21478             Bruno Haible  <bruno@clisp.org>
21479
21480         Make gnulib-tool work with native 'sed' on AIX.
21481         * gnulib-tool (sed_noop): New variable.
21482         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21483         func_add_or_update, func_create_testdir): Use it to initialize sed
21484         script variables.
21485         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21486
21487 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21488             Bruno Haible  <bruno@clisp.org>
21489
21490         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21491         also works after #include directives.
21492
21493 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
21494
21495         getdate.y: reject an out-of-range timezone value
21496         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21497         the range [-24...+24].  When specified with only one or two digits,
21498         * tests/test-getdate.c: Tests for the fix.
21499         * doc/getdate.texi: Document this change.
21500
21501 2008-09-03  Bruno Haible  <bruno@clisp.org>
21502
21503         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21504
21505 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21506
21507         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21508         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21509         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21510         Blake <ebb9@byu.net>.
21511
21512         * tests/test-bitrotate.c: Add more test vectors.
21513
21514 2008-09-02  Eric Blake  <ebb9@byu.net>
21515
21516         vasnprintf-posix: handle large precision via %.*d
21517         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21518         when handling it ourselves.
21519         * tests/test-vasnprintf-posix.c (test_function): Add test.
21520         * tests/test-snprintf-posix.h (test_function): Likewise.
21521         * tests/test-sprintf-posix.h (test_function): Likewise.
21522         * tests/test-vasprintf-posix.c (test_function): Likewise.
21523         Reported by Alain Guibert.
21524
21525 2008-09-01  Eric Blake  <ebb9@byu.net>
21526
21527         c-stack: make configure-time check more robust
21528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21529         successful sigaction call.
21530         Reported by Tom G. Christensen.
21531
21532 2008-09-01  Bruno Haible  <bruno@clisp.org>
21533
21534         New module 'findprog-lgpl'.
21535         * modules/findprog-lgpl: New file.
21536         * lib/findprog-lgpl.c: New file.
21537         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21538         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21539         to decide whether to use strdup or xstrdup, concatenated_filename or
21540         xconcatenated_filename.
21541
21542 2008-09-01  Bruno Haible  <bruno@clisp.org>
21543
21544         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21545         'xconcat-filename' (GPL).
21546         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21547         (License): Change to LGPLv2+.
21548         * modules/xconcat-filename: New file.
21549         * lib/concat-filename.h (concatenated_filename): Change specification.
21550         (xconcatenated_filename): New declaration.
21551         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21552         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21553         memory situations.
21554         * lib/xconcat-filename.c: New file.
21555         * NEWS: Mention the change.
21556         * lib/findprog.c: Include concat-filename.h, not filename.h.
21557         (find_in_path): Use xconcatenated_filename instead of
21558         concatenated_filename.
21559         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21560         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21561         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21562         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21563         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21564         instead of concatenated_filename.
21565         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21566         (execute_java_class): Use xconcatenated_filename instead of
21567         concatenated_filename.
21568         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21569         * modules/javacomp (Depends-on): Likewise.
21570         * modules/javaexec (Depends-on): Likewise.
21571
21572 2008-09-01  Bruno Haible  <bruno@clisp.org>
21573
21574         Split module 'filename' into 'filename' and 'concat-filename'.
21575         * modules/filename: Keep only lib/filename.h.
21576         (License): Change to LGPLv2+.
21577         * modules/concat-filename: New file, extracted from modules/filename.
21578         * lib/filename.h (concatenated_filename): Remove declaration.
21579         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21580         * lib/concat-filename.c: Include concat-filename.h.
21581         * NEWS: Mention the change.
21582
21583 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21584
21585         * lib/bitrotate.h (rotl8, rotr8): Add.
21586
21587         * modules/bitrotate (configure.ac): Need
21588         AC_REQUIRE([AC_C_INLINE]).
21589         (Description): Mention stdint.h.  Reported by Bruno Haible
21590         <bruno@clisp.org>.
21591
21592         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21593         Paolo Bonzini <bonzini@gnu.org>.
21594
21595 2008-08-31  Bruno Haible  <bruno@clisp.org>
21596
21597         Assume Solaris specific bi-arch conventions on Solaris systems.
21598         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21599         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21600         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21601         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21602         like acl_libdirstem.
21603         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21604         acl_libdirstem.
21605         * NEWS: Mention the change.
21606         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21607
21608 2008-08-31  Jim Meyering  <meyering@redhat.com>
21609
21610         * lib/strftime.h: Add comments describing the two added arguments.
21611
21612         remove duplicate #include directives
21613         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21614         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21615
21616 2008-08-31  Bruno Haible  <bruno@clisp.org>
21617
21618         New module 'sigpipe-die'.
21619         * modules/sigpipe-die: New file.
21620         * lib/sigpipe-die.h: New file.
21621         * lib/sigpipe-die.c: New file.
21622         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21623
21624 2008-08-31  Bruno Haible  <bruno@clisp.org>
21625
21626         Don't override previously installed signal handlers.
21627         * lib/fatal-signal.c (saved_sigactions): New variable.
21628         (uninstall_handlers): Reset the signal to the saved handler, not
21629         to SIG_DFL (except when ignored).
21630         (install_handlers): Save the previous handlers.
21631
21632 2008-08-30  Bruno Haible  <bruno@clisp.org>
21633
21634         * gnulib-tool (func_reset_sigpipe): New function.
21635         (func_get_automake_snippet, func_modules_transitive_closure,
21636         func_import): Invoke it before a join command that reads from stdin,
21637         to avoid "echo: write error: Broken pipe" error messages on stderr.
21638         Reported by Sam Steingold <sds@gnu.org>.
21639
21640 2008-08-30  Bruno Haible  <bruno@clisp.org>
21641
21642         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21643         Code copied from m4/open.m4.
21644         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21645         access and the filename ends in a slash. Code copied from lib/open.c.
21646         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21647         * tests/test-fopen.c (main): Check against bug with trailing slash.
21648
21649 2008-08-29  Bruno Haible  <bruno@clisp.org>
21650
21651         Avoid some "gcc -pedantic" warnings.
21652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21653         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21654         * lib/dirent.in.h: Likewise.
21655         * lib/fcntl.in.h: Likewise.
21656         * lib/float.in.h: Likewise.
21657         * lib/iconv.in.h: Likewise.
21658         * lib/inttypes.in.h: Likewise.
21659         * lib/locale.in.h: Likewise.
21660         * lib/math.in.h: Likewise.
21661         * lib/netinet_in.in.h: Likewise.
21662         * lib/search.in.h: Likewise.
21663         * lib/signal.in.h: Likewise.
21664         * lib/stdarg.in.h: Likewise.
21665         * lib/stdint.in.h: Likewise.
21666         * lib/stdio.in.h: Likewise.
21667         * lib/stdlib.in.h: Likewise.
21668         * lib/string.in.h: Likewise.
21669         * lib/strings.in.h: Likewise.
21670         * lib/sys_select.in.h: Likewise.
21671         * lib/sys_socket.in.h: Likewise.
21672         * lib/sys_stat.in.h: Likewise.
21673         * lib/sys_time.in.h: Likewise.
21674         * lib/sysexits.in.h: Likewise.
21675         * lib/time.in.h: Likewise.
21676         * lib/unistd.in.h: Likewise.
21677         * lib/wchar.in.h: Likewise.
21678         * lib/wctype.in.h: Likewise.
21679         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21680         * modules/fchdir (Makefile.am): Likewise.
21681         * modules/fcntl (Makefile.am): Likewise.
21682         * modules/float (Makefile.am): Likewise.
21683         * modules/iconv_open (Makefile.am): Likewise.
21684         * modules/inttypes (Makefile.am): Likewise.
21685         * modules/locale (Makefile.am): Likewise.
21686         * modules/math (Makefile.am): Likewise.
21687         * modules/netinet_in (Makefile.am): Likewise.
21688         * modules/search (Makefile.am): Likewise.
21689         * modules/signal (Makefile.am): Likewise.
21690         * modules/stdarg (Makefile.am): Likewise.
21691         * modules/stdint (Makefile.am): Likewise.
21692         * modules/stdio (Makefile.am): Likewise.
21693         * modules/stdlib (Makefile.am): Likewise.
21694         * modules/string (Makefile.am): Likewise.
21695         * modules/strings (Makefile.am): Likewise.
21696         * modules/sys_select (Makefile.am): Likewise.
21697         * modules/sys_socket (Makefile.am): Likewise.
21698         * modules/sys_stat (Makefile.am): Likewise.
21699         * modules/sys_time (Makefile.am): Likewise.
21700         * modules/sysexits (Makefile.am): Likewise.
21701         * modules/time (Makefile.am): Likewise.
21702         * modules/unistd (Makefile.am): Likewise.
21703         * modules/wchar (Makefile.am): Likewise.
21704         * modules/wctype (Makefile.am): Likewise.
21705         Reported by Reuben Thomas <rrt@sc3d.org>.
21706
21707 2008-08-29  Bruno Haible  <bruno@clisp.org>
21708
21709         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21710         any more.
21711
21712 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21713
21714         * MODULES.html.sh (Misc): Add bitrotate.
21715
21716         * modules/bitrotate: New file.
21717
21718         * lib/bitrotate.h: New file.
21719
21720         * modules/bitrotate-tests: New file.
21721
21722         * tests/test-bitrotate.c: New file.
21723
21724         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21725         on the bitrotate module.
21726
21727         * lib/arctwo.c: Use new bitrotate module.
21728
21729 2008-08-29  Jim Meyering  <meyering@redhat.com>
21730
21731         bootstrap: merge changes from coreutils
21732         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21733         of copied files.  Remove a kludge, now that this is fixed.
21734         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21735         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21736         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21737
21738 2008-08-29  Bruno Haible  <bruno@clisp.org>
21739
21740         * MODULES.html.sh: Remove --cvs-urls option.
21741
21742 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21743
21744         maint.mk: adjust to file name change
21745         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21746
21747 2008-08-28  Jim Meyering  <meyering@redhat.com>
21748
21749         * modules/getndelim2 (License): Relicense to LGPLv2+.
21750         Approved by Richard Stallman for the version of 1995, and by
21751         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21752
21753 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21754
21755         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21756         dummy if one is not available.  Do not touch them if
21757         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21758         (getc_maybe_unlocked): New.
21759         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21760
21761 2008-08-26  Eric Blake  <ebb9@byu.net>
21762
21763         doc/INSTALL: resync from autoconf
21764         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21765         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21766         moving...
21767         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21768         * INSTALL: Regenerate.
21769         * INSTALL.ISO: New file.
21770         * INSTALL.UTF-8: Likewise.
21771
21772 2008-08-26  Jim Meyering  <meyering@redhat.com>
21773
21774         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21775         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21776         these definitions conditional, so that they may be overridden, too.
21777
21778 2008-08-26  Bruno Haible  <bruno@clisp.org>
21779
21780         Generate INSTALL file variants with prettier quotes.
21781         * doc/Makefile (INSTALL_PRELUDE): New macro.
21782         (INSTALL): Use it.
21783         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21784
21785 2008-08-26  Bruno Haible  <bruno@clisp.org>
21786
21787         Run makeinfo in an English locale.
21788         * doc/Makefile (MAKEINFO): New variable.
21789
21790 2008-08-26  Bruno Haible  <bruno@clisp.org>
21791
21792         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21793         Suggested by Eric Blake.
21794
21795 2008-08-25  Bruno Haible  <bruno@clisp.org>
21796
21797         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21798
21799 2008-08-25  Eric Blake  <ebb9@byu.net>
21800
21801         c-stack: test that stack overflow can be caught
21802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21803         that platform allows handling stack overflow; at least OS/2 EMX
21804         has sigaltstack, but crashes before transferring control to
21805         handler on stack overflow.
21806         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21807         check for HAVE_STACK_OVERFLOW_HANDLING.
21808         Reported by Elbert Pol.
21809
21810 2008-08-25  Bruno Haible  <bruno@clisp.org>
21811
21812         * doc/posix-functions/strftime.texi: Fix description of strftime
21813         module.
21814
21815 2008-08-24  Bruno Haible  <bruno@clisp.org>
21816
21817         * tests/uniwidth/test-uc_width2.c: New file.
21818         * tests/uniwidth/test-uc_width2.sh: New file.
21819         * modules/uniwidth/width-tests (Files): Add the new files.
21820         (TESTS): Add uniwidth/test-uc_width2.sh.
21821         (TESTS_ENVIRONMENT): New variable.
21822         (check_PROGRAMS): Add test-uc_width2.
21823         (test_uc_width2_SOURCES): New variable.
21824
21825         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21826         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21827         not 0x00AB.
21828         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21829
21830 2008-08-22  Eric Blake  <ebb9@byu.net>
21831
21832         test-lock, test-tls: mention why a test is skipped
21833         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21834         skipped.
21835         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21836
21837         count-one-bits: relax license
21838         * modules/count-one-bits (License): Relicense to LGPLv2+.
21839         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21840
21841 2008-08-22  Andreas Schwab  <schwab@suse.de>
21842
21843         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21844         Remove spurious space in assignment.
21845
21846 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21847
21848         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21849         Paul Eggert <eggert@CS.UCLA.EDU>.
21850
21851 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21852
21853         * modules/gettext: Add m4/threadlib.m4.
21854
21855 2008-08-19  Eric Blake  <ebb9@byu.net>
21856
21857         test-c-stack: fix compilation failure on FreeBSD 5.0
21858         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21859         headers before <sys/resource.h>.
21860         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21861         the bug.
21862         Reported by Nelson H. F. Beebe.
21863
21864         strverscmp: migrate from "strverscmp.h" to <string.h>
21865         * modules/string (Makefile.am): Add new hooks.
21866         * modules/strverscmp (Files): Remove strverscmp.h.
21867         (Depends-on): Add string.
21868         (configure.ac): Add indicator.
21869         (Include): Mention new header.
21870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21871         defaults.
21872         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21873         results.
21874         * lib/strverscmp.h: Delete.
21875         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21876         * tests/test-strverscmp.c (includes): Adjust client.
21877         * lib/check-version.c (includes): Likewise.
21878         * NEWS: Document the change.
21879
21880         strverscmp: add unit test
21881         * modules/strverscmp-tests: New file.
21882         * tests/test-strverscmp.c: Likewise.
21883
21884 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21885
21886         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21887         regarding Windows crypto stuff, from Mono.
21888
21889 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21890
21891         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21892         if present, for intel RND.  Return error on failures.
21893
21894 2008-08-18  Ben Pfaff  <blp@gnu.org>
21895
21896         gitlog-to-changelog: give better diagnostic for failed pipe-open
21897         * build-aux/gitlog-to-changelog: Improve error message: suggest
21898         that the version of Git may be too old.
21899
21900 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21901
21902         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21903         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21904
21905 2008-08-18  Bruno Haible  <bruno@clisp.org>
21906
21907         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21908         pthread_in_use().
21909
21910 2008-08-18  Bruno Haible  <bruno@clisp.org>
21911
21912         * lib/glthread/threadlib.c: Include <pthread.h>.
21913
21914 2008-08-18  Bruno Haible  <bruno@clisp.org>
21915
21916         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21917         glthread_recursive_lock_* macros.
21918         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21919         Fix syntax error.
21920
21921 2008-08-18  Bruno Haible  <bruno@clisp.org>
21922
21923         * lib/glthread/thread.c: Avoid forcing a context switch right after
21924         thread creation.
21925
21926 2008-08-17  Bruno Haible  <bruno@clisp.org>
21927
21928         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21929         * lib/glthread/thread.h: Provide Win32 specific implementation.
21930         * modules/thread (Files): Add lib/glthread/thread.c.
21931         (Depends-on): Add lock.
21932         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21933
21934 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21935
21936         New module 'yield'.
21937         * modules/yield: New file.
21938         * lib/glthread/yield.h: New file.
21939         * m4/yield.m4: New file.
21940         * MODULES.html.sh (Multithreading): Add yield.
21941
21942 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21943
21944         New module 'thread'.
21945         * modules/thread: New file.
21946         * lib/glthread/thread.h: New file.
21947         * m4/thread.m4: New file.
21948         * MODULES.html.sh (Multithreading): Add thread.
21949
21950 2008-08-17  Bruno Haible  <bruno@clisp.org>
21951
21952         * lib/glthread/lock.h: Include <stdlib.h> always.
21953         * lib/glthread/tls.h: Likewise.
21954         * lib/glthread/cond.h: Likewise.
21955
21956 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21957
21958         New module 'cond'.
21959         * modules/cond: New file.
21960         * lib/glthread/cond.h: New file.
21961         * lib/glthread/cond.c: New file.
21962         * m4/cond.m4: New file.
21963         * MODULES.html.sh (Multithreading): Add cond.
21964
21965 2008-08-16  Eric Blake  <ebb9@byu.net>
21966
21967         c-stack: fix regression on Irix 5.3 from 2008-06-21
21968         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21969         sa_sigaction...
21970         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21971         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21972         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21973         * modules/signal (Makefile.am): Use the value.
21974         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21975         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21976         * doc/posix-headers/signal.texi (signal.h): Document this
21977         portability issue.
21978         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21979         Reported by Tom G. Christensen.
21980
21981 2008-08-17  Bruno Haible  <bruno@clisp.org>
21982
21983         New module 'threadlib'.
21984         * modules/threadlib: New file.
21985         * lib/glthread/threadlib.c: New file, extracted from
21986         lib/glthread/lock.c.
21987         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21988         functions.
21989         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21990         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21991         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21992         macros.
21993         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21994         (gl_DISABLE_THREADS): Remove macro.
21995         * modules/lock (Files): Remove build-aux/config.rpath.
21996         (Depends-on): Remove havelib. Add threadlib.
21997         (configure.ac-early): Remove section.
21998         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21999         * modules/tls (Depends-on): Remove lock. Add threadlib.
22000         (Link): New section, copied from threadlib.
22001         * MODULES.html.sh (Multithreading): Add threadlib.
22002
22003 2008-08-14  Bruno Haible  <bruno@clisp.org>
22004
22005         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22006         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22007         glthread_rwlock_unlock, glthread_rwlock_destroy,
22008         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22009         glthread_recursive_lock_destroy): Define as macros always.
22010         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22011         glthread_lock_lock.
22012         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22013         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22014         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22015         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22016         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22017         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22018         (glthread_recursive_lock_lock_func): Renamed from
22019         glthread_recursive_lock_lock.
22020         (glthread_recursive_lock_unlock_func): Renamed from
22021         glthread_recursive_lock_unlock.
22022         (glthread_recursive_lock_destroy_func): Renamed from
22023         glthread_recursive_lock_destroy.
22024
22025 2008-08-14  Bruno Haible  <bruno@clisp.org>
22026
22027         * lib/glthread/lock.h: Renamed from lib/lock.h.
22028         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22029         * lib/glthread/tls.h: Renamed from lib/tls.h.
22030         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22031         * lib/fstrcmp.c: Update includes.
22032         * lib/strsignal.c: Update includes.
22033         * modules/lock (Files, Makefile.am): Update.
22034         (Include): Change to "glthread/lock.h".
22035         * modules/tls (Files, Makefile.am): Update.
22036         (Include): Change to "glthread/tls.h".
22037         * tests/test-lock.c: Update includes.
22038         * tests/test-tls.c: Update includes.
22039         * NEWS: Mention the renamed header files.
22040
22041 2008-08-11  Jim Meyering  <meyering@redhat.com>
22042
22043         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22044
22045 2008-08-11  Eric Blake  <ebb9@byu.net>
22046
22047         test-c-stack: avoid C99-ism
22048         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22049         before statement.
22050         Reported by Alain Guibert.
22051
22052 2008-08-10  Jim Meyering  <meyering@redhat.com>
22053
22054         ensure that return value of uinttostr et al are not ignored
22055         * lib/inttostr.h (__GNUC_PREREQ): Define.
22056         (__attribute_warn_unused_result__): Define.
22057         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22058
22059 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22060
22061         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22062         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22063
22064 2008-08-07  Jim Meyering  <meyering@redhat.com>
22065
22066         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22067
22068         * modules/mkstemp (License): Relicense under LGPLv2+.
22069         * modules/tempname (License): Likewise.
22070
22071 2008-08-06  Bruno Haible  <bruno@clisp.org>
22072
22073         * lib/poll.c (poll): Further micro-optimization.
22074
22075 2008-08-06  Jim Meyering  <meyering@redhat.com>
22076
22077         inet_pton.c: use locale-independent tolower
22078         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22079         (inet_pton6): Use c_tolower rather than tolower.
22080         * modules/inet_pton (Depends-on): Add c-ctype.
22081
22082 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22083
22084         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22085         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22086
22087 2008-08-06  Jim Meyering  <meyering@redhat.com>
22088
22089         * modules/inet_pton (License): Relicense under LGPLv2+.
22090
22091 2008-08-03  Bruno Haible  <bruno@clisp.org>
22092
22093         Additional non-aborting API for lock and tls.
22094         * lib/lock.h: Include <errno.h>.
22095         (glthread_lock_init): New macro/function.
22096         (gl_lock_init): Define as wrapper around glthread_lock_init.
22097         (glthread_lock_lock): New macro/function.
22098         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22099         (glthread_lock_unlock): New macro/function.
22100         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22101         (glthread_lock_destroy): New macro/function.
22102         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22103         (glthread_rwlock_init): New macro/function.
22104         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22105         (glthread_rwlock_rdlock): New macro/function.
22106         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22107         (glthread_rwlock_wrlock): New macro/function.
22108         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22109         (glthread_rwlock_unlock): New macro/function.
22110         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22111         (glthread_rwlock_destroy): New macro/function.
22112         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22113         (glthread_recursive_lock_init): New macro/function.
22114         (gl_recursive_lock_init): Define as wrapper around
22115         glthread_recursive_lock_init.
22116         (glthread_recursive_lock_lock): New macro/function.
22117         (gl_recursive_lock_lock): Define as wrapper around
22118         glthread_recursive_lock_lock.
22119         (glthread_recursive_lock_unlock): New macro/function.
22120         (gl_recursive_lock_unlock): Define as wrapper around
22121         glthread_recursive_lock_unlock.
22122         (glthread_recursive_lock_destroy): New macro/function.
22123         (gl_recursive_lock_destroy): Define as wrapper around
22124         glthread_recursive_lock_destroy.
22125         (glthread_once): New macro/function.
22126         (gl_once): Define as wrapper around glthread_once.
22127         Update function declarations.
22128         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22129         glthread_rwlock_init. Return error code.
22130         (glthread_rwlock_rdlock_multithreaded): Renamed from
22131         glthread_rwlock_rdlock. Return error code.
22132         (glthread_rwlock_wrlock_multithreaded): Renamed from
22133         glthread_rwlock_wrlock. Return error code.
22134         (glthread_rwlock_unlock_multithreaded): Renamed from
22135         glthread_rwlock_unlock. Return error code.
22136         (glthread_rwlock_destroy_multithreaded): Renamed from
22137         glthread_rwlock_destroy. Return error code.
22138         (glthread_recursive_lock_init_multithreaded): Renamed from
22139         glthread_recursive_lock_init. Return error code.
22140         (glthread_recursive_lock_lock_multithreaded): Renamed from
22141         glthread_recursive_lock_lock. Return error code.
22142         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22143         glthread_recursive_lock_unlock. Return error code.
22144         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22145         glthread_recursive_lock_destroy. Return error code.
22146         (glthread_once_call): Make static.
22147         (glthread_once_multithreaded): Renamed from glthread_once.
22148         * lib/tls.h: Include <errno.h>.
22149         (glthread_tls_key_init): New macro/function.
22150         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22151         (glthread_tls_set): New macro/function.
22152         (gl_tls_set): Define as wrapper around glthread_tls_set.
22153         (glthread_tls_key_destroy): New macro/function.
22154         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22155         Update function declarations.
22156         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22157         glthread_tls_get.
22158         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22159
22160 2008-08-04  Eric Blake  <ebb9@byu.net>
22161
22162         gnumakefile: use space, not TAB, outside of targets
22163         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22164
22165 2008-08-02  Jim Meyering  <meyering@redhat.com>
22166
22167         getdate.y: avoid locale-dependent date parsing failure
22168         In Turkish locales, getdate would fail to recognize keywords
22169         containing a lowercase "i".  The solution is not to rely on
22170         locale-sensitive case-conversion.
22171         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22172         (lookup_word): Use c_toupper in place of toupper.
22173         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22174         Reported by Vefa Bicakci <bicave@superonline.com> in
22175         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22176         * modules/getdate (Depends-on): Add c-ctype.
22177
22178 2008-08-02  Bruno Haible  <bruno@clisp.org>
22179
22180         * gnulib-tool (func_import): When updating or creating a .gitignore
22181         file, prepend each added line with a slash, and ignore leading slashes
22182         from the existing lines.
22183         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22184
22185 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22186
22187         Portability fix for GNU make 3.79.1.
22188         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22189         versions do not understand.
22190
22191 2008-08-01  Bruno Haible  <bruno@clisp.org>
22192
22193         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22194         * tests/test-isnanf.h (zero): New variable.
22195         (main): Avoid literal -0.0f.
22196         * tests/test-isnand.h (zero): New variable.
22197         (main): Avoid literal -0.0.
22198         * tests/test-isnanl.h (zero): New variable.
22199         (main): Avoid literal -0.0L.
22200         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22201         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22202         -0.0, -0.0L.
22203         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22204         (test_signbitd): Avoid literal -0.0.
22205         (test_signbitl): Avoid literal -0.0L.
22206         * tests/test-ceilf1.c (zero): New variable.
22207         (main): Avoid literal -0.0f.
22208         * tests/test-ceill.c (zero): New variable.
22209         (main): Avoid literal -0.0L.
22210         * tests/test-floorf1.c (zero): New variable.
22211         (main): Avoid literal -0.0f.
22212         * tests/test-floorl.c (zero): New variable.
22213         (main): Avoid literal -0.0L.
22214         * tests/test-roundf1.c (zero): New variable.
22215         (main): Avoid literal -0.0f.
22216         * tests/test-round1.c (zero): New variable.
22217         (main): Avoid literal -0.0.
22218         * tests/test-roundl.c (zero): New variable.
22219         (main): Avoid literal -0.0L.
22220         * tests/test-truncf1.c (zero): New variable.
22221         (main): Avoid literal -0.0f.
22222         * tests/test-trunc1.c (zero): New variable.
22223         (main): Avoid literal -0.0.
22224         * tests/test-truncl.c (zero): New variable.
22225         (main): Avoid literal -0.0L.
22226         * tests/test-frexp.c (zero): New variable.
22227         (main): Avoid literal -0.0.
22228         * tests/test-frexpl.c (zero): New variable.
22229         (main): Avoid literal -0.0L.
22230         * tests/test-ldexpl.c (zero): New variable.
22231         (main): Avoid literal -0.0L.
22232         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22233         (zerod, zerol): New variables.
22234         (test_function): Avoid literals -0.0, -0.0L.
22235         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22236         (zerod, zerol): New variables.
22237         (test_function): Avoid literals -0.0, -0.0L.
22238         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22239         (zerod, zerol): New variables.
22240         (test_function): Avoid literals -0.0, -0.0L.
22241         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22242         (zerod, zerol): New variables.
22243         (test_function): Avoid literals -0.0, -0.0L.
22244         * tests/test-strtod.c (zero): New variable.
22245         (main): Avoid literal -0.0.
22246         Reported by Jonathan C. Patschke <jp@centtech.com>.
22247
22248 2008-07-31  Jim Meyering  <meyering@redhat.com>
22249
22250         sha256.h: correct definition of SHA224_DIGEST_SIZE
22251         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22252         Reported by Paulie Pena IV <paulie4@gmail.com>.
22253         Define as 224 / 8, rather than as a literal.
22254         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22255         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22256         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22257
22258 2008-07-31  Bruno Haible  <bruno@clisp.org>
22259
22260         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22261         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22262         Reported by Jonathan Patschke <jp@centtech.com>.
22263
22264 2008-07-31  Bruno Haible  <bruno@clisp.org>
22265
22266         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22267         Reported by Paolo Bonzini <bonzini@gnu.org>.
22268
22269 2008-07-30  Eric Blake  <ebb9@byu.net>
22270
22271         test-strtod: allow compilation without -lm
22272         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22273         Reported by Dennis Clarke <blastwave@gmail.com>.
22274
22275 2008-07-28  Jim Meyering  <meyering@redhat.com>
22276
22277         bootstrap: work also when there are no .po files in po/
22278         * build-aux/bootstrap (update_po_files): Complete the change
22279         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22280
22281 2008-07-27  Jim Meyering  <meyering@redhat.com>
22282
22283         * users.txt: Add zile.
22284
22285 2008-07-26  Ben Pfaff  <blp@gnu.org>
22286
22287         Add missing dependencies on new m4/exponent[fdl].m4 files.
22288         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22289         * modules/isnand-nolibm: Add m4/exponentd.m4.
22290         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22291         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22292         m4/isnan[fdl].m4, because the macros actually used moved.
22293         Reported by Jim Meyering.
22294
22295 2008-07-14  Ben Pfaff  <blp@gnu.org>
22296
22297         Add isinf module.
22298         * lib/isinf.c: New file.
22299         * lib/math.in.h: Define isinf macro if we have decided to replace
22300         it.
22301         * m4/isinf.m4: New file.
22302         * m4/math_h.m4: Initialize and substitute variables for isinf
22303         module.
22304         * modules/isinf: New file.
22305         * modules/isinf-tests: New file.
22306         * modules/math: Add substitutions for new module.
22307         * tests/test-isinf.c: New file.
22308         * doc/posix-functions/isinf.texi: Mention new module.
22309         * MODULES.html.sh: Mention new module.
22310
22311 2008-07-14  Ben Pfaff  <blp@gnu.org>
22312
22313         Factor out some macros for use by additional modules.
22314         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22315         exponentf.m4.
22316         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22317         exponentd.m4.
22318         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22319         file exponentl.m4.
22320         * m4/exponentf.m4: New file.
22321         * m4/exponentd.m4: New file.
22322         * m4/exponentl.m4: New file.
22323         * modules/isnanf: Use new file m4/exponentf.m4.
22324         * modules/isnand: Use new file m4/exponentd.m4.
22325         * modules/isnanl: Use new file m4/exponentl.m4.
22326
22327 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22328
22329         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22330         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22331         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22332         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22333
22334         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22335         readlink on platforms without PATH_MAX.
22336
22337 2008-07-21  Eric Blake  <ebb9@byu.net>
22338
22339         Warn, not fail, on stale version.
22340         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22341
22342         Don't allow installation with stale devel version number.
22343         * top/GNUmakefile (_is-install-target): New macro.
22344         (_curr-ver): Forbid installation with stale version number.
22345
22346 2008-07-20  Bruno Haible  <bruno@clisp.org>
22347
22348         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22349         TESTS_ENVIRONMENT.
22350         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22351
22352 2008-07-20  Bruno Haible  <bruno@clisp.org>
22353
22354         * lib/c-stack.h (c_stack_action): Add documentation.
22355         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22356
22357 2008-07-20  Bruno Haible  <bruno@clisp.org>
22358
22359         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22360         * modules/readlink (License): Likewise.
22361
22362 2008-07-17  Eric Blake  <ebb9@byu.net>
22363
22364         * modules/c-stack (Link): Fix typo.
22365
22366         Make c-stack use libsigsegv, when available.
22367         * modules/c-stack (Depends-on): Add libsigsegv.
22368         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22369         needed.
22370         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22371         (segv_handler, overflow_handler, c_stack_action)
22372         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22373         implementation when libsigsegv is available, but only when using
22374         the library is necessary.
22375         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22376         comment, explaining why XSI check fails on Linux.
22377         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22378         * tests/test-c-stack2.sh: Tweak skip message.
22379         * NEWS: Document new link-time requirements.
22380
22381 2008-07-16  Eric Blake  <ebb9@byu.net>
22382
22383         c-stack: Expose false positives when not using libsigsegv.
22384         * modules/c-stack-tests (Files): Expand test.
22385         * tests/test-c-stack.c (main): Add means to conditionally trigger
22386         non-overflow SIGSEGV.
22387         * tests/test-c-stack2.sh: New file.
22388
22389 2008-07-14  Bruno Haible  <bruno@clisp.org>
22390
22391         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22392         Reported by Eric Blake.
22393
22394 2008-07-14  Sam Steingold  <sds@gnu.org>
22395             Bruno Haible  <bruno@clisp.org>
22396
22397         New module libsigsegv.
22398         * modules/libsigsegv: New file.
22399         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22400         modifications.
22401         * MODULES.html.sh (Signal handling): New section.
22402
22403 2008-07-14  Bruno Haible  <bruno@clisp.org>
22404
22405         * modules/unictype/ctype-* (Description): Add the word "function".
22406         Improves the resulting doc in MODULES.html.
22407
22408 2008-07-12  Ben Pfaff  <blp@gnu.org>
22409
22410         Add longlong module.
22411         * modules/longlong: New file.
22412
22413 2008-07-12  Bruno Haible  <bruno@clisp.org>
22414
22415         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22416         to empty.
22417
22418 2008-07-10  Ben Pfaff  <blp@gnu.org>
22419
22420         Add isnan module.
22421         * doc/posix-functions/isnan.texi: Mention new module.
22422         * lib/math.in.h: Define isnan macro if we have decided to replace
22423         it.
22424         * m4/isnan.m4: New file.
22425         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22426         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22427         also.
22428         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22429         redundancy.
22430         * m4/math_h.m4: Initialize and substitute variables for isnan
22431         module.
22432         * modules/isnan: New file.
22433         * modules/isnan-tests: New file.
22434         * modules/math: Add substitutions for new module.
22435         * tests/test-isnan.c: New file.
22436         * MODULES.html.sh: Mention new module.
22437
22438 2008-07-10  Ben Pfaff  <blp@gnu.org>
22439
22440         Add isnanf module.
22441         * lib/isnanf.m4: New file.
22442         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22443         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22444         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22445         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22446         * modules/isnanf: New file.
22447         * modules/isnanf-tests: New file.
22448         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22449         files.
22450         * tests/test-isnanf-nolibm.c: factored most of its contents into
22451         new file tests/test-isnanf.h.
22452         * tests/test-isnanf.h: New file.
22453         * tests/test-isnanf.c: New file.
22454         * MODULES.html.sh: Mention new module.
22455         * doc/glibc-functions/isnanf.texi: Mention new module.
22456
22457 2008-07-10  Ben Pfaff  <blp@gnu.org>
22458
22459         Add isnand module.
22460         * lib/isnand.h: New file.
22461         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22462         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22463         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22464         functionality also.
22465         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22466         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22467         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22468         * modules/isnand: New file.
22469         * modules/isnand-tests: New file.
22470         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22471         files.
22472         * tests/test-isnand-nolibm.c: factored most of its contents into
22473         new file tests/test-isnand.h.
22474         * tests/test-isnand.h: New file.
22475         * tests/test-isnand.c: New file.
22476         * MODULES.html.sh: Mention new module.
22477
22478 2008-07-10  Ben Pfaff  <blp@gnu.org>
22479
22480         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22481         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22482         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22483         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22484         * modules/isnanf-nolibm: Update references to renamed files.
22485         * modules/isnand-nolibm: Likewise.
22486         * modules/isnanf-nolibm-tests: Likewise.
22487         * modules/isnand-nolibm-tests: Likewise.
22488         * lib/frexp.c: Likewise.
22489         * lib/isfinite.c: Likewise.
22490         * lib/signbitd.c: Likewise.
22491         * lib/signbitf.c: Likewise.
22492         * lib/vasnprintf.c: Likewise.
22493         * tests/test-ceilf1.c: Likewise.
22494         * tests/test-ceilf2.c: Likewise.
22495         * tests/test-floorf1.c: Likewise.
22496         * tests/test-floorf2.c: Likewise.
22497         * tests/test-frexp.c: Likewise.
22498         * tests/test-round1.c: Likewise.
22499         * tests/test-round2.c: Likewise.
22500         * tests/test-roundf1.c: Likewise.
22501         * tests/test-strtod.c: Likewise.
22502         * tests/test-trunc1.c: Likewise.
22503         * tests/test-trunc2.c: Likewise.
22504         * tests/test-truncf1.c: Likewise.
22505         * tests/test-truncf2.c: Likewise.
22506         * NEWS: Mention the renamed header files.
22507
22508 2008-07-11  Jim Meyering  <meyering@redhat.com>
22509
22510         vc-list-files: make the last-resort awk code more portable
22511         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22512         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22513         does not support it.
22514
22515 2008-07-10  Eric Blake  <ebb9@byu.net>
22516
22517         Work with tar's bootstrap.
22518         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22519         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22520         an m4 comment.
22521
22522 2008-07-09  Jim Meyering  <meyering@redhat.com>
22523
22524         posix-shell.m4: fix typo that made this test malfunction
22525         * m4/posix-shell.m4: Remove capitalization in variable name.
22526
22527 2008-07-08  Bruno Haible  <bruno@clisp.org>
22528
22529         * m4/onceonly.m4: Update comments.
22530         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22531
22532 2008-07-04  Jim Meyering  <meyering@redhat.com>
22533
22534         * users.txt: Add vc-dwim.
22535         (bison, coreutils): Use the gitweb URL.
22536
22537 2008-07-03  Jim Meyering  <meyering@redhat.com>
22538
22539         * users.txt: Add libffcall.  From Sam Steingold.
22540
22541 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
22542
22543         getdate.y: do not ignore TZ with relative day, month or year offset
22544         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22545         relative-date-handling, since otherwise, the latter would clobber the
22546         sole output (an updated Start value) of the tz-handling block.
22547         * tests/test-getdate.c: Tests for the fix
22548
22549 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22550
22551         Recognize 'foo_LIBRARIES += libgnu.a'.
22552         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22553         makefile snippet has already specified an installation location,
22554         also using '+='.
22555
22556 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
22557
22558         getdate.y: factor out common actions
22559         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22560         Use them in place of open-coded actions.
22561
22562 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22563
22564         Add self-test for getdate module.
22565         * modules/getdate-tests: New file.
22566         * tests/test-getdate.c: New file.
22567
22568 2008-06-29  Bruno Haible  <bruno@clisp.org>
22569
22570         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22571         .gitignore.
22572         Reported by Sylvain Beucler <beuc@beuc.net>.
22573
22574 2008-06-29  Bruno Haible  <bruno@clisp.org>
22575
22576         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22577         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22578
22579 2008-06-29  Bruno Haible  <bruno@clisp.org>
22580
22581         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22582         EXTRA_DIST.
22583         Reported by Sylvain Beucler <beuc@beuc.net>.
22584
22585 2008-06-26  Jim Meyering  <meyering@redhat.com>
22586
22587         make several modules depend on the "open" module
22588         This provides slightly increased consistency when opening-for-write
22589         the name of a non-directory spelled with a trailing slash.
22590         * modules/chdir-safer: Likewise.
22591         * modules/chown: Likewise.
22592         * modules/clean-temp: Likewise.
22593         * modules/copy-file: Likewise.
22594         * modules/fchdir: Likewise.
22595         * modules/fcntl-safer: Likewise.
22596         * modules/pipe: Likewise.
22597         * modules/utime: Likewise.
22598         Prompted by Eric Blake and Bruno Haible.
22599
22600 2008-06-24  Andreas Schwab  <schwab@suse.de>
22601
22602         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22603         literals can be used as initializers for global variables.
22604
22605 2008-06-23  Eric Blake  <ebb9@byu.net>
22606
22607         Make gnulib-cache.m4 easier to diff.
22608         * gnulib-tool (func_import): Allow newlines when reading cached
22609         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22610
22611 2008-06-23  Bruno Haible  <bruno@clisp.org>
22612
22613         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22614         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22615         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22616         m4/signalblocking.m4.
22617         (gl_PREREQ_SIGACTION): Don't invoke it.
22618         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22619         gl_PREREQ_SIG_HANDLER_H.
22620         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22621         Don't check for sigaction here.
22622
22623 2008-06-23  Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22626         (install_handlers): Don't set the SA_RESETHAND flag.
22627
22628 2008-06-23  Bruno Haible  <bruno@clisp.org>
22629
22630         * m4/sigaction.m4: Comment fixes.
22631         * lib/signal.in.h: Likewise.
22632
22633 2008-06-23  Eric Blake  <ebb9@byu.net>
22634
22635         Fix typo.
22636         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22637
22638         Avoid SA_ namespace.
22639         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22640         Reported by Ralf Wildenhues.
22641
22642         Avoid test failure due to SA_RESTORER.
22643         * tests/test-sigaction.c (SA_MASK): New macro.
22644         (main): Avoid failing due to extension flags being set.
22645         Reported by Jim Meyering.
22646
22647         Revert use of sig-handler.h in sigprocmask.c.
22648         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22649         it requires the existence of struct sigaction.
22650         * lib/sigprocmask.c (handler_t): Restore typedef.
22651         (rpl_signal, old_handlers): Use local type.
22652
22653 2008-06-22  Bruno Haible  <bruno@clisp.org>
22654
22655         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22656         conditionally.
22657         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22658
22659 2008-06-22  Bruno Haible  <bruno@clisp.org>
22660
22661         * doc/posix-functions/siginterrupt.texi: Move note.
22662
22663         * lib/signal.in.h (SA_RESTART): New macro.
22664         * lib/sigaction.c: Update comment.
22665
22666         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22667
22668         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22669         (gl_PREREQ_SIGPROCMASK): Invoke it.
22670         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22671
22672         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22673
22674         * lib/sigprocmask.c: Update a comment.
22675
22676 2008-06-21  Eric Blake  <ebb9@byu.net>
22677
22678         Use sigaction module rather than signal().
22679         * modules/c-stack (Depends-on): Add sigaction.
22680         * modules/fatal-signal (Depends-on): Likewise.
22681         * modules/nanosleep (Depends-on): Likewise.
22682         * modules/sigprocmask (Files): Add sig-handler.h.
22683         * modules/sigaction (Files): Likewise.
22684         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22685         Eggert.
22686         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22687         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22688         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22689         (init_fatal_signals): Likewise.
22690         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22691         (siginterrupt): Delete fallback.
22692         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22693         instead.
22694         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22695         siginterrupt.
22696
22697         New module sigaction, for mingw.
22698         * modules/sigaction: New module...
22699         * modules/sigaction-tests: ...and its test.
22700         * m4/sigaction.m4: New file.
22701         * lib/sigaction.c: Likewise.
22702         * tests/test-sigaction.c: Likewise.
22703         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22704         * modules/signal (Makefile.am): Likewise.
22705         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22706         needed.
22707         * doc/posix-headers/signal.texi (signal.h): Mention provided
22708         types.
22709         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22710         that sigaction is preferable.
22711         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22712         module.
22713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22714         sigaction.
22715
22716         Improve robustness of sigprocmask by overriding signal.
22717         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22718         is in use.
22719         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22720         (SIGKILL, SIGSTOP): Provide fallbacks.
22721         (rpl_signal): Implement.
22722         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22723         signal can be called inside handlers.
22724
22725         Fix nanosleep module on mingw.
22726         * modules/nanosleep (Depends-on): Add sys_select.
22727         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22728
22729         Fix licensing of sigprocmask.
22730         * modules/raise (License): Relicense as LGPL.
22731
22732 2008-06-21  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22735         result if it contains question marks.
22736         Reported by Michael Geng <linux@michaelgeng.de>.
22737
22738 2008-06-19  Bruno Haible  <bruno@clisp.org>
22739
22740         Fix CVS-ism.
22741         * doc/gnulib.texi: Include updated-stamp.texi.
22742         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22743         (updated-stamp.texi): New rule.
22744         (gnulib.info): Depend on it.
22745         * doc/.gitignore: Add updated-stamp.texi.
22746         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22747
22748 2008-06-19  Bruno Haible  <bruno@clisp.org>
22749
22750         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22751         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22752
22753 2008-06-19  Eric Blake  <ebb9@byu.net>
22754
22755         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22756         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22757         Reported by Stepan Kasal.
22758
22759 2008-06-18  Bruno Haible  <bruno@clisp.org>
22760
22761         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22762         Reported by Eric Blake.
22763
22764 2008-06-18  Eric Blake  <ebb9@byu.net>
22765
22766         Work around cygwin 1.5.25 strsignal bug.
22767         * tests/test-strsignal.c: Allow for const char *.
22768         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22769
22770 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22771
22772         * users.txt: Update URL to article and add author/date
22773         information.
22774
22775 2008-06-17  Bruno Haible  <bruno@clisp.org>
22776
22777         New macro gl_DISABLE_THREADS.
22778         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22779         if the user did not pass --enable-threads or --disable-threads option.
22780         (gl_DISABLE_THREADS): New macro.
22781         Reported by Eric Blake <ebb9@byu.net>.
22782
22783 2008-06-17  Bruno Haible  <bruno@clisp.org>
22784
22785         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22786         when the macro ignores it.
22787         Based on a patch by Eric Blake <ebb9@byu.net>.
22788
22789 2008-06-17  Bruno Haible  <bruno@clisp.org>
22790
22791         * modules/tls (License): Change to LGPLv2+.
22792         Reported by Eric Blake.
22793
22794 2008-06-17  Eric Blake  <ebb9@byu.net>
22795
22796         Simplify c-stack prerequisites.
22797         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22799         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22800         check.
22801         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22802         <sys/resource.h>.
22803
22804         Move c-stack test into testsuite.
22805         * modules/c-stack-tests: New file.
22806         * lib/c-stack.c [DEBUG]: Move test program...
22807         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22808         fail test if sigaltstack is lacking.
22809         * tests/test-c-stack.sh: New driver file.
22810
22811 2008-06-16  Eric Blake  <ebb9@byu.net>
22812
22813         Use raise module consistently.
22814         * modules/fatal-signal (Depends-on): Add raise.
22815         * modules/sigprocmask (Depends-on): Likewise.
22816         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22817         * lib/sigprocmask.c (sigprocmask): Likewise.
22818         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22820
22821         Fix compliance bug in sigpending.
22822         * lib/sigprocmask.c (sigpending): Return pending array via
22823         parameter, not return value.
22824
22825 2008-06-14  Eric Blake  <ebb9@byu.net>
22826
22827         Improve obstack-printf test code.
22828         * tests/test-obstack-printf.c (test_function): Fix comment, and
22829         simplify usage of obstack_* in macros.  Add a test for coverage.
22830         Reported by Bruno Haible.
22831
22832 2008-06-14  Bruno Haible  <bruno@clisp.org>
22833
22834         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22835         array size as a constant, not as a const variable.
22836         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22837         AC_USE_SYSTEM_EXTENSIONS.
22838         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22839         Test whether the obstack_printf function actually exists.
22840         * modules/obstack-printf (Depends-on): Add extensions.
22841         (Include): Remove obstack.h.
22842         * modules/obstack-printf-posix (Depends-on): Add extensions.
22843         (Include): Remove obstack.h.
22844
22845 2008-06-13  Eric Blake  <ebb9@byu.net>
22846
22847         Add obstack-printf and obstack-printf-posix modules.
22848         * modules/obstack-printf: New file.
22849         * modules/obstack-printf-posix: Likewise.
22850         * MODULES.html.sh (Misc): Mention them.
22851         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22852         Likewise.
22853         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22854         Likewise.
22855         * modules/stdio (Makefile.am): Accomodate new modules.
22856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22857         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22858         Declare.
22859         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22860         functions.
22861         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22862         (gl_REPLACE_OBSTACK_PRINTF): New macros
22863         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22864         * tests/test-obstack-printf.c: New file.
22865         * modules/obstack-printf-tests: Likewise.
22866         * modules/obstack-printf-posix-tests: Likewise.
22867
22868 2008-06-11  Bruno Haible  <bruno@clisp.org>
22869
22870         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22871         * lib/open.c: Include errno.h.
22872         (open): Fail when attempting to write to a file that has a trailing
22873         slash.
22874         * tests/test-open.c (main): Test against trailing slash bug.
22875         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22876
22877 2008-06-10  Bruno Haible  <bruno@clisp.org>
22878
22879         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22880         for $? to work inside the trap command, with various /bin/sh-s.
22881         * tests/test-vc-list-files-cvs.sh: Likewise.
22882
22883 2008-06-10  Bruno Haible  <bruno@clisp.org>
22884
22885         * lib/acl-internal.h: Don't include gettext.h here.
22886         * lib/set-mode-acl.c: Include gettext.h here.
22887         * lib/copy-acl.c: Likewise.
22888
22889 2008-06-10  Bruno Haible  <bruno@clisp.org>
22890
22891         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22892         * lib/wait-process.c (wait_subprocess): Likewise.
22893         * lib/execute.h (execute): Add termsigp argument.
22894         * lib/execute.c (execute): Likewise.
22895         * lib/csharpcomp.c (compile_csharp_using_pnet,
22896         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22897         * lib/csharpexec.c (execute_csharp_using_pnet,
22898         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22899         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22900         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22901         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22902         is_jikes_present): Update.
22903         * lib/javaexec.c (execute_java_class): Update.
22904         * lib/javaversion.c (execute_and_read_line): Update.
22905         * NEWS: Document the changes.
22906         Reported by Eric Blake.
22907
22908 2008-06-10  Eric Blake  <ebb9@byu.net>
22909
22910         Add missing include.
22911         * tests/test-strstr.c (includes): Add <signal.h>.
22912         * tests/test-strcasestr.c (includes): Likewise.
22913         * tests/test-memmem.c (includes): Likewise.
22914
22915 2008-06-10  Bruno Haible  <bruno@clisp.org>
22916
22917         * lib/wait-process.c (wait_subprocess): Add an assertion.
22918
22919 2008-06-10  Bruno Haible  <bruno@clisp.org>
22920
22921         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22922
22923 2008-06-10  Bruno Haible  <bruno@clisp.org>
22924
22925         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22926         using alarm().
22927         * tests/test-strcasestr.c (main): Likewise.
22928         * tests/test-strstr.c (main): Likewise.
22929
22930 2008-06-09  Bruno Haible  <bruno@clisp.org>
22931
22932         Work around the Solaris 10 ACE ACLs ABI change.
22933         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22934         declare if ACL_NO_TRIVIAL is present.
22935         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22936         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22937         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22938         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22939         define if ACL_NO_TRIVIAL is present.
22940         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22941         and use the current ABI.
22942         (file_has_acl): Use same #if condition as elsewhere.
22943         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22944         in use, and use the current ABI.
22945         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22946         Reported by Jim Meyering.
22947
22948 2008-06-09  Eric Blake  <ebb9@byu.net>
22949
22950         Work around environments that (stupidly) ignore SIGALRM.
22951         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22952         before using alarm().
22953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22955         Reported by Ian Beckwith <ianb@erislabs.net>.
22956
22957         Produce autobuild blurb earlier in log.
22958         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22959
22960 2008-06-09  Jim Meyering  <meyering@redhat.com>
22961         and OndÅ™ej Vašík  <ovasik@redhat.com>
22962
22963         utimens.c: correct kernel bug work-around
22964         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22965         failure, not success, and the kernel bug we're trying to work
22966         around affects not just the utimensat call, but also the fallback
22967         futimens call.
22968         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22969         not success.
22970         [HAVE_FUTIMENS]: Use the same work-around, here.
22971
22972 2008-06-09  Jim Meyering  <meyering@redhat.com>
22973
22974         add more guards around definition of ACE_-related code
22975         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22976         ALLOW and ACE_OWNER are also defined.
22977
22978 2008-06-08  Bruno Haible  <bruno@clisp.org>
22979
22980         * lib/acl-internal.h: Add me as co-author.
22981         * lib/file-has-acl.c: Likewise.
22982         * lib/set-mode-acl.c: Likewise.
22983         * lib/copy-acl.c: Likewise.
22984
22985 2008-06-08  Bruno Haible  <bruno@clisp.org>
22986
22987         Add support for AIX ACLs.
22988         * lib/acl-internal.h (acl_nontrivial): New declaration.
22989         * lib/file-has-acl.c (acl_nontrivial): New function.
22990         (file_has_acl): Add implementation using AIX 4 ACL API.
22991         * lib/set-mode-acl.c (qset_acl): Likewise.
22992         * lib/copy-acl.c (qcopy_acl): Likewise.
22993
22994 2008-06-08  Bruno Haible  <bruno@clisp.org>
22995
22996         Add support for HP-UX ACLs.
22997         * lib/acl-internal.h (acl_nontrivial): New declaration.
22998         * lib/file-has-acl.c (acl_nontrivial): New function.
22999         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23000         * lib/set-mode-acl.c (qset_acl): Likewise.
23001         * lib/copy-acl.c (qcopy_acl): Likewise.
23002
23003 2008-06-08  Bruno Haible  <bruno@clisp.org>
23004
23005         Add support for Cygwin ACLs.
23006         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23007         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23008         the chmod_or_fchmod call.
23009         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23010
23011 2008-06-08  Bruno Haible  <bruno@clisp.org>
23012
23013         Fix bug with setuid modes in Solaris 10+ code.
23014         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23015         succeeded, when the mode contains some special bits.
23016
23017 2008-06-08  Bruno Haible  <bruno@clisp.org>
23018
23019         Add support for Solaris 7..10 ACLs.
23020         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23021         declarations.
23022         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23023         functions.
23024         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23025         * lib/set-mode-acl.c (qset_acl): Likewise.
23026         * lib/copy-acl.c (qcopy_acl): Likewise.
23027
23028 2008-06-08  Bruno Haible  <bruno@clisp.org>
23029
23030         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23031         declaration.
23032         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23033         (acl_access_nontrivial): Remove MacOS X case.
23034         (file_has_acl): Use acl_extended_nontrivial.
23035         * lib/copy-acl.c (qcopy_acl): Likewise.
23036
23037 2008-06-08  Bruno Haible  <bruno@clisp.org>
23038
23039         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23040
23041 2008-06-08  Jim Meyering  <meyering@redhat.com>
23042
23043         * modules/acl (Maintainer): Add Bruno Haible.
23044
23045 2008-06-07  Bruno Haible  <bruno@clisp.org>
23046
23047         Improve support for Tru64 ACLs.
23048         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23049         ACL on OSF/1.
23050
23051 2008-06-07  Bruno Haible  <bruno@clisp.org>
23052
23053         Add support for MacOS X ACLs.
23054         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23055         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23056         * lib/set-mode-acl.c (qset_acl): Likewise.
23057         * lib/copy-acl.c (qcopy_acl): Likewise.
23058
23059 2008-06-07  Bruno Haible  <bruno@clisp.org>
23060
23061         Fix memory leak introduced on 2008-05-22.
23062         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23063         use.
23064
23065 2008-06-07  Bruno Haible  <bruno@clisp.org>
23066
23067         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23068         to construct an empty ACL.
23069
23070 2008-06-07  Bruno Haible  <bruno@clisp.org>
23071
23072         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23073         precisely.
23074         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23075
23076 2008-06-07  Bruno Haible  <bruno@clisp.org>
23077
23078         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23079         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23080
23081 2008-06-07  Bruno Haible  <bruno@clisp.org>
23082
23083         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23084         regardless of POSIX.
23085         * doc/posix-functions/_longjmp.texi: Likewise.
23086         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23087         SystemV platform in this case.
23088
23089 2008-06-06  Eric Blake  <ebb9@byu.net>
23090
23091         Document abort() bugs.
23092         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23093
23094         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23095         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23096         sigsetjmp.
23097         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23098         siglongjmp, but only as a macro.
23099         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23100         is obsolete.
23101         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23102
23103         Tweak documentation to cover cygwin argz bugs.
23104         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23105         argz bug fix; no code change needed since no cygwin releases
23106         occurred between the last fix and the bug being tested.
23107         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23108         module and recently fixed cygwin bugs.
23109         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23110         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23111         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23112         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23113         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23114         Likewise.
23115         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23116         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23117         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23118         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23119         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23120         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23121         Likewise.
23122
23123         Avoid gcc warning on cygwin.
23124         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23125         !ACL_NO_TRIVIAL]: Avoid unused variable.
23126
23127 2008-06-05  Eric Blake  <ebb9@byu.net>
23128
23129         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23130         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23131         git-version-gen fails to come up with a version.
23132         Reported by Simon Josefsson.
23133
23134 2008-06-05  Jim Meyering  <meyering@redhat.com>
23135             Paul Eggert  <eggert@cs.ucla.edu>
23136
23137         utimens.c: work around a probable Linux kernel bug
23138         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23139         appears to be a kernel bug that causes utimensat to return 280
23140         instead of 0, indicating success.
23141
23142 2008-06-04  Bruno Haible  <bruno@clisp.org>
23143
23144         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23145         2008-06-01 commit.
23146
23147 2008-06-04  Bruno Haible  <bruno@clisp.org>
23148
23149         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23150         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23151         (file_has_acl): Use it. Save errno afterwards.
23152         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23153
23154 2008-06-03  Bruno Haible  <bruno@clisp.org>
23155
23156         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23157         draft code. Simplify #ifs.
23158         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23159         Put Solaris code after POSIX-draft code. Fix comments regarding
23160         Solaris 10, HP-UX. Mention Cygwin.
23161         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23162
23163 2008-06-03  Eric Blake  <ebb9@byu.net>
23164
23165         Provide fallback for older kernels.
23166         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23167         Provide runtime fallback if kernel lacks support.
23168         Reported by Mike Frysinger.
23169
23170 2008-06-02  Bruno Haible  <bruno@clisp.org>
23171
23172         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23173         it exists.
23174
23175 2008-06-02  Bruno Haible  <bruno@clisp.org>
23176
23177         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23178         * lib/copy-acl.c (qcopy_acl): Update comment.
23179
23180 2008-06-02  Bruno Haible  <bruno@clisp.org>
23181
23182         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23183         like ACL APIs.
23184
23185 2008-06-02  Bruno Haible  <bruno@clisp.org>
23186
23187         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23188         * tests/test-set-mode-acl.sh: Likewise.
23189         * tests/test-copy-acl.sh: Likewise.
23190         * tests/test-copy-file.sh: Likewise.
23191
23192 2008-06-02  Bruno Haible  <bruno@clisp.org>
23193
23194         * tests/test-file-has-acl.sh: Remove unused code.
23195
23196 2008-06-01  Bruno Haible  <bruno@clisp.org>
23197
23198         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23199         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23200         messages.
23201         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23202
23203 2008-06-01  Bruno Haible  <bruno@clisp.org>
23204
23205         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23206         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23207         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23208         APIs.
23209         * modules/acl-tests (configure.ac): Remove tests now contained in
23210         m4/acl.m4.
23211
23212 2008-06-02  Jim Meyering  <meyering@redhat.com>
23213
23214         announce-gen: use a better key-server host name
23215         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23216         it may be more consistently reliable.  Suggested by Werner Koch
23217         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23218
23219 2008-06-01  Bruno Haible  <bruno@clisp.org>
23220
23221         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23222         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23223
23224 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23225
23226         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23227
23228 2008-06-01  Bruno Haible  <bruno@clisp.org>
23229
23230         New ACL tests.
23231         * tests/test-file-has-acl.sh: New file.
23232         * tests/test-file-has-acl.c: New file.
23233         * tests/test-set-mode-acl.sh: New file.
23234         * tests/test-set-mode-acl.c: New file.
23235         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23236         * tests/test-copy-acl.c: New file.
23237         * modules/acl-tests: New file, based on modules/copy-file-tests.
23238         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23239         (Depends-on): Add acl-tests.
23240         (configure.ac): Remove checks.
23241         (Makefile.am): Don't create test-sameacls program here any more.
23242
23243 2008-06-01  Bruno Haible  <bruno@clisp.org>
23244
23245         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23246         * tests/test-sameacls.c: Include progname.h.
23247         (main): Invoke set_program_name. Portability fixes for MacOS X,
23248         Solaris, HP-UX.
23249
23250 2008-06-01  Bruno Haible  <bruno@clisp.org>
23251
23252         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23253         function.
23254         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23255
23256 2008-06-01  Bruno Haible  <bruno@clisp.org>
23257
23258         * modules/rpmatch (Depends-on): Add strdup.
23259
23260 2008-06-01  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/pipe.c: Include unistd-safer.h.
23263         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23264         * modules/pipe (Depends-on): Add unistd-safer.
23265
23266 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23267
23268         * modules/autobuild (configure.ac): Call AB_INIT.
23269
23270 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23271
23272         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23273         Suggested by Bruno Haible <bruno@clisp.org>.
23274
23275 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23276
23277         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23278         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23279         <bruno@clisp.org>.
23280
23281 2008-05-29  Eric Blake  <ebb9@byu.net>
23282
23283         Prefer new POSIX 200x interfaces over futimesat.
23284         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23285         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23286         when available.
23287         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23288
23289 2008-05-28  Bruno Haible  <bruno@clisp.org>
23290
23291         * modules/stpcpy (License): Change to LGPLv2+.
23292         Requested by David Lutterkort <dlutter@redhat.com>.
23293
23294 2008-05-27  Bruno Haible  <bruno@clisp.org>
23295
23296         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23297         current mingw.
23298         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23299
23300 2008-05-27  Bruno Haible  <bruno@clisp.org>
23301
23302         * modules/iconv_open (Link): New section, from module 'iconv'.
23303         * modules/striconv (Link): Likewise.
23304         * modules/striconveh (Link): Likewise.
23305         * modules/xstriconv (Link): Likewise.
23306         * modules/unicodeio (Link): Likewise.
23307         * modules/propername (Link): Likewise.
23308         Reported by Jim Meyering.
23309
23310 2008-05-26  Jim Meyering  <meyering@redhat.com>
23311
23312         sha256: do not artificially restrict buffer length to be < 2^32
23313         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23314         uint32_t to size_t.
23315         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23316         to match.
23317
23318         avoid unaligned access errors, e.g., on sparc
23319         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23320         direct access through a possibly-unaligned uint64* pointer.
23321         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23322         direct access through a possibly-unaligned uint32* pointer.
23323         Prompted by this patch from Tom "spot" Callaway:
23324         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23325
23326         sha512.c: fix typo in comment
23327         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23328
23329 2008-05-25  Bruno Haible  <bruno@clisp.org>
23330
23331         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23332         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23333         (Makefile.am): Update lib_SOURCES.
23334
23335 2008-05-25  Bruno Haible  <bruno@clisp.org>
23336
23337         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23338
23339 2008-05-25  Jim Meyering  <meyering@redhat.com>
23340
23341         useless-if-before-free: freed expr may have white-space differences
23342         * build-aux/useless-if-before-free: Recognize cases in which the
23343         freed expression differs from the tested one in embedded white
23344         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23345         $1 was used, so we can't make any regexp shy.  Improved tests now
23346         detect this.
23347
23348         useless-if-before-free: accept white space in the expression.
23349         * build-aux/useless-if-before-free: For now, any white space
23350         in the expression must be identical in the free argument.
23351
23352         useless-if-before-free: efficiency tweak
23353         * build-aux/useless-if-before-free: Make the expression-matching
23354         regexp "shy".
23355         Make the *outer* regexp shy, not the expr-matching one.
23356
23357         update code-in-comment to accept cast of free arg
23358         * build-aux/useless-if-before-free: Update regexp.
23359
23360 2008-05-25  Bruno Haible  <bruno@clisp.org>
23361
23362         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23363         * modules/copy-file-tests (Files, Makefile.am): Update.
23364         * tests/test-copy-file.c (func_test_copy): Update.
23365
23366 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23367
23368         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23369
23370 2008-05-23  Bruno Haible  <bruno@clisp.org>
23371
23372         Improve support for ACLs on OSF/1.
23373         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23374         Remove fallback for unknown flavors of ACLs.
23375
23376 2008-05-22  Bruno Haible  <bruno@clisp.org>
23377
23378         Add support for ACLs on OSF/1.
23379         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23380         replacements.
23381         (acl_free_text): New macro fallback.
23382         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23383         acl_free.
23384         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23385         acl_free_text function. Require AC_C_INLINE.
23386
23387 2008-05-22  Bruno Haible  <bruno@clisp.org>
23388
23389         Make copy_acl work on MacOS X 10.5.
23390         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23391         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23392         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23393         If MODE_INSIDE_ACL, don't assume that every system has the same text
23394         representation for ACLs as FreeBSD.
23395         * lib/copy-acl.c (copy_acl): Add support for platforms with
23396         !MODE_INSIDE_ACL.
23397         * lib/file-has-acl.c (file_has_acl): Likewise.
23398         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23399         FreeBSD, MacOS X, or IRIX, respectively.
23400
23401 2008-05-22  Bruno Haible  <bruno@clisp.org>
23402
23403         * lib/acl.h: Don't include <sys/acl.h>.
23404         (GETACLCNT): Move fallback to lib/acl-internal.h.
23405         * lib/acl-internal.h: Include <sys/acl.h> here.
23406         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23407
23408 2008-05-22  Bruno Haible  <bruno@clisp.org>
23409
23410         Split off copy_acl function to separate file.
23411         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23412         * lib/acl.c (copy_acl): Moved function to separate file.
23413         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23414         * modules/acl (Files): Add lib/copy-acl.c.
23415         (Makefiles.am): Augment lib_SOURCES.
23416
23417 2008-05-22  Bruno Haible  <bruno@clisp.org>
23418
23419         * modules/copy-file-tests: New file.
23420         * tests/test-copy-file.sh: New file.
23421         * tests/test-copy-file.c: New file.
23422         * tests/test-copy-file-sameacls.c: New file.
23423
23424 2008-05-22  Eric Blake  <ebb9@byu.net>
23425
23426         Avoid gcc warning.
23427         * tests/test-memcmp.c (main): Pass NULL indirectly.
23428
23429 2008-05-21  Bruno Haible  <bruno@clisp.org>
23430
23431         Add reference doc about ACLs.
23432         * doc/acl-resources.txt: New file.
23433         * doc/acl-cygwin.txt: New file.
23434
23435 2008-05-21  Bruno Haible  <bruno@clisp.org>
23436
23437         Avoid one more warning from gcc.
23438         * lib/vasnprintf.c (IF_LINT): Update comments.
23439         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23440
23441 2008-05-21  Jim Meyering  <meyering@redhat.com>
23442
23443         avoid a warning from gcc
23444         * lib/vasnprintf.c (IF_LINT): Define.
23445         (scale10_round_decimal_long_double):
23446         Use it to avoid a "may be used uninitialized" warning.
23447         (scale10_round_decimal_double): Likewise.
23448
23449 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23450
23451         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23452         declared.
23453
23454 2008-05-20  Bruno Haible  <bruno@clisp.org>
23455
23456         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23457         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23458
23459 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23460
23461         * modules/memcmp-tests: New file.
23462         * tests/test-memcmp.c: New file.
23463
23464 2008-05-19  Bruno Haible  <bruno@clisp.org>
23465
23466         * modules/propername (Notice, configure.ac): Put quoted "..." into
23467         --keyword option.
23468         * lib/propername.h: Update comments accordingly.
23469         Reported by Eric Blake.
23470
23471 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23472
23473         * modules/getpass-gnu (Depends-on): Add fseeko.
23474
23475 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23476
23477         * modules/base64-tests: New file.
23478
23479 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23480
23481         * lib/base64.c (base64_decode_ctx): If a decode context structure
23482         was passed in use it to ignore newlines.  If a context structure
23483         was _not_ passed in, continue to treat newlines as garbage (this
23484         is the historical behavior).  Formerly base64_decode.
23485         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23486         takes a decode context structure.
23487         * lib/base64.h (base64_decode): Macro for four-argument calls.
23488         (base64_decode_alloc): Likewise.
23489         * lib/base64.c (base64_decode_ctx): If a decode context structure
23490         was passed in use it to ignore newlines.  If a context structure
23491         was _not_ passed in, continue to treat newlines as garbage (this
23492         is the historical behavior).  Formerly base64_decode.
23493         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23494         takes a decode context structure.
23495         * lib/base64.h (base64_decode): Macro for four-argument calls.
23496         (base64_decode_alloc): Likewise.
23497
23498 2008-05-19  Jim Meyering  <meyering@redhat.com>
23499
23500         avoid a warning from gcc
23501         * lib/trim.c (IF_LINT): Define.
23502         (trim2): Use it to avoid a "may be used uninitialized" warning.
23503
23504         Fix doc typo.
23505         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23506
23507 2008-05-19  Bruno Haible  <bruno@clisp.org>
23508
23509         * doc/glibc-functions/getpass.texi: Document limits of other
23510         implementations.
23511
23512 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23513             Bruno Haible <bruno@clisp.org>
23514
23515         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23516
23517 2008-05-18  Bruno Haible  <bruno@clisp.org>
23518
23519         * modules/propername: New file, from GNU gettext.
23520         * lib/propername.h: New file, from GNU gettext.
23521         * lib/propername.c: New file, from GNU gettext.
23522         * MODULES.html.sh (Internationalization functions): Add propername.
23523
23524 2008-05-16  Jim Meyering  <meyering@redhat.com>
23525             Bruno Haible  <bruno@clisp.org>
23526
23527         Avoid some warnings from "gcc -Wshadow".
23528         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23529
23530 2008-05-15  Eric Blake  <ebb9@byu.net>
23531
23532         Extend previous patch to cygwin 1.7.0.
23533         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23534         fast implementation in cygwin >= 1.7.0.
23535         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23537
23538 2008-05-15  Bruno Haible  <bruno@clisp.org>
23539
23540         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23541         implementation in glibc >= 2.9.
23542         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23544
23545 2008-05-15  Bruno Haible  <bruno@clisp.org>
23546
23547         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23548         (Unicode string functions): Add unilbrk/*.
23549         Reported by Karl Berry.
23550
23551 2008-05-15  Eric Blake  <ebb9@byu.net>
23552
23553         Fix violation of <stdbool.h> replacement in regex.
23554         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23555         * lib/regexec.c (re_search_internal): Likewise.
23556         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23557
23558 2008-05-15  Jim Meyering  <meyering@redhat.com>
23559
23560         avoid distracting test output when git or cvs is not found
23561         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23562         * tests/test-vc-list-files-git.sh: Likewise.
23563
23564 2008-05-15  Eric Blake  <ebb9@byu.net>
23565
23566         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23567         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23568         glibc version.
23569         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23570         * doc/posix-functions/strstr.texi (strstr): Likewise.
23571         * lib/str-two-way.h (MAX): Sychronize with glibc.
23572
23573 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23574
23575         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23576         opr.ctx_type.
23577         (calc_first): Initialize constraint field.
23578         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23579         Fix grammar.
23580         (duplicate_node): Merge constraint field for all node types.
23581         (calc_eclosure_iter): Look at constraint field for all node types.
23582         * lib/regex_internal.c (create_cd_newstate): Don't look at
23583         opr.ctx_type.
23584
23585 2008-05-14  Bruno Haible  <bruno@clisp.org>
23586
23587         Help GCC to do better code generation.
23588         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23589         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23590         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23591         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23592         Declare with attribute 'malloc' if supported.
23593
23594 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23595
23596         use "echo STR|wc -c" rather than unportable "expr length STR"
23597         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23598         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23599
23600 2008-05-14  Jim Meyering  <meyering@redhat.com>
23601
23602         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23603         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23604         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23605         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23606         via Collin Lasse.
23607
23608 2008-05-14  Eric Blake  <ebb9@byu.net>
23609
23610         Avoid quadratic growth in gl_LIBSOURCES.
23611         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23612         Suggested by Bruno Haible.
23613
23614         Test xmemdup0.
23615         * modules/xmemdup0-tests: New file.
23616         * tests/test-xmemdup0.c: Likewise.
23617
23618 2008-05-13  Eric Blake  <ebb9@byu.net>
23619
23620         Split xmemdup0 into its own module.
23621         * modules/xmemdup0: New file.
23622         * lib/xmemdup0.h: Likewise.
23623         * lib/xmemdup0.c: Likewise.
23624         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23625         * lib/xalloc.h (xmemdup0): Remove.
23626         * lib/xmalloc.c (xmemdup0): Likewise.
23627
23628 2008-05-13  Eric Blake  <ebb9@byu.net>
23629             Bruno Haible  <bruno@clisp.org>
23630
23631         Reduce number of forks required during autoconf.
23632         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23633         and gl_LIBSOURCES_DIR.
23634         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23635         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23636         m4_syscmd per file.
23637         <m4_foreach_w>: Move...
23638         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23639
23640 2008-05-13  Eric Blake  <ebb9@byu.net>
23641
23642         * gnulib-tool: Fix various comment typos.
23643
23644 2008-05-12  Bruno Haible  <bruno@clisp.org>
23645
23646         Tailor the linebreaking algorithm.
23647         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23648
23649 2008-05-12  Bruno Haible  <bruno@clisp.org>
23650
23651         Update to Unicode 5.0.0.
23652         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23653         LBP_JV, LBP_JT. Redistribute values.
23654         (unilbrk_table): Change size.
23655         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23656         Unicode TR#14 rev. 22.
23657         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23658         LBP_JV, LBP_JT. Redistribute values.
23659         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23660         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23661         Update.
23662         * lib/unilbrk/lbrkprop1.h: Regenerated.
23663         * lib/unilbrk/lbrkprop2.h: Regenerated.
23664         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23665         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23666         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23667         Likewise.
23668         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23669         Likewise.
23670         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23671         result.
23672         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23673         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23674         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23675         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23676         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23677         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23678
23679 2008-05-11  Bruno Haible  <bruno@clisp.org>
23680
23681         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23682
23683 2008-05-11  Bruno Haible  <bruno@clisp.org>
23684
23685         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23686         * modules/unilbrk/gen-lbrk: New file.
23687
23688 2008-05-11  Bruno Haible  <bruno@clisp.org>
23689
23690         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23691         * m4/sha512.m4 (gl_SHA512): Likewise.
23692
23693 2008-05-11  Jim Meyering  <meyering@redhat.com>
23694
23695         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23696         * modules/crypto/sha256: New file.
23697         * modules/crypto/sha512: Likewise.
23698         * lib/sha256.c: Likewise.
23699         * lib/sha256.h: Likewise.
23700         * lib/sha512.c: Likewise.
23701         * lib/sha512.h: Likewise.
23702         * lib/u64.h: Likewise.
23703         * m4/sha256.m4: Likewise.
23704         * m4/sha512.m4: Likewise.
23705         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23706
23707 2008-05-10  Bruno Haible  <bruno@clisp.org>
23708
23709         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23710         (Input/Output <stdio.h>): Add xprintf.
23711         (Signal handling <signal.h>): Add strsignal.
23712         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23713         (Core language properties): Add func.
23714         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23715         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23716         strings.
23717         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23718         (Input/output): New section.
23719         (File system functions): Add openat-die, stat-macros.
23720         (Networking functions): Add sockets.
23721         (Unicode string functions): Add unictype/*.
23722         (Support for building libraries and executables): Add gperf.
23723         (Support for building documentation): Add agpl-3.0.
23724         (Misc): Add nocrash.
23725
23726 2008-05-10  Bruno Haible  <bruno@clisp.org>
23727
23728         * modules/unictype/gen-ctype: New file.
23729
23730 2008-05-10  Jim Meyering  <meyering@redhat.com>
23731
23732         Make chdir-safer.c more efficient on a system with no symlinks.
23733         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23734         also if ELOOP is zero.  Suggested by Bruno Haible.
23735
23736         Make chdir-safer.c slightly safer.
23737         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23738         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23739
23740         Avoid compile failure on systems without ELOOP (like mingw).
23741         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23742         Reported by Bruno Haible.
23743
23744 2008-05-10  Bruno Haible  <bruno@clisp.org>
23745
23746         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23747         (is_utf8_encoding): Use a case-insensitive comparison.
23748         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23749         streq.
23750
23751 2008-05-10  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23754         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23755         * lib/unilbrk/ulc-common.h (iconv_string_length,
23756         iconv_string_keeping_offsets): Remove declarations.
23757         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23758         Don't include <iconv.h>, streq.h, xsize.h.
23759         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23760         conversion.
23761         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23762         <iconv.h>, streq.h, xsize.h.
23763         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23764         conversion.
23765         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23766         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23767         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23768         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23769
23770 2008-05-10  Bruno Haible  <bruno@clisp.org>
23771
23772         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23773         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23774
23775         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23776         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23777
23778         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23779         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23780
23781         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23782         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23783
23784         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23785         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23786
23787         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23788         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23789
23790         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23791         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23792
23793         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23794         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23795
23796 2008-05-10  Bruno Haible  <bruno@clisp.org>
23797
23798         Split up 'linebreak' module.
23799         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23800         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23801         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23802         modifications.
23803         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23804         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23805         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23806         lib/linebreak.c.
23807         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23808         lib/linebreak.c.
23809         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23810         lib/linebreak.c.
23811         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23812         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23813         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23814         lib/linebreak.c.
23815         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23816         lib/linebreak.c.
23817         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23818         lib/linebreak.c.
23819         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23820         lib/linebreak.c.
23821         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23822         lib/linebreak.c.
23823         * modules/unilbrk/base: New file.
23824         * modules/unilbrk/tables: New file.
23825         * modules/unilbrk/u8-possible-linebreaks: New file.
23826         * modules/unilbrk/u16-possible-linebreaks: New file.
23827         * modules/unilbrk/u32-possible-linebreaks: New file.
23828         * modules/unilbrk/ulc-common: New file.
23829         * modules/unilbrk/ulc-possible-linebreaks: New file.
23830         * modules/unilbrk/u8-width-linebreaks: New file.
23831         * modules/unilbrk/u16-width-linebreaks: New file.
23832         * modules/unilbrk/u32-width-linebreaks: New file.
23833         * modules/unilbrk/ulc-width-linebreaks: New file.
23834         * lib/linebreak.h: Remove file.
23835         * lib/linebreak.c: Remove file.
23836         * m4/linebreak.m4: Remove file.
23837         * modules/linebreak: Remove file.
23838         * NEWS: Mention the changes.
23839
23840 2008-05-09  Eric Blake  <ebb9@byu.net>
23841
23842         Add xmemdup0.
23843         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23844         implementation.
23845         * lib/xmalloc.c (xmemdup0): New C implementation.
23846
23847 2008-05-08  Bruno Haible  <bruno@clisp.org>
23848
23849         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23850
23851 2008-05-07  Eric Blake  <ebb9@byu.net>
23852
23853         Support cross-compilation of <wctype.h>.
23854         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23855         AC_CACHE_CHECK.
23856
23857 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23858
23859         * build-aux/vc-list-files: Add support for bzr.
23860
23861 2008-05-03  Jim Meyering  <meyering@redhat.com>
23862
23863         avoid failed assertion with tight malloc
23864         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23865
23866 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23867
23868         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23869         are needed from arpa/inet.h.
23870         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23871         Reported by Bruno Haible.
23872
23873 2008-05-02  Jim Meyering  <meyering@redhat.com>
23874
23875         avoid compilation error on FreeBSD 6
23876         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23877
23878 2008-05-01  Jim Meyering  <meyering@redhat.com>
23879
23880         useless-if-before-free: correct --help's exit status description
23881         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23882         for one or more matches, etc.  Reported by Bruno Haible.
23883
23884         vc-list-files: make the stand-alone gnulib test work
23885         * modules/vc-list-files-tests (configure.ac):
23886         Define and AC_SUBST abs_aux_dir.
23887         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23888         $(abs_top_srcdir) to each script and having each of them
23889         duplicate the work of setting PATH, set PATH here, using
23890         the new variable, abs_aux_dir instead.
23891         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23892         * tests/test-vc-list-files-git.sh: Likewise.
23893         Reported by Bruno Haible.
23894
23895 2008-05-01  Bruno Haible  <bruno@clisp.org>
23896
23897         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23898         reallocation. Rename 'done' to 'found_delimiter'.
23899
23900 2008-05-01  Jim Meyering  <meyering@redhat.com>
23901
23902         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23903         * build-aux/vc-list-files: Use `...`, not $(...).
23904
23905 2008-04-30  Jim Meyering  <meyering@redhat.com>
23906
23907         add tests for vc-list-files
23908         * modules/vc-list-files-tests: New module.
23909         * tests/test-vc-list-files-cvs.sh: New file.
23910         * tests/test-vc-list-files-git.sh: New file.
23911
23912         avoid a warning from gcc
23913         * lib/getndelim2.c (IF_LINT): Define.
23914         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23915
23916         vc-list-files: work properly with build-aux/cvsu, too
23917         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23918         to all cvs-based clauses.
23919
23920         vc-list-files: work properly in the CVS+awk case, too
23921         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23922
23923         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23924         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23925         take more than one file argument, so .  Add quotes, just in case $dir
23926         ever contains a shell meta-character.  Prompted by Soren Hansen in
23927         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23928
23929 2008-04-29  Eric Blake  <ebb9@byu.net>
23930
23931         Optimize getndelim2 to use block operations when possible.
23932         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23933         freadseek, and memchr2.
23934         * lib/getndelim2.c (getndelim2): Use them for block reads.
23935
23936 2008-04-29  Bruno Haible  <bruno@clisp.org>
23937
23938         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23939         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23940         * modules/inet_ntop (Depends-on): Add extensions.
23941         * modules/inet_pton (Depends-on): Likewise.
23942         Reported by Simon Josefsson.
23943
23944 2008-04-29  Jim Meyering  <meyering@redhat.com>
23945
23946         When the is more than one match in a block, match all of them.
23947         * build-aux/useless-if-before-free: Iterate through each block
23948         until there are no more matches.
23949
23950         Fix broken useless-if-before-free script.
23951         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23952         the expression to match cast of argument to free-like function.
23953
23954 2008-04-29  Eric Blake  <ebb9@byu.net>
23955
23956         Use new header.
23957         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23958
23959 2008-04-29  Jim Meyering  <meyering@redhat.com>
23960
23961         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23962         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23963         by gnulib to exist and to declare e.g., inet_ntop.
23964         Don't include "inet_ntop.h", now removed.
23965
23966         * m4/arpa_inet_h.m4: Remove trailing blanks.
23967
23968 2008-04-29  Eric Blake  <ebb9@byu.net>
23969
23970         Silence valgrind on safe reads beyond potential array bounds.
23971         * lib/rawmemchr.valgrind: New file.
23972         * lib/strchrnul.valgrind: Likewise.
23973         * modules/rawmemchr (Files): Distribute new file.
23974         * modules/strchrnul (Files): Likewise.
23975         Suggested by Bruno Haible.
23976
23977 2008-04-29  Bruno Haible  <bruno@clisp.org>
23978
23979         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23980         (inet_ntop, inet_pton): Change portability warning's wording.
23981         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23982         Invoke gl_CHECK_NEXT_HEADERS.
23983         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23984         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23985         set ARPA_INET_H.
23986         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23987         * modules/arpa_inet (Description): No longer only for systems that
23988         lack it.
23989         (Depends-on): Add include_next.
23990         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23991         HAVE_ARPA_INET_H.
23992
23993 2008-04-29  Jim Meyering  <meyering@redhat.com>
23994
23995         * modules/mkdir (License): Re-license as LGPLv2+.
23996
23997 2008-04-29  Bruno Haible  <bruno@clisp.org>
23998
23999         * modules/rawmemchr (Maintainer): Set to Eric.
24000         * modules/strchrnul (Maintainer): Likewise.
24001
24002 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24003
24004         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24005         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24006
24007         * modules/arpa_inet (arpa/inet.h): Use them.
24008
24009 2008-04-28  Eric Blake  <ebb9@byu.net>
24010
24011         Test getndelim2.
24012         * modules/getndelim2-tests: New file.
24013         * tests/test-getndelim2.c: Likewise.
24014         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24015         stream.
24016         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24017
24018         * MODULES.html.sh: Document new module.
24019
24020 2008-04-20  Bruno Haible  <bruno@clisp.org>
24021
24022         * lib/c-stack.c (die): Use raise.
24023         * modules/c-stack (Depends-on): Add raise.
24024
24025 2008-04-28  Bruno Haible  <bruno@clisp.org>
24026
24027         Expect rpmatch to be declared.
24028         * lib/yesno.c (rpmatch): Remove declaration.
24029
24030         Declare rpmatch.
24031         * lib/stdlib.in.h (rpmatch): New declaration.
24032         * lib/rpmatch.c: Include <stdlib.h> first.
24033         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24034         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24036         HAVE_RPMATCH.
24037         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24039         (Include): Set to <stdlib.h>.
24040         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24041         HAVE_RPMATCH.
24042         * NEWS: Document the change.
24043
24044 2008-04-28  Bruno Haible  <bruno@clisp.org>
24045
24046         Change rpmatch to use nl_langinfo when appropriate.
24047         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24048         (N_): New macro.
24049         (localized_pattern): New function/macro.
24050         (try): Remove match, nomatch arguments. Copy the pattern into safe
24051         memory before caching it.
24052         (rpmatch): Use localized_pattern. Add translator comments.
24053         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24054         Suggested by Eric Blake.
24055         * modules/rpmatch (Depends-on): Add stdbool.
24056
24057 2008-04-28  Eric Blake  <ebb9@byu.net>
24058
24059         Add rawmemchr module, matching glibc.
24060         * modules/string (Makefile.am): New indicator.
24061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24062         * lib/string.in.h (rawmemchr): Declare when appropriate.
24063         * modules/rawmemchr: New file.
24064         * m4/rawmemchr.m4: Likewise.
24065         * lib/rawmemchr.c: Likewise.
24066         * modules/rawmemchr-tests: Likewise.
24067         * tests/test-rawmemchr.c: Likewise.
24068         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24069         module.
24070         * modules/strchrnul (Depends-on): Add rawmemchr.
24071         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24072
24073         Whitespace cleanup.
24074         * tests/test-strchrnul.c: Reindent.
24075         * lib/strchrnul.c: Likewise.
24076
24077         Optimize and test strchrnul.
24078         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24079         * modules/strchrnul-tests: New file.
24080         * tests/test-strchrnul.c: Likewise.
24081
24082         Remove intprops dependency.
24083         * modules/memchr (Depends-on): Remove intprops.
24084         * modules/memrchr (Depends-on): Likewise.
24085         * modules/memchr2 (Depends-on): Likewise.
24086         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24087         * lib/memrchr.c (__memrchr): Likewise.
24088         * lib/memrchr2.c (memchr2): Likewise.
24089         Reported by Simon Josefsson.
24090
24091 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24092
24093         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24094         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24095
24096 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24097
24098         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24099
24100         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24101
24102         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24103
24104         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24105         declarations.
24106         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24107
24108         * m4/inet_pton.m4: Don't check for header files.
24109
24110         * m4/inet_ntop.m4: Don't check for header files.
24111
24112 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24113
24114         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24115         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24116         trigger for cygwin).
24117         Reported by Bruno Haible  <bruno@clisp.org>.
24118
24119 2008-04-28  Bruno Haible  <bruno@clisp.org>
24120
24121         * doc/posix-functions/strdup.texi: Mention mingw problem.
24122
24123 2008-04-27  Bruno Haible  <bruno@clisp.org>
24124
24125         * modules/stat-time-tests (Depends-on): Add sleep.
24126         * tests/test-stat-time.c (force_unlink): New function.
24127         (cleanup): Use it.
24128         (test_mtime): Remove the ctime related tests.
24129         (test_ctime): New function, containing the ctime related tests.
24130         (main): Call test_ctime, except on native Windows platforms.
24131
24132 2008-04-27  Bruno Haible  <bruno@clisp.org>
24133
24134         * lib/rpmatch.c (rpmatch): Add some comments.
24135         Reported by James Youngman <jay@gnu.org>.
24136
24137 2008-04-27  Bruno Haible  <bruno@clisp.org>
24138
24139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24140         quiet NaNs.
24141
24142 2008-04-27  Bruno Haible  <bruno@clisp.org>
24143
24144         Make test-yesno.sh work on mingw.
24145         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24146         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24147         (main): Set stdin to binary mode.
24148         * modules/yesno-tests (Depends-on): Add binary-io.
24149
24150 2008-04-27  Bruno Haible  <bruno@clisp.org>
24151
24152         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24153         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24154         argument that lie outside the IEEE 854 domain.
24155         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24156         (gl_ISFINITE): Use it.
24157         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24158
24159 2008-04-27  Bruno Haible  <bruno@clisp.org>
24160
24161         Allow local renaming in config.h.
24162         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24163
24164 2008-04-27  Bruno Haible  <bruno@clisp.org>
24165
24166         * lib/memchr.c (__memchr): Change type of 'i'.
24167         * lib/memchr2.c (memchr2): Likewise.
24168
24169 2008-04-26  Eric Blake  <ebb9@byu.net>
24170         and Bruno Haible  <bruno@clisp.org>
24171
24172         Optimize and test memrchr.
24173         * modules/memrchr (Depends-on): Add intprops.
24174         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24175         * modules/memrchr-tests: New file.
24176         * tests/test-memrchr.c: New file.
24177
24178 2008-04-26  Bruno Haible  <bruno@clisp.org>
24179
24180         Add tentative support for DragonFly BSD.
24181         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24182         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24183         fp.
24184         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24185         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24186         * lib/fpurge.c (fpurge): Likewise.
24187         * lib/freadable.c (freaadable): Likewise.
24188         * lib/freadahead.c (freadahead): Likewise.
24189         * lib/freading.c (freading): Likewise.
24190         * lib/freadptr.c (freadptr): Likewise.
24191         * lib/freadseek.c (freadptrinc): Likewise.
24192         * lib/fseeko.c (fseeko): Likewise.
24193         * lib/fseterr.c (fseterr): Likewise.
24194         * lib/fwritable.c (fwritable): Likewise.
24195         * lib/fwriting.c (fwriting): Likewise.
24196
24197 2008-04-26  Bruno Haible  <bruno@clisp.org>
24198
24199         * lib/stdio-impl.h: New file.
24200         * lib/fbufmode.c: Include stdio-impl.h.
24201         (fbufmode): Use fp_, remove redundant #defines.
24202         * lib/fflush.c: Include stdio-impl.h.
24203         (clear_ungetc_buffer): Remove redundant #defines.
24204         * lib/fpurge.c: Include stdio-impl.h.
24205         (fpurge): Remove redundant #defines.
24206         * lib/freadable.c: Include stdio-impl.h.
24207         (freadable): Remove redundant #defines.
24208         * lib/freadahead.c: Include stdio-impl.h.
24209         (freadahead): Remove redundant #defines.
24210         * lib/freading.c: Include stdio-impl.h.
24211         (freading): Remove redundant #defines.
24212         * lib/freadptr.c: Include stdio-impl.h.
24213         (freadptr): Remove redundant #defines.
24214         * lib/freadseek.c: Include stdio-impl.h.
24215         (freadptrinc): Remove redundant #defines.
24216         * lib/fseeko.c: Include stdio-impl.h.
24217         (rpl_fseeko): Remove redundant #defines.
24218         * lib/fseterr.c: Include stdio-impl.h.
24219         (fseterr): Remove redundant #defines.
24220         * lib/fwritable.c: Include stdio-impl.h.
24221         (fwritable: Remove redundant #defines.
24222         * lib/fwriting.c: Include stdio-impl.h.
24223         (fwriting): Remove redundant #defines.
24224         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24225         * modules/fflush (Files): Likewise.
24226         * modules/fpurge (Files): Likewise.
24227         * modules/freadable (Files): Likewise.
24228         * modules/freadahead (Files): Likewise.
24229         * modules/freading (Files): Likewise.
24230         * modules/freadptr (Files): Likewise.
24231         * modules/freadseek (Files): Likewise.
24232         * modules/fseeko (Files): Likewise.
24233         * modules/fseterr (Files): Likewise.
24234         * modules/fwritable (Files): Likewise.
24235         * modules/fwriting (Files): Likewise.
24236
24237 2008-04-26  Bruno Haible  <bruno@clisp.org>
24238
24239         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24240         restore_seek_optimization, update_fpos_cache): New functions, extracted
24241         from rpl_fflush.
24242         (rpl_fflush): Use them.
24243         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24244         (gl_REPLACE_FFLUSH): Use it.
24245
24246 2008-04-26  Bruno Haible  <bruno@clisp.org>
24247
24248         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24249         on Solaris.
24250         * tests/test-xstrtoimax.sh: Likewise.
24251         * tests/test-xstrtoumax.sh: Likewise.
24252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24253
24254 2008-04-26  Bruno Haible  <bruno@clisp.org>
24255
24256         * modules/memchr-tests: New file.
24257         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24258
24259 2008-04-26  Eric Blake  <ebb9@byu.net>
24260             Bruno Haible  <bruno@clisp.org>
24261
24262         * lib/memchr.c: Include intprops.h.
24263         (__memchr): Optimize parallel detection of matching bytes. Rename local
24264         variables. Add explanatory comments.
24265
24266 2008-04-26  Bruno Haible  <bruno@clisp.org>
24267
24268         Fix module 'memchr', broken since 2000-10-28.
24269         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24270
24271 2008-04-26  Bruno Haible  <bruno@clisp.org>
24272
24273         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24274         comments.
24275
24276 2008-04-25  Eric Blake  <ebb9@byu.net>
24277
24278         Use native fstatat on cygwin 1.7.0.
24279         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24280         first.
24281
24282 2008-04-23  Eric Blake  <ebb9@byu.net>
24283
24284         Improve memchr2 performance.
24285         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24286         NUL bytes.
24287         * modules/memchr2 (Depends-on): Use intprops.h.
24288
24289 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24290
24291         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24292         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24293         <blp@cs.stanford.edu>.
24294
24295 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24296
24297         * lib/arpa_inet.in.h: New file.
24298
24299         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24300         (Makefile.am): Sed in substitute header file.
24301
24302         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24303         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24304
24305         * modules/inet_ntop (configure.ac): Use
24306         gl_ARPA_INET_MODULE_INDICATOR.
24307
24308         * modules/inet_pton (configure.ac): Use
24309         gl_ARPA_INET_MODULE_INDICATOR.
24310
24311 2008-04-22  Jim Meyering  <meyering@redhat.com>
24312
24313         * modules/verify (License): Re-license as LGPLv2+.
24314
24315 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24316
24317         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24318         parameter to void* as per POSIX standard (MinGW uses char*).
24319
24320 2008-04-21  Bruno Haible  <bruno@clisp.org>
24321
24322         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24323         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24324         Define to replacements if REPLACE_ISWCNTRL is 1.
24325         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24326         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24327         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24328         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24329         what it fixes.
24330         * doc/posix-functions/iswalpha.texi: Likewise.
24331         * doc/posix-functions/iswblank.texi: Likewise.
24332         * doc/posix-functions/iswcntrl.texi: Likewise.
24333         * doc/posix-functions/iswdigit.texi: Likewise.
24334         * doc/posix-functions/iswgraph.texi: Likewise.
24335         * doc/posix-functions/iswlower.texi: Likewise.
24336         * doc/posix-functions/iswprint.texi: Likewise.
24337         * doc/posix-functions/iswpunct.texi: Likewise.
24338         * doc/posix-functions/iswspace.texi: Likewise.
24339         * doc/posix-functions/iswupper.texi: Likewise.
24340         * doc/posix-functions/iswxdigit.texi: Likewise.
24341         Reported by Alain Guibert.
24342
24343 2008-04-21  Bruno Haible  <bruno@clisp.org>
24344
24345         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24346         Patch by Alain Guibert.
24347
24348 2008-04-21  Bruno Haible  <bruno@clisp.org>
24349
24350         Fix test failures on mingw.
24351         * tests/test-xstrtol.c (print_no_progname): New function.
24352         (main): Install it in error_print_progname hook.
24353         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24354         * tests/test-xstrtoimax.sh: Likewise.
24355         * tests/test-xstrtoumax.sh: Likewise.
24356
24357 2008-04-21  Bruno Haible  <bruno@clisp.org>
24358
24359         Fix test failure on mingw.
24360         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24361
24362 2008-04-21  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24365         Actually assign a value.
24366
24367 2008-04-20  Bruno Haible  <bruno@clisp.org>
24368
24369         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24370         take 2.
24371         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24372         'canonicalize-lgpl' module is also used.
24373         * lib/canonicalize-lgpl.c: Undo last change.
24374         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24375
24376 2008-04-20  Bruno Haible  <bruno@clisp.org>
24377
24378         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24379         config.h. Provide _mkdir based fallback for mingw.
24380         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24381         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24382         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24383         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24384         rather than defining mkdir in config.h.
24385         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24386         (gl_SYS_STAT_H_DEFAULTS): New macro.
24387         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24388         HAVE_IO_H any more.
24389         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24390         HAVE_DECL_MKDIR and HAVE_IO_H.
24391
24392 2008-04-20  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/isapipe.c: Port to native Windows platforms.
24395
24396 2008-04-20  Bruno Haible  <bruno@clisp.org>
24397
24398         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24399
24400 2008-04-21  Eric Blake  <ebb9@byu.net>
24401
24402         Work around preprocessors that don't handle UINTMAX_MAX.
24403         * lib/memchr2.c (memchr2): Avoid embedded #if.
24404         Reported by Alain Guibert, fix suggested by Bruno Haible.
24405
24406 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24407
24408         * doc/posix-functions/strftime.texi (strftime): Explain better
24409         Windows incompatibility.  Suggested by Micah Cowan
24410         <micah@cowan.name>.
24411
24412 2008-04-20  Bruno Haible  <bruno@clisp.org>
24413
24414         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24415         unistr/u8-mblen.
24416
24417 2008-04-20  Bruno Haible  <bruno@clisp.org>
24418
24419         Fix test failure on platforms with non-GNU iconv.
24420         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24421         (U_TO_U8): Use it, rather than u16_to_u8.
24422         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24423         units at the end of the input string.
24424         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24425
24426 2008-04-20  Bruno Haible  <bruno@clisp.org>
24427
24428         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24429         when the resulting length is 0.
24430         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24431
24432 2008-04-20  Bruno Haible  <bruno@clisp.org>
24433
24434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24435         works.
24436         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24437
24438 2008-04-20  Bruno Haible  <bruno@clisp.org>
24439
24440         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24441         * modules/tsearch-tests (configure.ac): Test for initstate function.
24442
24443 2008-04-20  Bruno Haible  <bruno@clisp.org>
24444
24445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24446         for nlink_t if missing.
24447         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24448
24449 2008-04-19  Bruno Haible  <bruno@clisp.org>
24450
24451         Work around snprintf bug on Linux libc5.
24452         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24454         gl_SNPRINTF_SIZE1.
24455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24456         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24457         that test failed.
24458         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24459         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24460         * modules/snprintf (Files): Add m4/printf.m4.
24461         * modules/vsnprintf (Files): Likewise.
24462         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24463         * doc/posix-functions/vsnprintf.texi: Likewise.
24464
24465 2008-04-19  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24468         from 0.0058 to less than 10^-7.
24469
24470 2008-04-19  Bruno Haible  <bruno@clisp.org>
24471
24472         Fix rounding when a precision is given.
24473         * lib/vasnprintf.c (is_borderline): New function.
24474         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24475         9...9x.
24476         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24477         %e, %g.
24478         * tests/test-vasprintf-posix.c (test_function): Likewise.
24479         * tests/test-snprintf-posix.h (test_function): Likewise.
24480         * tests/test-sprintf-posix.h (test_function): Likewise.
24481         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24482         * tests/test-printf-posix.h (test_function): Likewise.
24483         * tests/test-printf-posix.output: Update.
24484         Reported by John Darrington <john@darrington.wattle.id.au> via
24485         Ben Pfaff <blp@cs.stanford.edu>.
24486
24487 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24488
24489         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24490         Suggested by Bruno Haible <bruno@clisp.org>.
24491
24492 2008-04-17  Bruno Haible  <bruno@clisp.org>
24493
24494         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24495         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24496         implementation.
24497         Patch by Bruce Merry <bmerry@gmail.com>.
24498
24499 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24500
24501         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24502         doesn't work under Windows.
24503
24504 2008-04-16  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24507         New macros.
24508         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24509         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24510         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24511         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24512         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24513         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24514         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24515         macros.
24516         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24517         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24518         Northern Sotho, Uighur.
24519
24520 2008-04-16  Bruno Haible  <bruno@clisp.org>
24521
24522         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24523         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24524         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24525         Reported by Daniel Bergström <daniel@octocode.com>.
24526
24527 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24528             Bruno Haible  <bruno@clisp.org>
24529
24530         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24531         function.
24532         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24533         New functions, mostly extracted from gl_locale_name_default.
24534         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24535
24536 2008-04-16  Eric Blake  <ebb9@byu.net>
24537
24538         Adjust strtod detection to catch glibc 2.7 bug.
24539         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24540         Reported by John Gatewood Ham.
24541
24542 2008-04-16  Bruno Haible  <bruno@clisp.org>
24543
24544         Add tentative support for Linux libc5.
24545         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24546         * lib/fpurge.c (fpurge): Likewise.
24547         * lib/freadable.c (freadable): Likewise.
24548         * lib/freadahead.c (freadahead): Likewise.
24549         * lib/freading.c (freading): Likewise.
24550         * lib/freadptr.c (freadptr): Likewise.
24551         * lib/freadseek.c (freadptrinc): Likewise.
24552         * lib/fseeko.c (rpl_fseeko): Likewise.
24553         * lib/fseterr.c (fseterr): Likewise.
24554         * lib/fwritable.c (fwritable): Likewise.
24555         * lib/fwriting.c (fwriting): Likewise.
24556         Reported by Alain Guibert <alguibert+bts@free.fr>.
24557
24558 2008-04-15  Bruno Haible  <bruno@clisp.org>
24559
24560         * modules/mathl (configure.ac): Define module indicator.
24561
24562 2008-04-15  Bruno Haible  <bruno@clisp.org>
24563
24564         * lib/logl.c (logl): Remove unused variables.
24565
24566 2008-04-15  Bruno Haible  <bruno@clisp.org>
24567
24568         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24569         fails.
24570
24571 2008-04-15  Bruno Haible  <bruno@clisp.org>
24572
24573         * lib/trim.c (trim2): Fix argument of isspace() macro.
24574
24575 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24576
24577         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24578         to 0.
24579         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24580
24581 2008-04-14  Bruno Haible  <bruno@clisp.org>
24582
24583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24584         AC_LANG_PROGRAM argument.
24585         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24586         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24588         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24589         * m4/math_h.m4 (gl_MATH_H): Likewise.
24590         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24592         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24593         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24594         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24595         * m4/regex.m4 (gl_REGEX): Likewise.
24596         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24597         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24599         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24600         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24602         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24603         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24604
24605 2008-04-14  Jim Meyering  <meyering@redhat.com>
24606
24607         test-strtod: fix typos: s/abs/fabs/
24608         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24609
24610 2008-04-13  Bruno Haible  <bruno@clisp.org>
24611
24612         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24613         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24614         module is also used and while not building the reloc-wrapper.
24615
24616 2008-04-13  Bruno Haible  <bruno@clisp.org>
24617
24618         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24619
24620 2008-04-13  Bruno Haible  <bruno@clisp.org>
24621
24622         Fix AIX compilation failure introduced on 2008-04-02.
24623         * tests/test-frexp.c (exp): Undefine before redefining.
24624         * tests/test-frexpl.c (exp): Likewise.
24625
24626 2008-04-13  Bruno Haible  <bruno@clisp.org>
24627
24628         Work around a HP-UX stdio bug.
24629         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24630         * tests/test-ftello.c (main): Likewise.
24631         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24632         * doc/posix-functions/ftello.texi: Likewise.
24633
24634 2008-04-13  Bruno Haible  <bruno@clisp.org>
24635
24636         Make test-signbit pass on HP-UX/hppa.
24637         * tests/test-signbit.c (minus_zerol): New variable.
24638         (test_signbitl): Use it.
24639
24640 2008-04-13  Bruno Haible  <bruno@clisp.org>
24641
24642         Make truncl work on OSF/1 4.0.
24643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24644         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24645         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24647         HAVE_DECL_TRUNCL.
24648         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24649         HAVE_DECL_TRUNCL.
24650         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24651
24652 2008-04-13  Bruno Haible  <bruno@clisp.org>
24653
24654         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24655
24656 2008-04-13  Bruno Haible  <bruno@clisp.org>
24657
24658         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24659         expression, so as to avoid HP-UX 11 cc compiler bug.
24660
24661 2008-04-13  Bruno Haible  <bruno@clisp.org>
24662
24663         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24664
24665 2008-04-13  Bruno Haible  <bruno@clisp.org>
24666
24667         * lib/git-merge-changelog.c: Remove empty declaration outside of
24668         functions.
24669
24670 2008-04-13  Bruno Haible  <bruno@clisp.org>
24671
24672         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24673
24674 2008-04-13  Bruno Haible  <bruno@clisp.org>
24675
24676         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24677         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24679         also if it exists but lacks definitions of the SHUT_* macros.
24680         * modules/sys_socket (Description): Update.
24681         Reported by Elbert Pol <e.pol@chello.nl>.
24682
24683 2008-04-13  Bruno Haible  <bruno@clisp.org>
24684
24685         * lib/localcharset.c (OS2): Don't redefine if already defined.
24686         Reported by Elbert Pol <e.pol@chello.nl>.
24687
24688 2008-04-13  Bruno Haible  <bruno@clisp.org>
24689
24690         * lib/binary-io.h [__EMX__]: Include <io.h>.
24691         Reported by Elbert Pol <e.pol@chello.nl>.
24692
24693 2008-04-12  Bruno Haible  <bruno@clisp.org>
24694
24695         * lib/fpucw.h: Enable the definitions also for x86_64.
24696         Needed for NetBSD/x86_64.
24697         Reported by Thomas Klausner <tk@giga.or.at>.
24698
24699 2008-04-12  Bruno Haible  <bruno@clisp.org>
24700
24701         * tests/test-strtod.c: Include isnand.h.
24702         (main): Use isnand instead of isnan.
24703         Reported by Jim Meyering.
24704
24705 2008-04-12  Bruno Haible  <bruno@clisp.org>
24706
24707         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24708         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24709
24710 2008-04-12  Jim Meyering  <meyering@redhat.com>
24711
24712         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24713
24714 2008-04-12  Bruno Haible  <bruno@clisp.org>
24715
24716         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24717         Reported by Elbert Pol <e.pol@chello.nl>.
24718
24719 2008-04-12  Eric Blake  <ebb9@byu.net>
24720
24721         Work around Solaris 10 math.h bug.
24722         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24723         (gl_MATH_H_DEFAULTS): Set up default.
24724         * modules/math (Makefile.am): Replace new indicators.
24725         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24726         * tests/test-math.c (main): Test this.
24727         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24728         * doc/posix-headers/math.texi (math.h): Mention bug.
24729         Reported by Nelson H. F. Beebe and Jim Meyering.
24730
24731 2008-04-11  Bruno Haible  <bruno@clisp.org>
24732
24733         Adapt to future versions of Apple GCC.
24734         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24735         Reported by Peter O'Gorman <peter@pogma.com>.
24736
24737 2008-04-11  Bruno Haible  <bruno@clisp.org>
24738
24739         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24740
24741 2008-04-11  Bruno Haible  <bruno@clisp.org>
24742
24743         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24744
24745         * modules/getaddrinfo-tests (Makefile.am): Define
24746         test_getaddrinfo_LDADD.
24747
24748 2008-04-11  Bruno Haible  <bruno@clisp.org>
24749
24750         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24751         (init): Fix syntax error.
24752         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24753         is declared.
24754
24755 2008-04-11  Bruno Haible  <bruno@clisp.org>
24756
24757         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24758         * modules/glob (Depends-on): Add stdbool.
24759
24760 2008-04-11  Bruno Haible  <bruno@clisp.org>
24761
24762         * lib/trim.c: Include <string.h>.
24763
24764 2008-04-11  Eric Blake  <ebb9@byu.net>
24765
24766         Avoid compile failure on OS/2.
24767         * lib/regex_internal.h (internal_function): Disable optimization
24768         on OS/2 (__EMX__), where it caused compiler error.
24769         Reported by Elbert Pol.
24770
24771 2008-04-11  Bruno Haible  <bruno@clisp.org>
24772
24773         Flush the standard error stream before aborting. Needed on mingw.
24774         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24775         * tests/test-array_list.c (ASSERT): Likewise.
24776         * tests/test-array_oset.c (ASSERT): Likewise.
24777         * tests/test-avltree_list.c (ASSERT): Likewise.
24778         * tests/test-avltree_oset.c (ASSERT): Likewise.
24779         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24780         * tests/test-binary-io.c (ASSERT): Likewise.
24781         * tests/test-byteswap.c (ASSERT): Likewise.
24782         * tests/test-c-ctype.c (ASSERT): Likewise.
24783         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24784         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24785         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24786         * tests/test-c-strstr.c (ASSERT): Likewise.
24787         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24788         * tests/test-canonicalize.c (ASSERT): Likewise.
24789         * tests/test-carray_list.c (ASSERT): Likewise.
24790         * tests/test-ceilf1.c (ASSERT): Likewise.
24791         * tests/test-ceilf2.c (ASSERT): Likewise.
24792         * tests/test-ceill.c (ASSERT): Likewise.
24793         * tests/test-count-one-bits.c (ASSERT): Likewise.
24794         * tests/test-fbufmode.c (ASSERT): Likewise.
24795         * tests/test-fflush2.c (ASSERT): Likewise.
24796         * tests/test-floorf1.c (ASSERT): Likewise.
24797         * tests/test-floorf2.c (ASSERT): Likewise.
24798         * tests/test-floorl.c (ASSERT): Likewise.
24799         * tests/test-fopen.c (ASSERT): Likewise.
24800         * tests/test-fpending.c (ASSERT): Likewise.
24801         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24802         * tests/test-fpurge.c (ASSERT): Likewise.
24803         * tests/test-freadable.c (ASSERT): Likewise.
24804         * tests/test-freadahead.c (ASSERT): Likewise.
24805         * tests/test-freading.c (ASSERT): Likewise.
24806         * tests/test-freadptr.c (ASSERT): Likewise.
24807         * tests/test-freadptr2.c (ASSERT): Likewise.
24808         * tests/test-freadseek.c (ASSERT): Likewise.
24809         * tests/test-freopen.c (ASSERT): Likewise.
24810         * tests/test-frexp.c (ASSERT): Likewise.
24811         * tests/test-frexpl.c (ASSERT): Likewise.
24812         * tests/test-fseek.c (ASSERT): Likewise.
24813         * tests/test-fseeko.c (ASSERT): Likewise.
24814         * tests/test-fstrcmp.c (ASSERT): Likewise.
24815         * tests/test-ftell.c (ASSERT): Likewise.
24816         * tests/test-ftello.c (ASSERT): Likewise.
24817         * tests/test-func.c (ASSERT): Likewise.
24818         * tests/test-fwritable.c (ASSERT): Likewise.
24819         * tests/test-fwriting.c (ASSERT): Likewise.
24820         * tests/test-getdelim.c (ASSERT): Likewise.
24821         * tests/test-getline.c (ASSERT): Likewise.
24822         * tests/test-i-ring.c (ASSERT): Likewise.
24823         * tests/test-iconv-utf.c (ASSERT): Likewise.
24824         * tests/test-iconv.c (ASSERT): Likewise.
24825         * tests/test-isfinite.c (ASSERT): Likewise.
24826         * tests/test-isnand.c (ASSERT): Likewise.
24827         * tests/test-isnanf.c (ASSERT): Likewise.
24828         * tests/test-isnanl.h (ASSERT): Likewise.
24829         * tests/test-ldexpl.c (ASSERT): Likewise.
24830         * tests/test-linked_list.c (ASSERT): Likewise.
24831         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24832         * tests/test-localename.c (ASSERT): Likewise.
24833         * tests/test-lseek.c (ASSERT): Likewise.
24834         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24835         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24836         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24837         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24838         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24839         * tests/test-mbschr.c (ASSERT): Likewise.
24840         * tests/test-mbscspn.c (ASSERT): Likewise.
24841         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24842         * tests/test-mbspbrk.c (ASSERT): Likewise.
24843         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24844         * tests/test-mbsrchr.c (ASSERT): Likewise.
24845         * tests/test-mbsspn.c (ASSERT): Likewise.
24846         * tests/test-mbsstr1.c (ASSERT): Likewise.
24847         * tests/test-mbsstr2.c (ASSERT): Likewise.
24848         * tests/test-mbsstr3.c (ASSERT): Likewise.
24849         * tests/test-memchr2.c (ASSERT): Likewise.
24850         * tests/test-memmem.c (ASSERT): Likewise.
24851         * tests/test-open.c (ASSERT): Likewise.
24852         * tests/test-printf-frexp.c (ASSERT): Likewise.
24853         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24854         * tests/test-printf-posix.c (ASSERT): Likewise.
24855         * tests/test-quotearg.c (ASSERT): Likewise.
24856         * tests/test-rbtree_list.c (ASSERT): Likewise.
24857         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24858         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24859         * tests/test-round1.c (ASSERT): Likewise.
24860         * tests/test-roundf1.c (ASSERT): Likewise.
24861         * tests/test-roundl.c (ASSERT): Likewise.
24862         * tests/test-signbit.c (ASSERT): Likewise.
24863         * tests/test-sleep.c (ASSERT): Likewise.
24864         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24865         * tests/test-snprintf.c (ASSERT): Likewise.
24866         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24867         * tests/test-stat-time.c (ASSERT): Likewise.
24868         * tests/test-strcasestr.c (ASSERT): Likewise.
24869         * tests/test-strerror.c (ASSERT): Likewise.
24870         * tests/test-striconv.c (ASSERT): Likewise.
24871         * tests/test-striconveh.c (ASSERT): Likewise.
24872         * tests/test-striconveha.c (ASSERT): Likewise.
24873         * tests/test-strsignal.c (ASSERT): Likewise.
24874         * tests/test-strstr.c (ASSERT): Likewise.
24875         * tests/test-strtod.c (ASSERT): Likewise.
24876         * tests/test-trunc1.c (ASSERT): Likewise.
24877         * tests/test-trunc2.c (ASSERT): Likewise.
24878         * tests/test-truncf1.c (ASSERT): Likewise.
24879         * tests/test-truncf2.c (ASSERT): Likewise.
24880         * tests/test-truncl.c (ASSERT): Likewise.
24881         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24882         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24883         * tests/test-vasnprintf.c (ASSERT): Likewise.
24884         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24885         * tests/test-vasprintf.c (ASSERT): Likewise.
24886         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24887         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24888         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24889         * tests/test-vsnprintf.c (ASSERT): Likewise.
24890         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24891         * tests/test-wcwidth.c (ASSERT): Likewise.
24892         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24893         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24894         * tests/test-xvasprintf.c (ASSERT): Likewise.
24895         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24896         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24897         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24898         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24899         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24900         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24901         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24902         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24903         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24904         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24905         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24906         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24907         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24908         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24909         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24910         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24911         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24912         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24913         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24914         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24915         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24916         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24917         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24918         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24919         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24920         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24921         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24922         * tests/unictype/test-combining.c (ASSERT): Likewise.
24923         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24924         * tests/unictype/test-digit.c (ASSERT): Likewise.
24925         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24926         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24927         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24928         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24929         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24930         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24931         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24932         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24933         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24934         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24935         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24936         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24937         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24938         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24939         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24940         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24941         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24942         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24943         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24944         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24945         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24946         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24947         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24948         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24949         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24950         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24951         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24952         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24953         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24954         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24955         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24956         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24957         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24958         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24959         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24960         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24961         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24962         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24963         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24964         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24965         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24966         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24967         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24968         Reported by Eric Blake.
24969
24970 2008-04-11  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/wchar.in.h: Tweak comment.
24973
24974 2008-04-11  Bruno Haible  <bruno@clisp.org>
24975
24976         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24977         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24978         gl_COMMON.
24979         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24980
24981 2008-04-11  Bruno Haible  <bruno@clisp.org>
24982
24983         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24984
24985 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24986
24987         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24988         of attempting to use non-existing /dev/*random.  Based on patch
24989         from Adam Strzelecki <ono@java.pl> in
24990         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24991
24992 2008-04-08  Bruno Haible  <bruno@clisp.org>
24993
24994         Add tentative support for emx+gcc.
24995         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24996         * lib/fpurge.c (fpurge): Likewise.
24997         * lib/freadable.c (freadable): Likewise.
24998         * lib/freadahead.c (freadahead): Likewise.
24999         * lib/freading.c (freading): Likewise.
25000         * lib/freadptr.c (freadptr): Likewise.
25001         * lib/freadseek.c (freadptrinc): Likewise.
25002         * lib/fseeko.c (rpl_fseeko): Likewise.
25003         * lib/fseterr.c (fseterr): Likewise.
25004         * lib/fwritable.c (fwritable): Likewise.
25005         * lib/fwriting.c (fwriting): Likewise.
25006         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25007
25008 2008-04-09  Eric Blake  <ebb9@byu.net>
25009
25010         Avoid some autoconf warnings.
25011         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25012         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25013         * m4/afs.m4 (gl_AFS): Likewise.
25014         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25015         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25016         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25017         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25018         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25019         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25020         (AC_CHECK_DECLS_ONCE): Likewise.
25021         Rename file...
25022         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25023         gnulib-tool requires autoconf 2.59 or better.
25024         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25025
25026 2008-04-08  Eric Blake  <ebb9@byu.net>
25027
25028         Use 'git describe --match' if present (added in git 1.5.5).
25029         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25030         if possible.
25031
25032 2008-04-08  Bruno Haible  <bruno@clisp.org>
25033
25034         Add tentative support for OpenServer.
25035         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25036         _ptr, _cnt.
25037         * lib/fpurge.c (fpurge): Likewise.
25038         * lib/freadable.c (freadable): Likewise.
25039         * lib/freadahead.c (freadahead): Likewise.
25040         * lib/freading.c (freading): Likewise.
25041         * lib/freadptr.c (freadptr): Likewise.
25042         * lib/freadseek.c (freadptrinc): Likewise.
25043         * lib/fseeko.c (rpl_fseeko): Likewise.
25044         * lib/fseterr.c (fseterr): Likewise.
25045         * lib/fwritable.c (fwritable): Likewise.
25046         * lib/fwriting.c (fwriting): Likewise.
25047         Reported by Roger Cornelius <rac@tenzing.org> and
25048         Brian K. White <brian@aljex.com>.
25049
25050 2008-04-06  Jim Meyering  <meyering@redhat.com>
25051
25052         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25053
25054 2008-04-06  Bruno Haible  <bruno@clisp.org>
25055
25056         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25057         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25058         * tests/test-printf-posix.sh: Likewise.
25059         * tests/test-vfprintf-posix.sh: Likewise.
25060         * tests/test-vprintf-posix.sh: Likewise.
25061         * tests/test-xprintf-posix.sh: Likewise.
25062
25063 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25064
25065         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25066         hide error from 'ls', needed on OS/2.
25067         Report by Elbert Pol <elbert.pol@gmail.com>.
25068
25069 2008-04-04  Eric Blake  <ebb9@byu.net>
25070
25071         Make test-fseeko.c failures meaningful.
25072         * tests/test-fseeko.c: Print line number on failure.
25073         * tests/test-fseek.c: Likewise.
25074         Reported by Nelson H. F. Beebe.
25075
25076         Improve strtod bug detection check.
25077         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25078         required for Solaris 10.
25079         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25080
25081 2008-04-04  Bruno Haible  <bruno@clisp.org>
25082
25083         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25084         by m4/setenv.m4.
25085
25086 2008-04-03  Eric Blake  <ebb9@byu.net>
25087
25088         Ensure sane .version contents.
25089         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25090         version string.
25091         * build-aux/git-version-gen: Improve documentation.
25092
25093         Make GNU make output nicer.
25094         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25095         MAKECMDGOALS to enforce message for all command line targets.  Set
25096         srcdir for use in maint.mk.
25097
25098         Another maintainer tweak.
25099         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25100         a target that regenerates version.
25101
25102 2008-04-03  Jim Meyering  <meyering@redhat.com>
25103
25104         vc-list-files: don't cause coreutils "make po-check" failure
25105         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25106
25107 2008-04-03  Eric Blake  <ebb9@byu.net>
25108
25109         Allow VPATH usage of vc-list-files.
25110         * build-aux/vc-list-files (scriptversion): Add timestamp.
25111         (options): Add --help, --version, -C.
25112         (CVS): Support installed cvsu.
25113
25114 2008-04-02  Bruno Haible  <bruno@clisp.org>
25115
25116         Avoid some "statement with no effect" warnings from gcc.
25117         * tests/test-wctype.c (main): Explicitly ignore unused values.
25118         Reported by Jim Meyering.
25119
25120 2008-04-02  Jim Meyering  <meyering@redhat.com>
25121
25122         Avoid some warnings from "gcc -Wshadow".
25123         * tests/test-frexp.c (exp): Define to a different identifier.
25124         * tests/test-frexpl.c (exp): Likewise.
25125
25126 2008-04-03  Jim Meyering  <meyering@redhat.com>
25127
25128         bootstrap: remove dangling *.[ch] symlinks from lib
25129         * build-aux/bootstrap [dangling symlink removal]: Move find's
25130         -depth option to precede all others, to avoid a warning.
25131         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25132
25133 2008-04-02  Bruno Haible  <bruno@clisp.org>
25134
25135         Avoid some warnings from "gcc -Wshadow".
25136         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25137         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25138         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25139         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25140         Reported by Jim Meyering.
25141
25142 2008-04-01  Bruno Haible  <bruno@clisp.org>
25143
25144         Fix test to work on IRIX 6.5 with cc.
25145         * tests/test-math.c (numeric_equal): New function.
25146         (main): Use it.
25147
25148 2008-04-01  Bruno Haible  <bruno@clisp.org>
25149
25150         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25151
25152 2008-04-01  Bruno Haible  <bruno@clisp.org>
25153
25154         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25155         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25156         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25157         (Depends-on): Remove math.
25158
25159         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25160         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25161         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25162         (Depends-on): Remove math.
25163
25164         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25165         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25166         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25167         (Depends-on): Remove math.
25168         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25169         (Depends-on): Remove math.
25170
25171         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25172         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25173         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25174         (Depends-on): Remove math.
25175         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25176         (Depends-on): Remove math.
25177
25178         * tests/test-round1.c: Include nan.h.
25179         (main): Use NaNd instead of NAN.
25180         * modules/round-tests (Files): Add tests/nan.h.
25181
25182         * tests/test-trunc1.c: Include nan.h.
25183         (main): Use NaNd instead of NAN.
25184         * modules/trunc-tests (Files): Add tests/nan.h.
25185
25186         * tests/test-roundf1.c: Include nan.h.
25187         (main): Use NaNf instead of NAN.
25188         * modules/roundf-tests (Files): Add tests/nan.h.
25189
25190         * tests/test-truncf1.c: Include nan.h.
25191         (main): Use NaNf instead of NAN.
25192         * modules/truncf-tests (Files): Add tests/nan.h.
25193
25194         * tests/test-ceilf1.c: Include nan.h.
25195         (main): Use NaNf instead of NAN.
25196         * modules/ceilf-tests (Files): Add tests/nan.h.
25197
25198         * tests/test-floorf1.c: Include nan.h.
25199         (main): Use NaNf instead of NAN.
25200         * modules/floorf-tests (Files): Add tests/nan.h.
25201
25202         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25203         (main): Use NaNf instead of NAN.
25204         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25205
25206         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25207         (main): Use NaNd instead of NAN.
25208         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25209
25210         * tests/test-frexp.c: Include nan.h.
25211         (main): Use NaNd instead of NAN.
25212         * modules/frexp-tests (Files): Add tests/nan.h.
25213
25214         * lib/isnan.c: Don't include <math.h>.
25215         (FUNC): Don't use NAN macro.
25216         * modules/isnand-nolibm (Depends-on): Remove math.
25217         * modules/isnanf-nolibm (Depends-on): Remove math.
25218         * modules/isnanl (Depends-on): Remove math.
25219         * modules/isnanl-nolibm (Depends-on): Remove math.
25220
25221         * tests/nan.h: New file.
25222
25223 2008-04-01  Eric Blake  <ebb9@byu.net>
25224
25225         Fix typos.
25226         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25227         values to be the right type.
25228
25229         For now, cater to gnulib strtod inaccuracies.
25230         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25231         fractional results.  While not as nice from a QoI perspective, it
25232         is a quicker patch than correctly implementing decimal to binary
25233         rounding.
25234
25235 2008-03-31  Eric Blake  <ebb9@byu.net>
25236
25237         Guarantee a definition of NAN.
25238         * lib/math.in.h (NAN): Define if missing.
25239         * tests/test-math.c (main): Test it.
25240         * doc/posix-headers/math.texi (math.h): Document this.
25241         * lib/isnan.c (rpl_isnand): Use it.
25242         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25243         * tests/test-floorf1.c (NaN): Likewise.
25244         * tests/test-frexp.c (NaN): Likewise.
25245         * tests/test-isnand.c (NaN): Likewise.
25246         * tests/test-isnanf.c (NaN): Likewise.
25247         * tests/test-round1.c (NaN): Likewise.
25248         * tests/test-roundf1.c (NaN): Likewise.
25249         * tests/test-snprintf-posix.h (NaN): Likewise.
25250         * tests/test-sprintf-posix.h (NaN): Likewise.
25251         * tests/test-trunc1.c (NaN): Likewise.
25252         * tests/test-truncf1.c (NaN): Likewise.
25253         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25254         * tests/test-vasprintf-posix.c (NaN): Likewise.
25255         * modules/isnand-nolibm (Depends-on): Add math.
25256         * modules/isnanf-nolibm (Depends-on): Likewise.
25257         * modules/isnanl (Depends-on): Likewise.
25258         * modules/isnanl-nolibm (Depends-on): Likewise.
25259         * modules/snprintf-posix-tests (Depends-on): Likewise.
25260         * modules/sprintf-posix-tests (Depends-on): Likewise.
25261         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25262         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25263         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25264         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25265
25266 2008-03-31  Bruno Haible  <bruno@clisp.org>
25267
25268         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25269         * doc/posix-functions/strtod.texi: Likewise.
25270
25271 2008-03-31  Bruno Haible  <bruno@clisp.org>
25272
25273         * tests/test-strtod.c (main): Don't use C99 syntax.
25274
25275 2008-03-31  Bruno Haible  <bruno@clisp.org>
25276
25277         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25278         Reported by Eric Blake.
25279
25280 2008-03-31  Jim Meyering  <meyering@redhat.com>
25281
25282         Don't compare actual signbit return values.
25283         * tests/test-strtod.c (main): Rather, compare only their
25284         zero/non-zero nature.
25285
25286 2008-03-31  Eric Blake  <ebb9@byu.net>
25287
25288         More strtod documentation.
25289         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25290         failures as distinct bugs.
25291
25292 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25293
25294         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25295         Problem reported by Erik Benada in
25296         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25297
25298 2008-03-30  Bruno Haible  <bruno@clisp.org>
25299
25300         * tests/test-strtod.c: Add comments about which assertion fails on which
25301         platform.
25302         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25303
25304 2008-03-30  Eric Blake  <ebb9@byu.net>
25305
25306         Test signbit behavior on zeros.
25307         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25308         (test_signbitd, test_signbitl): Likewise.
25309
25310         More strtod touchups.
25311         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25312         sign of negative underflow, for now.  Use .5, not .1.
25313         * doc/posix-functions/strtod.texi (strtod): Mention these
25314         limitations.
25315         Reported by Jim Meyering.
25316
25317 2008-03-30  Bruno Haible  <bruno@clisp.org>
25318
25319         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25320         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25321
25322 2008-03-30  Bruno Haible  <bruno@clisp.org>
25323
25324         Avoid failure when attempting to return empty iconv results on some
25325         platforms.
25326         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25327         allocation, don't report ENOMEM when the resulting string is empty.
25328
25329 2008-03-30  Bruno Haible  <bruno@clisp.org>
25330
25331         Fix buffer overrun.
25332         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25333         Don't consider the width for tmp_length. Check count against tmp_length
25334         before doing the padding. Ensure enough allocation during padding.
25335
25336 2008-03-30  Eric Blake  <ebb9@byu.net>
25337
25338         strtod touchups.
25339         * lib/strtod.c (strtod): Avoid compiler warnings.
25340         Reported by Jim Meyering.
25341
25342 2008-03-30  Bruno Haible  <bruno@clisp.org>
25343
25344         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25345         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25346         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25347         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25348         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25349         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25350         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25351         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25352
25353         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25354         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25355         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25356         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25357         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25358         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25359         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25360         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25361
25362         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25363         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25364         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25365         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25366         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25367         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25368         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25369         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25370
25371         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25372         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25373
25374         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25375         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25376
25377         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25378         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25379
25380         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25382         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25383
25384         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25386         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25387
25388         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25390         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25391
25392         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25394         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25395
25396         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25397         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25398         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25399         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25400         (Depends-on): Add EOVERFLOW.
25401         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25402         (Depends-on): Add EOVERFLOW.
25403         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25404         (Depends-on): Add EOVERFLOW.
25405         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25406         (Depends-on): Add EOVERFLOW.
25407         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25408         (Depends-on): Add EOVERFLOW.
25409         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25410         (Depends-on): Add EOVERFLOW.
25411         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25412         (Depends-on): Add EOVERFLOW.
25413         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25414         (Depends-on): Add EOVERFLOW.
25415
25416         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25417         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25418         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25419
25420         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25422         * modules/snprintf (Depends-on): Add EOVERFLOW.
25423
25424         * lib/poll.c (EOVERFLOW): Remove fallback.
25425         * modules/poll (Depends-on): Add EOVERFLOW.
25426
25427         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25428         * modules/getugroups (Depends-on): Add EOVERFLOW.
25429
25430         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25431         * modules/getdelim (Depends-on): Add EOVERFLOW.
25432
25433         * lib/ftell.c (EOVERFLOW): Remove fallback.
25434         * modules/ftell (Depends-on): Add EOVERFLOW.
25435
25436         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25438         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25439
25440         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25441
25442         * modules/EOVERFLOW-tests: New file.
25443         * tests/test-EOVERFLOW.c: New file.
25444
25445         * modules/EOVERFLOW: New file.
25446         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25447
25448 2008-03-30  Bruno Haible  <bruno@clisp.org>
25449
25450         Fix bug introduced on 2007-06-10.
25451         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25452         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25453
25454 2008-03-30  Bruno Haible  <bruno@clisp.org>
25455
25456         Improve freadseek's efficiency after ungetc.
25457         * lib/freadseek.c: Include freadahead.h.
25458         (freadptrinc): New function, extracted from freadseek.
25459         (freadseek): Use it in a loop. Use freadahead to determine the number
25460         of loop iterations.
25461         * modules/freadseek (Depends-on): Add freadahead.
25462         (configure.ac): Require AC_C_INLINE.
25463
25464 2008-03-30  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/freadseek.c (freadseek): Don't ignore the return value of
25467         freadptr.
25468
25469 2008-03-29  Eric Blake  <ebb9@byu.net>
25470
25471         Add hex float support.
25472         * modules/strtod (Depends-on): Add c-ctype.
25473         (Link): Mention POW_LIB.
25474         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25475         whitespace between 'e' and exponent.
25476         * tests/test-strtod.c (main): Enable hex float tests.
25477         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25478         now provides.
25479
25480         Document various strtod bugs, with some fixes.
25481         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25482         "-0x", "inf", "nan", and hex constants.
25483         * doc/posix-functions/atof.texi (atof): Likewise.
25484         * modules/stdlib (Makefile.am): Support strtod.
25485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25486         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25487         detect additional strtod bugs.
25488         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25489         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25490         bool where appropriate.  Parse 'inf' and 'nan'.
25491         * tests/test-strtod.c: New file.
25492         * modules/strtod (Depends-on): Add stdbool, stdlib.
25493         (configure.ac): Turn on module indicator.
25494         * modules/strtod-tests: New module.
25495
25496 2008-03-29  Eric Blake  <ebb9@byu.net>
25497
25498         Fix ftell on mingw.
25499         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25500         * modules/ftell-tests (Depends-on): Add binary-io.
25501         * modules/ftello-tests (Depends-on): Likewise.
25502         * tests/test-ftell.c (main): Enhance test to cover behavior after
25503         ungetc.  Enforce binary mode.
25504         * tests/test-ftello.c (main): Likewise.
25505
25506         Pass test-freadseek on cygwin.
25507         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25508         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25509         ungetc buffer.
25510
25511         * tests/test-fflush2.c (main): Fix typo.
25512
25513 2008-03-29  Bruno Haible  <bruno@clisp.org>
25514
25515         * tests/test-fflush2.c (main): Temporarily disable the contents of
25516         this test.
25517         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25518         Reported by Eric Blake.
25519
25520 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25521
25522         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25523         (GC_SHA224_DIGEST_SIZE): Add.
25524
25525         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25526         (gc_hash_digest_length): Likewise.
25527         (gc_hash_buffer): Likewise.
25528
25529 2008-03-25  Bruno Haible  <bruno@clisp.org>
25530
25531         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25532         detail which gettext release to use.
25533         Reported by Simon Josefsson.
25534
25535 2008-03-26  Jim Meyering  <meyering@redhat.com>
25536
25537         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25538         * modules/gnumakefile (clean-GNUmakefile): Also, use
25539         test ... && ... || : syntax rather than if-then ... fi.
25540
25541         gnumakefile: Don't double-quote-expand $(VPATH) value.
25542         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25543
25544 2008-03-24  Eric Blake  <ebb9@byu.net>
25545
25546         Alter GNUmakefile to install into top directory.
25547         * modules/maintainer-makefile: Split, and add dependency...
25548         * modules/gnumakefile: to this new module.
25549         * build-aux/GNUmakefile: Move...
25550         * top/GNUmakefile: ...here.
25551         * build-aux/maint.mk: Move...
25552         * top/maint.mk: ...here.
25553         * MODULES.html.sh (Support for maintaining...): Document new
25554         module.
25555
25556 2008-03-23  Bruno Haible  <bruno@clisp.org>
25557
25558         * gnulib-tool: New options --vc-files, --no-vc-files.
25559         (func_usage): Document them.
25560         (vc_files): New variable.
25561         (func_import): Consider vc_files.
25562         (func_create_testdir): Set vc_files to empty.
25563         Suggested by Jim Meyering and Karl Berry.
25564
25565 2008-03-23  Bruno Haible  <bruno@clisp.org>
25566
25567         Fix regex compilation error on HP-UX 11.
25568         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25569         * modules/regex (Files): Add m4/mbstate_t.m4.
25570         Reported by Ton Voon <ton.voon@altinity.com>.
25571
25572 2008-03-23  Bruno Haible  <bruno@clisp.org>
25573
25574         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25575
25576 2008-03-23  Eric Blake  <ebb9@byu.net>
25577             Bruno Haible  <bruno@clisp.org>
25578
25579         Install files from top/ in the destination directory.
25580         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25581         augmentation also for the files from top/.
25582         (func_import, func_create_testdir): Rewrite file names:
25583         top/filename -> filename.
25584
25585 2008-03-23  Bruno Haible  <bruno@clisp.org>
25586
25587         Tweak "gnulib --version" output.
25588         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25589
25590 2008-03-23  Bruno Haible  <bruno@clisp.org>
25591
25592         Tweak "gnulib --version" output.
25593         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25594         rather than contents of ChangeLog, when possible.
25595
25596 2008-03-21  Eric Blake  <ebb9@byu.net>
25597
25598         More --version tweaks.
25599         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25600         date of last ChangeLog entry.
25601
25602 2008-03-21  Jim Meyering  <meyering@redhat.com>
25603
25604         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25605
25606 2008-03-20  Eric Blake  <ebb9@byu.net>
25607
25608         VPATH fix.
25609         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25610
25611 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25612
25613         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25614         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25615
25616 2008-03-20  Eric Blake  <ebb9@byu.net>
25617
25618         Sync GNUmakefile with coreutils.
25619         * build-aux/GNUmakefile (have-Makefile): Rename...
25620         (_have-Makefile): ...to this, for namespace consideration.
25621         (GNUmakefile.cfg): Include, if present.
25622         (_autoreconf): Define a default.
25623         (_is-dist-target): New rule for rebuilds to pick up intra-release
25624         version.
25625         (maint-cfg.mk): Rename...
25626         (cfg.mk): ...to this.
25627
25628 2008-03-18  Jim Meyering  <meyering@redhat.com>
25629
25630         New script and module: mktempd
25631         * MODULES.html.sh (maint+release support): Add mktempd.
25632         * build-aux/mktempd: New file.
25633         * modules/mktempd: New file.
25634
25635 2008-03-15  Jim Meyering  <meyering@redhat.com>
25636
25637         Undo last change.
25638         * lib/sha1.c, lib/md5.c: 63 != ~63.
25639         Reported by Andreas Schwab.
25640
25641         sha1.c, md5.c: Hoist a redundant expression.
25642         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25643         "ctx->buflen" only once, before calling *_process_block.
25644         * lib/md5.c (md5_process_bytes): Likewise.
25645
25646 2008-03-14  Eric Blake  <ebb9@byu.net>
25647
25648         Bump copyright year in files generated by gnulib-tool.
25649         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25650         gnulib-tool, rather than hard-coding it.
25651
25652         Fix 'gnulib-tool --version' output to work with git.
25653         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25654         (startup): ...here.
25655         (func_version): Use it to invoke git-version-gen, rather than
25656         relying on CVS keyword expansion.  Modernize wording.
25657         (cvsdatestamp, last_checkin_date, version): Kill unused
25658         variables.
25659
25660 2008-03-12  Jim Meyering  <meyering@redhat.com>
25661
25662         Recognize optional cast of the argument to free.
25663         * build-aux/useless-if-before-free: Update regexps.
25664
25665         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25666
25667 2008-03-11  Bruno Haible  <bruno@clisp.org>
25668
25669         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25670         by a single package.
25671         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25672         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25673         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25674         Reported by Sam Steingold <sds@gnu.org>.
25675
25676 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25677
25678         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25679         repositories.
25680
25681 2008-03-11  Bruno Haible  <bruno@clisp.org>
25682
25683         Avoid conflicts between local macro definitions.
25684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25685         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25686
25687 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25688             Bruno Haible  <bruno@clisp.org>
25689
25690         Make va_copy work with some version of xlc on AIX 5.1.
25691         * lib/stdarg.in.h: New file.
25692         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25693         On AIX, use a <stdarg.h> file substitute.
25694         * modules/stdarg (Files): Add lib/stdarg.in.h.
25695         (Depends-on): Add include_next.
25696         (Makefile.am): Build a stdarg.h substitute if requested.
25697         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25698
25699 2008-03-10  Bruno Haible  <bruno@clisp.org>
25700
25701         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25703         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25704
25705 2008-03-10  Bruno Haible  <bruno@clisp.org>
25706
25707         * modules/stdlib (Depends-on): Add include_next, remove
25708         absolute-header.
25709
25710 2008-03-09  Bruno Haible  <bruno@clisp.org>
25711
25712         * lib/freadahead.h (freadahead): Document more precisely.
25713         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25714         the sum of both buffer sizes.
25715         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25716         * NEWS: Document the change.
25717
25718 2008-03-09  Bruno Haible  <bruno@clisp.org>
25719
25720         Extend freadptr to return also the buffer size.
25721         * lib/freadptr.h (freadptr): Add sizep argument.
25722         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25723         (freadptr): Add sizep argument. Determine buffer size like freadahead
25724         does.
25725         * tests/test-freadptr.c: Don't include freadahead.h.
25726         (main): Adapt for new calling convention of freadptr.
25727         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25728         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25729         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25730         tests/test-freadptr2.sh.
25731         (Depends): Remove freadahead.
25732         (TESTS): Add test-freadptr2.sh.
25733         (check_PROGRAMS): Add test-freadptr2.
25734
25735 2008-03-09  Bruno Haible  <bruno@clisp.org>
25736
25737         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25738         Report and solution by Simon Josefsson.
25739
25740 2008-03-06  Bruno Haible  <bruno@clisp.org>
25741
25742         Make fflush after ungetc work on BSD platforms.
25743         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25744         * tests/test-fflush2.c: New file.
25745         * tests/test-fflush2.sh: New file.
25746         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25747         tests/test-fflush2.c.
25748         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25749         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25750
25751 2008-03-06  Eric Blake  <ebb9@byu.net>
25752
25753         Likewise for ftello.
25754         * modules/ftello (Dependencies): Add extensions.
25755         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25756
25757 2008-03-06  Bruno Haible  <bruno@clisp.org>
25758
25759         * modules/fseeko (Dependencies): Add extensions.
25760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25761         Needed on glibc systems.
25762
25763 2008-03-06  Bruno Haible  <bruno@clisp.org>
25764
25765         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25766         email address.
25767         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25768
25769 2008-03-06  Bruno Haible  <bruno@clisp.org>
25770
25771         * users.txt: Add libgnupdf.
25772
25773 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25774
25775         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25776         (Header File Substitutes, Function Substitutes,
25777         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25778         (Build robot for gnulib): Fix typo.
25779
25780 2008-03-06  Bruno Haible  <bruno@clisp.org>
25781
25782         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25783         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25784
25785 2008-03-06  Bruno Haible  <bruno@clisp.org>
25786
25787         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25788         * doc/gnulib.texi: Include it.
25789
25790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25791
25792         * modules/func (License): Change license to unlimited; there was
25793         no LGPL parts in the module anyway.
25794
25795 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25796
25797         * modules/__func__: Renamed to modules/func.
25798         * modules/__func__-tests: Renamed to modules/func-tests.
25799         * tests/test-__func__.c: Renamed to tests/test-func.c.
25800         * m4/__func__.m4: Renamed to m4/func.m4.
25801         * doc/gnulib.texi (__func__): Section renamed to func.
25802         Suggested by Eric Blake <ebb9@byu.net>.
25803
25804 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25805
25806         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25807         about __func__.  Make example self-contained.  Suggested by Eric
25808         Blake <ebb9@byu.net>.
25809
25810         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25811         Suggested by Eric Blake <ebb9@byu.net>.
25812
25813 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25814
25815         * modules/__func__: New file.
25816         * modules/__func__-tests: New file.
25817         * tests/test-__func__.c: New file.
25818         * m4/__func__.m4: New file.
25819         * doc/gnulib.texi (__func__): Document __func__ module.
25820
25821 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25822
25823         * modules/byteswap (License): Re-license as LGPLv2+.
25824
25825 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25826
25827         * doc/Makefile: Add pdf target.
25828
25829 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25830
25831         * modules/inline (License): Use 'unlimited', since there are only
25832         *.m4 files in this module.
25833
25834 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25835             Bruno Haible  <bruno@clisp.org>
25836
25837         Add support for HP C 7.1 on OpenVMS 8.3.
25838         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25839
25840 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25841
25842         Update VMS specifics.
25843         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25844
25845 2008-03-02  Jim Meyering  <meyering@redhat.com>
25846
25847         Remove the last dependency on the "free" module.
25848         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25849         Reported by Bob Proulx.
25850
25851         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25852
25853         Remove useless "if" tests before free.  Deprecate "free" module.
25854         * doc/posix-functions/free.texi: Mention that this
25855         module is no longer useful.
25856         * modules/free (Notice): Say this module is obsolete.
25857         * modules/readutmp (Depends-on): Remove free.
25858         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25859         * lib/putenv.c (putenv): Likewise.
25860         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25861         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25862         * tests/test-c-strcasestr.c (main): Likewise.
25863         * tests/test-c-strstr.c (main): Likewise.
25864         * tests/test-mbscasestr1.c (main): Likewise.
25865         * tests/test-mbscasestr2.c (main): Likewise.
25866         * tests/test-mbsstr1.c (main): Likewise.
25867         * tests/test-mbsstr2.c (main): Likewise.
25868         * tests/test-memmem.c (main): Likewise.
25869         * tests/test-strcasestr.c (main): Likewise.
25870         * tests/test-striconv.c (main): Likewise.
25871         * tests/test-striconveh.c (main): Likewise.
25872         * tests/test-striconveha.c (main): Likewise.
25873         * tests/test-strstr.c (main): Likewise.
25874
25875         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25876
25877         bootstrap: sync from coreutils again
25878         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25879
25880 2008-03-01  Jim Meyering  <meyering@redhat.com>
25881
25882         bootstrap: sync from coreutils
25883         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25884         also when the target doesn't exist.
25885
25886 2008-03-01  Eric Blake  <ebb9@byu.net>
25887
25888         Fix bugs in last patch.
25889         * lib/memchr2.c (memchr2): Fix typo.
25890         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25891         extension.
25892         Reported by Bruce Korb.
25893
25894         New module 'memchr2'.
25895         * modules/memchr2: New file.
25896         * modules/memchr2-tests: Likewise.
25897         * lib/memchr2.h: Likewise.
25898         * lib/memchr2.c: Likewise, based on memchr.c.
25899         * tests/test-memchr2.c: New test.
25900         * MODULES.html.sh (String handling): Add memchr2.
25901
25902 2008-02-29  Bruno Haible  <bruno@clisp.org>
25903
25904         * modules/freadseek-tests: New file.
25905         * tests/test-freadseek.sh: New file.
25906         * tests/test-freadseek.c: New file.
25907
25908         New module 'freadseek'.
25909         * modules/freadseek: New file.
25910         * lib/freadseek.h: New file.
25911         * lib/freadseek.c: New file.
25912         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25913
25914 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25915
25916         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25917         wydawca.
25918
25919         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25920         program_invocation_name and program_invocation_short_name are
25921         present.
25922
25923 2008-02-28  Bruno Haible  <bruno@clisp.org>
25924
25925         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25926         * tests/test-freadptr.sh: Also test non-seekable stdin.
25927
25928 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25929
25930         * build-aux/bootstrap (source_base, m4_base)
25931         (doc_base, tests_base): New variables.
25932         (gnulib_tool_options): Do not hardcode base directories, use
25933         the above variables instead.
25934
25935 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25936
25937         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25938
25939 2008-02-28  Bruno Haible  <bruno@clisp.org>
25940
25941         * modules/freadptr-tests: New file.
25942         * tests/test-freadptr.sh: New file.
25943         * tests/test-freadptr.c: New file.
25944
25945         New module 'freadptr'.
25946         * modules/freadptr: New file.
25947         * lib/freadptr.h: New file.
25948         * lib/freadptr.c: New file.
25949         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25950
25951 2008-02-26  Karl Berry  <karl@freefriends.org>
25952
25953         Sync from Libtool:
25954         * libltdl/argz.c (argz_add, argz_count): New functions.
25955         * libltdl/argz.in.h: Declare them.
25956         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25957
25958 2008-02-22  Bruno Haible  <bruno@clisp.org>
25959
25960         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25961         is a pointer type.  Needed for HP-UX 10.
25962         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25963         * doc/posix-functions/gmtime_r.texi: Likewise.
25964         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25965
25966 2008-02-24  Bruno Haible  <bruno@clisp.org>
25967
25968         * modules/environ-tests: New file.
25969         * tests/test-environ.c: New file.
25970
25971         New module 'environ'.
25972         * modules/environ: New file.
25973         * lib/unistd.in.h (environ): New declaration.
25974         * m4/environ.m4: New file.
25975         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25976         after use.
25977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25978         HAVE_DECL_ENVIRON.
25979         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25980         HAVE_DECL_ENVIRON.
25981         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25982         wrong claim that 'environ' is missing on some systems.
25983         * modules/execute (Depends-on): Add environ.
25984         * lib/execute.c (environ): Remove fallback declaration.
25985         * modules/pipe (Depends-on): Add environ.
25986         * lib/pipe.c (environ): Remove fallback declaration.
25987         * modules/setenv (Depends-on): Add environ.
25988         * lib/setenv.c (environ): Remove fallback declaration.
25989         * modules/unsetenv (Depends-on): Add environ.
25990         * lib/unsetenv.c (environ): Remove fallback declaration.
25991         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25992         m4/environ.m4.
25993         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25994         (gl_PREREQ_UNSETENV): Likewise.
25995
25996 2008-02-24  Bruno Haible  <bruno@clisp.org>
25997
25998         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25999
26000 2008-02-20  Bob Proulx  <bob@proulx.com>
26001
26002         Enable use of older two part flavor 'git describe'.
26003         * build-aux/git-version-gen: If using the older two part flavor of
26004         git version then recreate the third part now present in the
26005         newer three part flavor of git describe.
26006
26007 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26008
26009         * lib/fts.c (fts_build): Typo correction to comment.
26010
26011 2008-02-17  Bruno Haible  <bruno@clisp.org>
26012
26013         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26014         generating no-op conflicts.
26015
26016 2008-02-17  Bruno Haible  <bruno@clisp.org>
26017
26018         Speed up by 10%.
26019         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26020         result_entries, rather than an index-based loop.
26021
26022 2008-02-17  Bruno Haible  <bruno@clisp.org>
26023
26024         Speed up by 25%.
26025         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26026         'hashcode_cached'.
26027         (entry_create): New function.
26028         (entry_hashcode): Use the cached hashcode if possible.
26029         (read_changelog_file, try_split_merged_entry): Use entry_create.
26030
26031 2008-02-17  Bruno Haible  <bruno@clisp.org>
26032
26033         Speed up from O(n^2) to O(n) for long ChangeLog files.
26034         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26035         (read_changelog_file): Change implementation of entries_reversed list
26036         to rbtreehash.
26037         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26038
26039 2008-02-17  Bruno Haible  <bruno@clisp.org>
26040
26041         New option --split-merged-entry.
26042         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26043         (find_paragraph_end, try_split_merged_entry): New functions.
26044         (long_options): Add option --split-merged-entry.
26045         (usage): Document option --split-merged-entry.
26046         (main): Implement option --split-merged-entry.
26047         Reported by Eric Blake.
26048
26049 2008-02-17  Bruno Haible  <bruno@clisp.org>
26050
26051         * lib/git-merge-changelog.c: Include c-strstr.h.
26052         (main): Support the "git pull --rebase" situation.
26053         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26054         Reported by Eric Blake.
26055
26056 2008-02-16  Eric Blake  <ebb9@byu.net>
26057
26058         Avoid doubling \ in common case of "c-maybe" quoting style.
26059         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26060         eliding outer quotes.
26061         * lib/quotearg.h: Document this.
26062         * tests/test-quotearg.c (result_strings, inputs, results_g)
26063         (flag_results, locale_results): Test it by adding a new string to
26064         each test group.
26065         (compare_strings): Test new string.
26066
26067 2008-02-13  Eric Blake  <ebb9@byu.net>
26068
26069         Avoid trigraph quoting in default output.
26070         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26071         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26072         unless explicitly requested.
26073         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26074
26075 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26076
26077         Don't rely on signed integer overflowing to negative value.
26078         * lib/getugroups.c (getugroups): Include <limits.h>.
26079         Instead, compare against INT_MAX, and increment only if the test passes.
26080
26081 2008-02-13  Jim Meyering  <meyering@redhat.com>
26082         and Eric Blake  <ebb9@byu.net>
26083
26084         Avoid shadowing warning and compile errors on Linux.
26085         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26086         forwarding macros on Linux.
26087         (dcgettext): Define a stub, for Linux.
26088         (results_g, main): Avoid warnings.
26089
26090 2008-02-12  Eric Blake  <ebb9@byu.net>
26091
26092         Silence warning in last patch.
26093         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26094
26095         Quotearg part 4: add tests, fix c-maybe colon quoting.
26096         * lib/quotearg.h: Improve documentation.
26097         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26098         escapes when adding outer quotes.  When quoting trigraphs, use
26099         valid C notation.  When quoting NUL, omit extra characters if next
26100         character is not digit.  Alter prototype.
26101         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26102         callers.
26103         * modules/quotearg-tests: New module.
26104         * tests/test-quotearg.c: New test.
26105
26106 2008-02-07  Eric Blake  <ebb9@byu.net>
26107
26108         Quotearg part 3: add flag to control outer quote elision.
26109         * lib/quotearg.h (c_maybe_quoting_style): New style.
26110         (enum quoting_flags): Better documentation of flags.
26111         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26112         c-maybe style.
26113         (quotearg_buffer_restyled): Handle new flag to elide outer
26114         quotes.
26115
26116         Quotearg part 2: add flag that can control NUL elision.
26117         * lib/quotearg.h (set_quoting_flags): New prototype.
26118         * lib/quotearg.c (struct quoting_options): Add flag field.
26119         (set_quoting_flags): New function.
26120         (quotearg_buffer_restyled): Add flags parameter.
26121         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26122         (quotearg_n_options): Set the flag, since length cannot be
26123         returned.
26124         (quoting_options_from_style): Default flags correctly.
26125
26126         Quotearg part 1: more wrappers, restore quotearg_char state.
26127         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26128         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26129         (quotearg_colon_mem): New wrappers.
26130         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26131         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26132         functions.
26133         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26134         (quotearg_colon_mem): New functions.
26135
26136 2008-02-11  Bruno Haible  <bruno@clisp.org>
26137
26138         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26139         library in the current directory: it does not work with parallel make.
26140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26141
26142 2008-02-11  Bruno Haible  <bruno@clisp.org>
26143
26144         * .gitattributes: New file.
26145
26146 2008-02-11  Jim Meyering  <meyering@redhat.com>
26147
26148         useless-if-before-free: Fix reversed exit values.
26149         * build-aux/useless-if-before-free: Use correct values
26150         for EXIT_MATCH and EXIT_NO_MATCH.
26151
26152         * build-aux/useless-if-before-free: Close stdout carefully.
26153
26154 2008-02-10  Bruno Haible  <bruno@clisp.org>
26155
26156         New module 'git-merge-changelog'.
26157         * modules/git-merge-changelog: New file.
26158         * lib/git-merge-changelog.c: New file.
26159
26160 2008-02-10  Jim Meyering  <meyering@redhat.com>
26161
26162         useless-if-before-free: New option: --list (-l).
26163
26164         useless-if-before-free: Don't exit immediately upon open failure.
26165         * build-aux/useless-if-before-free: Exit 2 for errors.
26166         Upon failure to open a file, don't exit immediately.
26167         Rather, just warn and continue with any remaining files.
26168
26169 2008-02-10  Bruno Haible  <bruno@clisp.org>
26170
26171         New abstract list operation 'node_set_value'.
26172         * lib/gl_list.h (gl_list_node_set_value): New function.
26173         (struct gl_list_implementation): New field node_set_value.
26174         * lib/gl_list.c (gl_list_node_set_value): New function.
26175         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26176         (gl_array_list_implementation): Update.
26177         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26178         (gl_carray_list_implementation): Update.
26179         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26180         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26181         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26182         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26183         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26184         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26185         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26186         Update.
26187         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26188         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26189         (gl_sublist_list_implementation): Update.
26190
26191 2008-02-10  Bruno Haible  <bruno@clisp.org>
26192
26193         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26194         Needed when ELEMENT is #defined to 'some_type *'.
26195
26196 2008-02-10  Jim Meyering  <meyering@redhat.com>
26197
26198         New script and module: useless-if-before-free
26199         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26200         * build-aux/useless-if-before-free: New file.
26201         * modules/useless-if-before-free: New file.
26202
26203         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26204
26205         xstrtol_error: Fix typo.
26206         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26207         s/exit_failure/exit_status/.
26208
26209 2008-02-09  Jim Meyering  <meyering@redhat.com>
26210
26211         New script and module: gitlog-to-changelog
26212         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26213         * modules/gitlog-to-changelog: New file.
26214         * build-aux/gitlog-to-changelog: New file.
26215
26216 2008-02-08  Jim Meyering  <meyering@redhat.com>
26217
26218         Avoid two "parameter unused" warnings.
26219         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26220         Mark "st" as used.
26221
26222         Use "git COMMAND", not "git-COMMAND".
26223         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26224         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26225         * build-aux/git-version-gen: Use "git status", not "git-status".
26226
26227 2008-02-07  Bruno Haible  <bruno@clisp.org>
26228
26229         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26230         Avoids a crash on Windows Vista.
26231         Reported by Adam Strzelecki <ono@java.pl> via
26232         Simon Josefsson <simon@josefsson.org>.
26233
26234 2008-02-06  Bruno Haible  <bruno@clisp.org>
26235
26236         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26237         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26238         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26242         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26243         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26251         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26252         left-adjust flag.
26253         * tests/test-snprintf-posix.h (test_function): Likewise.
26254         * tests/test-sprintf-posix.h (test_function): Likewise.
26255         * tests/test-vasprintf-posix.c (test_function): Likewise.
26256         * doc/posix-functions/fprintf.texi: Update.
26257         * doc/posix-functions/printf.texi: Update.
26258         * doc/posix-functions/snprintf.texi: Update.
26259         * doc/posix-functions/sprintf.texi: Update.
26260         * doc/posix-functions/vfprintf.texi: Update.
26261         * doc/posix-functions/vprintf.texi: Update.
26262         * doc/posix-functions/vsnprintf.texi: Update.
26263         * doc/posix-functions/vsprintf.texi: Update.
26264         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26265
26266 2008-02-06  Bruno Haible  <bruno@clisp.org>
26267
26268         Fix bug introduced on 2008-01-26.
26269         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26270
26271 2008-02-06  Bruno Haible  <bruno@clisp.org>
26272
26273         Fix bug introduced on 2007-06-10.
26274         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26275         !NEED_PRINTF_FLAG_ZERO.
26276
26277 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26278
26279         getloadavg: use libperfstat on AIX5
26280         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26281
26282 2008-02-03  Bruno Haible  <bruno@clisp.org>
26283
26284         * lib/diffseq.h: Add comments about required #includes.
26285         Reported by Michael Biggs <gnulib@doubleplum.net>.
26286
26287 2008-02-01  Bruno Haible  <bruno@clisp.org>
26288
26289         * users.txt: Add gnuit.
26290
26291 2008-01-31  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/md4.c (set_uint32): Mark as inline.
26294         * lib/md5.c (set_uint32): Likewise.
26295         * lib/sha1.c (set_uint32): Likewise.
26296         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26297         * m4/md5.m4 (gl_MD5): Likewise.
26298         * m4/sha1.m4 (gl_SHA1): Likewise.
26299
26300 2008-01-31  Jim Meyering  <meyering@redhat.com>
26301
26302         Use "sizeof VAR", rather than a literal "4".
26303         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26304         * lib/md4.c (md4_read_ctx): Likewise.
26305         * lib/sha1.c (sha1_read_ctx): Likewise.
26306
26307 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26308
26309         * tests/test-sha1.c: New file, based on test-md5.c.
26310
26311         * modules/crypto/sha1-tests: New file.
26312
26313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26314
26315         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26316
26317 2008-01-31  Jim Meyering  <meyering@redhat.com>
26318
26319         Prefer "sizeof v" over the equivalent "4".
26320         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26321         * lib/md5.c (set_uint32): Likewise.
26322         * lib/sha1.c (set_uint32): Likewise.
26323
26324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26325
26326         * lib/sha1.c (set_uint32): Mark function as static.
26327
26328 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26329
26330         md2: clarify comments to say that alignment is not required.
26331         * lib/md2.h: Remove warning about alignment in comment.
26332         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26333         never been required.
26334
26335 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26336
26337         md4: adapt alignment constraint fix from sha1.
26338         * lib/md4.c (set_uint32): New function, from sha1.c
26339         (md4_read_ctx): Use it.
26340         (md4_finish_ctx): Doc fix.
26341         * lib/md4.h: Doc fix.
26342
26343 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26344
26345         md5: adapt alignment constraint fix from sha1.
26346         * lib/md5.c (set_uint32): New function, from sha1.c
26347         (md5_read_ctx): Use it.
26348         (md5_finish_ctx): Doc fix.
26349         * lib/md5.h: Doc fix.
26350
26351 2008-01-30  Peter Palfrader  <weasel@debian.org>
26352
26353         sha1: remove the result buffer alignment constraint
26354         * lib/sha1.c (set_uint32): New function.
26355         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26356         constraint.
26357         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26358         * lib/sha1.h: Likewise.
26359
26360 2008-01-30  Andreas Schwab  <schwab@suse.de>
26361             Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26364         correct definition of LDBL_MIN_EXP.
26365
26366 2008-01-30  Karl Berry  <karl@gnu.org>
26367
26368         * config/srclist-update: try to preserve x bit on updates.
26369         * config/srclistvars.sh: update for karl.
26370
26371 2008-01-29  Jim Meyering  <meyering@redhat.com>
26372
26373         vasnprintf.c: Avoid warning about unused label
26374         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26375         "overflow" label definition and associated code with the
26376         same cpp condition that guards the sole use of that label.
26377
26378 2008-01-26  Bruno Haible  <bruno@clisp.org>
26379
26380         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26381         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26382         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26383         * lib/isnanl-nolibm.h (isnanl): Likewise.
26384         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26385
26386 2008-01-26  Bruno Haible  <bruno@clisp.org>
26387
26388         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26389         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26390
26391 2008-01-26  Bruno Haible  <bruno@clisp.org>
26392
26393         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26394         GCC >= 4.0 built-in.
26395         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26396
26397 2008-01-26  Bruno Haible  <bruno@clisp.org>
26398
26399         Rename isnan, applicable to 'double' only, to isnand.
26400         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26401         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26402         (configure.ac): Update.
26403         (Include): Replace "isnan.h" with "isnand.h".
26404         * m4/isnand.m4: Renamed from m4/isnan.m4.
26405         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26406         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26407         instead of isnan.c.
26408         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26409         instead of HAVE_ISNAN_IN_LIBC.
26410         (isnand): Renamed from isnan.
26411         * lib/isnand.c: New file.
26412         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26413         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26414         (Makefile.am): Update.
26415         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26416         Include isnand.h instead of isnan.h.
26417         (main): Test isnand instead of isnan.
26418         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26419         isnan-nolibm.
26420         * modules/frexp (Depends-on): Likewise.
26421         * modules/frexp-tests (Depends-on): Likewise.
26422         * modules/frexp-nolibm (Depends-on): Likewise.
26423         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26424         * modules/isfinite (Depends-on): Likewise.
26425         * modules/round-tests (Depends-on): Likewise.
26426         * modules/signbit (Depends-on): Likewise.
26427         * modules/signbit-tests (Depends-on): Likewise.
26428         * modules/snprintf-posix (Depends-on): Likewise.
26429         * modules/sprintf-posix (Depends-on): Likewise.
26430         * modules/trunc-tests (Depends-on): Likewise.
26431         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26432         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26433         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26434         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26435         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26436         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26437         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26438         * modules/vasnprintf-posix (Depends-on): Likewise.
26439         * modules/vasprintf-posix (Depends-on): Likewise.
26440         * modules/vfprintf-posix (Depends-on): Likewise.
26441         * modules/vsnprintf-posix (Depends-on): Likewise.
26442         * modules/vsprintf-posix (Depends-on): Likewise.
26443         * lib/frexp.c: Include isnand.h instead of isnan.h.
26444         (ISNAN): Set to isnand instead of isnan.
26445         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26446         (gl_isfinited): Use isnand instead of isnan.
26447         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26448         (gl_signbitd): Use isnand instead of isnan.
26449         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26450         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26451         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26452         (main): Use isnand instead of isnan.
26453         * tests/test-round1.c: Include isnand.h.
26454         (main): Use isnand instead of isnan.
26455         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26456         (ISNAN): Set to isnand instead of isnan.
26457         * tests/test-trunc1.c: Include isnand.h.
26458         (main): Use isnand instead of isnan.
26459         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26460         (equal): Use isnand instead of isnan.
26461         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26462         isnand-nolibm.
26463         * NEWS: Mention the change.
26464
26465 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26466             Bruno Haible  <bruno@clisp.org>
26467
26468         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26469         the GCC builtins for signbits are present and set
26470         REPLACE_SIGNBIT_USING_GCC if so.
26471         * lib/math.in.h (signbit): Define using GCC builtins if
26472         REPLACE_SIGNBIT_USING_GCC is set.
26473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26474         REPLACE_SIGNBIT_USING_GCC.
26475         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26476
26477 2008-01-25  Jim Meyering  <meyering@redhat.com>
26478
26479         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26480         * lib/poll.c: Include <config.h>, not "config.h".
26481         * tests/test-getaddrinfo.c: Likewise.
26482
26483 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26484
26485         * modules/sockets-tests: New file.
26486
26487 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26488
26489         * modules/sockets: New module, can be used to call WSA_Startup and
26490         WSA_Cleanup when needed.
26491
26492         * lib/sockets.h, lib/sockets.c: New files.
26493
26494         * m4/sockets.m4: New file.
26495
26496         * tests/test-sockets.c: New file.
26497
26498 2008-01-19  Bruno Haible  <bruno@clisp.org>
26499
26500         * doc/posix-headers: Renamed from doc/headers.
26501         * doc/posix-functions: Renamed from doc/functions.
26502         * doc/gnulib.texi: Update.
26503
26504 2008-01-19  Bruno Haible  <bruno@clisp.org>
26505
26506         * doc/glibc-functions/strcasestr.texi: Include contents of
26507         doc/functions/strcasestr.texi, fixing the list of platforms.
26508         * doc/functions/strcasestr.texi: Remove file.
26509
26510 2008-01-19  Bruno Haible  <bruno@clisp.org>
26511
26512         * doc/glibc-functions/memmem.texi: Include contents of
26513         doc/functions/memmem.texi.
26514         * doc/functions/memmem.texi: Remove file.
26515
26516 2008-01-18  Bruno Haible  <bruno@clisp.org>
26517
26518         * doc/glibc-functions/*.texi: New files.
26519         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26520         to use the new files.
26521
26522 2008-01-17  Bruno Haible  <bruno@clisp.org>
26523
26524         * tests/test-gethostname.c (main): Fix printf statement.
26525
26526 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26527
26528         * modules/gethostname-tests: New file.
26529
26530         * tests/test-gethostname.c: New file.
26531
26532 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26533
26534         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26535         used by the UNAME case.  Reported by Bruno Haible
26536         <bruno@clisp.org>.
26537
26538 2008-01-17  Eric Blake  <ebb9@byu.net>
26539
26540         Convert c-strcasestr to be more efficient.
26541         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26542         (Depends-on): Add c-strcase, remove malloca, strnlen.
26543         * tests/test-c-strcasestr.c (main): Enhance test.
26544         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26545
26546 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26547
26548         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26549         Use it in creating po/Makevars.
26550
26551 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26552
26553         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26554         Applications that requires it should initialize libgcrypt
26555         manually.
26556
26557 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26558
26559         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26560
26561 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         Fix problem with getdate on mingw32 reported by Simon Josefsson
26564         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26565         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26566         tzname", when deciding whether to declare tzname.
26567         * lib/strftime.c (tzname): Likewise.
26568
26569 2008-01-15  Bruno Haible  <bruno@clisp.org>
26570
26571         Work around a MacOS X 10.5 bug in frexpl().
26572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26573         * doc/functions/frexpl.texi: Document the bug.
26574         Reported by Elias Pipping <pipping@gentoo.org>.
26575
26576 2008-01-14  Eric Blake  <ebb9@byu.net>
26577
26578         Touch up previous patch.
26579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26580         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26581
26582         Convert strcasestr module to use Two-Way algorithm.
26583         * modules/strcasestr-simple: New module, based on the old
26584         strcasestr, but with Two-Way rather than KMP.
26585         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26586         * lib/string.in.h (rpl_strcasestr): Declare.
26587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26588         performance.
26589         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26590         * modules/string (Makefile.am): Support strcasestr.
26591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26592         * modules/strcasestr-tests (Depends-on): Check for alarm.
26593         * tests/test-strcasestr.c: Augment test.
26594         * lib/str-two-way.h: Clean up stray macro.
26595         * NEWS: Document new module.
26596         * MODULES.html.sh (string handling): Likewise.
26597         * doc/functions/strcasestr.texi: New file.
26598         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26599         here, since it is not a POSIX function.
26600
26601 2008-01-14  Colin Watson  <cjwatson@debian.org>
26602             Bruno Haible  <bruno@clisp.org>
26603
26604         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26605         works fine; if not, set REPLACE_STRSIGNAL.
26606         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26608         REPLACE_STRSIGNAL.
26609         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26610         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26611         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26612
26613 2008-01-14  Bruno Haible  <bruno@clisp.org>
26614
26615         * modules/strsignal (Include): Change to <string.h>.
26616
26617 2008-01-14  Colin Watson  <cjwatson@debian.org>
26618
26619         * modules/argp (Notice): Add a notice recommending to change
26620         XGETTEXT_OPTIONS.
26621         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26622
26623 2008-01-13  Colin Watson  <cjwatson@debian.org>
26624
26625         * modules/strsignal-tests: New file.
26626         * tests/test-strsignal.c: New file.
26627
26628         * lib/strsignal.c: New file, from glibc with modifications.
26629         * lib/siglist.h: New file, from glibc with modifications.
26630         * lib/string.in.h (strsignal): New declaration.
26631         * m4/strsignal.m4: New file.
26632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26633         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26634         * modules/strsignal: New file.
26635         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26636         HAVE_DECL_STRSIGNAL.
26637
26638 2008-01-13  Bruno Haible  <bruno@clisp.org>
26639
26640         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26641         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26642         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26643         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26644
26645 2008-01-13  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26648         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26649         * lib/argp.h (__attribute__): Likewise.
26650         * lib/c-stack.c (__attribute__): Likewise.
26651         * lib/error.h (__attribute__): Likewise.
26652         * lib/fts.c (__attribute__): Likewise.
26653         * lib/openat.h (__attribute__): Likewise.
26654         * lib/stdio.in.h (__attribute__): Likewise.
26655         * lib/string.in.h (__attribute__): Likewise.
26656         * lib/utimens.c (__attribute__): Likewise.
26657         * lib/vasnprintf.h (__attribute__): Likewise.
26658         * lib/xalloc.h (__attribute__): Likewise.
26659         * lib/xprintf.h (__attribute__): Likewise.
26660         * lib/xstrtol.h (__attribute__): Likewise.
26661         * lib/xvasprintf.h (__attribute__): Likewise.
26662
26663 2008-01-12  Bruno Haible  <bruno@clisp.org>
26664
26665         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26666         * doc/glibc-headers/a.out.texi: New file.
26667         * doc/glibc-headers/aliases.texi: New file.
26668         * doc/glibc-headers/alloca.texi: New file.
26669         * doc/glibc-headers/ar.texi: New file.
26670         * doc/glibc-headers/argp.texi: New file.
26671         * doc/glibc-headers/argz.texi: New file.
26672         * doc/glibc-headers/byteswap.texi: New file.
26673         * doc/glibc-headers/crypt.texi: New file.
26674         * doc/glibc-headers/endian.texi: New file.
26675         * doc/glibc-headers/envz.texi: New file.
26676         * doc/glibc-headers/err.texi: New file.
26677         * doc/glibc-headers/error.texi: New file.
26678         * doc/glibc-headers/execinfo.texi: New file.
26679         * doc/glibc-headers/fpu_control.texi: New file.
26680         * doc/glibc-headers/fstab.texi: New file.
26681         * doc/glibc-headers/fts.texi: New file.
26682         * doc/glibc-headers/getopt.texi: New file.
26683         * doc/glibc-headers/ieee754.texi: New file.
26684         * doc/glibc-headers/ifaddrs.texi: New file.
26685         * doc/glibc-headers/libintl.texi: New file.
26686         * doc/glibc-headers/mcheck.texi: New file.
26687         * doc/glibc-headers/mntent.texi: New file.
26688         * doc/glibc-headers/obstack.texi: New file.
26689         * doc/glibc-headers/paths.texi: New file.
26690         * doc/glibc-headers/printf.texi: New file.
26691         * doc/glibc-headers/pty.texi: New file.
26692         * doc/glibc-headers/resolv.texi: New file.
26693         * doc/glibc-headers/shadow.texi: New file.
26694         * doc/glibc-headers/sysexits.texi: New file.
26695         * doc/glibc-headers/ttyent.texi: New file.
26696
26697 2008-01-12  Jim Meyering  <meyering@redhat.com>
26698
26699         announce-gen: emit Gnulib's git-based version string.
26700         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26701         New option --gnulib-version=V, where V is expected to be
26702         the output of running git describe in the gnulib directory.
26703         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26704         not useful, and plan to stop publishing an xdelta file with each
26705         coreutils release.
26706
26707         * build-aux/announce-gen: Also check for lzma-compressed files.
26708
26709 2008-01-11  Bruno Haible  <bruno@clisp.org>
26710
26711         * tests/test-memmem.c (main): Increase maximum allowed time.
26712         * tests/test-strstr.c (main): Likewise.
26713
26714 2008-01-11  Bruno Haible  <bruno@clisp.org>
26715
26716         * doc/functions/memmem.texi: Add more precisions about platforms.
26717         * doc/functions/strstr.texi: Likewise.
26718
26719 2008-01-10  Eric Blake  <ebb9@byu.net>
26720
26721         * m4/strstr.m4: Delete cruft from copy-n-paste.
26722         Reported by Bruno Haible.
26723
26724 2008-01-10  Bruno Haible  <bruno@clisp.org>
26725
26726         Make c-strstr rely on strstr.
26727         * lib/c-strstr.c: Don't include str-kmp.h.
26728         (c_strstr): Define in terms of strstr.
26729         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26730         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26731
26732 2008-01-10  Bruno Haible  <bruno@clisp.org>
26733
26734         * doc/gnulib.texi (String Functions in C Locale): New section.
26735         * doc/c-ctype.texi: New file.
26736         * doc/c-strcase.texi: New file.
26737         * doc/c-strcaseeq.texi: New file.
26738         * doc/c-strcasestr.texi: New file.
26739         * doc/c-strstr.texi: New file.
26740         * doc/c-strtod.texi: New file.
26741         * doc/c-strtold.texi: New file.
26742
26743 2008-01-10  Eric Blake  <ebb9@byu.net>
26744
26745         * lib/relocatable.h: Fix a comment.
26746
26747 2008-01-10  Eric Blake  <ebb9@byu.net>
26748
26749         Share two-way algorithm.
26750         * lib/str-two-way.h: New file, merged from...
26751         * lib/memmem.c: ...here...
26752         * lib/strstr.c: ...and here.
26753         * modules/memmem (Files): Use it.
26754         * modules/strstr (Files): Likewise.
26755
26756         Avoid quadratic strstr implementations.
26757         * lib/strstr.c: New file.
26758         * m4/strstr.m4: Likewise.
26759         * modules/strstr: Likewise.
26760         * modules/strstr-tests: Likewise.
26761         * tests/test-strstr.c: Likewise.
26762         * lib/string.in.h (rpl_strstr): Declare.
26763         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26765         * modules/string (Makefile.am): Likewise.
26766         * MODULES.html.sh (string handling): Mention new module.
26767         * doc/functions/strstr.texi (strstr): Document the bug.
26768
26769 2008-01-10  Bruno Haible  <bruno@clisp.org>
26770
26771         * lib/relocatable.h (relocate): State whether result is freshly
26772         allocated or not.
26773         * lib/relocatable.c (relocate): Return a freshly allocated string
26774         instead of a pointer to a privately held string.
26775         Reported by Sylvain Beucler <beuc@gnu.org>.
26776
26777 2008-01-10  Colin Watson  <cjwatson@debian.org>
26778
26779         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26780         s/S_ISNLK/S_ISLNK/.
26781
26782 2008-01-09  Bruno Haible  <bruno@clisp.org>
26783
26784         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26785         and other files.
26786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26787         if it's only a guess.
26788         * modules/memmem: Simplify by depending on memmem-simple.
26789
26790 2008-01-09  Bruno Haible  <bruno@clisp.org>
26791
26792         Work around OpenBSD 4.0 tdelete() bug.
26793         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26794         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26795         macros and don't redefine the enum values.
26796         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26797         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26798         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26799
26800 2008-01-09  Bruno Haible  <bruno@clisp.org>
26801
26802         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26803         (main): Don't perform the tests if setlocale did not install a UTF-8
26804         locale. Needed on OpenBSD 4.0.
26805         * modules/wcwidth-tests (Depends-on): Add localcharset.
26806
26807 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26808
26809         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26810         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26811         * NEWS: announce this.
26812         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26813
26814 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26815         and Eric Blake  <ebb9@byu.net>
26816
26817         Add memmem-simple module.
26818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26819         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26820         * modules/memmem-simple: New file.
26821         * modules/memmem (Description): Tweak.
26822         * MODULES.html.sh (string handling): Mention new module.
26823         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26824         addressed by memmem-simple.
26825         * NEWS: Document the difference.
26826
26827 2008-01-09  Eric Blake  <ebb9@byu.net>
26828
26829         Give gcc some memmem optimization hints.
26830         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26831         (strcasestr): Declare as pure.
26832         * modules/memmem (Maintainer): Claim my implementation.
26833
26834 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26835
26836         Support AIX 6.1 and higher.
26837         * build-aux/config.libpath: Likewise.
26838         * build-aux/config.rpath: Likewise.
26839
26840 2008-01-08  Jim Meyering  <meyering@redhat.com>
26841             Bruno Haible  <bruno@clisp.org>
26842
26843         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26844         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26845         Reported by Peter Fales in
26846         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26847
26848 2008-01-08  Bruno Haible  <bruno@clisp.org>
26849
26850         * modules/unictype/category-of (Depends-on): Add
26851         unictype/category-none.
26852         * modules/unictype/category-and-tests (Depends-on): Add
26853         unictype/category-{L,N,Lu,Nd}.
26854         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26855         * modules/unictype/category-or-tests (Depends-on): Add
26856         unictype/category-{L,N}.
26857         * modules/unictype/category-name-tests (Depends-on): Add
26858         unictype/category-{Z,Nl}.
26859         Reported by Simon Josefsson.
26860
26861 2008-01-08  Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26864         convention better.
26865         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26866         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26867         Reported by Peter Miller <millerp@canb.auug.org.au>.
26868
26869 2008-01-08  Eric Blake  <ebb9@byu.net>
26870
26871         Rewrite memmem to guarantee linear complexity without malloc.
26872         * lib/memmem.c (memmem): Use Two-Way rather than
26873         Knuth-Morris-Pratt, to allow O(1) space usage.
26874         (critical_factorization, two_way_short_needle)
26875         (two_way_long_needle): New functions.
26876         (knuth_morris_pratt): Delete.
26877         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26878         Add stdint.
26879         * tests/test-memmem.c (main): Add tests for periodic needle and
26880         sublinear performance.
26881         * doc/functions/memmem.texi (memmem): Document other deficiencies
26882         in cygwin and older glibc.
26883
26884 2008-01-08  Bruno Haible  <bruno@clisp.org>
26885
26886         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26887         augmentation.
26888
26889 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26890
26891         Add a configure time option: --disable-acl.
26892         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26893         AC_ARG_ENABLE(acl).
26894
26895 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26896
26897         * tests/test-localename.c: Don't include obsolete "setenv.h".
26898
26899         * modules/localename-tests (Depends-on): Need unsetenv.
26900
26901 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26902
26903         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26904
26905 2008-01-06  Colin Watson  <cjwatson@debian.org>
26906
26907         * users.txt: Add man-db.
26908
26909 2008-01-07  Bruno Haible  <bruno@clisp.org>
26910
26911         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26912         previous section name.
26913
26914 2008-01-07  Bruno Haible  <bruno@clisp.org>
26915
26916         * lib/progname.c (set_program_name): Don't strip off a leading
26917         "lt-" prefix outside a .libs directory.
26918         Suggested by Paul Eggert.
26919
26920 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26921             Bruno Haible  <bruno@clisp.org>
26922
26923         Improve memory cleanup in 'relocatable' module.
26924         * lib/relocatable.h (compute_curr_prefix): Change return type to
26925         'char *'.
26926         * lib/relocatable.c (compute_curr_prefix): Change return type to
26927         'char *'. Free curr_installdir after use.
26928         (relocate): Free curr_prefix_better after use.
26929         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26930
26931 2008-01-01  Bruno Haible  <bruno@clisp.org>
26932
26933         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26934         failure on older glibc systems.
26935         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26936
26937 2008-01-05  Eric Blake  <ebb9@byu.net>
26938
26939         Avoid quadratic system memmem.
26940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26941         Reported by Ralf Wildenhues.
26942
26943         Fix memmem test for mingw.
26944         * modules/memmem-tests (configure.ac): Check for alarm.
26945         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26946         it.
26947         * doc/functions/memmem.texi: New file.
26948         * doc/gnulib.texi (Function Substitutes): Add memmem.
26949         Reported by Bruno Haible.
26950
26951 2008-01-04  Bruno Haible  <bruno@clisp.org>
26952
26953         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26954         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26955         gl_HEADER_STRING_H_DEFAULTS.
26956
26957 2008-01-04  Eric Blake  <ebb9@byu.net>
26958
26959         Shorten duration of memmem test.
26960         * tests/test-memmem.c (main): Use alarm to declare failure if test
26961         is taking too long.
26962         Reported by Ralf Wildenhues.
26963
26964 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26965
26966         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26967         string, needed by strerror.
26968
26969 2008-01-03  Colin Watson  <cjwatson@debian.org>
26970             Bruno Haible  <bruno@clisp.org>
26971
26972         * doc/gnulib-tool.texi (Localization): New section.
26973
26974 2008-01-02  Bruno Haible  <bruno@clisp.org>
26975
26976         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26977         variables to 'unsigned char *' type.
26978         Reported by Paul Eggert.
26979
26980 2008-01-02  Jim Meyering  <jim@meyering.net>
26981
26982         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26983
26984 2007-12-31  Jim Meyering  <jim@meyering.net>
26985
26986         Avoid use of private FTS type name.
26987         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26988
26989 2007-12-30  Karl Berry  <karl@gnu.org>
26990
26991         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26992         work around defect in Texinfo and/or the standalone Info browser.
26993
26994 2007-12-30  Bruno Haible  <bruno@clisp.org>
26995
26996         Unify 5 copies of the KMP code.
26997         * lib/str-kmp.h: New file.
26998         * lib/c-strcasestr.c: Include str-kmp.h.
26999         (knuth_morris_pratt): Remove function.
27000         (c_strcasestr): Update.
27001         * lib/c-strstr.c: Include str-kmp.h.
27002         (knuth_morris_pratt): Remove function.
27003         (c_strcasestr): Update.
27004         * lib/mbscasestr.c: Include str-kmp.h.
27005         (knuth_morris_pratt_unibyte): Remove function.
27006         * lib/mbsstr.c: Include str-kmp.h.
27007         (knuth_morris_pratt_unibyte): Remove function.
27008         * lib/strcasestr.c: Include str-kmp.h.
27009         (knuth_morris_pratt): Remove function.
27010         (strcasestr): Update.
27011         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27012         * modules/c-strstr (Files): Likewise.
27013         * modules/mbscasestr (Files): Likewise.
27014         * modules/mbsstr (Files): Likewise.
27015         * modules/strcasestr (Files): Likewise.
27016         Suggested by Paul Eggert.
27017
27018 2007-12-30  Bruno Haible  <bruno@clisp.org>
27019
27020         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27021         defined.
27022
27023 2007-12-30  Bruno Haible  <bruno@clisp.org>
27024
27025         * lib/xmalloca.h: Include xalloc.h.
27026         (xnmalloca): New macro.
27027
27028 2007-12-30  Bruno Haible  <bruno@clisp.org>
27029
27030         * lib/malloca.h (nmalloca): New macro.
27031         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27032         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27033         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27034         knuth_morris_pratt_multibyte): Likewise.
27035         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27036         knuth_morris_pratt_multibyte): Likewise.
27037         * lib/memmem.c (knuth_morris_pratt): Likewise.
27038         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27039
27040 2007-12-25  Bruno Haible  <bruno@clisp.org>
27041
27042         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27043         * lib/glob.c: Don't include openat.h.
27044         (link_exists2_p): Add back the code that deals with the
27045         !GLOB_ALTDIRFUNC case.
27046         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27047         let it do the filename concatenation.
27048         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27049         * modules/glob (Depends-on): Remove openat.
27050
27051 2007-12-31  Bruno Haible  <bruno@clisp.org>
27052
27053         * modules/dirfd (License): Change to LGPLv2+.
27054         Approved by Jim Meyering.
27055
27056 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27057
27058         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27059         when multiplying M by sizeof (size_t).
27060
27061 2007-12-10  Martin Lambers  <marlam@marlam.de>
27062
27063         Override getpagesize on mingw.
27064         * lib/getpagesize.c: New file.
27065         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27066         * modules/getpagesize (Files): Add lib/getpagesize.c.
27067         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27069         REPLACE_GETPAGESIZE.
27070         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27071
27072 2007-12-25  Bruno Haible  <bruno@clisp.org>
27073
27074         * modules/localcharset (Notice): New field.
27075         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27076         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27077
27078 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27079             Bruno Haible  <bruno@clisp.org>
27080
27081         Avoid using the syntax symbol() in formatted documentation.
27082         * MODULES.html.sh (func_module): When replacing symbol() with a
27083         hyperlink, remove the parentheses. Show an error if some remain.
27084         Recognize and render the '...' syntax.
27085         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27086         Rework. Add paragraph about GCC's inlining.
27087         * doc/alloca.texi: Likewise.
27088         * doc/error.texi: Remove parentheses from symbol reference.
27089         * doc/gnulib-intro.texi: Likewise.
27090         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27091         * modules/fnmatch (Description): Reword to say "the ... function".
27092         * modules/full-read (Description): Likewise.
27093         * modules/full-write (Description): Likewise.
27094         * modules/safe-read (Description): Likewise.
27095         * modules/safe-write (Description): Likewise.
27096         * modules/strchrnul (Description): Likewise.
27097         * modules/trim (Description): Likewise.
27098         * modules/error (Description): Remove parentheses from symbol
27099         references.
27100         * modules/verror (Description): Likewise.
27101         Reported by Karl Berry.
27102
27103 2007-12-25  Bruno Haible  <bruno@clisp.org>
27104
27105         Fixup after 2007-10-16 commit.
27106         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27107
27108 2007-12-24  Bruno Haible  <bruno@clisp.org>
27109
27110         Make --enable-relocatable work with DESTDIR.
27111         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27112         to compute installdir from destprog.
27113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27114         also set the RELOC_DESTDIR variable.
27115         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27116
27117 2007-12-24  Bruno Haible  <bruno@clisp.org>
27118
27119         Fix link error due to xalloc_die().
27120         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27121         of xreadlink.
27122         * lib/relocwrapper.c: Update comments.
27123         * build-aux/install-reloc: Remove xreadlink.c from file list.
27124         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27125         xreadlink.c.
27126         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27127
27128 2007-12-24  Bruno Haible  <bruno@clisp.org>
27129
27130         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27131         * lib/setenv.h: Remove file.
27132         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27133         lib/setenv.h.
27134         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27135         (Depends-on): Add stdlib.
27136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27137         gl_FUNC_UNSETENV.
27138         (Include): Replace setenv.h with <stdlib.h>.
27139         * modules/unsetenv: New file.
27140         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27141         * lib/unsetenv.c: Include <stdlib.h> first.
27142         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27143         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27144         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27145         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27146         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27147         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27149         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27150         * doc/functions/unsetenv.texi: Update.
27151         * modules/xsetenv (Depends-on): Add unsetenv.
27152         * modules/getdate (Depends-on): Likewise.
27153         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27154         * lib/xsetenv.c: Don't include setenv.h.
27155         * lib/getdate.y: Likewise.
27156         * lib/relocwrapper.c: Likewise.
27157         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27158         (Depends-on): Add stdlib.
27159         * NEWS: Mention the changes.
27160         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27161
27162 2007-12-23  Bruno Haible  <bruno@clisp.org>
27163
27164         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27165         indentation.
27166
27167 2007-12-23  Bruno Haible  <bruno@clisp.org>
27168
27169         * lib/c-strcasestr.c: Add more comments.
27170         * lib/c-strstr.c: Likewise.
27171         * lib/mbscasestr.c: Likewise.
27172         * lib/mbsstr.c: Likewise.
27173         * lib/strcasestr.c: Likewise.
27174         * lib/memmem.c: Likewise.
27175
27176 2007-12-23  Bruno Haible  <bruno@clisp.org>
27177
27178         * tests/test-memmem.c: Include <string.h> first.
27179
27180 2007-12-22  Bruno Haible  <bruno@clisp.org>
27181
27182         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27183         the contents of $testsbase.
27184         Reported by Ralf Wildenhues.
27185
27186 2007-12-22  Bruno Haible  <bruno@clisp.org>
27187
27188         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27189         two variables local_ldadd_before, local_ldadd_last.
27190
27191 2007-12-20  Eric Blake  <ebb9@byu.net>
27192
27193         Work around circular library issue when cross-compiling.
27194         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27195         that progname.o does not need to pull in rpl_memcmp.
27196
27197 2007-12-19  Eric Blake  <ebb9@byu.net>
27198
27199         Fix memmem to avoid O(n^2) worst-case complexity.
27200         * lib/memmem.c (knuth_morris_pratt): New function.
27201         (memmem): Use it if first few naive iterations fail.
27202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27203         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27204         * modules/memchr (License): Likewise.
27205         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27206         malloca.
27207         * tests/test-memmem.c: Rewrite, borrowing ideas from
27208         test-mbsstr1.c; the old version wouldn't even compile!
27209         * modules/memmem-tests: New file.
27210         * lib/string.in.h (rpl_memmem): Add declaration.
27211         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27213         REPLACE_MEMMEM.
27214
27215 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27216
27217         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27218         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27219         before any system include files, and undef after them all.  This
27220         should fix a problem on VMS reported by John E. Malmberg in
27221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27222
27223 2007-12-17  Eric Blake  <ebb9@byu.net>
27224
27225         Revert addition of verify, for BSD/OS.
27226         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27227         can't handle large files, for the sake of obsolete platforms.
27228         * modules/fseeko (Depends-on): Remove verify.
27229         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27230         * doc/functions/ftello.texi (ftello): Likewise.
27231         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27232         Reported by Larry Jones.
27233
27234 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27235
27236         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27237         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27238
27239 2007-12-17  Jim Meyering  <meyering@redhat.com>
27240
27241         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27242         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27243         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27244         * modules/getcwd (Depends-on): Add openat.
27245         Reported by Petr Salinger.
27246
27247 2007-12-17  Bruno Haible  <bruno@clisp.org>
27248
27249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27250         avoid a segmentation fault of the configure test on x86_64 systems.
27251
27252 2007-12-15  Jim Meyering  <meyering@redhat.com>
27253
27254         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27255
27256 2007-12-13  Eric Blake  <ebb9@byu.net>
27257
27258         Another fseek test.
27259         * tests/test-fseek.c (main): Also test ungetc handling.
27260         * tests/test-fseeko.c (main): Likewise.
27261         * modules/fseeko (Depends-on): Add verify.
27262         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27263         large.
27264         Reported by Larry Jones.
27265
27266         Fix fseeko on mingw.
27267         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27268         seek.
27269
27270         Beef up fseek tests.
27271         * tests/test-fseek.c (main): Also test eof handling.
27272         * tests/test-fseeko.c (main): Likewise.
27273         Reported by Larry Jones.
27274
27275 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27276
27277         Fix fseeko on BSD-based platforms.
27278         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27279         successful seek.
27280
27281 2007-12-12  Eric Blake  <ebb9@byu.net>
27282
27283         Allow circular dependency of separate libtests.a
27284         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27285         when use_libtests.
27286
27287 2007-12-11  Eric Blake  <ebb9@byu.net>
27288
27289         Fix bug with -0.0L in previous patch.
27290         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27291         * tests/test-isnan.c (main): Also test on zeroes.
27292         * tests/test-isnanf.c (main): Likewise.
27293         * tests/test-isnanl.h (main): Likewise.
27294
27295         Detect pseudo-denormals on x86 even when cross-compiling.
27296         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27297         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27298         invalid bit patterns that happen to satisfy ==.
27299
27300         Avoid link failures with separate libtests.a.
27301         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27302         last, to satisfy circular dependencies.
27303
27304 2007-12-11  Eric Blake  <ebb9@byu.net>
27305         and Bruno Haible  <bruno@clisp.org>
27306
27307         Fix OpenBSD 4.0 <float.h> handling of long double.
27308         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27309         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27310         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27311
27312 2007-12-11  Jim Meyering  <meyering@redhat.com>
27313
27314         * users.txt: Add libvirt.
27315
27316         Support versions of autoconf prior to 2.59c.
27317         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27318         if it is not already defined.
27319
27320 2007-12-09  Bruno Haible  <bruno@clisp.org>
27321
27322         Let 'gnulib-tool --import' collect sources needed for the tests in
27323         tests/ rather than in lib/.
27324         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27325         argument. If true, add rules to generate libtests.a, and put libtests.a
27326         into $(LDADD). Consider source files in subdirectories and set
27327         uses_subdirs.
27328         (func_emit_initmacro_start, func_emit_initmacro_end,
27329         func_emit_initmacro_done): Pass all arguments explicitly.
27330         (func_import): Determine two module lists main_modules,
27331         testsrelated_modules. Determine use_libtests. Determine two variables
27332         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27333         instead of just sed_transform_lib_file. Determine two variables
27334         main_files and testsrelated_files. Compute 'files' as the union of
27335         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27336         func_add_or_update. In the generated gnulib-comp.m4, collect the
27337         object files for tests/ in different variables than those for lib/.
27338         Substitute LIBTESTS_LIBDEPS.
27339         (func_create_testdir): Combine the uses_subdirs results from
27340         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27341
27342 2007-12-09  Bruno Haible  <bruno@clisp.org>
27343
27344         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27345         the build-aux directory.
27346
27347 2007-12-09  Bruno Haible  <bruno@clisp.org>
27348
27349         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27350         introduced on 2006-09-09.
27351
27352 2007-12-07  Jim Meyering  <meyering@redhat.com>
27353
27354         Let these macros work also with autoconf-2.59.
27355         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27356         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27357         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27358
27359 2007-12-06  Jim Meyering  <meyering@redhat.com>
27360
27361         Avoid a configure-time syntax error in gl_FUNC_ACL.
27362         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27363         function in each branch, before testing the cache variable.
27364
27365 2007-12-04  Eric Blake  <ebb9@byu.net>
27366
27367         Make scripts executable.
27368         * build-aux/config.guess: Add execute permissions.
27369         * build-aux/config.sub: Likewise.
27370         * build-aux/gendocs.sh: Likewise.
27371
27372         Fix frexp on mingw.
27373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27374         cross-compiling.
27375         * doc/functions/frexp.texi (frexp): Document the bug.
27376
27377         Make cygwin fseeko check more reliable.
27378         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27379         version numbers, rather than unrelated feature check.
27380         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27381         * doc/functions/ftello.texi (ftello): Likewise.
27382         Reported by Bruno Haible.
27383
27384         * m4/strerror.m4: Bump version number.
27385
27386 2007-12-03  Bruno Haible  <bruno@clisp.org>
27387
27388         * doc/functions/mprotect.texi: Mention the mingw problem.
27389
27390 2007-12-03  Eric Blake  <ebb9@byu.net>
27391
27392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27393         REPLACE_STRERROR is initialized before this macro.
27394
27395 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27396
27397         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27398         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27399         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27400         put -lsec in even for programs other than 'ls'.  This fixes a problem
27401         for gettext reported by Bruno Haible in
27402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27403         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27404         Add support for Solaris 10.  This isn't efficient, but should get the
27405         job done for now.
27406
27407 2007-12-03  James Youngman  <jay@gnu.org>
27408
27409         * doc/regexprops-generic.texi: change "an close-group" to "a
27410         close-group" and "illegal" to "not allowed".
27411
27412 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27413
27414         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27415         pr_byname.h. Needed for the rare case when the maintainer has done
27416         "make maintainer-clean" in the source directory and then attempts a
27417         build outside the source directory.
27418         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27419         scripts_byname.h.
27420
27421 2007-12-02  Martin Lambers <marlam@marlam.de>
27422             Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/getpagesize.h: Remove file.
27425         * lib/unistd.in.h: Include declaration of getpagesize here.
27426         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27427         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27428         HAVE_SYS_PARAM_H.
27429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27430         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27431         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27432         (Depends-on): Add unistd.
27433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27434         (Include): Use <unistd.h> instead of getpagesize.h.
27435         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27436         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27437         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27438         gl_GETPAGESIZE invocation, already handled by module dependency.
27439         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27440
27441 2007-12-02  Bruno Haible  <bruno@clisp.org>
27442
27443         * modules/strings-tests: New file.
27444         * tests/test-strings.c: New file.
27445
27446         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27447         * lib/strings.in.h: New file.
27448         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27449         * m4/strings_h.m4: New file.
27450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27451         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27452         * modules/strings: New file.
27453         * modules/string (Makefile.am): Update.
27454         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27455         Reported by Karl Berry.
27456
27457 2007-12-01  Eric Blake  <ebb9@byu.net>
27458
27459         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27460         accomodate fix in cygwin 1.5.25.
27461
27462 2007-12-01  Jim Meyering  <meyering@redhat.com>
27463
27464         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27465         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27466         that would inhibit utf8-optimization of a regexp containing line-
27467         or buffer-anchors, e.g., `^', `$'.
27468
27469 2007-11-30  Bruno Haible  <bruno@clisp.org>
27470
27471         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27472         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27473         glthread_recursive_lock_init.
27474         * lib/lock.c (glthread_recursive_lock_init)
27475         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27476         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27477
27478 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27479
27480         New function qset_acl, like set_acl but with syscall semantics.
27481         * lib/acl.h (qset_acl): New decl.
27482         * lib/acl.c (qset_acl): New function.
27483         (set_acl): Use new function.  Use more-consistent diagnostics.
27484
27485 2007-11-28  Jim Meyering  <meyering@redhat.com>
27486
27487         * modules/physmem (License): Change from GPL to LGPLv2+.
27488
27489 2007-11-26  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27492         'long double' type has excess precision.
27493         Reported by Jim Meyering in
27494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27495
27496 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27497
27498         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27499         Sync from <http://gnu.org/licenses>.
27500         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27501         with license text from same location.
27502         * doc/maintain.texi, doc/standards.texi:  Sync from
27503         <http://savannah.gnu.org/projects/gnustandards>.
27504
27505 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
27506         and Jim Meyering  <meyering@redhat.com>
27507
27508         Adjust getdate' grammar to accept a slightly more regular language.
27509         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27510         Before, the former was rejected.
27511         * lib/getdate.y (digits_to_date_time): New function, factored
27512         out of ...
27513         (number): ...here.  Just call digits_to_date_time.
27514         (hybrid): New non-terminal to handle an <unsigned number,
27515         signed relative offset> sequence consistently.
27516
27517 2007-11-18  Jim Meyering  <meyering@redhat.com>
27518
27519         Pull my changes from coreutils:
27520         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27521         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27522         use of $gnulib_tool_option_extras, so that it's separated from the
27523         preceding argument.
27524
27525         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27526         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27527         parent destination directories before copying a file into place.
27528
27529 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27530
27531         bootstrap: work also with 4-argument variant of AC_INIT
27532         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27533
27534 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27535
27536         Port test-getaddrinfo to Solaris.
27537         Problem reported by Bruno Haible in
27538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27539         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27540         explanation of setting 'hints'.
27541         Don't reject an implementation merely because it returns EAI_SERVICE.
27542         (EAI_SERVICE): Define to 0 if not defined.
27543
27544 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         The license of gnu-make and posix-shell is now "GPLed build tool".
27547         * modules/gnu-make (License): Likewise.
27548         * modules/posix-shell (License): Likewise.
27549
27550         New module posix-shell, for determining a POSIX shell
27551         or perhaps something that is close enough to a POSIX shell.
27552         * m4/posix-shell.m4: New file.
27553         * modules/posix-shell: New file.
27554
27555         * MODULES.html.sh: Mention new module.
27556
27557         New module gnu-make, for determining whether we're using GNU Make.
27558         * m4/gnu-make.m4: New file.
27559         * modules/gnu-make: New file.
27560         * MODULES.html.sh: Mention new module.
27561
27562 2007-11-14  Jim Meyering  <meyering@redhat.com>
27563
27564         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27565         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27566         use this macro to create a function _definition_.
27567         Remove useless "#undef ARGMATCH_DIE".
27568
27569 2007-11-14  Bruno Haible  <bruno@clisp.org>
27570
27571         * lib/config.charset: Update for OpenBSD 4.1.
27572         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27573
27574 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27575
27576         Document 64-bit #if problems in stdint.texi.
27577         * doc/headers/stdint.texi (stdint.h): Mention problems with
27578         64-bit-#if, and how to work around them.
27579
27580         Don't insist on 'long long int' support in the preprocessor.  It
27581         breaks too many things.  For example, PRIdMAX still uses a 'long
27582         long int' format with the latest Sun compiler, even though
27583         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27584         preprocessor problem.  This causes the latest coreutils to dump
27585         core on Solaris 10 sparc with the Sun C compiler.
27586         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27587         the troublesome expressions at configure-time, not at #if-time.
27588         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27589         preprocessor.
27590         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27591         compile-time C checks, done at 'configure'-time.
27592         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27593         * modules/inttypes (Makefile): Substitute the new symbols that
27594         gl_INTTYPES_H now generates.
27595         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27596
27597 2007-11-12  Bruno Haible  <bruno@clisp.org>
27598
27599         Tests for Unicode character classification functions.
27600
27601         * modules/unictype/bidicategory-byname-tests: New file.
27602         * modules/unictype/bidicategory-name-tests: New file.
27603         * modules/unictype/bidicategory-of-tests: New file.
27604         * modules/unictype/bidicategory-test-tests: New file.
27605         * modules/unictype/block-list-tests: New file.
27606         * modules/unictype/block-of-tests: New file.
27607         * modules/unictype/block-test-tests: New file.
27608         * modules/unictype/category-C-tests: New file.
27609         * modules/unictype/category-Cc-tests: New file.
27610         * modules/unictype/category-Cf-tests: New file.
27611         * modules/unictype/category-Cn-tests: New file.
27612         * modules/unictype/category-Co-tests: New file.
27613         * modules/unictype/category-Cs-tests: New file.
27614         * modules/unictype/category-L-tests: New file.
27615         * modules/unictype/category-Ll-tests: New file.
27616         * modules/unictype/category-Lm-tests: New file.
27617         * modules/unictype/category-Lo-tests: New file.
27618         * modules/unictype/category-Lt-tests: New file.
27619         * modules/unictype/category-Lu-tests: New file.
27620         * modules/unictype/category-M-tests: New file.
27621         * modules/unictype/category-Mc-tests: New file.
27622         * modules/unictype/category-Me-tests: New file.
27623         * modules/unictype/category-Mn-tests: New file.
27624         * modules/unictype/category-N-tests: New file.
27625         * modules/unictype/category-Nd-tests: New file.
27626         * modules/unictype/category-Nl-tests: New file.
27627         * modules/unictype/category-No-tests: New file.
27628         * modules/unictype/category-P-tests: New file.
27629         * modules/unictype/category-Pc-tests: New file.
27630         * modules/unictype/category-Pd-tests: New file.
27631         * modules/unictype/category-Pe-tests: New file.
27632         * modules/unictype/category-Pf-tests: New file.
27633         * modules/unictype/category-Pi-tests: New file.
27634         * modules/unictype/category-Po-tests: New file.
27635         * modules/unictype/category-Ps-tests: New file.
27636         * modules/unictype/category-S-tests: New file.
27637         * modules/unictype/category-Sc-tests: New file.
27638         * modules/unictype/category-Sk-tests: New file.
27639         * modules/unictype/category-Sm-tests: New file.
27640         * modules/unictype/category-So-tests: New file.
27641         * modules/unictype/category-Z-tests: New file.
27642         * modules/unictype/category-Zl-tests: New file.
27643         * modules/unictype/category-Zp-tests: New file.
27644         * modules/unictype/category-Zs-tests: New file.
27645         * modules/unictype/category-and-not-tests: New file.
27646         * modules/unictype/category-and-tests: New file.
27647         * modules/unictype/category-byname-tests: New file.
27648         * modules/unictype/category-name-tests: New file.
27649         * modules/unictype/category-none-tests: New file.
27650         * modules/unictype/category-of-tests: New file.
27651         * modules/unictype/category-or-tests: New file.
27652         * modules/unictype/category-test-withtable-tests: New file.
27653         * modules/unictype/combining-class-tests: New file.
27654         * modules/unictype/ctype-alnum-tests: New file.
27655         * modules/unictype/ctype-alpha-tests: New file.
27656         * modules/unictype/ctype-blank-tests: New file.
27657         * modules/unictype/ctype-cntrl-tests: New file.
27658         * modules/unictype/ctype-digit-tests: New file.
27659         * modules/unictype/ctype-graph-tests: New file.
27660         * modules/unictype/ctype-lower-tests: New file.
27661         * modules/unictype/ctype-print-tests: New file.
27662         * modules/unictype/ctype-punct-tests: New file.
27663         * modules/unictype/ctype-space-tests: New file.
27664         * modules/unictype/ctype-upper-tests: New file.
27665         * modules/unictype/ctype-xdigit-tests: New file.
27666         * modules/unictype/decimal-digit-tests: New file.
27667         * modules/unictype/digit-tests: New file.
27668         * modules/unictype/mirror-tests: New file.
27669         * modules/unictype/numeric-tests: New file.
27670         * modules/unictype/property-alphabetic-tests: New file.
27671         * modules/unictype/property-ascii-hex-digit-tests: New file.
27672         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27673         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27674         * modules/unictype/property-bidi-block-separator-tests: New file.
27675         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27676         * modules/unictype/property-bidi-common-separator-tests: New file.
27677         * modules/unictype/property-bidi-control-tests: New file.
27678         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27679         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27680         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27681         * modules/unictype/property-bidi-european-digit-tests: New file.
27682         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27683         * modules/unictype/property-bidi-left-to-right-tests: New file.
27684         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27685         * modules/unictype/property-bidi-other-neutral-tests: New file.
27686         * modules/unictype/property-bidi-pdf-tests: New file.
27687         * modules/unictype/property-bidi-segment-separator-tests: New file.
27688         * modules/unictype/property-bidi-whitespace-tests: New file.
27689         * modules/unictype/property-byname-tests: New file.
27690         * modules/unictype/property-combining-tests: New file.
27691         * modules/unictype/property-composite-tests: New file.
27692         * modules/unictype/property-currency-symbol-tests: New file.
27693         * modules/unictype/property-dash-tests: New file.
27694         * modules/unictype/property-decimal-digit-tests: New file.
27695         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27696         * modules/unictype/property-deprecated-tests: New file.
27697         * modules/unictype/property-diacritic-tests: New file.
27698         * modules/unictype/property-extender-tests: New file.
27699         * modules/unictype/property-format-control-tests: New file.
27700         * modules/unictype/property-grapheme-base-tests: New file.
27701         * modules/unictype/property-grapheme-extend-tests: New file.
27702         * modules/unictype/property-grapheme-link-tests: New file.
27703         * modules/unictype/property-hex-digit-tests: New file.
27704         * modules/unictype/property-hyphen-tests: New file.
27705         * modules/unictype/property-id-continue-tests: New file.
27706         * modules/unictype/property-id-start-tests: New file.
27707         * modules/unictype/property-ideographic-tests: New file.
27708         * modules/unictype/property-ids-binary-operator-tests: New file.
27709         * modules/unictype/property-ids-trinary-operator-tests: New file.
27710         * modules/unictype/property-ignorable-control-tests: New file.
27711         * modules/unictype/property-iso-control-tests: New file.
27712         * modules/unictype/property-join-control-tests: New file.
27713         * modules/unictype/property-left-of-pair-tests: New file.
27714         * modules/unictype/property-line-separator-tests: New file.
27715         * modules/unictype/property-logical-order-exception-tests: New file.
27716         * modules/unictype/property-lowercase-tests: New file.
27717         * modules/unictype/property-math-tests: New file.
27718         * modules/unictype/property-non-break-tests: New file.
27719         * modules/unictype/property-not-a-character-tests: New file.
27720         * modules/unictype/property-numeric-tests: New file.
27721         * modules/unictype/property-other-alphabetic-tests: New file.
27722         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27723         * modules/unictype/property-other-grapheme-extend-tests: New file.
27724         * modules/unictype/property-other-id-continue-tests: New file.
27725         * modules/unictype/property-other-id-start-tests: New file.
27726         * modules/unictype/property-other-lowercase-tests: New file.
27727         * modules/unictype/property-other-math-tests: New file.
27728         * modules/unictype/property-other-uppercase-tests: New file.
27729         * modules/unictype/property-paired-punctuation-tests: New file.
27730         * modules/unictype/property-paragraph-separator-tests: New file.
27731         * modules/unictype/property-pattern-syntax-tests: New file.
27732         * modules/unictype/property-pattern-white-space-tests: New file.
27733         * modules/unictype/property-private-use-tests: New file.
27734         * modules/unictype/property-punctuation-tests: New file.
27735         * modules/unictype/property-quotation-mark-tests: New file.
27736         * modules/unictype/property-radical-tests: New file.
27737         * modules/unictype/property-sentence-terminal-tests: New file.
27738         * modules/unictype/property-soft-dotted-tests: New file.
27739         * modules/unictype/property-space-tests: New file.
27740         * modules/unictype/property-terminal-punctuation-tests: New file.
27741         * modules/unictype/property-test-tests: New file.
27742         * modules/unictype/property-titlecase-tests: New file.
27743         * modules/unictype/property-unassigned-code-value-tests: New file.
27744         * modules/unictype/property-unified-ideograph-tests: New file.
27745         * modules/unictype/property-uppercase-tests: New file.
27746         * modules/unictype/property-variation-selector-tests: New file.
27747         * modules/unictype/property-white-space-tests: New file.
27748         * modules/unictype/property-xid-continue-tests: New file.
27749         * modules/unictype/property-xid-start-tests: New file.
27750         * modules/unictype/property-zero-width-tests: New file.
27751         * modules/unictype/scripts-tests: New file.
27752         * modules/unictype/syntax-c-ident-tests: New file.
27753         * modules/unictype/syntax-c-whitespace-tests: New file.
27754         * modules/unictype/syntax-java-ident-tests: New file.
27755         * modules/unictype/syntax-java-whitespace-tests: New file.
27756         * tests/unictype/test-bidi_byname.c: New file.
27757         * tests/unictype/test-bidi_name.c: New file.
27758         * tests/unictype/test-bidi_of.c: New file.
27759         * tests/unictype/test-bidi_test.c: New file.
27760         * tests/unictype/test-block_list.c: New file.
27761         * tests/unictype/test-block_of.c: New file.
27762         * tests/unictype/test-block_test.c: New file.
27763         * tests/unictype/test-categ_and.c: New file.
27764         * tests/unictype/test-categ_and_not.c: New file.
27765         * tests/unictype/test-categ_byname.c: New file.
27766         * tests/unictype/test-categ_name.c: New file.
27767         * tests/unictype/test-categ_none.c: New file.
27768         * tests/unictype/test-categ_of.c: New file.
27769         * tests/unictype/test-categ_or.c: New file.
27770         * tests/unictype/test-categ_test_withtable.c: New file.
27771         * tests/unictype/test-combining.c: New file.
27772         * tests/unictype/test-decdigit.c: New file.
27773         * tests/unictype/test-digit.c: New file.
27774         * tests/unictype/test-mirror.c: New file.
27775         * tests/unictype/test-numeric.c: New file.
27776         * tests/unictype/test-pr_byname.c: New file.
27777         * tests/unictype/test-pr_test.c: New file.
27778         * tests/unictype/test-predicate-part1.h: New file.
27779         * tests/unictype/test-predicate-part2.h: New file.
27780         * tests/unictype/test-scripts.c: New file.
27781         * tests/unictype/test-sy_c_ident.c: New file.
27782         * tests/unictype/test-sy_java_ident.c: New file.
27783
27784         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27785         for Unicode 5.0.0.
27786         * tests/unictype/test-categ_Cc.c: Likewise.
27787         * tests/unictype/test-categ_Cf.c: Likewise.
27788         * tests/unictype/test-categ_Cn.c: Likewise.
27789         * tests/unictype/test-categ_Co.c: Likewise.
27790         * tests/unictype/test-categ_Cs.c: Likewise.
27791         * tests/unictype/test-categ_L.c: Likewise.
27792         * tests/unictype/test-categ_Ll.c: Likewise.
27793         * tests/unictype/test-categ_Lm.c: Likewise.
27794         * tests/unictype/test-categ_Lo.c: Likewise.
27795         * tests/unictype/test-categ_Lt.c: Likewise.
27796         * tests/unictype/test-categ_Lu.c: Likewise.
27797         * tests/unictype/test-categ_M.c: Likewise.
27798         * tests/unictype/test-categ_Mc.c: Likewise.
27799         * tests/unictype/test-categ_Me.c: Likewise.
27800         * tests/unictype/test-categ_Mn.c: Likewise.
27801         * tests/unictype/test-categ_N.c: Likewise.
27802         * tests/unictype/test-categ_Nd.c: Likewise.
27803         * tests/unictype/test-categ_Nl.c: Likewise.
27804         * tests/unictype/test-categ_No.c: Likewise.
27805         * tests/unictype/test-categ_P.c: Likewise.
27806         * tests/unictype/test-categ_Pc.c: Likewise.
27807         * tests/unictype/test-categ_Pd.c: Likewise.
27808         * tests/unictype/test-categ_Pe.c: Likewise.
27809         * tests/unictype/test-categ_Pf.c: Likewise.
27810         * tests/unictype/test-categ_Pi.c: Likewise.
27811         * tests/unictype/test-categ_Po.c: Likewise.
27812         * tests/unictype/test-categ_Ps.c: Likewise.
27813         * tests/unictype/test-categ_S.c: Likewise.
27814         * tests/unictype/test-categ_Sc.c: Likewise.
27815         * tests/unictype/test-categ_Sk.c: Likewise.
27816         * tests/unictype/test-categ_Sm.c: Likewise.
27817         * tests/unictype/test-categ_So.c: Likewise.
27818         * tests/unictype/test-categ_Z.c: Likewise.
27819         * tests/unictype/test-categ_Zl.c: Likewise.
27820         * tests/unictype/test-categ_Zp.c: Likewise.
27821         * tests/unictype/test-categ_Zs.c: Likewise.
27822         * tests/unictype/test-ctype_alnum.c: Likewise.
27823         * tests/unictype/test-ctype_alpha.c: Likewise.
27824         * tests/unictype/test-ctype_blank.c: Likewise.
27825         * tests/unictype/test-ctype_cntrl.c: Likewise.
27826         * tests/unictype/test-ctype_digit.c: Likewise.
27827         * tests/unictype/test-ctype_graph.c: Likewise.
27828         * tests/unictype/test-ctype_lower.c: Likewise.
27829         * tests/unictype/test-ctype_print.c: Likewise.
27830         * tests/unictype/test-ctype_punct.c: Likewise.
27831         * tests/unictype/test-ctype_space.c: Likewise.
27832         * tests/unictype/test-ctype_upper.c: Likewise.
27833         * tests/unictype/test-ctype_xdigit.c: Likewise.
27834         * tests/unictype/test-decdigit.h: Likewise.
27835         * tests/unictype/test-digit.h: Likewise.
27836         * tests/unictype/test-numeric.h: Likewise.
27837         * tests/unictype/test-pr_alphabetic.c: Likewise.
27838         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27839         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27840         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27841         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27842         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27843         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27844         * tests/unictype/test-pr_bidi_control.c: Likewise.
27845         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27846         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27847         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27848         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27849         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27850         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27851         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27852         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27853         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27854         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27855         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27856         * tests/unictype/test-pr_combining.c: Likewise.
27857         * tests/unictype/test-pr_composite.c: Likewise.
27858         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27859         * tests/unictype/test-pr_dash.c: Likewise.
27860         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27861         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27862         * tests/unictype/test-pr_deprecated.c: Likewise.
27863         * tests/unictype/test-pr_diacritic.c: Likewise.
27864         * tests/unictype/test-pr_extender.c: Likewise.
27865         * tests/unictype/test-pr_format_control.c: Likewise.
27866         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27867         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27868         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27869         * tests/unictype/test-pr_hex_digit.c: Likewise.
27870         * tests/unictype/test-pr_hyphen.c: Likewise.
27871         * tests/unictype/test-pr_id_continue.c: Likewise.
27872         * tests/unictype/test-pr_id_start.c: Likewise.
27873         * tests/unictype/test-pr_ideographic.c: Likewise.
27874         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27875         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27876         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27877         * tests/unictype/test-pr_iso_control.c: Likewise.
27878         * tests/unictype/test-pr_join_control.c: Likewise.
27879         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27880         * tests/unictype/test-pr_line_separator.c: Likewise.
27881         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27882         * tests/unictype/test-pr_lowercase.c: Likewise.
27883         * tests/unictype/test-pr_math.c: Likewise.
27884         * tests/unictype/test-pr_non_break.c: Likewise.
27885         * tests/unictype/test-pr_not_a_character.c: Likewise.
27886         * tests/unictype/test-pr_numeric.c: Likewise.
27887         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27888         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27889         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27890         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27891         * tests/unictype/test-pr_other_id_start.c: Likewise.
27892         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27893         * tests/unictype/test-pr_other_math.c: Likewise.
27894         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27895         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27896         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27897         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27898         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27899         * tests/unictype/test-pr_private_use.c: Likewise.
27900         * tests/unictype/test-pr_punctuation.c: Likewise.
27901         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27902         * tests/unictype/test-pr_radical.c: Likewise.
27903         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27904         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27905         * tests/unictype/test-pr_space.c: Likewise.
27906         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27907         * tests/unictype/test-pr_titlecase.c: Likewise.
27908         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27909         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27910         * tests/unictype/test-pr_uppercase.c: Likewise.
27911         * tests/unictype/test-pr_variation_selector.c: Likewise.
27912         * tests/unictype/test-pr_white_space.c: Likewise.
27913         * tests/unictype/test-pr_xid_continue.c: Likewise.
27914         * tests/unictype/test-pr_xid_start.c: Likewise.
27915         * tests/unictype/test-pr_zero_width.c: Likewise.
27916         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27917         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27918
27919 2007-11-12  Bruno Haible  <bruno@clisp.org>
27920
27921         Unicode character classification functions.
27922         * lib/unictype.h: New file.
27923         * modules/unictype/base: New file.
27924         * modules/unictype/category-L: New file.
27925         * modules/unictype/category-Lu: New file.
27926         * modules/unictype/category-Ll: New file.
27927         * modules/unictype/category-Lt: New file.
27928         * modules/unictype/category-Lm: New file.
27929         * modules/unictype/category-Lo: New file.
27930         * modules/unictype/category-M: New file.
27931         * modules/unictype/category-Mn: New file.
27932         * modules/unictype/category-Mc: New file.
27933         * modules/unictype/category-Me: New file.
27934         * modules/unictype/category-N: New file.
27935         * modules/unictype/category-Nd: New file.
27936         * modules/unictype/category-Nl: New file.
27937         * modules/unictype/category-No: New file.
27938         * modules/unictype/category-P: New file.
27939         * modules/unictype/category-Pc: New file.
27940         * modules/unictype/category-Pd: New file.
27941         * modules/unictype/category-Ps: New file.
27942         * modules/unictype/category-Pe: New file.
27943         * modules/unictype/category-Pi: New file.
27944         * modules/unictype/category-Pf: New file.
27945         * modules/unictype/category-Po: New file.
27946         * modules/unictype/category-S: New file.
27947         * modules/unictype/category-Sm: New file.
27948         * modules/unictype/category-Sc: New file.
27949         * modules/unictype/category-Sk: New file.
27950         * modules/unictype/category-So: New file.
27951         * modules/unictype/category-Z: New file.
27952         * modules/unictype/category-Zs: New file.
27953         * modules/unictype/category-Zl: New file.
27954         * modules/unictype/category-Zp: New file.
27955         * modules/unictype/category-C: New file.
27956         * modules/unictype/category-Cc: New file.
27957         * modules/unictype/category-Cf: New file.
27958         * modules/unictype/category-Cs: New file.
27959         * modules/unictype/category-Co: New file.
27960         * modules/unictype/category-Cn: New file.
27961         * modules/unictype/category-or: New file.
27962         * modules/unictype/category-of: New file.
27963         * modules/unictype/category-test: New file.
27964         * modules/unictype/category-test-withtable: New file.
27965         * modules/unictype/category-byname: New file.
27966         * modules/unictype/category-none: New file.
27967         * modules/unictype/category-and: New file.
27968         * modules/unictype/category-and-not: New file.
27969         * modules/unictype/category-name: New file.
27970         * modules/unictype/combining-class: New file.
27971         * modules/unictype/category-all: New file.
27972         * modules/unictype/bidicategory-all: New file.
27973         * modules/unictype/bidicategory-byname: New file.
27974         * modules/unictype/bidicategory-name: New file.
27975         * modules/unictype/bidicategory-of: New file.
27976         * modules/unictype/bidicategory-test: New file.
27977         * modules/unictype/decimal-digit: New file.
27978         * modules/unictype/digit: New file.
27979         * modules/unictype/numeric: New file.
27980         * modules/unictype/mirror: New file.
27981         * modules/unictype/property-white-space: New file.
27982         * modules/unictype/property-alphabetic: New file.
27983         * modules/unictype/property-other-alphabetic: New file.
27984         * modules/unictype/property-not-a-character: New file.
27985         * modules/unictype/property-default-ignorable-code-point: New file.
27986         * modules/unictype/property-other-default-ignorable-code-point: New
27987         file.
27988         * modules/unictype/property-deprecated: New file.
27989         * modules/unictype/property-logical-order-exception: New file.
27990         * modules/unictype/property-variation-selector: New file.
27991         * modules/unictype/property-private-use: New file.
27992         * modules/unictype/property-unassigned-code-value: New file.
27993         * modules/unictype/property-uppercase: New file.
27994         * modules/unictype/property-other-uppercase: New file.
27995         * modules/unictype/property-lowercase: New file.
27996         * modules/unictype/property-other-lowercase: New file.
27997         * modules/unictype/property-titlecase: New file.
27998         * modules/unictype/property-soft-dotted: New file.
27999         * modules/unictype/property-id-start: New file.
28000         * modules/unictype/property-other-id-start: New file.
28001         * modules/unictype/property-id-continue: New file.
28002         * modules/unictype/property-other-id-continue: New file.
28003         * modules/unictype/property-xid-start: New file.
28004         * modules/unictype/property-xid-continue: New file.
28005         * modules/unictype/property-pattern-white-space: New file.
28006         * modules/unictype/property-pattern-syntax: New file.
28007         * modules/unictype/property-join-control: New file.
28008         * modules/unictype/property-grapheme-base: New file.
28009         * modules/unictype/property-grapheme-extend: New file.
28010         * modules/unictype/property-other-grapheme-extend: New file.
28011         * modules/unictype/property-grapheme-link: New file.
28012         * modules/unictype/property-bidi-control: New file.
28013         * modules/unictype/property-bidi-left-to-right: New file.
28014         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28015         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28016         * modules/unictype/property-bidi-european-digit: New file.
28017         * modules/unictype/property-bidi-eur-num-separator: New file.
28018         * modules/unictype/property-bidi-eur-num-terminator: New file.
28019         * modules/unictype/property-bidi-arabic-digit: New file.
28020         * modules/unictype/property-bidi-common-separator: New file.
28021         * modules/unictype/property-bidi-block-separator: New file.
28022         * modules/unictype/property-bidi-segment-separator: New file.
28023         * modules/unictype/property-bidi-whitespace: New file.
28024         * modules/unictype/property-bidi-non-spacing-mark: New file.
28025         * modules/unictype/property-bidi-boundary-neutral: New file.
28026         * modules/unictype/property-bidi-pdf: New file.
28027         * modules/unictype/property-bidi-embedding-or-override: New file.
28028         * modules/unictype/property-bidi-other-neutral: New file.
28029         * modules/unictype/property-hex-digit: New file.
28030         * modules/unictype/property-ascii-hex-digit: New file.
28031         * modules/unictype/property-ideographic: New file.
28032         * modules/unictype/property-unified-ideograph: New file.
28033         * modules/unictype/property-radical: New file.
28034         * modules/unictype/property-ids-binary-operator: New file.
28035         * modules/unictype/property-ids-trinary-operator: New file.
28036         * modules/unictype/property-zero-width: New file.
28037         * modules/unictype/property-space: New file.
28038         * modules/unictype/property-non-break: New file.
28039         * modules/unictype/property-iso-control: New file.
28040         * modules/unictype/property-format-control: New file.
28041         * modules/unictype/property-dash: New file.
28042         * modules/unictype/property-hyphen: New file.
28043         * modules/unictype/property-punctuation: New file.
28044         * modules/unictype/property-line-separator: New file.
28045         * modules/unictype/property-paragraph-separator: New file.
28046         * modules/unictype/property-quotation-mark: New file.
28047         * modules/unictype/property-sentence-terminal: New file.
28048         * modules/unictype/property-terminal-punctuation: New file.
28049         * modules/unictype/property-currency-symbol: New file.
28050         * modules/unictype/property-math: New file.
28051         * modules/unictype/property-other-math: New file.
28052         * modules/unictype/property-paired-punctuation: New file.
28053         * modules/unictype/property-left-of-pair: New file.
28054         * modules/unictype/property-combining: New file.
28055         * modules/unictype/property-composite: New file.
28056         * modules/unictype/property-decimal-digit: New file.
28057         * modules/unictype/property-numeric: New file.
28058         * modules/unictype/property-diacritic: New file.
28059         * modules/unictype/property-extender: New file.
28060         * modules/unictype/property-ignorable-control: New file.
28061         * modules/unictype/property-test: New file.
28062         * modules/unictype/property-byname: New file.
28063         * modules/unictype/property-all: New file.
28064         * modules/unictype/scripts: New file.
28065         * modules/unictype/scripts-all: New file.
28066         * modules/unictype/block-of: New file.
28067         * modules/unictype/block-test: New file.
28068         * modules/unictype/block-list: New file.
28069         * modules/unictype/block-all: New file.
28070         * modules/unictype/syntax-c-whitespace: New file.
28071         * modules/unictype/syntax-java-whitespace: New file.
28072         * modules/unictype/syntax-c-ident: New file.
28073         * modules/unictype/syntax-java-ident: New file.
28074         * modules/unictype/ctype-alnum: New file.
28075         * modules/unictype/ctype-alpha: New file.
28076         * modules/unictype/ctype-cntrl: New file.
28077         * modules/unictype/ctype-digit: New file.
28078         * modules/unictype/ctype-graph: New file.
28079         * modules/unictype/ctype-lower: New file.
28080         * modules/unictype/ctype-print: New file.
28081         * modules/unictype/ctype-punct: New file.
28082         * modules/unictype/ctype-space: New file.
28083         * modules/unictype/ctype-upper: New file.
28084         * modules/unictype/ctype-xdigit: New file.
28085         * modules/unictype/ctype-blank: New file.
28086         * lib/unictype/bidi_byname.c: New file.
28087         * lib/unictype/bidi_name.c: New file.
28088         * lib/unictype/bidi_of.c: New file.
28089         * lib/unictype/bidi_test.c: New file.
28090         * lib/unictype/bitmap.h: New file.
28091         * lib/unictype/block_test.c: New file.
28092         * lib/unictype/blocks.c: New file.
28093         * lib/unictype/categ_C.c: New file.
28094         * lib/unictype/categ_Cc.c: New file.
28095         * lib/unictype/categ_Cf.c: New file.
28096         * lib/unictype/categ_Cn.c: New file.
28097         * lib/unictype/categ_Co.c: New file.
28098         * lib/unictype/categ_Cs.c: New file.
28099         * lib/unictype/categ_L.c: New file.
28100         * lib/unictype/categ_Ll.c: New file.
28101         * lib/unictype/categ_Lm.c: New file.
28102         * lib/unictype/categ_Lo.c: New file.
28103         * lib/unictype/categ_Lt.c: New file.
28104         * lib/unictype/categ_Lu.c: New file.
28105         * lib/unictype/categ_M.c: New file.
28106         * lib/unictype/categ_Mc.c: New file.
28107         * lib/unictype/categ_Me.c: New file.
28108         * lib/unictype/categ_Mn.c: New file.
28109         * lib/unictype/categ_N.c: New file.
28110         * lib/unictype/categ_Nd.c: New file.
28111         * lib/unictype/categ_Nl.c: New file.
28112         * lib/unictype/categ_No.c: New file.
28113         * lib/unictype/categ_P.c: New file.
28114         * lib/unictype/categ_Pc.c: New file.
28115         * lib/unictype/categ_Pd.c: New file.
28116         * lib/unictype/categ_Pe.c: New file.
28117         * lib/unictype/categ_Pf.c: New file.
28118         * lib/unictype/categ_Pi.c: New file.
28119         * lib/unictype/categ_Po.c: New file.
28120         * lib/unictype/categ_Ps.c: New file.
28121         * lib/unictype/categ_S.c: New file.
28122         * lib/unictype/categ_Sc.c: New file.
28123         * lib/unictype/categ_Sk.c: New file.
28124         * lib/unictype/categ_Sm.c: New file.
28125         * lib/unictype/categ_So.c: New file.
28126         * lib/unictype/categ_Z.c: New file.
28127         * lib/unictype/categ_Zl.c: New file.
28128         * lib/unictype/categ_Zp.c: New file.
28129         * lib/unictype/categ_Zs.c: New file.
28130         * lib/unictype/categ_and.c: New file.
28131         * lib/unictype/categ_and_not.c: New file.
28132         * lib/unictype/categ_byname.c: New file.
28133         * lib/unictype/categ_name.c: New file.
28134         * lib/unictype/categ_none.c: New file.
28135         * lib/unictype/categ_of.c: New file.
28136         * lib/unictype/categ_or.c: New file.
28137         * lib/unictype/categ_test.c: New file.
28138         * lib/unictype/combining.c: New file.
28139         * lib/unictype/ctype_alnum.c: New file.
28140         * lib/unictype/ctype_alpha.c: New file.
28141         * lib/unictype/ctype_blank.c: New file.
28142         * lib/unictype/ctype_cntrl.c: New file.
28143         * lib/unictype/ctype_digit.c: New file.
28144         * lib/unictype/ctype_graph.c: New file.
28145         * lib/unictype/ctype_lower.c: New file.
28146         * lib/unictype/ctype_print.c: New file.
28147         * lib/unictype/ctype_punct.c: New file.
28148         * lib/unictype/ctype_space.c: New file.
28149         * lib/unictype/ctype_upper.c: New file.
28150         * lib/unictype/ctype_xdigit.c: New file.
28151         * lib/unictype/decdigit.c: New file.
28152         * lib/unictype/digit.c: New file.
28153         * lib/unictype/identsyntaxmap.h: New file.
28154         * lib/unictype/mirror.c: New file.
28155         * lib/unictype/numeric.c: New file.
28156         * lib/unictype/pr_alphabetic.c: New file.
28157         * lib/unictype/pr_ascii_hex_digit.c: New file.
28158         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28159         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28160         * lib/unictype/pr_bidi_block_separator.c: New file.
28161         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28162         * lib/unictype/pr_bidi_common_separator.c: New file.
28163         * lib/unictype/pr_bidi_control.c: New file.
28164         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28165         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28166         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28167         * lib/unictype/pr_bidi_european_digit.c: New file.
28168         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28169         * lib/unictype/pr_bidi_left_to_right.c: New file.
28170         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28171         * lib/unictype/pr_bidi_other_neutral.c: New file.
28172         * lib/unictype/pr_bidi_pdf.c: New file.
28173         * lib/unictype/pr_bidi_segment_separator.c: New file.
28174         * lib/unictype/pr_bidi_whitespace.c: New file.
28175         * lib/unictype/pr_byname.c: New file.
28176         * lib/unictype/pr_byname.gperf: New file.
28177         * lib/unictype/pr_combining.c: New file.
28178         * lib/unictype/pr_composite.c: New file.
28179         * lib/unictype/pr_currency_symbol.c: New file.
28180         * lib/unictype/pr_dash.c: New file.
28181         * lib/unictype/pr_decimal_digit.c: New file.
28182         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28183         * lib/unictype/pr_deprecated.c: New file.
28184         * lib/unictype/pr_diacritic.c: New file.
28185         * lib/unictype/pr_extender.c: New file.
28186         * lib/unictype/pr_format_control.c: New file.
28187         * lib/unictype/pr_grapheme_base.c: New file.
28188         * lib/unictype/pr_grapheme_extend.c: New file.
28189         * lib/unictype/pr_grapheme_link.c: New file.
28190         * lib/unictype/pr_hex_digit.c: New file.
28191         * lib/unictype/pr_hyphen.c: New file.
28192         * lib/unictype/pr_id_continue.c: New file.
28193         * lib/unictype/pr_id_start.c: New file.
28194         * lib/unictype/pr_ideographic.c: New file.
28195         * lib/unictype/pr_ids_binary_operator.c: New file.
28196         * lib/unictype/pr_ids_trinary_operator.c: New file.
28197         * lib/unictype/pr_ignorable_control.c: New file.
28198         * lib/unictype/pr_iso_control.c: New file.
28199         * lib/unictype/pr_join_control.c: New file.
28200         * lib/unictype/pr_left_of_pair.c: New file.
28201         * lib/unictype/pr_line_separator.c: New file.
28202         * lib/unictype/pr_logical_order_exception.c: New file.
28203         * lib/unictype/pr_lowercase.c: New file.
28204         * lib/unictype/pr_math.c: New file.
28205         * lib/unictype/pr_non_break.c: New file.
28206         * lib/unictype/pr_not_a_character.c: New file.
28207         * lib/unictype/pr_numeric.c: New file.
28208         * lib/unictype/pr_other_alphabetic.c: New file.
28209         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28210         * lib/unictype/pr_other_grapheme_extend.c: New file.
28211         * lib/unictype/pr_other_id_continue.c: New file.
28212         * lib/unictype/pr_other_id_start.c: New file.
28213         * lib/unictype/pr_other_lowercase.c: New file.
28214         * lib/unictype/pr_other_math.c: New file.
28215         * lib/unictype/pr_other_uppercase.c: New file.
28216         * lib/unictype/pr_paired_punctuation.c: New file.
28217         * lib/unictype/pr_paragraph_separator.c: New file.
28218         * lib/unictype/pr_pattern_syntax.c: New file.
28219         * lib/unictype/pr_pattern_white_space.c: New file.
28220         * lib/unictype/pr_private_use.c: New file.
28221         * lib/unictype/pr_punctuation.c: New file.
28222         * lib/unictype/pr_quotation_mark.c: New file.
28223         * lib/unictype/pr_radical.c: New file.
28224         * lib/unictype/pr_sentence_terminal.c: New file.
28225         * lib/unictype/pr_soft_dotted.c: New file.
28226         * lib/unictype/pr_space.c: New file.
28227         * lib/unictype/pr_terminal_punctuation.c: New file.
28228         * lib/unictype/pr_test.c: New file.
28229         * lib/unictype/pr_titlecase.c: New file.
28230         * lib/unictype/pr_unassigned_code_value.c: New file.
28231         * lib/unictype/pr_unified_ideograph.c: New file.
28232         * lib/unictype/pr_uppercase.c: New file.
28233         * lib/unictype/pr_variation_selector.c: New file.
28234         * lib/unictype/pr_white_space.c: New file.
28235         * lib/unictype/pr_xid_continue.c: New file.
28236         * lib/unictype/pr_xid_start.c: New file.
28237         * lib/unictype/pr_zero_width.c: New file.
28238         * lib/unictype/scripts.c: New file.
28239         * lib/unictype/sy_c_ident.c: New file.
28240         * lib/unictype/sy_c_whitespace.c: New file.
28241         * lib/unictype/sy_java_ident.c: New file.
28242         * lib/unictype/sy_java_whitespace.c: New file.
28243
28244         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28245         Unicode 5.0.0.
28246         * lib/unictype/blocks.h: Likewise.
28247         * lib/unictype/categ_C.h: Likewise.
28248         * lib/unictype/categ_Cc.h: Likewise.
28249         * lib/unictype/categ_Cf.h: Likewise.
28250         * lib/unictype/categ_Cn.h: Likewise.
28251         * lib/unictype/categ_Co.h: Likewise.
28252         * lib/unictype/categ_Cs.h: Likewise.
28253         * lib/unictype/categ_L.h: Likewise.
28254         * lib/unictype/categ_Ll.h: Likewise.
28255         * lib/unictype/categ_Lm.h: Likewise.
28256         * lib/unictype/categ_Lo.h: Likewise.
28257         * lib/unictype/categ_Lt.h: Likewise.
28258         * lib/unictype/categ_Lu.h: Likewise.
28259         * lib/unictype/categ_M.h: Likewise.
28260         * lib/unictype/categ_Mc.h: Likewise.
28261         * lib/unictype/categ_Me.h: Likewise.
28262         * lib/unictype/categ_Mn.h: Likewise.
28263         * lib/unictype/categ_N.h: Likewise.
28264         * lib/unictype/categ_Nd.h: Likewise.
28265         * lib/unictype/categ_Nl.h: Likewise.
28266         * lib/unictype/categ_No.h: Likewise.
28267         * lib/unictype/categ_P.h: Likewise.
28268         * lib/unictype/categ_Pc.h: Likewise.
28269         * lib/unictype/categ_Pd.h: Likewise.
28270         * lib/unictype/categ_Pe.h: Likewise.
28271         * lib/unictype/categ_Pf.h: Likewise.
28272         * lib/unictype/categ_Pi.h: Likewise.
28273         * lib/unictype/categ_Po.h: Likewise.
28274         * lib/unictype/categ_Ps.h: Likewise.
28275         * lib/unictype/categ_S.h: Likewise.
28276         * lib/unictype/categ_Sc.h: Likewise.
28277         * lib/unictype/categ_Sk.h: Likewise.
28278         * lib/unictype/categ_Sm.h: Likewise.
28279         * lib/unictype/categ_So.h: Likewise.
28280         * lib/unictype/categ_Z.h: Likewise.
28281         * lib/unictype/categ_Zl.h: Likewise.
28282         * lib/unictype/categ_Zp.h: Likewise.
28283         * lib/unictype/categ_Zs.h: Likewise.
28284         * lib/unictype/categ_of.h: Likewise.
28285         * lib/unictype/combining.h: Likewise.
28286         * lib/unictype/ctype_alnum.h: Likewise.
28287         * lib/unictype/ctype_alpha.h: Likewise.
28288         * lib/unictype/ctype_blank.h: Likewise.
28289         * lib/unictype/ctype_cntrl.h: Likewise.
28290         * lib/unictype/ctype_digit.h: Likewise.
28291         * lib/unictype/ctype_graph.h: Likewise.
28292         * lib/unictype/ctype_lower.h: Likewise.
28293         * lib/unictype/ctype_print.h: Likewise.
28294         * lib/unictype/ctype_punct.h: Likewise.
28295         * lib/unictype/ctype_space.h: Likewise.
28296         * lib/unictype/ctype_upper.h: Likewise.
28297         * lib/unictype/ctype_xdigit.h: Likewise.
28298         * lib/unictype/decdigit.h: Likewise.
28299         * lib/unictype/digit.h: Likewise.
28300         * lib/unictype/mirror.h: Likewise.
28301         * lib/unictype/numeric.h: Likewise.
28302         * lib/unictype/pr_alphabetic.h: Likewise.
28303         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28304         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28305         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28306         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28307         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28308         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28309         * lib/unictype/pr_bidi_control.h: Likewise.
28310         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28311         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28312         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28313         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28314         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28315         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28316         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28317         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28318         * lib/unictype/pr_bidi_pdf.h: Likewise.
28319         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28320         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28321         * lib/unictype/pr_combining.h: Likewise.
28322         * lib/unictype/pr_composite.h: Likewise.
28323         * lib/unictype/pr_currency_symbol.h: Likewise.
28324         * lib/unictype/pr_dash.h: Likewise.
28325         * lib/unictype/pr_decimal_digit.h: Likewise.
28326         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28327         * lib/unictype/pr_deprecated.h: Likewise.
28328         * lib/unictype/pr_diacritic.h: Likewise.
28329         * lib/unictype/pr_extender.h: Likewise.
28330         * lib/unictype/pr_format_control.h: Likewise.
28331         * lib/unictype/pr_grapheme_base.h: Likewise.
28332         * lib/unictype/pr_grapheme_extend.h: Likewise.
28333         * lib/unictype/pr_grapheme_link.h: Likewise.
28334         * lib/unictype/pr_hex_digit.h: Likewise.
28335         * lib/unictype/pr_hyphen.h: Likewise.
28336         * lib/unictype/pr_id_continue.h: Likewise.
28337         * lib/unictype/pr_id_start.h: Likewise.
28338         * lib/unictype/pr_ideographic.h: Likewise.
28339         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28340         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28341         * lib/unictype/pr_ignorable_control.h: Likewise.
28342         * lib/unictype/pr_iso_control.h: Likewise.
28343         * lib/unictype/pr_join_control.h: Likewise.
28344         * lib/unictype/pr_left_of_pair.h: Likewise.
28345         * lib/unictype/pr_line_separator.h: Likewise.
28346         * lib/unictype/pr_logical_order_exception.h: Likewise.
28347         * lib/unictype/pr_lowercase.h: Likewise.
28348         * lib/unictype/pr_math.h: Likewise.
28349         * lib/unictype/pr_non_break.h: Likewise.
28350         * lib/unictype/pr_not_a_character.h: Likewise.
28351         * lib/unictype/pr_numeric.h: Likewise.
28352         * lib/unictype/pr_other_alphabetic.h: Likewise.
28353         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28354         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28355         * lib/unictype/pr_other_id_continue.h: Likewise.
28356         * lib/unictype/pr_other_id_start.h: Likewise.
28357         * lib/unictype/pr_other_lowercase.h: Likewise.
28358         * lib/unictype/pr_other_math.h: Likewise.
28359         * lib/unictype/pr_other_uppercase.h: Likewise.
28360         * lib/unictype/pr_paired_punctuation.h: Likewise.
28361         * lib/unictype/pr_paragraph_separator.h: Likewise.
28362         * lib/unictype/pr_pattern_syntax.h: Likewise.
28363         * lib/unictype/pr_pattern_white_space.h: Likewise.
28364         * lib/unictype/pr_private_use.h: Likewise.
28365         * lib/unictype/pr_punctuation.h: Likewise.
28366         * lib/unictype/pr_quotation_mark.h: Likewise.
28367         * lib/unictype/pr_radical.h: Likewise.
28368         * lib/unictype/pr_sentence_terminal.h: Likewise.
28369         * lib/unictype/pr_soft_dotted.h: Likewise.
28370         * lib/unictype/pr_space.h: Likewise.
28371         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28372         * lib/unictype/pr_titlecase.h: Likewise.
28373         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28374         * lib/unictype/pr_unified_ideograph.h: Likewise.
28375         * lib/unictype/pr_uppercase.h: Likewise.
28376         * lib/unictype/pr_variation_selector.h: Likewise.
28377         * lib/unictype/pr_white_space.h: Likewise.
28378         * lib/unictype/pr_xid_continue.h: Likewise.
28379         * lib/unictype/pr_xid_start.h: Likewise.
28380         * lib/unictype/pr_zero_width.h: Likewise.
28381         * lib/unictype/scripts.h: Likewise.
28382         * lib/unictype/scripts_byname.gperf: Likewise.
28383         * lib/unictype/sy_c_ident.h: Likewise.
28384         * lib/unictype/sy_c_whitespace.h: Likewise.
28385         * lib/unictype/sy_java_ident.h: Likewise.
28386         * lib/unictype/sy_java_whitespace.h: Likewise.
28387
28388         * lib/unictype/Makefile: New file.
28389         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28390         glibc.
28391         * lib/unictype/3level.h: New file, copied from glibc.
28392         * lib/unictype/3levelbit.h: New file.
28393
28394 2007-11-11  Bruno Haible  <bruno@clisp.org>
28395
28396         * modules/gperf: New file.
28397         * modules/iconv_open (Depends-on): Add it.
28398         (Makefile.am): Remove the GPERF definition.
28399
28400 2007-11-11  Bruno Haible  <bruno@clisp.org>
28401
28402         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28403         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28404
28405 2007-11-11  Bruno Haible  <bruno@clisp.org>
28406
28407         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28408         (usage): Remove function.
28409
28410 2007-11-11  Bruno Haible  <bruno@clisp.org>
28411
28412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28413         gl_FUNC_CEILF_LIBS.
28414         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28415         gl_FUNC_CEIL_LIBS.
28416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28417         gl_FUNC_CEILL_LIBS.
28418         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28419         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28420         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28421
28422 2007-11-11  Bruno Haible  <bruno@clisp.org>
28423
28424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28425         roundf were declared but do not exist on functions.
28426         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28427         roundl were declared but do not exist on functions.
28428         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28429         HAVE_FLOORL_AND_CEILL, respectively.
28430         Needed for Sun C on Solaris 10.
28431
28432 2007-11-11  Bruno Haible  <bruno@clisp.org>
28433
28434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28435         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28436         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28437         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28438         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28439         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28440         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28441         HAVE_DECL_ROUNDF.
28442         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28443         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28445         of HAVE_DECL_ROUND*.
28446         * modules/math (Makefile.am): Update.
28447
28448 2007-11-10  Bruno Haible  <bruno@clisp.org>
28449
28450         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28451         ptrdiff_t as m4/intl.m4.
28452
28453 2007-11-10  Jim Meyering  <meyering@redhat.com>
28454
28455         Avoid link failure for the argmatch test.
28456         * tests/test-argmatch.c (usage): Define function to avoid a link
28457         failure: argmatch_die requires a usage function.
28458
28459 2007-11-09  Bruno Haible  <bruno@clisp.org>
28460
28461         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28462         * doc/functions/vsnprintf.texi: Likewise.
28463         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28464         with a size argument < 2.
28465
28466 2007-11-09  Bruno Haible  <bruno@clisp.org>
28467
28468         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28469         buffer. Fixes an inefficiency introduced on 2007-11-03.
28470
28471 2007-11-09  Bruno Haible  <bruno@clisp.org>
28472
28473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28474         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28475
28476 2007-11-08  Jim Meyering  <meyering@redhat.com>
28477
28478         Change cache variable name prefix "jm_" to "gl_" everywhere.
28479         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28480         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28481         * m4/uptime.m4: s/gl_/jm_/
28482
28483 2007-11-07  Bruno Haible  <bruno@clisp.org>
28484
28485         Update to GNU gettext 0.17.
28486         * m4/intl.m4: Update to GNU gettext 0.17.
28487         * m4/po.m4: Likewise.
28488         * modules/gettext (Files): Remove m4/ulonglong.m4.
28489         (configure.ac): Require gettext infrastructure from version 0.17.
28490
28491 2007-11-06  Bruno Haible  <bruno@clisp.org>
28492
28493         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28494         symbolic values are not defined in a public header.
28495         * lib/freadable.c (freadable) [QNX]: Likewise.
28496         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28497         * lib/freading.c (freading) [QNX]: Likewise.
28498         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28499         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28500         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28501         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28502         Reported by Alain Magloire.
28503
28504         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28505
28506 2007-11-05  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28509         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28510         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28511         Reported by Eric Blake.
28512
28513 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28514             Bruno Haible  <bruno@clisp.org>
28515
28516         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28517         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28518         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28519         (malloc): Undefine also before including <stdlib.h>.
28520         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28521         Needed on OSF/1 4.0.
28522
28523 2007-11-05  Jim Meyering  <meyering@redhat.com>
28524
28525         git-version-gen: sync from coreutils.
28526         * build-aux/git-version-gen: Add comments.
28527         Change the first '-' to '.' in the snapshot version string,
28528         e.g., 6.9-377-08144 -> 6.9.377-08144
28529         Remove first parameter.
28530         Don't declare a version "-dirty" merely because a time
28531         stamp has changed.
28532
28533 2007-11-04  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/lock.h: Protect all macro definitions containing an 'if'
28536         statement through a "do { ... } while (0)".
28537         * lib/tls.h: Likewise.
28538
28539 2007-11-04  Bruno Haible  <bruno@clisp.org>
28540
28541         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28542
28543 2007-11-04  Bruno Haible  <bruno@clisp.org>
28544
28545         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28546         * modules/fprintf-posix (Depends-on): Add nocrash.
28547         * modules/snprintf-posix (Depends-on): Likewise.
28548         * modules/sprintf-posix (Depends-on): Likewise.
28549         * modules/vasnprintf-posix (Depends-on): Likewise.
28550         * modules/vasprintf-posix (Depends-on): Likewise.
28551         * modules/vfprintf-posix (Depends-on): Likewise.
28552         * modules/vsnprintf-posix (Depends-on): Likewise.
28553         * modules/vsprintf-posix (Depends-on): Likewise.
28554         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28555         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28556         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28557         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28558         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28559         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28560         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28561
28562 2007-11-04  Bruno Haible  <bruno@clisp.org>
28563
28564         * modules/nocrash: New file.
28565         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28566         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28567
28568 2007-11-04  Bruno Haible  <bruno@clisp.org>
28569
28570         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28571         precision handling.
28572         * tests/test-vasprintf-posix.c (test_function): Likewise.
28573         * tests/test-snprintf-posix.h (test_function): Likewise.
28574         * tests/test-sprintf-posix.h (test_function): Likewise.
28575
28576         Fix *printf behaviour for large precisions on mingw and BeOS.
28577         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28578         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28580         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28582         gl_PRINTF_PRECISION and test its result. Invoke
28583         gl_PREREQ_VASNPRINTF_PRECISION.
28584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28591         * doc/functions/fprintf.texi: Update.
28592         * doc/functions/printf.texi: Update.
28593         * doc/functions/snprintf.texi: Update.
28594         * doc/functions/sprintf.texi: Update.
28595         * doc/functions/vfprintf.texi: Update.
28596         * doc/functions/vprintf.texi: Update.
28597         * doc/functions/vsnprintf.texi: Update.
28598         * doc/functions/vsprintf.texi: Update.
28599
28600 2007-11-04  Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28603
28604 2007-11-04  Bruno Haible  <bruno@clisp.org>
28605
28606         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28607         Reported by Sylvain Beucler <beuc@gnu.org>.
28608
28609 2007-11-03  Bruno Haible  <bruno@clisp.org>
28610
28611         * tests/test-fprintf-posix2.sh: New file.
28612         * tests/test-fprintf-posix2.c: New file.
28613         * modules/fprintf-posix-tests (Files): Add them.
28614         (TESTS): Add test-fprintf-posix2.sh.
28615         (configure.ac): Check for getrlimit and setrlimit.
28616         (check_PROGRAMS): Add test-fprintf-posix2.
28617
28618         * tests/test-printf-posix2.sh: New file.
28619         * tests/test-printf-posix2.c: New file.
28620         * modules/printf-posix-tests (Files): Add them.
28621         (TESTS): Add test-printf-posix2.sh.
28622         (configure.ac): Check for getrlimit and setrlimit.
28623         (check_PROGRAMS): Add test-printf-posix2.
28624
28625         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28626         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28627         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28628         (decode_double): New function, copied from decode_long_double.
28629         (scale10_round_decimal_decoded): New function, extracted from
28630         scale10_round_decimal_long_double.
28631         (scale10_round_decimal_long_double): Use it.
28632         (scale10_round_decimal_double): New function.
28633         (floorlog10): New function.
28634         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28636         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28638         gl_PRINTF_ENOMEM and test its result. Invoke
28639         gl_PREREQ_VASNPRINTF_ENOMEM.
28640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28647         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28648         * modules/snprintf-posix (Depends-on): Likewise.
28649         * modules/sprintf-posix (Depends-on): Likewise.
28650         * modules/vasnprintf-posix (Depends-on): Likewise.
28651         * modules/vasprintf-posix (Depends-on): Likewise.
28652         * modules/vfprintf-posix (Depends-on): Likewise.
28653         * modules/vsnprintf-posix (Depends-on): Likewise.
28654         * modules/vsprintf-posix (Depends-on): Likewise.
28655         * doc/functions/fprintf.texi: Update.
28656         * doc/functions/printf.texi: Update.
28657         * doc/functions/snprintf.texi: Update.
28658         * doc/functions/sprintf.texi: Update.
28659         * doc/functions/vfprintf.texi: Update.
28660         * doc/functions/vprintf.texi: Update.
28661         * doc/functions/vsnprintf.texi: Update.
28662         * doc/functions/vsprintf.texi: Update.
28663
28664 2007-11-03  Bruno Haible  <bruno@clisp.org>
28665
28666         * modules/frexp-nolibm-tests: New file.
28667
28668         * modules/frexp-nolibm: New file.
28669         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28670
28671 2007-11-03  Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28674         value is C99 compliant.
28675         Needed for OSF/1 5.1.
28676
28677 2007-11-03  Bruno Haible  <bruno@clisp.org>
28678
28679         Fix out-of-memory handling of vasnprintf.
28680         * lib/printf-parse.c: Include <errno.h>.
28681         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28682         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28683         is already set.
28684
28685 2007-11-02  Eric Blake  <ebb9@byu.net>
28686
28687         Fix tests on cygwin.
28688         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28689
28690 2007-11-01  Bruno Haible  <bruno@clisp.org>
28691
28692         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28693         warning.
28694         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28695         needed for POSIX compatibility.
28696
28697 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28698
28699         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28700         for compatibility with GNU.
28701
28702 2007-11-01  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28705         (putenv): Renamed from rpl_putenv. Change argument type from
28706         'const char *' to 'char *'.
28707         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28708         of defining putenv in config.h, just set REPLACE_PUTENV.
28709         * modules/putenv (Depends-on): Add stdlib.
28710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28711         (Include): Use <stdlib.h>.
28712         * lib/stdlib.in.h (putenv): New declaration.
28713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28714         REPLACE_PUTENV.
28715         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28716         REPLACE_PUTENV.
28717         Needed for MacOS X 10.5.0.
28718         Reported by Peter O'Gorman <peter@pogma.com>.
28719
28720 2007-11-01  Jim Meyering  <meyering@redhat.com>
28721
28722         Treat an empty date string exactly like "0".
28723         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28724         if the remaining date string (to be parsed) is empty, use "0".
28725         Reported by Mischa Molhoek and discussed in this thread:
28726         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28727
28728 2007-10-31  Bruno Haible  <bruno@clisp.org>
28729
28730         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28731         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28732         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28733         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28734         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28735         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28736
28737 2007-10-31  Bruno Haible  <bruno@clisp.org>
28738
28739         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28740         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28741         (AC_TYPE_LONG_LONG_INT): Use it.
28742         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28743         it as well.
28744         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28745         to m4/longlong.m4.
28746         * modules/stdint (Files): Remove m4/ulonglong.m4.
28747         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28748         m4/ulonglong.m4.
28749         * modules/strtoumax (Files): Likewise.
28750
28751 2007-10-30  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/xvasprintf-posix: New file.
28754         Suggested by Eric Blake.
28755
28756 2007-10-30  Bruno Haible  <bruno@clisp.org>
28757
28758         * modules/xprintf-posix-tests: New file.
28759         * tests/test-xprintf-posix.sh: New file.
28760         * tests/test-xprintf-posix.c: New file.
28761         * tests/test-xfprintf-posix.c: New file.
28762
28763         * modules/xprintf-posix: New file.
28764
28765 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28766
28767         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28768         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28769         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28770
28771 2007-10-29  Bruno Haible  <bruno@clisp.org>
28772
28773         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28774         contain the special marker '_cv_'.
28775         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28776         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28777         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28778         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28779         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28780         Reported by Ralf Wildenhues.
28781
28782 2007-10-29  Bruno Haible  <bruno@clisp.org>
28783
28784         * gnulib-tool (func_import): When --lgpl is not specified, set
28785         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28786         GPLv3.
28787         Reported by Simon Josefsson.
28788
28789 2007-10-28  Bruno Haible  <bruno@clisp.org>
28790
28791         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28792         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28793         HAVE_DECL_ISFINITE.
28794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28795         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28796         HAVE_DECL_ISFINITE.
28797
28798 2007-10-28  Bruno Haible  <bruno@clisp.org>
28799
28800         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28801         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28802
28803 2007-10-28  Bruno Haible  <bruno@clisp.org>
28804
28805         Fix link errors with Sun C 5.0 on Solaris 10.
28806         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28807         function is declared but not present in the compiler's libm.
28808         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28809         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28810         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28811         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28812         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28813         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28814         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28816         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28817         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28818         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28819         HAVE_DECL_FLOORL.
28820
28821 2007-10-28  Bruno Haible  <bruno@clisp.org>
28822
28823         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28824         gl_FUNC_FLOORL. Cache the result.
28825         (gl_FUNC_FLOORL): Use it.
28826         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28827         gl_FUNC_CEILL. Cache the result.
28828         (gl_FUNC_CEILL): Use it.
28829
28830         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28831         gl_FUNC_FLOOR. Cache the result.
28832         (gl_FUNC_FLOOR): Use it.
28833         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28834         gl_FUNC_CEIL. Cache the result.
28835         (gl_FUNC_CEIL): Use it.
28836
28837         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28838         gl_FUNC_FLOORF. Cache the result.
28839         (gl_FUNC_FLOORF): Use it.
28840         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28841         gl_FUNC_CEILF. Cache the result.
28842         (gl_FUNC_CEILF): Use it.
28843
28844 2007-10-28  Bruno Haible  <bruno@clisp.org>
28845
28846         * gnulib-tool: Allow specifying the LGPL version number through
28847         --lgpl=2 or --lgpl=3.
28848         (func_usage): Document --lgpl with argument.
28849         Handle --lgpl=... arguments.
28850         (func_import): Recognize also gl_LGPL calls with an argument. When
28851         --lgpl=2 is used and the module's license is just LGPL, report an
28852         error. Set sed_transform_lib_file according to the lgpl variable. In
28853         the generated files, use --lgpl or gl_LGPL invocations with argument,
28854         if necessary.
28855         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28856         an LGPv2+ license.
28857         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28858         gl_LGPL macro.
28859
28860 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28861             Bruno Haible  <bruno@clisp.org>
28862
28863         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28864         (u16_uctomb_aux): Likewise.
28865         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28866         !HAVE_INLINE.
28867         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28868
28869 2007-10-28  Bruno Haible  <bruno@clisp.org>
28870
28871         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28872         Invoke AM_GETTEXT_OPTION if it exists.
28873         * modules/vasprintf: Likewise.
28874         * modules/verror: Likewise.
28875         * modules/xprintf: Likewise.
28876         * modules/xvasprintf: Likewise.
28877
28878 2007-10-27  Ben Pfaff  <blp@gnu.org>
28879
28880         * lib/math.in.h: Define isfinite macro and prototypes for
28881         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28882         implementations.
28883         * m4/math_h.m4: New substitutions for isfinite module.
28884         * lib/isfinite.c: New file.
28885         * m4/isfinite.m4: New file.
28886         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28887         * modules/isfinite: New file.
28888         * modules/isfinite-tests: New file.
28889         * tests/tests-isfinite.c: New file.
28890         * doc/functions/isfinite.texi: Mention isfinite module.
28891         * MODULES.html.sh: Mention new module.
28892
28893 2007-10-27  Ben Pfaff  <blp@gnu.org>
28894
28895         Ralf Wildenhues reported that Tru64 4.0D declares the round
28896         functions but does not have definitions.
28897         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28898         cannot be found in any library, set the output variable to
28899         "missing" instead of "".
28900         * m4/round.m4: Also use our substitute if we cannot find round in
28901         any library, even if it is declared.
28902         * m4/roundf.m4: Likewise for roundf.
28903         * m4/roundl.m4: Likewise for roundl.
28904         * lib/math.in.h: Undefine roundf, round, roundl before defining
28905         their replacements, to allow for hypothetical systems where these
28906         may be defined as macros but not available in libraries.
28907
28908 2007-10-27  Bruno Haible  <bruno@clisp.org>
28909
28910         * doc/gnulib.texi: Invoke @firstparagraphindent.
28911         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28912         changes in gnulib.
28913         (Source changes): New section.
28914
28915 2007-10-26  Bruno Haible  <bruno@clisp.org>
28916
28917         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28918         borrowed from autoconf.
28919
28920 2007-10-26  Bruno Haible  <bruno@clisp.org>
28921
28922         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28923         strerror returned the empty string. Needed on HP-UX 11.00.
28924
28925 2007-10-24  Micah Cowan  <micah@cowan.name>
28926
28927         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28928         * build-aux/bootstrap: Remove support for now-unnecessary option,
28929         --cvs-user, and envvars CVS_USER, CVS_RSH.
28930
28931 2007-10-24  Jim Meyering  <meyering@redhat.com>
28932
28933         Avoid diagnostics from sha1sum when there is no cached checksum.
28934         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28935         if the po.s1 file hasn't been created yet.
28936
28937         * build-aux/bootstrap: Sync from coreutils:
28938         2007-10-24  Jim Meyering  <meyering@redhat.com>
28939         Get gnulib from the git repository, not from an obsolete cvs one.
28940         * build-aux/bootstrap: Suggestion from Micah Cowan.
28941         2007-10-04  Jim Meyering  <jim@meyering.net>
28942         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28943         (update_po_files): Work also when there are no .po files in po/.
28944
28945 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         * README: Append ".git" to git and cg examples.
28948         Problem reported by Benoit Sigoure.
28949
28950 2007-10-23  Micah Cowan  <micah@cowan.name>
28951
28952         * users.txt: Add wget.
28953
28954 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28955
28956         Fix linking of some unistdio tests on FreeBSD.
28957         * modules/unistdio/u16-vsnprintf-tests
28958         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28959         * modules/unistdio/u16-vsprintf-tests
28960         (test_u16_vsnprintf1_LDADD): Likewise.
28961         * modules/unistdio/u32-vsnprintf-tests
28962         (test_u32_vsnprintf1_LDADD): Likewise.
28963         * modules/unistdio/u32-vsprintf-tests
28964         (test_u32_vsprintf1_LDADD): Likewise.
28965         * modules/unistdio/u8-vsnprintf-tests
28966         (test_u8_vsnprintf1_LDADD): Likewise.
28967         * modules/unistdio/u8-vsprintf-tests
28968         (test_u8_vsprintf1_LDADD): Likewise.
28969         * modules/unistdio/ulc-vsnprintf-tests
28970         (test_ulc_vsnprintf1_LDADD): Likewise.
28971         * modules/unistdio/ulc-vsprintf-tests
28972         (test_ulc_vsprintf1_LDADD): Likewise.
28973
28974         Fix linking of some uniconv tests on FreeBSD.
28975         * modules/uniconv/u16-conv-from-enc-tests
28976         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28977         * modules/uniconv/u16-conv-to-enc-tests
28978         (test_u16_conv_to_enc_LDADD): Likewise.
28979         * modules/uniconv/u16-strconv-from-enc-tests
28980         (test_u16_strconv_from_enc_LDADD): Likewise.
28981         * modules/uniconv/u16-strconv-to-enc-tests
28982         (test_u16_strconv_to_enc_LDADD): Likewise.
28983         * modules/uniconv/u32-conv-from-enc-tests
28984         (test_u32_conv_from_enc_LDADD): Likewise.
28985         * modules/uniconv/u32-conv-to-enc-tests
28986         (test_u32_conv_to_enc_LDADD): Likewise.
28987         * modules/uniconv/u32-strconv-from-enc-tests
28988         (test_u32_strconv_from_enc_LDADD): Likewise.
28989         * modules/uniconv/u32-strconv-to-enc-tests
28990         (test_u32_strconv_to_enc_LDADD): Likewise.
28991         * modules/uniconv/u8-conv-from-enc-tests
28992         (test_u8_conv_from_enc_LDADD): Likewise.
28993         * modules/uniconv/u8-conv-to-enc-tests
28994         (test_u8_conv_to_enc_LDADD): Likewise.
28995         * modules/uniconv/u8-strconv-from-enc-tests
28996         (test_u8_strconv_from_enc_LDADD): Likewise.
28997         * modules/uniconv/u8-strconv-to-enc-tests
28998         (test_u8_strconv_to_enc_LDADD): Likewise.
28999
29000 2007-10-22  Bruno Haible  <bruno@clisp.org>
29001
29002         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29003         size.
29004
29005 2007-10-22  Eric Blake  <ebb9@byu.net>
29006
29007         Tweak x*printf documentation.
29008         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29009         variable name and comments.
29010         Suggested by Bruno Haible.
29011
29012 2007-10-22  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/acl.c (copy_acl): Fix file name in comment.
29015
29016 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29017
29018         Fix Tru64 problem with stdbool.h.
29019         * lib/stdbool.in.h (false, true):
29020         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29021         Don't declare as an enum in this situation; it runs afoul of Tru64.
29022         Problem reported by Steven M. Schweda in
29023         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29024
29025 2007-10-22  Eric Blake  <ebb9@byu.net>
29026
29027         Also wrap vf?printf.
29028         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29029         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29030         (xvprintf, xvfprintf): New functions.
29031
29032 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29033
29034         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29035         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29036
29037         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29038         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29039
29040 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29041
29042         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29043         by Bruno Haible.
29044
29045 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29046
29047         * lib/getloadavg.c
29048         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29049         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29050
29051         * tests/test-i-ring.c: Work for C89.
29052
29053 2007-10-22  Bruno Haible  <bruno@clisp.org>
29054
29055         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29056         -1u, in preprocessor expression, so that we don't test for the bug
29057         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29058         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29059
29060 2007-10-22  Eric Blake  <ebb9@byu.net>
29061
29062         * tests/test-yesno.sh: Silence stderr during test.
29063
29064 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29065
29066         * modules/crypto/gc-camellia: New file.
29067
29068         * m4/gc-camellia.m4: New file.
29069
29070         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29071
29072         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29073
29074 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29075
29076         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29077         --help to stdout.  Reported by sms@antinode.org (Steven
29078         M. Schweda).
29079
29080 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29081
29082         * users.txt: Fix link to libksba.
29083
29084 2007-10-21  Ben Pfaff  <blp@gnu.org>
29085
29086         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29087         round.c roundf implementation that depends on floorf and ceilf to
29088         be tested unconditionally.
29089
29090 2007-10-21  Ben Pfaff  <blp@gnu.org>
29091
29092         * m4/check-libm-func.m4: Removed.
29093         * m4/check-math-lib.m4: New file.
29094         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29095         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29096         definition and lack of AC_LIBOBJ([roundf]).
29097         * m4/roundl.m4: Ditto, and similarly for roundl.
29098         * modules/round: Reference new m4 file.
29099         * modules/roundf: Ditto.
29100         * modules/roundl: Ditto.
29101         * tests/test-round2.c (main): Use ROUND instead of round.
29102         Bug report from Bruno Haible.
29103
29104 2007-10-21  Bruno Haible  <bruno@clisp.org>
29105
29106         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29107         context.
29108
29109 2007-10-21  Bruno Haible  <bruno@clisp.org>
29110
29111         * tests/test-wcwidth.c (main): Allow negative result for some control
29112         characters.
29113
29114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29115         Needed on OSF/1 5.1.
29116
29117 2007-10-21  Bruno Haible  <bruno@clisp.org>
29118
29119         * tests/test-floorf1.c: Include isnanf.h.
29120         (main): Use isnanf() instead of isnan().
29121         * tests/test-ceilf1.c: Include isnanf.h.
29122         (main): Use isnanf() instead of isnan().
29123         * tests/test-truncf1.c: Include isnanf.h.
29124         (main): Use isnanf() instead of isnan().
29125         * tests/test-roundf1.c: Include isnanf.h.
29126         (main): Use isnanf() instead of isnan().
29127
29128 2007-10-21  Eric Blake  <ebb9@byu.net>
29129
29130         * users.txt: Update URL for m4.
29131
29132 2007-10-21  Bruno Haible  <bruno@clisp.org>
29133
29134         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29135
29136 2007-10-21  Bruno Haible  <bruno@clisp.org>
29137
29138         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29139         Git's management files if the CVS files are not present.
29140
29141 2007-10-20  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29144         gcc-3.4.x.
29145
29146 2007-10-20  Ben Pfaff  <blp@gnu.org>
29147
29148         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29149         implementations.
29150         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29151         * lib/round.c: New file.
29152         * lib/roundf.c: New file.
29153         * lib/roundl.c: New file.
29154         * m4/round.m4: New file.
29155         * m4/roundf.m4: New file.
29156         * m4/roundl.m4: New file.
29157         * m4/check-libm-func-m4: New file.
29158         * modules/math: Replace round, roundf, roundl related @VARS@ in
29159         math.in.h.
29160         * modules/round: New file.
29161         * modules/round-tests: New file.
29162         * modules/roundf: New file.
29163         * modules/roundf-tests: New file.
29164         * modules/roundl: New file.
29165         * modules/roundl-tests: New file.
29166         * tests/test-round1.c: New file.
29167         * tests/test-round2.c: New file.
29168         * tests/test-roundf1.c: New file.
29169         * tests/test-roundf2.c: New file.
29170         * tests/test-roundl.c: New file.
29171         * doc/functions/round.texi: Mention round module.
29172         * doc/functions/roundf.texi: Mention roundf module.
29173         * doc/functions/roundl.texi: Mention roundl module.
29174         * MODULES.html.sh: Mention new modules.
29175         Thanks to Bruno Haible for suggestions.
29176
29177 2007-10-20  Jim Meyering  <meyering@redhat.com>
29178
29179         * lib/xprintf.c: Include <config.h> unconditionally.
29180
29181         Change xprintf's license to GPL.
29182         * modules/xprintf (License): s/LGPL/GPL/, since this module
29183         depends on modules (exit and exitfail) which are GPL.
29184         Suggestion from Bruno Haible.
29185
29186         xprintf fixes.
29187         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29188         Use a clearer diagnostic.
29189         Patch from Bruno Haible.
29190
29191 2007-10-20  Bruno Haible  <bruno@clisp.org>
29192
29193         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29194         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29196
29197 2007-10-20  Bruno Haible  <bruno@clisp.org>
29198
29199         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29200         precision in the comparison result > x - 1 or similar.
29201         * tests/test-ceilf2.c (correct_result_p): Likewise.
29202         * tests/test-truncf2.c (correct_result_p): Likewise.
29203         * tests/test-trunc2.c (correct_result_p): Likewise.
29204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29205
29206 2007-10-20  Bruno Haible  <bruno@clisp.org>
29207
29208         * modules/ceil: New file.
29209         * m4/ceil.m4: New file.
29210         * doc/functions/ceil.texi: Mention the 'ceil' module.
29211
29212 2007-10-20  Bruno Haible  <bruno@clisp.org>
29213
29214         * modules/floor: New file.
29215         * m4/floor.m4: New file.
29216         * doc/functions/floor.texi: Mention the 'floor' module.
29217
29218 2007-10-20  Bruno Haible  <bruno@clisp.org>
29219
29220         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29221         of %a.
29222         * modules/floorf-tests (Depends-on): Likewise.
29223         * modules/truncf-tests (Depends-on): Likewise.
29224         * modules/trunc-tests (Depends-on): Likewise.
29225         Reported by Ben Pfaff.
29226
29227 2007-10-19  Jim Meyering  <meyering@redhat.com>
29228
29229         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29230         Don't bother testing specific errno values.  Just test ferror.
29231
29232         New module: xprintf
29233         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29234
29235 2007-10-19  Bruno Haible  <bruno@clisp.org>
29236
29237         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29238         syntax.
29239         * modules/javaexec (Makefile.am): Likewise.
29240         * modules/relocatable-prog (Makefile.am): Likewise.
29241         Suggested by Jim Meyering.
29242
29243 2007-10-18  Bruno Haible  <bruno@clisp.org>
29244
29245         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29246         Reported by Jim Meyering.
29247
29248 2007-10-18  Eric Blake  <ebb9@byu.net>
29249
29250         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29251
29252 2007-10-18  Bruno Haible  <bruno@clisp.org>
29253
29254         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29255         the format string into writable memory. Needed in Fortify conditions.
29256
29257 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29258             Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29261         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29262         * modules/trim (Depends-on): Add mbchar.
29263         (configure.ac): Add gl_FUNC_MBRTOWC.
29264         (Makefile.am): Augment lib_SOURCES.
29265
29266 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29267
29268         Modify glob.c to use fstatat and dirfd, to simplify it.
29269         Suggested by Eric Blake.
29270         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29271         Don't include <stdbool.h>; not used.
29272         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29273         (link_exists_p): Simplify implementation, since we can now assume
29274         dirfd and fstatat.
29275         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29276
29277 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29278
29279         * gnulib-tool (func_get_dependencies): Fix sed script to
29280         match only tests.
29281
29282 2007-10-17  Bruno Haible  <bruno@clisp.org>
29283
29284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29285         allow locale names without encoding suffix.
29286         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29288
29289 2007-10-16  Bruno Haible  <bruno@clisp.org>
29290
29291         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29292         * lib/getgroups.c (getgroups): Likewise.
29293         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29294
29295 2007-10-16  Bruno Haible  <bruno@clisp.org>
29296
29297         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29298         * modules/malloc-posix (License): Likewise.
29299         * modules/realloc-posix (License): Likewise.
29300         * modules/calloc-posix (License): Likewise.
29301         * modules/intprops (License): Change from GPL to LGPL, with
29302         Paul Eggert's approval.
29303
29304 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29305
29306         Merge glibc changes into lib/glob.c.
29307
29308         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29309         2007-10-15 04:59:03 UTC.  Here are the changes:
29310
29311         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29312
29313         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29314
29315         * lib/glob.c: Add some branch prediction throughout.
29316
29317         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29318
29319         [BZ #5103]
29320         * lib/glob.c (glob): Recognize patterns starting \/.
29321
29322         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29323
29324         [BZ #3996]
29325         * lib/glob.c (attribute_hidden): Define if not defined.
29326         (glob): Unescape dirname, filename or username when needed and not
29327         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29328         is NULL.  Handle unescaped [ in pattern without closing ].
29329         Don't pass GLOB_CHECK down to recursive glob for directories.
29330         (__glob_pattern_type): New function.
29331         (__glob_pattern_p): Implement using __glob_pattern_type.
29332         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29333         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29334         Remove unreachable code.
29335
29336         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29337
29338         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29339         explain why there are no leaks.
29340
29341         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29342
29343         [BZ #3253]
29344         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29345         time, rather allocate increasingly bigger arrays of pointers, if
29346         possible with alloca, if too large with malloc.
29347
29348 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29349
29350         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29351         Problem reported by H.Merijn Brand in
29352         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29354         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29355
29356 2007-10-15  Bruno Haible  <bruno@clisp.org>
29357
29358         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29359         with explicit rpl_ prefix.
29360         * lib/fopen.c (fopen): Likewise.
29361         * lib/freopen.c (freopen): Likewise.
29362         * lib/iconv.c (iconv): Likewise.
29363         * lib/iconv_close.c (iconv_close): Likewise.
29364
29365 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29366
29367         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29368
29369 2007-10-15  Bruno Haible  <bruno@clisp.org>
29370
29371         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29372         <stddef.h> instead of <stdlib.h> since we only need NULL.
29373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29374
29375 2007-10-15  Bruno Haible  <bruno@clisp.org>
29376
29377         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29378         Replace paragraph talking about LIBOBJS.
29379         Reported by Colin Watson <cjwatson@debian.org>.
29380
29381 2007-10-15  Bruno Haible  <bruno@clisp.org>
29382
29383         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29384         <stdlib.h> before using NULL.
29385
29386 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29387
29388         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29389         Reported by Albert Chin <china@thewrittenword.com>.
29390
29391 2007-10-14  Bruno Haible  <bruno@clisp.org>
29392
29393         * modules/iconv_open-utf-tests: New file.
29394         * tests/test-iconv-utf.c: New file.
29395
29396         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29397         * modules/iconv_open-utf: New file.
29398         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29399         (iconv, iconv_close): New declarations.
29400         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29401         be defined.
29402         (iconv_open): Add special handling of conversion between UTF-8 and
29403         UTF-{16,32}{BE,LE}.
29404         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29405         * lib/iconv_close.c: New file.
29406         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29407         gl_FUNC_ICONV_OPEN.
29408         (gl_FUNC_ICONV_OPEN): Use it.
29409         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29410         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29411         and REPLACE_ICONV_UTF.
29412         * modules/iconv_open (Depends-on): Add c-strcase.
29413         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29414         ICONV_CONST.
29415         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29416
29417 2007-10-13  Albert Chin  <china@thewrittenword.com>
29418             Bruno Haible  <bruno@clisp.org>
29419
29420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29421         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29422
29423 2007-10-13  Bruno Haible  <bruno@clisp.org>
29424
29425         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29426         defined, use the ISO C99 inline semantics.
29427         * lib/argp.h (ARGP_EI): Likewise.
29428
29429 2007-10-13  Bruno Haible  <bruno@clisp.org>
29430
29431         Handle 'inline' change in gcc 4.3.0.
29432         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29433         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29434         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29435         argp_fmtstream_point): Disable 'extern' declaration if the function
29436         definition is going to be provided inline.
29437         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29438         semantics, not the ISO C99 inline semantics.
29439         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29440         'extern' declaration if the function definition is going to be provided
29441         inline.
29442         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29443         the GNU C inline semantics, not the ISO C99 inline semantics. With
29444         GCC 4.2, avoid a warning.
29445
29446 2007-10-13  Bruno Haible  <bruno@clisp.org>
29447
29448         * lib/freading.h (freading): Enable the use of __freading for
29449         glibc >= 2.7.
29450         * lib/freading.c (freading): Likewise.
29451
29452 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29453
29454         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29455         "warning: C99 inline functions are not supported; using GNU89".
29456
29457 2007-10-12  Bruno Haible  <bruno@clisp.org>
29458
29459         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29460         of 2.
29461         * tests/test-ceilf2.c: New file.
29462         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29463
29464         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29465         * modules/ceilf-tests: Update.
29466
29467 2007-10-12  Bruno Haible  <bruno@clisp.org>
29468
29469         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29470         of 2.
29471         * tests/test-floorf2.c: New file.
29472         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29473
29474         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29475         * modules/floorf-tests: Update.
29476
29477 2007-10-12  Bruno Haible  <bruno@clisp.org>
29478
29479         * tests/test-trunc2.c: New file.
29480         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29481
29482         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29483         * modules/trunc-tests: Update.
29484
29485 2007-10-12  Bruno Haible  <bruno@clisp.org>
29486
29487         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29488         of 2.
29489         * tests/test-truncf2.c: New file.
29490         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29491
29492         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29493         * modules/truncf-tests: Update.
29494
29495 2007-10-11  Eric Blake  <ebb9@byu.net>
29496
29497         Don't claim strerror is broken on Interix.
29498         * doc/functions/strerror.texi (strerror): Known broken systems are
29499         now Solaris 8, and not Interix.
29500         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29501         Interix on cross-compile.
29502         Reported by Martin Koeppe in
29503         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29504
29505 2007-10-11  Bruno Haible  <bruno@clisp.org>
29506
29507         * modules/i-ring-tests: New file.
29508         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29509         instead of assert.
29510
29511 2007-10-11  Bruno Haible  <bruno@clisp.org>
29512
29513         * modules/filenamecat-tests: New file.
29514         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29515         * lib/filenamecat.c: Remove test code.
29516
29517 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29518
29519         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29520
29521         * lib/strerror.c: Include <string.h> always, to test interface,
29522         and to remove the need for the dummy.
29523         Include intprops.h to compute width instead of doing it ourselves
29524         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29525         (strerror): Define it to return NULL if there's no system strerror.
29526         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29527         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29528         ancient pre-strerror Unix systems well any more.  Saying "unknown
29529         system error" is enough.
29530         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29531         simpler strerror.c implementation.
29532         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29533         Simplify the tests to reflect the simpler strerror implementation.
29534         * modules/strerror (Depends-on): Add intprops.
29535
29536 2007-10-09  Eric Blake  <ebb9@byu.net>
29537
29538         Silence test-fpending.
29539         * modules/fpending-tests (Files): Add wrapper script.
29540         * tests/test-fpending.sh: New file.
29541
29542 2007-10-09  Bruno Haible  <bruno@clisp.org>
29543
29544         * MODULES.html.sh (func_module): Don't create a hyperlink for
29545         function names like 'printf_frexp'.
29546         (Misc): Add crc, memxor.
29547         (Characteristics of floating types): New section.
29548         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29549         isnanf-nolibm, signbit, trunc, truncf, truncl.
29550         (Enhancements for ISO C 99 functions): New subsection Input/output.
29551         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29552         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29553         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29554         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29555         (Enhancements for POSIX:2001 functions): Add chdir-long.
29556         (File system functions): Add areadlink, chdir-safer, read-file.
29557         Remove cycle-check.
29558         (File system as inode set): New section.
29559         (Date and time): Add gethrxtime.
29560         (Multithreading): Add openmp.
29561         (Internationalization functions): Add localename.
29562         (Unicode string functions): Add unistr/u*-mbsnlen.
29563         (Support for maintaining and releasing projects): Add git-version-gen.
29564         (Lone files): Remove directories.
29565
29566 2007-10-08  Ben Pfaff  <blp@gnu.org>
29567
29568         * lib/xmalloca.h: Fix typo in comment.
29569
29570 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29571
29572         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29573         when avoiding problems with integer overflow.  Use a portable test
29574         instead.
29575
29576 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29577
29578         * modules/dummy (License): Change to LGPLv2+.
29579         * modules/float (License): Likewise
29580         * modules/realloc (License): Likewise
29581         * modules/stdlib (License): Likewise
29582
29583 2007-10-07  Bruno Haible  <bruno@clisp.org>
29584
29585         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29586         * floor.c (TWO_MANT_DIG): Likewise.
29587         * ceil.c (TWO_MANT_DIG): Likewise.
29588         Reported by Ben Pfaff.
29589
29590 2007-10-07  Bruno Haible  <bruno@clisp.org>
29591
29592         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29593         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29594         * lib/frexp.c (FUNC): Likewise.
29595         * lib/printf-frexp.h (printf_frexp): Likewise.
29596         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29597         * lib/printf-frexp.c (FUNC): Likewise.
29598         Suggested by Jim Meyering.
29599
29600 2007-10-07  Jim Meyering  <meyering@redhat.com>
29601
29602         Make xnanosleep's integer overflow test more robust.
29603         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29604         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29605
29606 2007-10-07  Bruno Haible  <bruno@clisp.org>
29607
29608         * NEWS: Mention the license change.
29609
29610         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29611         abbreviations in the modules files.
29612
29613         Change copyright notice from GPLv2+ to GPLv3+.
29614         * README: Change copyright notice.
29615         * MODULES.html.sh: Likewise.
29616         * build-aux/bootstrap.conf: Likewise.
29617         * build-aux/config.libpath: Likewise.
29618         * build-aux/csharpcomp.sh.in: Likewise.
29619         * build-aux/csharpexec.sh.in: Likewise.
29620         * build-aux/install-reloc: Likewise.
29621         * build-aux/javacomp.sh.in: Likewise.
29622         * build-aux/javaexec.sh.in: Likewise.
29623         * build-aux/ldd.sh.in: Likewise.
29624         * build-aux/reloc-ldflags: Likewise.
29625         * build-aux/relocatable.sh.in: Likewise.
29626         * build-aux/x-to-1.in: Likewise.
29627         * check-module: Likewise.
29628         * config/srclistvars.sh: Likewise.
29629         * gnulib-tool: Likewise.
29630         * lib/acl-internal.h: Likewise.
29631         * lib/acl.c: Likewise.
29632         * lib/acl.h: Likewise.
29633         * lib/acl_entries.c: Likewise.
29634         * lib/areadlink-with-size.c: Likewise.
29635         * lib/areadlink.c: Likewise.
29636         * lib/areadlink.h: Likewise.
29637         * lib/argmatch.c: Likewise.
29638         * lib/argmatch.h: Likewise.
29639         * lib/argp-ba.c: Likewise.
29640         * lib/argp-eexst.c: Likewise.
29641         * lib/argp-fmtstream.c: Likewise.
29642         * lib/argp-fmtstream.h: Likewise.
29643         * lib/argp-fs-xinl.c: Likewise.
29644         * lib/argp-help.c: Likewise.
29645         * lib/argp-namefrob.h: Likewise.
29646         * lib/argp-parse.c: Likewise.
29647         * lib/argp-pin.c: Likewise.
29648         * lib/argp-pv.c: Likewise.
29649         * lib/argp-pvh.c: Likewise.
29650         * lib/argp-xinl.c: Likewise.
29651         * lib/argp.h: Likewise.
29652         * lib/at-func.c: Likewise.
29653         * lib/atanl.c: Likewise.
29654         * lib/backupfile.c: Likewise.
29655         * lib/backupfile.h: Likewise.
29656         * lib/basename.c: Likewise.
29657         * lib/binary-io.h: Likewise.
29658         * lib/byteswap.in.h: Likewise.
29659         * lib/c-stack.c: Likewise.
29660         * lib/c-stack.h: Likewise.
29661         * lib/c-strcasestr.c: Likewise.
29662         * lib/c-strcasestr.h: Likewise.
29663         * lib/c-strstr.c: Likewise.
29664         * lib/c-strstr.h: Likewise.
29665         * lib/c-strtod.c: Likewise.
29666         * lib/calloc.c: Likewise.
29667         * lib/canon-host.c: Likewise.
29668         * lib/canon-host.h: Likewise.
29669         * lib/canonicalize-lgpl.c: Likewise.
29670         * lib/canonicalize.c: Likewise.
29671         * lib/canonicalize.h: Likewise.
29672         * lib/ceil.c: Likewise.
29673         * lib/ceilf.c: Likewise.
29674         * lib/ceill.c: Likewise.
29675         * lib/chdir-long.c: Likewise.
29676         * lib/chdir-long.h: Likewise.
29677         * lib/chdir-safer.c: Likewise.
29678         * lib/chdir-safer.h: Likewise.
29679         * lib/chown.c: Likewise.
29680         * lib/classpath.c: Likewise.
29681         * lib/classpath.h: Likewise.
29682         * lib/clean-temp.c: Likewise.
29683         * lib/clean-temp.h: Likewise.
29684         * lib/cloexec.c: Likewise.
29685         * lib/close-stream.c: Likewise.
29686         * lib/closein.c: Likewise.
29687         * lib/closein.h: Likewise.
29688         * lib/closeout.c: Likewise.
29689         * lib/closeout.h: Likewise.
29690         * lib/concat-filename.c: Likewise.
29691         * lib/copy-file.c: Likewise.
29692         * lib/copy-file.h: Likewise.
29693         * lib/count-one-bits.h: Likewise.
29694         * lib/crc.c: Likewise.
29695         * lib/crc.h: Likewise.
29696         * lib/creat-safer.c: Likewise.
29697         * lib/csharpcomp.c: Likewise.
29698         * lib/csharpcomp.h: Likewise.
29699         * lib/csharpexec.c: Likewise.
29700         * lib/csharpexec.h: Likewise.
29701         * lib/cycle-check.c: Likewise.
29702         * lib/cycle-check.h: Likewise.
29703         * lib/diacrit.c: Likewise.
29704         * lib/diacrit.h: Likewise.
29705         * lib/diffseq.h: Likewise.
29706         * lib/dirchownmod.c: Likewise.
29707         * lib/dirent.in.h: Likewise.
29708         * lib/dirfd.c: Likewise.
29709         * lib/dirfd.h: Likewise.
29710         * lib/dirname.c: Likewise.
29711         * lib/dirname.h: Likewise.
29712         * lib/dummy.c: Likewise.
29713         * lib/dup-safer.c: Likewise.
29714         * lib/dup2.c: Likewise.
29715         * lib/eealloc.h: Likewise.
29716         * lib/error.c: Likewise.
29717         * lib/error.h: Likewise.
29718         * lib/euidaccess.c: Likewise.
29719         * lib/exclude.c: Likewise.
29720         * lib/exclude.h: Likewise.
29721         * lib/execute.c: Likewise.
29722         * lib/execute.h: Likewise.
29723         * lib/exitfail.c: Likewise.
29724         * lib/exitfail.h: Likewise.
29725         * lib/expl.c: Likewise.
29726         * lib/fatal-signal.c: Likewise.
29727         * lib/fatal-signal.h: Likewise.
29728         * lib/fbufmode.c: Likewise.
29729         * lib/fbufmode.h: Likewise.
29730         * lib/fchdir.c: Likewise.
29731         * lib/fchmodat.c: Likewise.
29732         * lib/fchownat.c: Likewise.
29733         * lib/fcntl--.h: Likewise.
29734         * lib/fcntl-safer.h: Likewise.
29735         * lib/fcntl.in.h: Likewise.
29736         * lib/fd-safer.c: Likewise.
29737         * lib/fflush.c: Likewise.
29738         * lib/file-has-acl.c: Likewise.
29739         * lib/file-set.c: Likewise.
29740         * lib/file-type.c: Likewise.
29741         * lib/file-type.h: Likewise.
29742         * lib/fileblocks.c: Likewise.
29743         * lib/filemode.c: Likewise.
29744         * lib/filemode.h: Likewise.
29745         * lib/filename.h: Likewise.
29746         * lib/filenamecat.c: Likewise.
29747         * lib/filenamecat.h: Likewise.
29748         * lib/findprog.c: Likewise.
29749         * lib/findprog.h: Likewise.
29750         * lib/float.in.h: Likewise.
29751         * lib/floor.c: Likewise.
29752         * lib/floorf.c: Likewise.
29753         * lib/floorl.c: Likewise.
29754         * lib/fopen-safer.c: Likewise.
29755         * lib/fopen.c: Likewise.
29756         * lib/fpending.c: Likewise.
29757         * lib/fpending.h: Likewise.
29758         * lib/fprintf.c: Likewise.
29759         * lib/fprintftime.h: Likewise.
29760         * lib/fpucw.h: Likewise.
29761         * lib/fpurge.c: Likewise.
29762         * lib/fpurge.h: Likewise.
29763         * lib/freadable.c: Likewise.
29764         * lib/freadable.h: Likewise.
29765         * lib/freadahead.c: Likewise.
29766         * lib/freadahead.h: Likewise.
29767         * lib/freading.c: Likewise.
29768         * lib/freading.h: Likewise.
29769         * lib/free.c: Likewise.
29770         * lib/freopen.c: Likewise.
29771         * lib/frexp.c: Likewise.
29772         * lib/frexpl.c: Likewise.
29773         * lib/fseek.c: Likewise.
29774         * lib/fseterr.c: Likewise.
29775         * lib/fseterr.h: Likewise.
29776         * lib/fstatat.c: Likewise.
29777         * lib/fstrcmp.c: Likewise.
29778         * lib/fstrcmp.h: Likewise.
29779         * lib/fsusage.c: Likewise.
29780         * lib/fsusage.h: Likewise.
29781         * lib/ftell.c: Likewise.
29782         * lib/ftello.c: Likewise.
29783         * lib/fts-cycle.c: Likewise.
29784         * lib/fts.c: Likewise.
29785         * lib/fts_.h: Likewise.
29786         * lib/full-read.c: Likewise.
29787         * lib/full-read.h: Likewise.
29788         * lib/full-write.c: Likewise.
29789         * lib/full-write.h: Likewise.
29790         * lib/fwritable.c: Likewise.
29791         * lib/fwritable.h: Likewise.
29792         * lib/fwriteerror.c: Likewise.
29793         * lib/fwriteerror.h: Likewise.
29794         * lib/fwriting.c: Likewise.
29795         * lib/fwriting.h: Likewise.
29796         * lib/gcd.c: Likewise.
29797         * lib/gcd.h: Likewise.
29798         * lib/getcwd.c: Likewise.
29799         * lib/getdate.h: Likewise.
29800         * lib/getdate.y: Likewise.
29801         * lib/getdomainname.c: Likewise.
29802         * lib/getdomainname.h: Likewise.
29803         * lib/getgroups.c: Likewise.
29804         * lib/gethostname.c: Likewise.
29805         * lib/gethrxtime.c: Likewise.
29806         * lib/gethrxtime.h: Likewise.
29807         * lib/getloadavg.c: Likewise.
29808         * lib/getndelim2.c: Likewise.
29809         * lib/getndelim2.h: Likewise.
29810         * lib/getnline.c: Likewise.
29811         * lib/getnline.h: Likewise.
29812         * lib/getopt.c: Likewise.
29813         * lib/getopt.in.h: Likewise.
29814         * lib/getopt1.c: Likewise.
29815         * lib/getopt_int.h: Likewise.
29816         * lib/getpagesize.h: Likewise.
29817         * lib/getsubopt.c: Likewise.
29818         * lib/gettime.c: Likewise.
29819         * lib/getugroups.c: Likewise.
29820         * lib/getugroups.h: Likewise.
29821         * lib/getusershell.c: Likewise.
29822         * lib/gl_anyavltree_list1.h: Likewise.
29823         * lib/gl_anyavltree_list2.h: Likewise.
29824         * lib/gl_anyhash_list1.h: Likewise.
29825         * lib/gl_anyhash_list2.h: Likewise.
29826         * lib/gl_anylinked_list1.h: Likewise.
29827         * lib/gl_anylinked_list2.h: Likewise.
29828         * lib/gl_anyrbtree_list1.h: Likewise.
29829         * lib/gl_anyrbtree_list2.h: Likewise.
29830         * lib/gl_anytree_list1.h: Likewise.
29831         * lib/gl_anytree_list2.h: Likewise.
29832         * lib/gl_anytree_oset.h: Likewise.
29833         * lib/gl_anytreehash_list1.h: Likewise.
29834         * lib/gl_anytreehash_list2.h: Likewise.
29835         * lib/gl_array_list.c: Likewise.
29836         * lib/gl_array_list.h: Likewise.
29837         * lib/gl_array_oset.c: Likewise.
29838         * lib/gl_array_oset.h: Likewise.
29839         * lib/gl_avltree_list.c: Likewise.
29840         * lib/gl_avltree_list.h: Likewise.
29841         * lib/gl_avltree_oset.c: Likewise.
29842         * lib/gl_avltree_oset.h: Likewise.
29843         * lib/gl_avltreehash_list.c: Likewise.
29844         * lib/gl_avltreehash_list.h: Likewise.
29845         * lib/gl_carray_list.c: Likewise.
29846         * lib/gl_carray_list.h: Likewise.
29847         * lib/gl_linked_list.c: Likewise.
29848         * lib/gl_linked_list.h: Likewise.
29849         * lib/gl_linkedhash_list.c: Likewise.
29850         * lib/gl_linkedhash_list.h: Likewise.
29851         * lib/gl_list.c: Likewise.
29852         * lib/gl_list.h: Likewise.
29853         * lib/gl_oset.c: Likewise.
29854         * lib/gl_oset.h: Likewise.
29855         * lib/gl_rbtree_list.c: Likewise.
29856         * lib/gl_rbtree_list.h: Likewise.
29857         * lib/gl_rbtree_oset.c: Likewise.
29858         * lib/gl_rbtree_oset.h: Likewise.
29859         * lib/gl_rbtreehash_list.c: Likewise.
29860         * lib/gl_rbtreehash_list.h: Likewise.
29861         * lib/gl_sublist.c: Likewise.
29862         * lib/gl_sublist.h: Likewise.
29863         * lib/group-member.c: Likewise.
29864         * lib/group-member.h: Likewise.
29865         * lib/hard-locale.c: Likewise.
29866         * lib/hard-locale.h: Likewise.
29867         * lib/hash-pjw.c: Likewise.
29868         * lib/hash-pjw.h: Likewise.
29869         * lib/hash-triple.c: Likewise.
29870         * lib/hash.c: Likewise.
29871         * lib/hash.h: Likewise.
29872         * lib/human.c: Likewise.
29873         * lib/human.h: Likewise.
29874         * lib/i-ring.c: Likewise.
29875         * lib/i-ring.h: Likewise.
29876         * lib/idcache.c: Likewise.
29877         * lib/imaxabs.c: Likewise.
29878         * lib/imaxdiv.c: Likewise.
29879         * lib/inet_pton.c: Likewise.
29880         * lib/inet_pton.h: Likewise.
29881         * lib/intprops.h: Likewise.
29882         * lib/inttostr.c: Likewise.
29883         * lib/inttostr.h: Likewise.
29884         * lib/inttypes.in.h: Likewise.
29885         * lib/isapipe.c: Likewise.
29886         * lib/isdir.c: Likewise.
29887         * lib/isnan.c: Likewise.
29888         * lib/isnan.h: Likewise.
29889         * lib/isnanf.c: Likewise.
29890         * lib/isnanf.h: Likewise.
29891         * lib/isnanl-nolibm.h: Likewise.
29892         * lib/isnanl.c: Likewise.
29893         * lib/isnanl.h: Likewise.
29894         * lib/javacomp.c: Likewise.
29895         * lib/javacomp.h: Likewise.
29896         * lib/javaexec.c: Likewise.
29897         * lib/javaexec.h: Likewise.
29898         * lib/javaversion.c: Likewise.
29899         * lib/javaversion.h: Likewise.
29900         * lib/javaversion.java: Likewise.
29901         * lib/lbrkprop.h: Likewise.
29902         * lib/lchmod.h: Likewise.
29903         * lib/lchown.c: Likewise.
29904         * lib/ldexpl.c: Likewise.
29905         * lib/linebreak.c: Likewise.
29906         * lib/linebreak.h: Likewise.
29907         * lib/linebuffer.c: Likewise.
29908         * lib/linebuffer.h: Likewise.
29909         * lib/locale.in.h: Likewise.
29910         * lib/logl.c: Likewise.
29911         * lib/long-options.c: Likewise.
29912         * lib/long-options.h: Likewise.
29913         * lib/lstat.c: Likewise.
29914         * lib/lstat.h: Likewise.
29915         * lib/math.in.h: Likewise.
29916         * lib/mbchar.c: Likewise.
29917         * lib/mbchar.h: Likewise.
29918         * lib/mbfile.h: Likewise.
29919         * lib/mbiter.h: Likewise.
29920         * lib/mbscasecmp.c: Likewise.
29921         * lib/mbscasestr.c: Likewise.
29922         * lib/mbschr.c: Likewise.
29923         * lib/mbscspn.c: Likewise.
29924         * lib/mbslen.c: Likewise.
29925         * lib/mbsncasecmp.c: Likewise.
29926         * lib/mbsnlen.c: Likewise.
29927         * lib/mbspbrk.c: Likewise.
29928         * lib/mbspcasecmp.c: Likewise.
29929         * lib/mbsrchr.c: Likewise.
29930         * lib/mbssep.c: Likewise.
29931         * lib/mbsspn.c: Likewise.
29932         * lib/mbsstr.c: Likewise.
29933         * lib/mbstok_r.c: Likewise.
29934         * lib/mbswidth.c: Likewise.
29935         * lib/mbswidth.h: Likewise.
29936         * lib/mbuiter.h: Likewise.
29937         * lib/memcasecmp.c: Likewise.
29938         * lib/memcasecmp.h: Likewise.
29939         * lib/memchr.c: Likewise.
29940         * lib/memcmp.c: Likewise.
29941         * lib/memcoll.c: Likewise.
29942         * lib/memcoll.h: Likewise.
29943         * lib/memcpy.c: Likewise.
29944         * lib/memrchr.c: Likewise.
29945         * lib/mkancesdirs.c: Likewise.
29946         * lib/mkdir-p.c: Likewise.
29947         * lib/mkdir-p.h: Likewise.
29948         * lib/mkdir.c: Likewise.
29949         * lib/mkdirat.c: Likewise.
29950         * lib/mkdtemp.c: Likewise.
29951         * lib/mkstemp-safer.c: Likewise.
29952         * lib/mkstemp.c: Likewise.
29953         * lib/modechange.c: Likewise.
29954         * lib/modechange.h: Likewise.
29955         * lib/mountlist.c: Likewise.
29956         * lib/mountlist.h: Likewise.
29957         * lib/mpsort.c: Likewise.
29958         * lib/nanosleep.c: Likewise.
29959         * lib/obstack.c: Likewise.
29960         * lib/obstack.h: Likewise.
29961         * lib/open-safer.c: Likewise.
29962         * lib/open.c: Likewise.
29963         * lib/openat-die.c: Likewise.
29964         * lib/openat-priv.h: Likewise.
29965         * lib/openat-proc.c: Likewise.
29966         * lib/openat.c: Likewise.
29967         * lib/openat.h: Likewise.
29968         * lib/pagealign_alloc.c: Likewise.
29969         * lib/pagealign_alloc.h: Likewise.
29970         * lib/physmem.c: Likewise.
29971         * lib/physmem.h: Likewise.
29972         * lib/pipe-safer.c: Likewise.
29973         * lib/pipe.c: Likewise.
29974         * lib/pipe.h: Likewise.
29975         * lib/posixtm.c: Likewise.
29976         * lib/posixtm.h: Likewise.
29977         * lib/posixver.c: Likewise.
29978         * lib/printf-frexp.c: Likewise.
29979         * lib/printf-frexp.h: Likewise.
29980         * lib/printf-frexpl.c: Likewise.
29981         * lib/printf-frexpl.h: Likewise.
29982         * lib/printf.c: Likewise.
29983         * lib/progname.c: Likewise.
29984         * lib/progname.h: Likewise.
29985         * lib/progreloc.c: Likewise.
29986         * lib/putenv.c: Likewise.
29987         * lib/quote.c: Likewise.
29988         * lib/quote.h: Likewise.
29989         * lib/quotearg.c: Likewise.
29990         * lib/quotearg.h: Likewise.
29991         * lib/raise.c: Likewise.
29992         * lib/readline.c: Likewise.
29993         * lib/readline.h: Likewise.
29994         * lib/readlink.c: Likewise.
29995         * lib/readtokens.c: Likewise.
29996         * lib/readtokens.h: Likewise.
29997         * lib/readtokens0.c: Likewise.
29998         * lib/readtokens0.h: Likewise.
29999         * lib/readutmp.c: Likewise.
30000         * lib/readutmp.h: Likewise.
30001         * lib/realloc.c: Likewise.
30002         * lib/relocwrapper.c: Likewise.
30003         * lib/rename-dest-slash.c: Likewise.
30004         * lib/rename.c: Likewise.
30005         * lib/rmdir.c: Likewise.
30006         * lib/rpmatch.c: Likewise.
30007         * lib/safe-read.c: Likewise.
30008         * lib/safe-read.h: Likewise.
30009         * lib/safe-write.c: Likewise.
30010         * lib/safe-write.h: Likewise.
30011         * lib/same-inode.h: Likewise.
30012         * lib/same.c: Likewise.
30013         * lib/same.h: Likewise.
30014         * lib/save-cwd.c: Likewise.
30015         * lib/save-cwd.h: Likewise.
30016         * lib/savedir.c: Likewise.
30017         * lib/savedir.h: Likewise.
30018         * lib/savewd.c: Likewise.
30019         * lib/savewd.h: Likewise.
30020         * lib/search.in.h: Likewise.
30021         * lib/setenv.c: Likewise.
30022         * lib/setenv.h: Likewise.
30023         * lib/settime.c: Likewise.
30024         * lib/sh-quote.c: Likewise.
30025         * lib/sh-quote.h: Likewise.
30026         * lib/sig2str.c: Likewise.
30027         * lib/sig2str.h: Likewise.
30028         * lib/signal.in.h: Likewise.
30029         * lib/signbitd.c: Likewise.
30030         * lib/signbitf.c: Likewise.
30031         * lib/signbitl.c: Likewise.
30032         * lib/sigprocmask.c: Likewise.
30033         * lib/sincosl.c: Likewise.
30034         * lib/sleep.c: Likewise.
30035         * lib/sprintf.c: Likewise.
30036         * lib/sqrtl.c: Likewise.
30037         * lib/stat-time.h: Likewise.
30038         * lib/stdio--.h: Likewise.
30039         * lib/stdio-safer.h: Likewise.
30040         * lib/stdlib--.h: Likewise.
30041         * lib/stdlib-safer.h: Likewise.
30042         * lib/stdlib.in.h: Likewise.
30043         * lib/stpcpy.c: Likewise.
30044         * lib/stpncpy.c: Likewise.
30045         * lib/strchrnul.c: Likewise.
30046         * lib/strcspn.c: Likewise.
30047         * lib/strerror.c: Likewise.
30048         * lib/strftime.c: Likewise.
30049         * lib/strftime.h: Likewise.
30050         * lib/striconveh.c: Likewise.
30051         * lib/striconveh.h: Likewise.
30052         * lib/striconveha.c: Likewise.
30053         * lib/striconveha.h: Likewise.
30054         * lib/stripslash.c: Likewise.
30055         * lib/strnlen1.c: Likewise.
30056         * lib/strnlen1.h: Likewise.
30057         * lib/strtod.c: Likewise.
30058         * lib/strtoimax.c: Likewise.
30059         * lib/strtok_r.c: Likewise.
30060         * lib/strtol.c: Likewise.
30061         * lib/strtoll.c: Likewise.
30062         * lib/strtoul.c: Likewise.
30063         * lib/strtoull.c: Likewise.
30064         * lib/sysexits.in.h: Likewise.
30065         * lib/tempname.c: Likewise.
30066         * lib/tempname.h: Likewise.
30067         * lib/timespec.h: Likewise.
30068         * lib/tls.c: Likewise.
30069         * lib/tls.h: Likewise.
30070         * lib/tmpdir.c: Likewise.
30071         * lib/tmpdir.h: Likewise.
30072         * lib/tmpfile-safer.c: Likewise.
30073         * lib/tmpfile.c: Likewise.
30074         * lib/trigl.c: Likewise.
30075         * lib/trigl.h: Likewise.
30076         * lib/trim.c: Likewise.
30077         * lib/trim.h: Likewise.
30078         * lib/trunc.c: Likewise.
30079         * lib/truncf.c: Likewise.
30080         * lib/truncl.c: Likewise.
30081         * lib/tsearch.c: Likewise.
30082         * lib/unicodeio.c: Likewise.
30083         * lib/unicodeio.h: Likewise.
30084         * lib/unistd--.h: Likewise.
30085         * lib/unistd-safer.h: Likewise.
30086         * lib/unistdio/ulc-fprintf.c: Likewise.
30087         * lib/unistdio/ulc-vfprintf.c: Likewise.
30088         * lib/unlinkdir.c: Likewise.
30089         * lib/unlinkdir.h: Likewise.
30090         * lib/unlocked-io.h: Likewise.
30091         * lib/unsetenv.c: Likewise.
30092         * lib/userspec.c: Likewise.
30093         * lib/utime.c: Likewise.
30094         * lib/utimecmp.c: Likewise.
30095         * lib/utimecmp.h: Likewise.
30096         * lib/utimens.c: Likewise.
30097         * lib/verify.h: Likewise.
30098         * lib/verror.c: Likewise.
30099         * lib/verror.h: Likewise.
30100         * lib/version-etc-fsf.c: Likewise.
30101         * lib/version-etc.c: Likewise.
30102         * lib/version-etc.h: Likewise.
30103         * lib/vfprintf.c: Likewise.
30104         * lib/vprintf.c: Likewise.
30105         * lib/vsprintf.c: Likewise.
30106         * lib/w32spawn.h: Likewise.
30107         * lib/wait-process.c: Likewise.
30108         * lib/wait-process.h: Likewise.
30109         * lib/wcwidth.c: Likewise.
30110         * lib/write-any-file.c: Likewise.
30111         * lib/xalloc-die.c: Likewise.
30112         * lib/xalloc.h: Likewise.
30113         * lib/xasprintf.c: Likewise.
30114         * lib/xgetcwd.c: Likewise.
30115         * lib/xgetcwd.h: Likewise.
30116         * lib/xgetdomainname.c: Likewise.
30117         * lib/xgetdomainname.h: Likewise.
30118         * lib/xgethostname.c: Likewise.
30119         * lib/xmalloc.c: Likewise.
30120         * lib/xmalloca.c: Likewise.
30121         * lib/xmalloca.h: Likewise.
30122         * lib/xmemcoll.c: Likewise.
30123         * lib/xnanosleep.c: Likewise.
30124         * lib/xreadlink.c: Likewise.
30125         * lib/xreadlink.h: Likewise.
30126         * lib/xsetenv.c: Likewise.
30127         * lib/xsetenv.h: Likewise.
30128         * lib/xstriconv.c: Likewise.
30129         * lib/xstriconv.h: Likewise.
30130         * lib/xstrndup.c: Likewise.
30131         * lib/xstrndup.h: Likewise.
30132         * lib/xstrtod.c: Likewise.
30133         * lib/xstrtod.h: Likewise.
30134         * lib/xstrtol-error.c: Likewise.
30135         * lib/xstrtol.c: Likewise.
30136         * lib/xstrtol.h: Likewise.
30137         * lib/xtime.h: Likewise.
30138         * lib/xvasprintf.c: Likewise.
30139         * lib/xvasprintf.h: Likewise.
30140         * lib/yesno.c: Likewise.
30141         * lib/yesno.h: Likewise.
30142         * posix-modules: Likewise.
30143         * tests/test-alloca-opt.c: Likewise.
30144         * tests/test-arcfour.c: Likewise.
30145         * tests/test-arctwo.c: Likewise.
30146         * tests/test-argmatch.c: Likewise.
30147         * tests/test-argp-2.sh: Likewise.
30148         * tests/test-argp.c: Likewise.
30149         * tests/test-arpa_inet.c: Likewise.
30150         * tests/test-array_list.c: Likewise.
30151         * tests/test-array_oset.c: Likewise.
30152         * tests/test-atexit.c: Likewise.
30153         * tests/test-avltree_list.c: Likewise.
30154         * tests/test-avltree_oset.c: Likewise.
30155         * tests/test-avltreehash_list.c: Likewise.
30156         * tests/test-base64.c: Likewise.
30157         * tests/test-binary-io.c: Likewise.
30158         * tests/test-byteswap.c: Likewise.
30159         * tests/test-c-ctype.c: Likewise.
30160         * tests/test-c-strcasecmp.c: Likewise.
30161         * tests/test-c-strcasestr.c: Likewise.
30162         * tests/test-c-strncasecmp.c: Likewise.
30163         * tests/test-c-strstr.c: Likewise.
30164         * tests/test-canonicalize-lgpl.c: Likewise.
30165         * tests/test-canonicalize.c: Likewise.
30166         * tests/test-carray_list.c: Likewise.
30167         * tests/test-ceilf.c: Likewise.
30168         * tests/test-ceill.c: Likewise.
30169         * tests/test-count-one-bits.c: Likewise.
30170         * tests/test-crc.c: Likewise.
30171         * tests/test-dirname.c: Likewise.
30172         * tests/test-fbufmode.c: Likewise.
30173         * tests/test-fcntl.c: Likewise.
30174         * tests/test-fflush.c: Likewise.
30175         * tests/test-floorf.c: Likewise.
30176         * tests/test-floorl.c: Likewise.
30177         * tests/test-fopen.c: Likewise.
30178         * tests/test-fprintf-posix.c: Likewise.
30179         * tests/test-fprintf-posix.h: Likewise.
30180         * tests/test-fpurge.c: Likewise.
30181         * tests/test-freadable.c: Likewise.
30182         * tests/test-freadahead.c: Likewise.
30183         * tests/test-freading.c: Likewise.
30184         * tests/test-freopen.c: Likewise.
30185         * tests/test-frexp.c: Likewise.
30186         * tests/test-frexpl.c: Likewise.
30187         * tests/test-fseek.c: Likewise.
30188         * tests/test-fseeko.c: Likewise.
30189         * tests/test-fseterr.c: Likewise.
30190         * tests/test-fstrcmp.c: Likewise.
30191         * tests/test-ftell.c: Likewise.
30192         * tests/test-ftello.c: Likewise.
30193         * tests/test-fwritable.c: Likewise.
30194         * tests/test-fwriting.c: Likewise.
30195         * tests/test-getaddrinfo.c: Likewise.
30196         * tests/test-getpass.c: Likewise.
30197         * tests/test-gettimeofday.c: Likewise.
30198         * tests/test-hmac-md5.c: Likewise.
30199         * tests/test-hmac-sha1.c: Likewise.
30200         * tests/test-iconv.c: Likewise.
30201         * tests/test-iconvme.c: Likewise.
30202         * tests/test-inttypes.c: Likewise.
30203         * tests/test-isnan.c: Likewise.
30204         * tests/test-isnanf.c: Likewise.
30205         * tests/test-isnanl-nolibm.c: Likewise.
30206         * tests/test-isnanl.c: Likewise.
30207         * tests/test-isnanl.h: Likewise.
30208         * tests/test-ldexpl.c: Likewise.
30209         * tests/test-linked_list.c: Likewise.
30210         * tests/test-linkedhash_list.c: Likewise.
30211         * tests/test-locale.c: Likewise.
30212         * tests/test-localename.c: Likewise.
30213         * tests/test-lock.c: Likewise.
30214         * tests/test-lseek.c: Likewise.
30215         * tests/test-malloca.c: Likewise.
30216         * tests/test-math.c: Likewise.
30217         * tests/test-mbscasecmp.c: Likewise.
30218         * tests/test-mbscasestr1.c: Likewise.
30219         * tests/test-mbscasestr2.c: Likewise.
30220         * tests/test-mbscasestr3.c: Likewise.
30221         * tests/test-mbscasestr4.c: Likewise.
30222         * tests/test-mbschr.c: Likewise.
30223         * tests/test-mbscspn.c: Likewise.
30224         * tests/test-mbsncasecmp.c: Likewise.
30225         * tests/test-mbspbrk.c: Likewise.
30226         * tests/test-mbspcasecmp.c: Likewise.
30227         * tests/test-mbsrchr.c: Likewise.
30228         * tests/test-mbsspn.c: Likewise.
30229         * tests/test-mbsstr1.c: Likewise.
30230         * tests/test-mbsstr2.c: Likewise.
30231         * tests/test-mbsstr3.c: Likewise.
30232         * tests/test-md5.c: Likewise.
30233         * tests/test-memmem.c: Likewise.
30234         * tests/test-netinet_in.c: Likewise.
30235         * tests/test-open.c: Likewise.
30236         * tests/test-printf-frexp.c: Likewise.
30237         * tests/test-printf-frexpl.c: Likewise.
30238         * tests/test-printf-posix.c: Likewise.
30239         * tests/test-printf-posix.h: Likewise.
30240         * tests/test-rbtree_list.c: Likewise.
30241         * tests/test-rbtree_oset.c: Likewise.
30242         * tests/test-rbtreehash_list.c: Likewise.
30243         * tests/test-read-file.c: Likewise.
30244         * tests/test-rijndael.c: Likewise.
30245         * tests/test-search.c: Likewise.
30246         * tests/test-signbit.c: Likewise.
30247         * tests/test-sleep.c: Likewise.
30248         * tests/test-snprintf-posix.c: Likewise.
30249         * tests/test-snprintf-posix.h: Likewise.
30250         * tests/test-snprintf.c: Likewise.
30251         * tests/test-sprintf-posix.c: Likewise.
30252         * tests/test-sprintf-posix.h: Likewise.
30253         * tests/test-stat-time.c: Likewise.
30254         * tests/test-stdbool.c: Likewise.
30255         * tests/test-stdint.c: Likewise.
30256         * tests/test-stdio.c: Likewise.
30257         * tests/test-stdlib.c: Likewise.
30258         * tests/test-stpncpy.c: Likewise.
30259         * tests/test-strcasestr.c: Likewise.
30260         * tests/test-striconv.c: Likewise.
30261         * tests/test-striconveh.c: Likewise.
30262         * tests/test-striconveha.c: Likewise.
30263         * tests/test-string.c: Likewise.
30264         * tests/test-sys_select.c: Likewise.
30265         * tests/test-sys_socket.c: Likewise.
30266         * tests/test-sys_stat.c: Likewise.
30267         * tests/test-sys_time.c: Likewise.
30268         * tests/test-sysexits.c: Likewise.
30269         * tests/test-time.c: Likewise.
30270         * tests/test-tls.c: Likewise.
30271         * tests/test-trunc.c: Likewise.
30272         * tests/test-truncf.c: Likewise.
30273         * tests/test-truncl.c: Likewise.
30274         * tests/test-unistd.c: Likewise.
30275         * tests/test-vasnprintf-posix.c: Likewise.
30276         * tests/test-vasnprintf-posix2.c: Likewise.
30277         * tests/test-vasnprintf.c: Likewise.
30278         * tests/test-vasprintf-posix.c: Likewise.
30279         * tests/test-vasprintf.c: Likewise.
30280         * tests/test-verify.c: Likewise.
30281         * tests/test-vfprintf-posix.c: Likewise.
30282         * tests/test-vprintf-posix.c: Likewise.
30283         * tests/test-vsnprintf-posix.c: Likewise.
30284         * tests/test-vsnprintf.c: Likewise.
30285         * tests/test-vsprintf-posix.c: Likewise.
30286         * tests/test-wchar.c: Likewise.
30287         * tests/test-wctype.c: Likewise.
30288         * tests/test-wcwidth.c: Likewise.
30289         * tests/test-xstrtol.c: Likewise.
30290         * tests/test-xvasprintf.c: Likewise.
30291         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30292         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30293         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30294         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30295         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30296         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30297         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30298         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30299         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30300         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30301         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30302         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30303         * tests/uniname/test-uninames.c: Likewise.
30304         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30305         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30306         * tests/unistdio/test-u16-printf1.h: Likewise.
30307         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30308         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30309         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30310         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30311         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30312         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30313         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30314         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30315         * tests/unistdio/test-u32-printf1.h: Likewise.
30316         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30317         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30318         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30319         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30320         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30321         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30322         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30323         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30324         * tests/unistdio/test-u8-printf1.h: Likewise.
30325         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30326         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30327         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30328         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30329         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30330         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30331         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30332         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30333         * tests/unistdio/test-ulc-printf1.h: Likewise.
30334         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30335         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30336         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30337         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30338         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30339         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30340         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30341         * tests/uniwidth/test-u16-width.c: Likewise.
30342         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30343         * tests/uniwidth/test-u32-width.c: Likewise.
30344         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30345         * tests/uniwidth/test-u8-width.c: Likewise.
30346         * tests/uniwidth/test-uc_width.c: Likewise.
30347         * config/srclist-update: Likewise.
30348         (fixlicense): Update to GPLv3+.
30349
30350         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30351         * tests/test-tsearch.c: Change copyright notice.
30352
30353         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30354         * lib/c-strcaseeq.h: Change copyright notice.
30355         * lib/streq.h: Likewise.
30356         * lib/uniconv.h: Likewise.
30357         * lib/uniconv/u-conv-from-enc.h: Likewise.
30358         * lib/uniconv/u-conv-to-enc.h: Likewise.
30359         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30360         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30361         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30362         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30363         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30364         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30365         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30366         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30367         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30368         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30369         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30370         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30371         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30372         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30373         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30374         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30375         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30376         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30377         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30378         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30379         * lib/uniname.h: Likewise.
30380         * lib/uniname/uniname.c: Likewise.
30381         * lib/unistdio.h: Likewise.
30382         * lib/unistdio/u-asnprintf.h: Likewise.
30383         * lib/unistdio/u-asprintf.h: Likewise.
30384         * lib/unistdio/u-printf-args.c: Likewise.
30385         * lib/unistdio/u-printf-args.h: Likewise.
30386         * lib/unistdio/u-printf-parse.h: Likewise.
30387         * lib/unistdio/u-snprintf.h: Likewise.
30388         * lib/unistdio/u-sprintf.h: Likewise.
30389         * lib/unistdio/u-vasprintf.h: Likewise.
30390         * lib/unistdio/u-vsnprintf.h: Likewise.
30391         * lib/unistdio/u-vsprintf.h: Likewise.
30392         * lib/unistdio/u16-asnprintf.c: Likewise.
30393         * lib/unistdio/u16-asprintf.c: Likewise.
30394         * lib/unistdio/u16-printf-parse.c: Likewise.
30395         * lib/unistdio/u16-snprintf.c: Likewise.
30396         * lib/unistdio/u16-sprintf.c: Likewise.
30397         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30398         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30399         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30400         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30401         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30402         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30403         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30404         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30405         * lib/unistdio/u16-vasnprintf.c: Likewise.
30406         * lib/unistdio/u16-vasprintf.c: Likewise.
30407         * lib/unistdio/u16-vsnprintf.c: Likewise.
30408         * lib/unistdio/u16-vsprintf.c: Likewise.
30409         * lib/unistdio/u32-asnprintf.c: Likewise.
30410         * lib/unistdio/u32-asprintf.c: Likewise.
30411         * lib/unistdio/u32-printf-parse.c: Likewise.
30412         * lib/unistdio/u32-snprintf.c: Likewise.
30413         * lib/unistdio/u32-sprintf.c: Likewise.
30414         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30415         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30416         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30417         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30418         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30419         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30420         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30421         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30422         * lib/unistdio/u32-vasnprintf.c: Likewise.
30423         * lib/unistdio/u32-vasprintf.c: Likewise.
30424         * lib/unistdio/u32-vsnprintf.c: Likewise.
30425         * lib/unistdio/u32-vsprintf.c: Likewise.
30426         * lib/unistdio/u8-asnprintf.c: Likewise.
30427         * lib/unistdio/u8-asprintf.c: Likewise.
30428         * lib/unistdio/u8-printf-parse.c: Likewise.
30429         * lib/unistdio/u8-snprintf.c: Likewise.
30430         * lib/unistdio/u8-sprintf.c: Likewise.
30431         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30432         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30433         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30434         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30435         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30436         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30437         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30438         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30439         * lib/unistdio/u8-vasnprintf.c: Likewise.
30440         * lib/unistdio/u8-vasprintf.c: Likewise.
30441         * lib/unistdio/u8-vsnprintf.c: Likewise.
30442         * lib/unistdio/u8-vsprintf.c: Likewise.
30443         * lib/unistdio/ulc-asnprintf.c: Likewise.
30444         * lib/unistdio/ulc-asprintf.c: Likewise.
30445         * lib/unistdio/ulc-printf-parse.c: Likewise.
30446         * lib/unistdio/ulc-snprintf.c: Likewise.
30447         * lib/unistdio/ulc-sprintf.c: Likewise.
30448         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30449         * lib/unistdio/ulc-vasprintf.c: Likewise.
30450         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30451         * lib/unistdio/ulc-vsprintf.c: Likewise.
30452         * lib/unistr.h: Likewise.
30453         * lib/unistr/u-cpy-alloc.h: Likewise.
30454         * lib/unistr/u-cpy.h: Likewise.
30455         * lib/unistr/u-endswith.h: Likewise.
30456         * lib/unistr/u-move.h: Likewise.
30457         * lib/unistr/u-set.h: Likewise.
30458         * lib/unistr/u-startswith.h: Likewise.
30459         * lib/unistr/u-stpcpy.h: Likewise.
30460         * lib/unistr/u-stpncpy.h: Likewise.
30461         * lib/unistr/u-strcat.h: Likewise.
30462         * lib/unistr/u-strcpy.h: Likewise.
30463         * lib/unistr/u-strcspn.h: Likewise.
30464         * lib/unistr/u-strdup.h: Likewise.
30465         * lib/unistr/u-strlen.h: Likewise.
30466         * lib/unistr/u-strncat.h: Likewise.
30467         * lib/unistr/u-strncpy.h: Likewise.
30468         * lib/unistr/u-strnlen.h: Likewise.
30469         * lib/unistr/u-strpbrk.h: Likewise.
30470         * lib/unistr/u-strspn.h: Likewise.
30471         * lib/unistr/u-strstr.h: Likewise.
30472         * lib/unistr/u-strtok.h: Likewise.
30473         * lib/unistr/u16-check.c: Likewise.
30474         * lib/unistr/u16-chr.c: Likewise.
30475         * lib/unistr/u16-cmp.c: Likewise.
30476         * lib/unistr/u16-cpy-alloc.c: Likewise.
30477         * lib/unistr/u16-cpy.c: Likewise.
30478         * lib/unistr/u16-endswith.c: Likewise.
30479         * lib/unistr/u16-mblen.c: Likewise.
30480         * lib/unistr/u16-mbsnlen.c: Likewise.
30481         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30482         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30483         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30484         * lib/unistr/u16-mbtouc.c: Likewise.
30485         * lib/unistr/u16-mbtoucr.c: Likewise.
30486         * lib/unistr/u16-move.c: Likewise.
30487         * lib/unistr/u16-next.c: Likewise.
30488         * lib/unistr/u16-prev.c: Likewise.
30489         * lib/unistr/u16-set.c: Likewise.
30490         * lib/unistr/u16-startswith.c: Likewise.
30491         * lib/unistr/u16-stpcpy.c: Likewise.
30492         * lib/unistr/u16-stpncpy.c: Likewise.
30493         * lib/unistr/u16-strcat.c: Likewise.
30494         * lib/unistr/u16-strchr.c: Likewise.
30495         * lib/unistr/u16-strcmp.c: Likewise.
30496         * lib/unistr/u16-strcpy.c: Likewise.
30497         * lib/unistr/u16-strcspn.c: Likewise.
30498         * lib/unistr/u16-strdup.c: Likewise.
30499         * lib/unistr/u16-strlen.c: Likewise.
30500         * lib/unistr/u16-strmblen.c: Likewise.
30501         * lib/unistr/u16-strmbtouc.c: Likewise.
30502         * lib/unistr/u16-strncat.c: Likewise.
30503         * lib/unistr/u16-strncmp.c: Likewise.
30504         * lib/unistr/u16-strncpy.c: Likewise.
30505         * lib/unistr/u16-strnlen.c: Likewise.
30506         * lib/unistr/u16-strpbrk.c: Likewise.
30507         * lib/unistr/u16-strrchr.c: Likewise.
30508         * lib/unistr/u16-strspn.c: Likewise.
30509         * lib/unistr/u16-strstr.c: Likewise.
30510         * lib/unistr/u16-strtok.c: Likewise.
30511         * lib/unistr/u16-to-u32.c: Likewise.
30512         * lib/unistr/u16-to-u8.c: Likewise.
30513         * lib/unistr/u16-uctomb-aux.c: Likewise.
30514         * lib/unistr/u16-uctomb.c: Likewise.
30515         * lib/unistr/u32-check.c: Likewise.
30516         * lib/unistr/u32-chr.c: Likewise.
30517         * lib/unistr/u32-cmp.c: Likewise.
30518         * lib/unistr/u32-cpy-alloc.c: Likewise.
30519         * lib/unistr/u32-cpy.c: Likewise.
30520         * lib/unistr/u32-endswith.c: Likewise.
30521         * lib/unistr/u32-mblen.c: Likewise.
30522         * lib/unistr/u32-mbsnlen.c: Likewise.
30523         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30524         * lib/unistr/u32-mbtouc.c: Likewise.
30525         * lib/unistr/u32-mbtoucr.c: Likewise.
30526         * lib/unistr/u32-move.c: Likewise.
30527         * lib/unistr/u32-next.c: Likewise.
30528         * lib/unistr/u32-prev.c: Likewise.
30529         * lib/unistr/u32-set.c: Likewise.
30530         * lib/unistr/u32-startswith.c: Likewise.
30531         * lib/unistr/u32-stpcpy.c: Likewise.
30532         * lib/unistr/u32-stpncpy.c: Likewise.
30533         * lib/unistr/u32-strcat.c: Likewise.
30534         * lib/unistr/u32-strchr.c: Likewise.
30535         * lib/unistr/u32-strcmp.c: Likewise.
30536         * lib/unistr/u32-strcpy.c: Likewise.
30537         * lib/unistr/u32-strcspn.c: Likewise.
30538         * lib/unistr/u32-strdup.c: Likewise.
30539         * lib/unistr/u32-strlen.c: Likewise.
30540         * lib/unistr/u32-strmblen.c: Likewise.
30541         * lib/unistr/u32-strmbtouc.c: Likewise.
30542         * lib/unistr/u32-strncat.c: Likewise.
30543         * lib/unistr/u32-strncmp.c: Likewise.
30544         * lib/unistr/u32-strncpy.c: Likewise.
30545         * lib/unistr/u32-strnlen.c: Likewise.
30546         * lib/unistr/u32-strpbrk.c: Likewise.
30547         * lib/unistr/u32-strrchr.c: Likewise.
30548         * lib/unistr/u32-strspn.c: Likewise.
30549         * lib/unistr/u32-strstr.c: Likewise.
30550         * lib/unistr/u32-strtok.c: Likewise.
30551         * lib/unistr/u32-to-u16.c: Likewise.
30552         * lib/unistr/u32-to-u8.c: Likewise.
30553         * lib/unistr/u32-uctomb.c: Likewise.
30554         * lib/unistr/u8-check.c: Likewise.
30555         * lib/unistr/u8-chr.c: Likewise.
30556         * lib/unistr/u8-cmp.c: Likewise.
30557         * lib/unistr/u8-cpy-alloc.c: Likewise.
30558         * lib/unistr/u8-cpy.c: Likewise.
30559         * lib/unistr/u8-endswith.c: Likewise.
30560         * lib/unistr/u8-mblen.c: Likewise.
30561         * lib/unistr/u8-mbsnlen.c: Likewise.
30562         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30563         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30564         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30565         * lib/unistr/u8-mbtouc.c: Likewise.
30566         * lib/unistr/u8-mbtoucr.c: Likewise.
30567         * lib/unistr/u8-move.c: Likewise.
30568         * lib/unistr/u8-next.c: Likewise.
30569         * lib/unistr/u8-prev.c: Likewise.
30570         * lib/unistr/u8-set.c: Likewise.
30571         * lib/unistr/u8-startswith.c: Likewise.
30572         * lib/unistr/u8-stpcpy.c: Likewise.
30573         * lib/unistr/u8-stpncpy.c: Likewise.
30574         * lib/unistr/u8-strcat.c: Likewise.
30575         * lib/unistr/u8-strchr.c: Likewise.
30576         * lib/unistr/u8-strcmp.c: Likewise.
30577         * lib/unistr/u8-strcpy.c: Likewise.
30578         * lib/unistr/u8-strcspn.c: Likewise.
30579         * lib/unistr/u8-strdup.c: Likewise.
30580         * lib/unistr/u8-strlen.c: Likewise.
30581         * lib/unistr/u8-strmblen.c: Likewise.
30582         * lib/unistr/u8-strmbtouc.c: Likewise.
30583         * lib/unistr/u8-strncat.c: Likewise.
30584         * lib/unistr/u8-strncmp.c: Likewise.
30585         * lib/unistr/u8-strncpy.c: Likewise.
30586         * lib/unistr/u8-strnlen.c: Likewise.
30587         * lib/unistr/u8-strpbrk.c: Likewise.
30588         * lib/unistr/u8-strrchr.c: Likewise.
30589         * lib/unistr/u8-strspn.c: Likewise.
30590         * lib/unistr/u8-strstr.c: Likewise.
30591         * lib/unistr/u8-strtok.c: Likewise.
30592         * lib/unistr/u8-to-u16.c: Likewise.
30593         * lib/unistr/u8-to-u32.c: Likewise.
30594         * lib/unistr/u8-uctomb-aux.c: Likewise.
30595         * lib/unistr/u8-uctomb.c: Likewise.
30596         * lib/unitypes.h: Likewise.
30597         * lib/uniwidth.h: Likewise.
30598         * lib/uniwidth/cjk.h: Likewise.
30599         * lib/uniwidth/u16-strwidth.c: Likewise.
30600         * lib/uniwidth/u16-width.c: Likewise.
30601         * lib/uniwidth/u32-strwidth.c: Likewise.
30602         * lib/uniwidth/u32-width.c: Likewise.
30603         * lib/uniwidth/u8-strwidth.c: Likewise.
30604         * lib/uniwidth/u8-width.c: Likewise.
30605         * lib/uniwidth/width.c: Likewise.
30606
30607 2007-10-07  Bruno Haible  <bruno@clisp.org>
30608
30609         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30610         The file is still under LGPL (see modules/inttypes).
30611
30612 2007-10-06  Bruno Haible  <bruno@clisp.org>
30613
30614         * modules/trunc (Dependencies): Add 'extensions'.
30615         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30616         Reported by Ben Pfaff <blp@gnu.org>.
30617
30618 2007-10-06  Bruno Haible  <bruno@clisp.org>
30619
30620         * modules/freopen-tests: New file.
30621         * tests/test-freopen.c: New file.
30622
30623         * modules/fopen-tests: New file.
30624         * tests/test-fopen.c: New file.
30625
30626         * modules/fopen: New file.
30627         * lib/fopen.c: New file.
30628         * m4/fopen.m4: New file.
30629         * modules/freopen: New file.
30630         * lib/freopen.c: New file.
30631         * m4/freopen.m4: New file.
30632         * lib/stdio.in.h (fopen, freopen): New declarations.
30633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30634         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30635         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30636         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30637         * doc/functions/fopen.texi: Mention the 'fopen' module.
30638         * doc/functions/freopen.texi: Mention the 'freopen' module.
30639
30640 2007-10-06  Bruno Haible  <bruno@clisp.org>
30641
30642         * modules/open-tests: New file.
30643         * tests/test-open.c: New file.
30644
30645         * modules/open: New file.
30646         * lib/open.c: New file.
30647         * m4/open.m4: New file.
30648         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30649         lib/open.c does.
30650         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30651         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30652         macros.
30653         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30654         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30655         REPLACE_OPEN.
30656         * doc/functions/open.texi: Mention the 'open' module.
30657
30658 2007-10-04  Bruno Haible  <bruno@clisp.org>
30659
30660         * modules/ceill-tests: New file.
30661         * tests/test-ceill.c: New file.
30662
30663         * modules/ceill: New file.
30664         * lib/ceill.c: Replace entire file.
30665         * m4/ceill.m4: New file.
30666         * lib/math.in.h (ceill): Replace declaration.
30667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30668         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30669         * doc/functions/ceill.texi: Mention the 'ceill' module.
30670         * modules/mathl (Files): Remove lib/ceill.c.
30671         (Depends-on): Add ceill.
30672
30673 2007-10-04  Bruno Haible  <bruno@clisp.org>
30674
30675         * modules/ceilf-tests: New file.
30676         * tests/test-ceilf.c: New file.
30677
30678         * modules/ceilf: New file.
30679         * lib/ceil.c: New file.
30680         * lib/ceilf.c: New file.
30681         * m4/ceilf.m4: New file.
30682         * lib/math.in.h (ceilf): New declaration.
30683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30684         HAVE_DECL_CEILF.
30685         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30686         HAVE_DECL_CEILF.
30687         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30688
30689 2007-10-04  Bruno Haible  <bruno@clisp.org>
30690
30691         * modules/floorl-tests: New file.
30692         * tests/test-floorl.c: New file.
30693
30694         * modules/floorl: New file.
30695         * lib/floorl.c: Replace entire file.
30696         * m4/floorl.m4: New file.
30697         * lib/math.in.h (floorl): Replace declaration.
30698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30699         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30700         * doc/functions/floorl.texi: Mention the 'floorl' module.
30701         * modules/mathl (Files): Remove lib/floorl.c.
30702         (Depends-on): Add floorl.
30703
30704 2007-10-04  Bruno Haible  <bruno@clisp.org>
30705
30706         * modules/floorf-tests: New file.
30707         * tests/test-floorf.c: New file.
30708
30709         * modules/floorf: New file.
30710         * lib/floor.c: New file.
30711         * lib/floorf.c: New file.
30712         * m4/floorf.m4: New file.
30713         * lib/math.in.h (floorf): New declaration.
30714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30715         HAVE_DECL_FLOORF.
30716         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30717         HAVE_DECL_FLOORF.
30718         * doc/functions/floorf.texi: Mention the 'floorf' module.
30719
30720 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30721             Bruno Haible  <bruno@clisp.org>
30722
30723         Advertise for the Git server instead of the CVS server.
30724         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30725         repository instead of the CVS one.
30726         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30727         about all VCS systems generically.
30728         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30729
30730 2007-10-04  Bruno Haible  <bruno@clisp.org>
30731
30732         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30733         means.
30734         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30735
30736 2007-10-04  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/truncl-tests: New file.
30739         * tests/test-truncl.c: New file.
30740
30741         * modules/truncl: New file.
30742         * lib/truncl.c: New file.
30743         * m4/truncl.m4: New file.
30744         * lib/math.in.h (truncl): New declaration.
30745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30746         HAVE_DECL_TRUNCL.
30747         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30748         HAVE_DECL_TRUNCL.
30749         * doc/functions/truncl.texi: Mention the 'truncl' module.
30750
30751 2007-10-04  Bruno Haible  <bruno@clisp.org>
30752
30753         * modules/truncf-tests: New file.
30754         * tests/test-truncf.c: New file.
30755
30756         * modules/truncf: New file.
30757         * lib/trunc.c: Make paramerizable through USE_* macros.
30758         * lib/truncf.c: New file.
30759         * m4/truncf.m4: New file.
30760         * lib/math.in.h (truncf): New declaration.
30761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30762         HAVE_DECL_TRUNCF.
30763         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30764         HAVE_DECL_TRUNCF.
30765         * doc/functions/truncf.texi: Mention the 'truncf' module.
30766
30767 2007-10-03  Bruno Haible  <bruno@clisp.org>
30768
30769         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30770         augmentation also for tests modules.
30771         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30772         * modules/atexit-tests (Makefile.am): Likewise.
30773         * modules/binary-io-tests (Makefile.am): Likewise.
30774         * modules/c-strcase-tests (Makefile.am): Likewise.
30775         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30776         * modules/canonicalize-tests (Makefile.am): Likewise.
30777         * modules/closein-tests (Makefile.am): Likewise.
30778         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30779         * modules/freadahead-tests (Makefile.am): Likewise.
30780         * modules/fseek-tests (Makefile.am): Likewise.
30781         * modules/fseeko-tests (Makefile.am): Likewise.
30782         * modules/ftell-tests (Makefile.am): Likewise.
30783         * modules/ftello-tests (Makefile.am): Likewise.
30784         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30785         * modules/isnanl-tests (Makefile.am): Likewise.
30786         * modules/lseek-tests (Makefile.am): Likewise.
30787         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30788         * modules/mbscasestr-tests (Makefile.am): Likewise.
30789         * modules/mbschr-tests (Makefile.am): Likewise.
30790         * modules/mbscspn-tests (Makefile.am): Likewise.
30791         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30792         * modules/mbspbrk-tests (Makefile.am): Likewise.
30793         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30794         * modules/mbsrchr-tests (Makefile.am): Likewise.
30795         * modules/mbsspn-tests (Makefile.am): Likewise.
30796         * modules/mbsstr-tests (Makefile.am): Likewise.
30797         * modules/printf-posix-tests (Makefile.am): Likewise.
30798         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30799         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30800         * modules/tsearch-tests (Makefile.am): Likewise.
30801         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30802         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30803         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30804         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30805         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30806         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30807         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30808         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30809         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30810         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30811         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30812         * modules/xstrtol-tests (Makefile.am): Likewise.
30813         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30814         * modules/yesno-tests (Makefile.am): Likewise.
30815
30816 2007-10-03  Bruno Haible  <bruno@clisp.org>
30817
30818         * modules/trunc-tests: New file.
30819         * tests/test-trunc.c: New file.
30820
30821         * modules/trunc: New file.
30822         * lib/trunc.c: New file.
30823         * m4/trunc.m4: New file.
30824         * lib/math.in.h (trunc): New declaration.
30825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30826         HAVE_DECL_TRUNC.
30827         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30828         HAVE_DECL_TRUNC.
30829         * doc/functions/trunc.texi: Mention the 'trunc' module.
30830
30831 2007-10-03  Bruno Haible  <bruno@clisp.org>
30832
30833         * tests/test-fpending.c: New file, mostly copied
30834         from coreutils/lib/t-fpending.c.
30835         * modules/fpending-tests: New file.
30836
30837 2007-10-03  Bruno Haible  <bruno@clisp.org>
30838
30839         Port the stdio extensions to QNX (untested).
30840         * lib/fseterr.c (fseterr): Add support for QNX.
30841         * lib/fbufmode.c (fbufmode): Likewise.
30842         * lib/freadable.c (freadable): Likewise.
30843         * lib/fwritable.c (fwritable): Likewise.
30844         * lib/freading.c (freading): Likewise.
30845         * lib/fwriting.c (fwriting): Likewise.
30846         * lib/freadahead.c (freadahed): Likewise.
30847         * lib/fpurge.c (fpurge): Likewise.
30848         * lib/fseeko.c (rpl_fseeko): Likewise.
30849
30850 2007-10-03  Bruno Haible  <bruno@clisp.org>
30851             Jim Meyering  <jim@meyering.net>
30852             Eric Blake  <ebb9@byu.net>
30853
30854         * doc/relocatable.texi: Use @command instead of @program.
30855
30856 2007-10-02  Jim Meyering  <jim@meyering.net>
30857
30858         Perform one more "_.h" -> ".in.h" substitution.
30859         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30860         instead of unistd_.h here, too.
30861
30862 2007-10-01  Bruno Haible  <bruno@clisp.org>
30863
30864         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30865         Needed for the alloca-opt module.
30866
30867 2007-09-30  Bruno Haible  <bruno@clisp.org>
30868
30869         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30870         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30871         alloca_.h.
30872         * lib/argz.in.h: Renamed from lib/argz_.h.
30873         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30874         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30875         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30876         byteswap_.h.
30877         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30878         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30879         dirent_.h.
30880         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30881         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30882         fcntl_.h.
30883         * lib/float.in.h: Renamed from lib/float_.h.
30884         * modules/float (Files, Makefile.am): Use float.in.h instead of
30885         float_.h.
30886         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30887         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30888         fnmatch_.h.
30889         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30890         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30891         getopt_.h.
30892         * lib/glob.in.h: Renamed from lib/glob_.h.
30893         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30894         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30895         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30896         iconv_.h.
30897         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30898         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30899         inttypes_.h.
30900         * lib/locale.in.h: Renamed from lib/locale_.h.
30901         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30902         locale_.h.
30903         * lib/math.in.h: Renamed from lib/math_.h.
30904         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30905         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30906         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30907         of netinet_in_.h. Add dependency.
30908         * lib/poll.in.h: Renamed from lib/poll_.h.
30909         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30910         * lib/search.in.h: Renamed from lib/search_.h.
30911         * modules/search (Files, Makefile.am): Use search.in.h instead of
30912         search_.h.
30913         * lib/signal.in.h: Renamed from lib/signal_.h.
30914         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30915         _signal.h.
30916         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30917         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30918         stdbool_.h.
30919         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30920         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30921         stdint_.h.
30922         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30923         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30924         stdio_.h.
30925         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30926         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30927         stdlib_.h.
30928         * lib/string.in.h: Renamed from lib/string_.h.
30929         * modules/string (Files, Makefile.am): Use string.in.h instead of
30930         string_.h.
30931         * doc/gnulib-tool.texi (Initial import): Update.
30932         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30933         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30934         of sys_select_.h. Add dependency.
30935         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30936         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30937         of sys_socket_.h.
30938         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30939         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30940         sys_stat_.h.
30941         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30942         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30943         sys_time_.h.
30944         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30945         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30946         sysexits_.h.
30947         * lib/time.in.h: Renamed from lib/time_.h.
30948         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30949         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30950         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30951         unistd_.h.
30952         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30953         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30954         wchar_.h.
30955         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30956         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30957         wctype_.h.
30958         * build-aux/bootstrap (slurp): Update.
30959         * lib/.cppi-disable: Update.
30960
30961 2007-09-30  Bruno Haible  <bruno@clisp.org>
30962
30963         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30964         Needed on BeOS.
30965
30966 2007-09-30  Bruno Haible  <bruno@clisp.org>
30967
30968         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30969
30970 2007-09-29  Bruno Haible  <bruno@clisp.org>
30971
30972         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30973
30974 2007-09-29  Bruno Haible  <bruno@clisp.org>
30975
30976         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30977         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30978         * build-aux/install-reloc: Compile also areadlink.c.
30979         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30980
30981 2007-09-29  Bruno Haible  <bruno@clisp.org>
30982
30983         * gnulib-tool (func_emit_initmacro_done): Indentation.
30984
30985 2007-09-29  Bruno Haible  <bruno@clisp.org>
30986
30987         * README: Add CVS checkout update instructions.
30988         Info from Bob Proulx <bob@proulx.com>.
30989
30990 2007-09-28  Eric Blake  <ebb9@byu.net>
30991
30992         Provide move-if-change.
30993         * build-aux/move-if-change: New file, based on best practice
30994         rather than any canonical upstream location.
30995
30996 2007-09-28  Jim Meyering  <jim@meyering.net>
30997
30998         Fix canonicalize loop-detection corner case.
30999         Do not attempt to stat the symlink values stored via seen_triple.
31000         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31001         on linux-2.6.18, (but not 2.6.22).
31002         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31003         triple_compare.  The former compares dev,ino,filename, while the latter
31004         would actually stat dirname(filename) when dev and ino were equal.
31005         * lib/hash-triple.c: Install <string.h>.
31006         (STREQ): Define.
31007         (triple_compare_ino_str): New function.
31008         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31009
31010 2007-09-28  Eric Blake  <ebb9@byu.net>
31011
31012         Enforce that AC_REPLACE_FUNCS files exist.
31013         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31014         override check for typos.
31015
31016         Fix test-closein on Solaris 10.
31017         * tests/test-closein.c (main): Don't assume stdin can be inherited
31018         closed on all systems.
31019         * tests/test-closein.sh: Likewise.
31020         Reported by Piotr Tarnowski.
31021
31022 2007-09-28  Jim Meyering  <jim@meyering.net>
31023
31024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31025
31026 2007-09-27  Jim Meyering  <jim@meyering.net>
31027
31028         canonicalize: Avoid a false-positive cycle failure.
31029         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31030         Sort.  Remove cycle-check.
31031         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31032         not cycle-check.h.
31033         (seen_triple): New function.
31034         (canonicalize_filename_mode): Use it instead of cycle-check.
31035         * tests/test-canonicalize.c: Add a test for this bug.
31036         * tests/test-canonicalize.sh: Set up and run the test.
31037
31038         New module, file-set, from coreutils.
31039         * modules/file-set: Define it.
31040         * lib/file-set.c, lib/file-set.h: Implement.
31041
31042         New module, hash-triple, from coreutils.
31043         * modules/hash-triple: Define it.
31044         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31045
31046 2007-09-25  Eric Blake  <ebb9@byu.net>
31047
31048         Fix strerror on Interix.
31049         * lib/string_.h (strerror): Declare replacement.
31050         * doc/functions/strerror.texi (strerror): Document the Interix
31051         shortcoming.
31052         * modules/string (Makefile.am): Support new hooks.
31053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31054         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31055         gl_FUNC_STRERROR_SEPARATE.
31056         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31057         * lib/strerror.c (rpl_strerror): Provide replacement.
31058         * modules/strerror (Depends-on): Add string.
31059         (configure.ac): Detect use of module.
31060         * tests/test-strerror.c: New file.
31061         * modules/strerror-tests: New test module.
31062         * modules/argp (Depends-on): Add strerror.
31063         * modules/error (Depends-on): Likewise.
31064         Reported by Martin Koeppe.
31065
31066 2007-09-24  Bruno Haible  <bruno@clisp.org>
31067
31068         * README: Update git instructions.
31069
31070 2007-09-24  Eric Blake  <ebb9@byu.net>
31071
31072         Revert fpending breakage from 2007-09-08.
31073         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31074         __fpending.c.
31075
31076 2007-09-24  Jim Meyering  <jim@meyering.net>
31077
31078         filenamecat.c: Add a test.
31079         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31080         showing how the function works when DIR is the empty string.
31081
31082 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31083
31084         * tests/test-canonicalize.sh: Turn on executable bit.
31085
31086 2007-09-19  Eric Blake  <ebb9@byu.net>
31087
31088         * README: Update CVS instructions.
31089
31090 2007-09-18  Bruno Haible  <bruno@clisp.org>
31091
31092         * modules/areadlink: New file.
31093         * lib/areadlink.h (areadlink): New declaration.
31094         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31095
31096 2007-09-17  Jim Meyering  <jim@meyering.net>
31097
31098         * lib/savewd.c (ESTALE) [!defined]: Define.
31099         Reported to be required on Interix by Martin Koeppe.
31100
31101 2007-09-17  Bruno Haible  <bruno@clisp.org>
31102
31103         * gnulib-tool (func_version): Use $version.
31104
31105 2007-09-16  Bruno Haible  <bruno@clisp.org>
31106
31107         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31108         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31109         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31110         Reported by Greg Schafer <gschafer@zip.com.au>.
31111
31112 2007-09-15  Bruno Haible  <bruno@clisp.org>
31113
31114         * gnulib-tool (sed): Try a little harder to make bash understand the
31115         alias.
31116         Reported by Bruce Korb <bruce.korb@gmail.com>.
31117
31118 2007-09-13  Eric Blake  <ebb9@byu.net>
31119
31120         * ChangeLog: Remove conflict markers.
31121
31122 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31123
31124         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31125         Reported by Bruno Haible <bruno@clisp.org>.
31126
31127 2007-09-12  Bruno Haible  <bruno@clisp.org>
31128
31129         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31130         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31131         is not defined.
31132
31133 2007-09-12  Eric Blake  <ebb9@byu.net>
31134
31135         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31136         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31137         Autoconf definition.
31138         * modules/euidaccess (Depends-on): Add extensions, for
31139         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31140         * modules/fnmatch (Depends-on): Likewise.
31141         * modules/getaddrinfo (Depends-on): Likewise.
31142         * modules/getdelim (Depends-on): Likewise.
31143         * modules/getline (Depends-on): Likewise.
31144         * modules/getsubopt (Depends-on): Likewise.
31145         * modules/gettext (Depends-on): Likewise.
31146         * modules/group-member (Depends-on): Likewise.
31147         * modules/mbchar (Depends-on): Likewise.
31148         * modules/memmem (Depends-on): Likewise.
31149         * modules/mempcpy (Depends-on): Likewise.
31150         * modules/memrchr (Depends-on): Likewise.
31151         * modules/pagealign_alloc (Depends-on): Likewise.
31152         * modules/readutmp (Depends-on): Likewise.
31153         * modules/stpcpy (Depends-on): Likewise.
31154         * modules/stpncpy (Depends-on): Likewise.
31155         * modules/strchrnul (Depends-on): Likewise.
31156         * modules/strndup (Depends-on): Likewise.
31157         * modules/strsep (Depends-on): Likewise.
31158         * modules/strverscmp (Depends-on): Likewise.
31159         * modules/vasprintf (Depends-on): Likewise.
31160         * modules/wcwidth (Depends-on): Likewise.
31161         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31162         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31163         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31165         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31166         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31167         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31168         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31169         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31170         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31172         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31175         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31176         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31177         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31178         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31180         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31181         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31182         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31183         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31184         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31185         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31187         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31188         so that lock.m4 can be used in gettext without extensions module.
31189
31190 2007-09-11  Bruno Haible  <bruno@clisp.org>
31191
31192         * m4/isc-posix.m4: Remove file.
31193         Suggested by Eric Blake.
31194
31195 2007-09-11  Eric Blake  <ebb9@byu.net>
31196
31197         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31198
31199 2007-09-10  Bruno Haible  <bruno@clisp.org>
31200
31201         * posix-modules: Fix typo in error message.
31202         Reported by Matt <mkraai@beckman.com>.
31203
31204 2007-09-09  Bruno Haible  <bruno@clisp.org>
31205
31206         * doc/functions/getdelim.texi: Update list of platforms lacking the
31207         function.
31208         * doc/functions/getline.texi: Likewise.
31209
31210 2007-09-09  Jim Meyering  <jim@meyering.net>
31211
31212         * lib/hash.c (hash_initialize): Detect calloc failure.
31213         Reported by Bruno Haible.
31214
31215 2007-09-09  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31218         malloc or realloc fails.
31219
31220 2007-09-09  Bruno Haible  <bruno@clisp.org>
31221
31222         * modules/getcwd (Depends-on): Add malloc-posix.
31223         * modules/glob (Depends-on): Likewise.
31224         * modules/putenv (Depends-on): Likewise.
31225         * modules/strdup (Depends-on): Likewise.
31226         * modules/getdelim (Depends-on): Add realloc-posix.
31227         * modules/read-file (Depends-on): Likewise.
31228
31229 2007-09-09  Bruno Haible  <bruno@clisp.org>
31230
31231         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31232         (gl_FUNC_MALLOC_POSIX): Require it.
31233         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31234         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31235         * modules/realloc (Files): Add m4/malloc.m4.
31236         * modules/calloc (Files): Likewise.
31237
31238 2007-09-09  Bruno Haible  <bruno@clisp.org>
31239
31240         * modules/malloc-posix: New file.
31241         * modules/malloc (Depends-on): Add malloc-posix.
31242         * lib/malloc.c: Include errno.h.
31243         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31244         and a POSIX-compatible malloc into a single function. Set ENOMEM
31245         when returning NULL.
31246         * m4/malloc.m4: New file.
31247         * doc/functions/malloc.texi: Mention the malloc-posix module.
31248         * lib/stdlib_.h (malloc): New declaration.
31249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31250         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31251         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31252         and HAVE_MALLOC_POSIX.
31253
31254 2007-09-09  Bruno Haible  <bruno@clisp.org>
31255
31256         * modules/realloc-posix: New file.
31257         * modules/realloc (Depends-on): Add realloc-posix.
31258         * lib/realloc.c: Include errno.h.
31259         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31260         and a POSIX-compatible realloc into a single function. Set ENOMEM
31261         when returning NULL.
31262         * m4/realloc.m4: New file.
31263         * doc/functions/realloc.texi: Mention the realloc-posix module.
31264         * lib/stdlib_.h (realloc): New declaration.
31265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31266         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31267         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31268         and HAVE_REALLOC_POSIX.
31269
31270 2007-09-09  Bruno Haible  <bruno@clisp.org>
31271
31272         * modules/calloc-posix: New file.
31273         * modules/calloc (Depends-on): Add calloc-posix.
31274         * lib/calloc.c: Include errno.h.
31275         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31276         and a POSIX-compatible calloc into a single function. Set ENOMEM
31277         when returning NULL.
31278         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31279         * doc/functions/calloc.texi: Mention the calloc-posix module.
31280         * lib/stdlib_.h (calloc): New declaration.
31281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31282         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31283         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31284         and HAVE_CALLOC_POSIX.
31285
31286 2007-09-09  Bruno Haible  <bruno@clisp.org>
31287
31288         Allow for modules to show an arbitrary notice.
31289         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31290         * gnulib-tool: New option --extract-notice.
31291         (func_usage): Document it.
31292         (sed_extract_prog): Update.
31293         (func_get_notice): New function.
31294         (func_modules_notice): New function.
31295         (func_import, func_create_testdir): Invoke it.
31296         Suggested by Jim Meyering.
31297
31298 2007-09-09  Bruno Haible  <bruno@clisp.org>
31299
31300         * gnulib-tool: New options --verbose, --quiet.
31301         (func_usage): Document them.
31302         (verbose): New variable.
31303         (func_execute_command): New function.
31304         (func_import): Don't show the module list and the file list if
31305         $verbose < 0.
31306         (func_create_testdir): Likewise. Use func_execute_command.
31307         (func_create_megatestdir): Use func_execute_command.
31308
31309 2007-09-08  Bruno Haible  <bruno@clisp.org>
31310
31311         * gnulib-tool (func_import): Prefer rsync over wget when available,
31312         for fetching the PO files.
31313
31314 2007-09-08  Bruno Haible  <bruno@clisp.org>
31315
31316         * posix-modules: New file. Portions copied from gnulib-tool.
31317         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31318
31319 2007-09-08  Jim Meyering  <jim@meyering.net>
31320
31321         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31322         * lib/fpending.h: Rename from __fpending.h.
31323         * lib/fpending.c: Rename from __fpending.c.
31324         Include "fpending.h", not "__fpending.h".
31325         * lib/__fpending.h, lib/__fpending.c: Remove files.
31326         * modules/fpending (Files): Reflect new file names.
31327         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31328
31329 2007-09-08  Bruno Haible  <bruno@clisp.org>
31330
31331         * m4/inttypes-h.m4: Remove stub file.
31332
31333 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31334
31335         * doc/headers/stdint.texi: Discuss #include_next issue.
31336
31337 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31340
31341 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31342
31343         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31344         in variable name.
31345
31346 2007-09-03  Jim Meyering  <jim@meyering.net>
31347
31348         New module: git-version-gen.
31349         * modules/git-version-gen: New file.
31350
31351         Import changes from coreutils for bootstrap script.
31352
31353         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31354
31355         bootstrap: uses rsync to download the .po files
31356         * build-aux/bootstrap (po_download_command_format): New global.
31357         (download_po_files): Use rsync.
31358         (update_po_files): Don't remove .po files after download,
31359         so future rsync runs can take advantage of the copies.
31360
31361         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31362
31363         Solve the unnecessary-.po-file-regeneration problem once and for all.
31364         * build-aux/bootstrap (download_po_files): New function, renamed from
31365         get_translations.  Now, downloads, but doesn't update LINGUAS.
31366         (update_po_files): New function.
31367
31368         bootstrap: Ignore more.
31369         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31370         uniwidth to e.g., lib/.gitignore.
31371         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31372
31373         * build-aux/bootstrap: New setting: vc_ignore.
31374         (insert_sorted_if_absent): Create $file if absent.
31375         Adapt to new, possibly empty, list: $vc_ignore.
31376
31377         bootstrap: generate more ignorable names
31378         * build-aux/bootstrap (slurp): When generating ignorable names,
31379         also map .sin to .sed, .gperf to .c, and .y to .c.
31380
31381 2007-09-03  Jim Meyering  <jim@meyering.net>
31382
31383         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31384         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31385
31386 2007-09-02  Bruno Haible  <bruno@clisp.org>
31387
31388         Fix mis-recognition of 'mcs' on QNX 6.
31389         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31390         output contains the string "Mono".
31391         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31392         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31393
31394 2007-09-01  Bruno Haible  <bruno@clisp.org>
31395
31396         Fix collision between uniwidth/* and linebreak modules.
31397         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31398         u32_width): Remove declarations.
31399         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31400         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31401         streq3, streq2, streq1, streq0): Remove functions.
31402         (STREQ): Remove macro.
31403         (is_cjk_encoding): Remove function.
31404         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31405         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31406         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31407         * NEWS: Document the change.
31408
31409 2007-09-01  Bruno Haible  <bruno@clisp.org>
31410
31411         * lib/streq.h: Add double-inclusion guard.
31412
31413 2007-09-01  Karl Berry  <karl@gnu.org>
31414
31415         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31416
31417 2007-08-28  Jim Meyering  <jim@meyering.net>
31418
31419         Rename mreadlink_with_size to areadlink_with_size.
31420         * NEWS: Document the change.
31421         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31422         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31423         * lib/mreadlink.h: Rename this to...
31424         * lib/areadlink.h: ...this.
31425         * modules/mreadlink-with-size: Rename this to...
31426         * modules/areadlink-with-size: ...this.
31427         * lib/canonicalize.c: Reflect the renaming.
31428         * modules/canonicalize: Likewise.
31429
31430 2007-08-26  Bruno Haible  <bruno@clisp.org>
31431
31432         * gnulib-tool (func_import): When deciding which files to remove,
31433         consider also dangling symbolic links.
31434         Reported by Eric Blake.
31435
31436 2007-08-26  Bruno Haible  <bruno@clisp.org>
31437
31438         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31439
31440 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31441
31442         * lib/readline.c: Don't include getline.h, the prototype is now
31443         found in stdio.h.
31444
31445 2007-08-23  Jim Meyering  <jim@meyering.net>
31446
31447         Getdelim touchup.
31448         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31449         around the funlockfile call, since funlockfile never sets errno.
31450         Don't set errno upon failed realloc.
31451
31452 2007-08-22  Eric Blake  <ebb9@byu.net>
31453
31454         Getline touchups.
31455         * lib/getdelim.c (getdelim): Revert regression that required *n to
31456         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31457         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31458         getdelim, rather than whether implementation is missing.
31459         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31460         * lib/stdio_.h (getline): Also declare if replacement is
31461         required.
31462         * doc/functions/getdelim.texi: New file.
31463         * doc/functions/getline.texi: Likewise.
31464         * doc/gnulib.texi (Function Substitutes): Add new files.
31465         Reported by Bruno Haible.
31466
31467 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31468
31469         * users.txt: Add Guile.
31470
31471 2007-08-22  Eric Blake  <ebb9@byu.net>
31472
31473         * tests/test-getdelim.c (main): Use remove, not unlink.
31474         * tests/test-getline.c (main): Likewise.
31475
31476         Move getline and getdelim into stdio.h, per POSIX 200x.
31477         * modules/getline (Files): Remove getline.h.
31478         (Depends-on): Add stdio.
31479         (configure.ac): Add module indicator.
31480         * modules/getdelim (Files): Remove getdelim.h.
31481         (Depends-on): Add stdio.
31482         (configure.ac): Add module indicator.
31483         * modules/stdio (Makefile.am): Work with new indicators.
31484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31485         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31486         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31487         * lib/getdelim.h: Delete.
31488         * lib/getline.h: Delete.
31489         * lib/stdio_.h (getdelim, getline): Declare.
31490         * modules/getdelim-tests: New module.
31491         * modules/getline-tests: Likewise.
31492         * tests/test-getdelim.c: New file.
31493         * tests/test-getline.c: Likewise.
31494         * NEWS: Document the change.
31495         * lib/getline.c: Update choice of header.
31496         * lib/csharpcomp.c: Likewise.
31497         * lib/getpass.c: Likewise.
31498         * lib/javacomp.c: Likewise.
31499         * lib/javaversion.c: Likewise.
31500         * lib/yesno.c: Likewise.
31501         * lib/getdelim.c: Likewise.
31502         (getdelim): Set errno on failure, and avoid memory leak.
31503
31504 2007-08-19  Bruno Haible  <bruno@clisp.org>
31505
31506         * modules/closein (Depends-on): Add freadahead.
31507         * lib/closein.c: Include freadahead.h.
31508         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31509         is zero.
31510
31511 2007-08-19  Bruno Haible  <bruno@clisp.org>
31512
31513         * modules/freadahead-tests: New file.
31514         * tests/test-freadahead.sh: New file.
31515         * tests/test-freadahead.c: New file.
31516
31517         * modules/freadahead: New file.
31518         * lib/freadahead.h: New file.
31519         * lib/freadahead.c: New file.
31520         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31521         fbufmode, fpurge, freadable, fwritable.
31522
31523 2007-08-19  Eric Blake  <ebb9@byu.net>
31524
31525         Test yesno in combination with closein.
31526         * lib/yesno.c (yesno): Document use of stdin.
31527         * modules/yesno-tests (Files): New module.
31528         * tests/test-yesno.c (main): New file.
31529         * tests/test-yesno.sh: Likewise.
31530
31531 2007-08-19  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31534         * lib/fseeko.c (rpl_fseeko): Likewise.
31535         * lib/fseterr.c (fseterr): Likewise.
31536
31537 2007-08-19  Bruno Haible  <bruno@clisp.org>
31538
31539         * tests/test-lseek.c (main): Disable a test for BeOS.
31540         * doc/functions/lseek.texi: Document the BeOS bug.
31541
31542 2007-08-19  Bruno Haible  <bruno@clisp.org>
31543             Eric Blake  <ebb9@byu.net>
31544
31545         * lib/lseek.c: Include <sys/stat.h>.
31546         (rpl_lseek): Add workaround code also for Unix platforms.
31547         Needed for BeOS.
31548         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31549         * doc/functions/lseek.texi: Document BeOS definiency.
31550
31551 2007-08-18  Bruno Haible  <bruno@clisp.org>
31552
31553         * modules/fstrcmp-tests: New file.
31554         * tests/test-fstrcmp.c: New file.
31555
31556 2007-08-18  Bruno Haible  <bruno@clisp.org>
31557
31558         * modules/fstrcmp: New file, from GNU gettext with modifications.
31559         * lib/fstrcmp.h: New file, from GNU gettext.
31560         * lib/fstrcmp.c: New file, from GNU gettext.
31561         * MODULES.html.sh (String handling): Add fstrcmp.
31562
31563 2007-08-18  Bruno Haible  <bruno@clisp.org>
31564
31565         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31566         'bool'.
31567         (diag, compareseq): Remove const from the ctxt argument.
31568         (USE_HEURISTIC): Undefine at the end.
31569
31570 2007-08-18  Jim Meyering  <jim@meyering.net>
31571
31572         New file: lib/idcache.h
31573         * NEWS: Mention the addition.
31574         * modules/idcache (Files): Add lib/idcache.h
31575         * lib/idcache.c: Include "idcache.h".
31576         Don't include <sys/types.h>.
31577         Add a FIXME comment.
31578         Move file-scoped "static" declarations to the top.
31579         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31580
31581 2007-08-17  Bruno Haible  <bruno@clisp.org>
31582         and Paul Eggert  <eggert@cs.ucla.edu>
31583
31584         * MODULES.html.sh: Add diffseq.
31585         * modules/diffseq: New file.
31586         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31587         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31588
31589 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31590
31591         Import changes from coreutils for bootstrap script.
31592
31593         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31594
31595         * build-aux/bootstrap (slurp): Work even in environments where
31596         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31597         current code does not slurp files whose names start with ".", and
31598         this looks like it might be a troublesome area.
31599
31600         2007-07-11  Jim Meyering  <jim@meyering.net>
31601
31602         If there's a GPL vN copyright comment, require that N == 3.
31603
31604         2007-07-08  Jim Meyering  <jim@meyering.net>
31605
31606         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31607         * build-aux/bootstrap (mam_template): Move definition out of loop.
31608
31609         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31610
31611         * build-aux/bootstrap (symlink_to_dir): Rename function from
31612         symlink_to_gnulib.  Add a directory parameter.  Update all
31613         callers.
31614         (cp_mark_as_generated): Also check for -- and link to -- files in
31615         gl/.
31616
31617         2007-07-08  Jim Meyering  <jim@meyering.net>
31618
31619         Adapt to deeper hierarchy in gnulib.
31620         * build-aux/bootstrap (symlink_to_dir): If the destination
31621         directory doesn't exist, create it. This is required at least for
31622         "lib/uniwidth/cjk.h".
31623
31624         2007-05-15  Jim Meyering  <jim@meyering.net>
31625
31626         * build-aux/bootstrap: Now that generated Makefile.am files
31627         are no longer under version control, they must be created at
31628         bootstrap time.
31629
31630 2007-08-14  Ben Pfaff  <blp@gnu.org>
31631
31632         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31633
31634 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31635
31636         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31637         given the changes below.
31638         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31639         even on hosts that have padding bits beyond the supported 64.
31640
31641 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31642
31643         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31644         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31645         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31646         depends on it.
31647         (xstrtol_error): Remove.
31648         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31649         but with a different signature.
31650         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31651         * lib/xstrtol-error.c: Include exitfail.h.
31652         (xstrtol_fatal): New function, with a different signature from the
31653         old xstrtol_error, so that the caller need not worry about passing
31654         in an exit status, or about storage management of the option argument.
31655         (xstrtol_error): Now a static function.  Redo signature to
31656         implement xstrtol_fatal.  Output the correct number of hyphens in
31657         front of the option so that the caller need not worry about
31658         storage management.
31659         (N_): New macro.
31660         (_): Remove; not used now.
31661         * modules/xstrtol: Depend on getopt.
31662         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31663         of old STRTOL_FATAL_ERROR macro.
31664         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31665         of test program.
31666         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31667         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31668
31669 2007-08-08  Eric Blake  <ebb9@byu.net>
31670
31671         * lib/xstrtol-error.c: Add missing include.
31672
31673         Move xstrtol messages into gnulib domain, when --pobase is used.
31674         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31675         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31676         * modules/xstrtol (Files): Distribute new file.
31677         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31678         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31679         * tests/test-xstrtol.c: ...into new file.
31680         * tests/test-xstrtoul.c: Also test xstrtoul.
31681         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31682         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31683         * tests/test-xstrtol.sh: Drive the tests.
31684         * tests/test-xstrtoimax.sh: Likewise.
31685         * tests/test-xstrtoumax.sh: Likewise.
31686         * modules/xstrtol-tests: New module.
31687         * modules/xstrtoimax-tests: Likewise.
31688         * modules/xstrtoumax-tests: Likewise.
31689
31690 2007-08-08  Jim Meyering  <jim@meyering.net>
31691
31692         New function: mfile_name_concat.
31693         * lib/filenamecat.c (mfile_name_concat): New function, just like
31694         file_name_concat, but return NULL upon failure rather than exiting
31695         with a diagnostic.
31696         * lib/filenamecat.h: Declare it.
31697
31698 2007-08-07  Bruno Haible  <bruno@clisp.org>
31699
31700         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31701         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31702         warning from gcc.
31703         Reported by Eric Blake.
31704
31705 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31706
31707         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31708         * modules/crypto/arcfour (License): Likewise.
31709         * modules/crypto/des-tests (License): Likewise.
31710         * modules/crypto/gc-arctwo-tests (License): Likewise.
31711         * modules/crypto/gc-des-tests (License): Likewise.
31712         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31713         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31714         * modules/crypto/gc-md2-tests (License): Likewise.
31715         * modules/crypto/gc-md4-tests (License): Likewise.
31716         * modules/crypto/gc-md5-tests (License): Likewise.
31717         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31718         * modules/crypto/gc-rijndael-tests (License): Likewise.
31719         * modules/crypto/gc-sha1-tests (License): Likewise.
31720         * modules/crypto/gc-tests (License): Likewise.
31721         * modules/crypto/hmac-md5 (License): Likewise.
31722         * modules/crypto/hmac-sha1 (License): Likewise.
31723         * modules/crypto/md2-tests (License): Likewise.
31724         * modules/crypto/md4-tests (License): Likewise.
31725         * modules/crypto/md5 (License): Likewise.
31726         * modules/crypto/rijndael (License): Likewise.
31727         * modules/crypto/sha1 (License): Likewise.
31728         * modules/memxor (License): Likewise.
31729
31730 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31731         and Bruno Haible  <bruno@clisp.org>
31732
31733         * NEWS: Describe interface changes to human, xstrtol.
31734         * lib/human.h: Include <xstrtol.h>.
31735         (human_options): Return enum strtol_error, not int.  Remove
31736         bool arg; take int * instead.
31737         * lib/human.c: Don't include "gettext.h".
31738         (_): Remove; no longer used.
31739         Don't include <xstrtol.h>, since human.h does it.
31740         (human_options): Adjust to abovementioned interface changes.
31741         Do not report error to stderr; that's now the caller's
31742         responsibility.
31743         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31744         interface change.
31745         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31746         Str, Argument_type_string.  All uses changed.  Put " argument"
31747         in diagnostics to make them clearer.  Change wording of suffix
31748         message for clarity.
31749         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31750         Argument_type_string.
31751         (STRTOL_FATAL_WARN): Remove; no longer used.
31752         * modules/human (Depends-on): Remove gettext-h.
31753
31754 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31755
31756         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31757
31758 2007-07-31  Bruno Haible  <bruno@clisp.org>
31759
31760         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31761         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31762         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31763
31764 2007-07-31  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31767         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31768
31769 2007-07-30  Bruno Haible  <bruno@clisp.org>
31770
31771         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31772         * modules/c-ctype (License): Likewise.
31773         * modules/c-strcase (License): Likewise.
31774         * modules/check-version (License): Likewise.
31775         * modules/iconv (License): Likewise.
31776         * modules/iconv_open (License): Likewise.
31777         * modules/read-file (License): Likewise.
31778         * modules/striconv (License): Likewise.
31779         * modules/strverscmp (License): Likewise.
31780         * modules/vasprintf (License): Likewise.
31781         * modules/crypto/des (License): Likewise.
31782         * modules/crypto/gc (License): Likewise.
31783         * modules/crypto/gc-arcfour (License): Likewise.
31784         * modules/crypto/gc-arctwo (License): Likewise.
31785         * modules/crypto/gc-des (License): Likewise.
31786         * modules/crypto/gc-hmac-md5 (License): Likewise.
31787         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31788         * modules/crypto/gc-md2 (License): Likewise.
31789         * modules/crypto/gc-md4 (License): Likewise.
31790         * modules/crypto/gc-md5 (License): Likewise.
31791         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31792         * modules/crypto/gc-random (License): Likewise.
31793         * modules/crypto/gc-rijndael (License): Likewise.
31794         * modules/crypto/gc-sha1 (License): Likewise.
31795         * modules/crypto/md2 (License): Likewise.
31796         * modules/crypto/md4 (License): Likewise.
31797
31798 2007-07-30  Jim Meyering  <jim@meyering.net>
31799
31800         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31801         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31802         it has valid stat data.  This bug would cause du not to count the
31803         sizes of inaccessible directories.
31804         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31805         in <http://bugzilla.redhat.com/250077>.
31806
31807 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31808             Bruno Haible  <bruno@clisp.org>
31809
31810         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31811         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31812         #include_next, gives a diagnostic about it, but reports no error in
31813         the exit code.
31814         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31815
31816 2007-07-24  Ben Pfaff  <blp@gnu.org>
31817
31818         Improve name: "count-one-bits" is better than "popcount".
31819         * MODULES.html.sh: Update name.
31820         * lib/popcount.h: Renamed lib/count-one-bits.h.
31821         (popcount): Renamed count_one_bits.
31822         (popcountl): Renamed count_one_bits_l.
31823         (popcountll): Renamed count_one_bits_ll.
31824         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31825         * modules/popcount: Renamed module/count-one-bits.
31826         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31827         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31828
31829 2007-07-23  Ben Pfaff  <blp@gnu.org>
31830
31831         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31832         better code generation, and add U to large constants to avoid
31833         warnings, in non-GCC case.
31834         Suggested by Bruno Haible.
31835
31836 2007-07-23  Ben Pfaff  <blp@gnu.org>
31837
31838         * lib/popcount.h: Use verify_true instead of if...abort.
31839         * modules/popcount: Depend on verify module.
31840         Suggested by Jim Meyering.
31841
31842 2007-07-23  Bruno Haible  <bruno@clisp.org>
31843
31844         * gnulib-tool (func_import): Create a .cvsignore file also when the
31845         directory is not yet in CVS but the toplevel directory is. When
31846         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31847         Reported by Karl Berry.
31848
31849 2007-07-22  Ben Pfaff  <blp@gnu.org>
31850
31851         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31852         case.
31853         Suggested by Eric Blake.
31854
31855 2007-07-22  Ben Pfaff  <blp@gnu.org>
31856
31857         New module: popcount.
31858         * MODULES.html.sh: Add popcount.
31859         * modules/popcount: New file.
31860         * modules/popcount-tests: New file.
31861         * tests/test-popcount.c: New file.
31862         * lib/popcount.h: New file.
31863         * m4/popcount.m4: New file.
31864
31865 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31866
31867         * build-aux/announce-gen: Update to GPLv3.
31868
31869         * build-aux/config.guess: Update from config.
31870
31871 2007-07-21  Bruno Haible  <bruno@clisp.org>
31872
31873         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31874         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31875
31876 2007-07-20  Jim Meyering  <jim@meyering.net>
31877
31878         * check-module: Diagnose a self-dependency.
31879
31880 2007-07-19  Bruno Haible  <bruno@clisp.org>
31881
31882         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31883         empty.
31884         Reported by Eric Blake.
31885
31886 2007-07-18  Bruno Haible  <bruno@clisp.org>
31887
31888         * gnulib-tool: New options --po-base, --po-domain.
31889         (func_usage): Document them.
31890         (pobase, po_domain): New variables.
31891         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31892         DEFAULT_TEXT_DOMAIN.
31893         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31894         (func_import): Consider pobase and po_domain. Create a po/ directory.
31895         (func_create_testdir): Set pobase and po_domain to empty.
31896         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31897         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31898
31899 2007-07-18  Bruno Haible  <bruno@clisp.org>
31900
31901         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31902         EXTRA_DIST augmentation for files in build-aux/.
31903
31904 2007-07-16  Bruno Haible  <bruno@clisp.org>
31905
31906         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31907         * modules/getdelim (License): Likewise.
31908
31909 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31910
31911         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31912         * modules/d-type (License): Likewise.
31913         * modules/extensions (License): Likewise.
31914         * modules/fnmatch (License): Likewise.
31915         * modules/fseeko (License): Likewise.
31916         * modules/getaddrinfo (License): Likewise.
31917         * modules/getline (License): Likewise.
31918         * modules/getlogin_r (License): Likewise.
31919         * modules/getpass (License): Likewise.
31920         * modules/gettimeofday (License): Likewise.
31921         * modules/glob (License): Likewise.
31922         * modules/inet_ntop (License): Likewise.
31923         * modules/malloc (License): Likewise.
31924         * modules/malloca (License): Likewise.
31925         * modules/memmem (License): Likewise.
31926         * modules/mempcpy (License): Likewise.
31927         * modules/memset (License): Likewise.
31928         * modules/minmax (License): Likewise.
31929         * modules/mktime (License): Likewise.
31930         * modules/netinet_in (License): Likewise.
31931         * modules/pathmax (License): Likewise.
31932         * modules/poll (License): Likewise.
31933         * modules/regex (License): Likewise.
31934         * modules/snprintf (License): Likewise.
31935         * modules/stdbool (License): Likewise.
31936         * modules/stdint (License): Likewise.
31937         * modules/stdio (License): Likewise.
31938         * modules/strcase (License): Likewise.
31939         * modules/strcasestr (License): Likewise.
31940         * modules/strdup (License): Likewise.
31941         * modules/string (License): Likewise.
31942         * modules/strndup (License): Likewise.
31943         * modules/strnlen (License): Likewise.
31944         * modules/strpbrk (License): Likewise.
31945         * modules/strptime (License): Likewise.
31946         * modules/strsep (License): Likewise.
31947         * modules/sys_select (License): Likewise.
31948         * modules/sys_socket (License): Likewise.
31949         * modules/sys_stat (License): Likewise.
31950         * modules/sys_time (License): Likewise.
31951         * modules/time (License): Likewise.
31952         * modules/time_r (License): Likewise.
31953         * modules/timegm (License): Likewise.
31954         * modules/unistd (License): Likewise.
31955         * modules/vsnprintf (License): Likewise.
31956         * modules/wctype (License): Likewise.
31957
31958 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31959
31960         * modules/argz (License): LGPLv2+.
31961
31962 2007-07-15  Karl Berry  <karl@gnu.org>
31963
31964         * doc/gnulib.texi: revise node structure per new fdl.texi.
31965
31966 2007-07-14  Bruno Haible  <bruno@clisp.org>
31967
31968         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31969         the output file.
31970         * lib/uniname/uninames.h: Regenerated.
31971
31972 2007-07-14  Karl Berry  <karl@gnu.org>
31973
31974         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31975         omitting sectioning and index commands.
31976
31977 2007-07-13  Bruno Haible  <bruno@clisp.org>
31978
31979         New gnulib-tool option --more-symlinks.
31980         * gnulib-tool (func_usage): Document --more-symlinks.
31981         (do_copyrights): New variable.
31982         Recognize option --more-symlinks.
31983         (func_import): Don't add a copyright notice transform to
31984         sed_transform_lib_file if do_copyrights is empty.
31985
31986 2007-07-13  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/vasnprintf.c (decimal_point_char): Define also if
31989         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31990         && !NEED_PRINTF_DIRECTIVE_A.
31991         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31992         Gary V. Vaughan <gary@gnu.org>.
31993
31994 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31995
31996         * lib/inttypes_.h: Undo previous change, since it was fixed
31997         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31998
31999 2007-07-13  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32002         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32003
32004 2007-07-13  Jim Meyering  <jim@meyering.net>
32005
32006         df: Don't fail for Tru64's "file-on-file mount".
32007         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32008         so we fall through and use statfs instead.  Details here:
32009         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32010         Reported by Albert Chin.
32011
32012 2007-07-13  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32015         * modules/configmake (License): Likewise.
32016         * modules/gettext (License): Likewise.
32017         * modules/gettext-h (License): Likewise.
32018         * modules/include_next (License): Likewise.
32019         * modules/link-warning (License): Likewise.
32020         * modules/localcharset (License): Likewise.
32021         * modules/localename (License): Likewise.
32022         * modules/lock (License): Likewise.
32023         * modules/relocatable-lib-lgpl (License): Likewise.
32024         * modules/size_max (License): Likewise.
32025         * modules/vasnprintf (License): Likewise.
32026         * modules/wchar (License): Likewise.
32027         * modules/xsize (License): Likewise.
32028
32029 2007-07-13  Bruno Haible  <bruno@clisp.org>
32030
32031         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32032         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32033
32034 2007-07-12  Bruno Haible  <bruno@clisp.org>
32035
32036         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32037         in the modules files.
32038
32039 2007-07-11  Karl Berry  <karl@gnu.org>
32040
32041         * MODULES.html.sh (func_module): use
32042          sed -e '\|^'"${includefile}"'$|d'
32043          instead of /.../d, to avoid errors on $includefile's containing /.
32044
32045 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32046
32047         * gnulib-tool (func_import): Avoid duplication of --avoid
32048         statements
32049         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32050         names to `_' in variable names.
32051
32052 2007-07-10  Eric Blake  <ebb9@byu.net>
32053
32054         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32055         * NEWS: Document this change.
32056
32057 2007-07-08  Bruno Haible  <bruno@clisp.org>
32058
32059         Update to Unicode 5.0.
32060         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32061         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32062         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32063         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32064         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32065         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32066         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32067         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32068         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32069         U+10A3F, U+1D242..U+1D244.
32070         (nonspacing_table_ind): Update.
32071         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32072         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32073
32074 2007-07-08  Bruno Haible  <bruno@clisp.org>
32075
32076         Update to Unicode 5.0.
32077         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32078         code transform. Extend the name index field of unicode_name_to_code and
32079         unicode_code_to_name from 16 to 24 bits.
32080         * lib/uniname/uniname.c (unicode_character_name,
32081         unicode_name_character): Add the range 0x12xxx to the code transform.
32082         * lib/uniname/uninames.h: Regenerated.
32083         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32084
32085 2007-07-07  Bruno Haible  <bruno@clisp.org>
32086
32087         * modules/wcwidth-tests: New file.
32088         * tests/test-wcwidth.c: New file.
32089
32090         Work around MacOS X wcwidth() bug.
32091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32092         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32093         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32094         original wcwidth in non-UTF-8 locales.
32095         * modules/wcwidth (Depends-on): Add localcharset, streq,
32096         uniwidth/width.
32097         * doc/functions/wcwidth.texi: Update.
32098
32099 2007-07-07  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32102         (wcwidth): New declaration.
32103         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32104         macros.
32105         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32106         here. Prepare for creating <wchar.h> unconditionally.
32107         * modules/wchar (Depends-on): Add link-warning.
32108         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32109         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32110         * lib/wcwidth.h: Remove file.
32111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32112         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32113         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32114         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32115         (Include): Replace wcwidth.h with <wchar.h>.
32116         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32117         * lib/mbchar.h: Don't include wcwidth.h.
32118         * lib/mbswidth.c: Likewise.
32119         * NEWS: Mention the change.
32120
32121 2007-07-07  Bruno Haible  <bruno@clisp.org>
32122
32123         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32124         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32125         definition with an external declaration.
32126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32127         defined as a function. Remove AC_C_INLINE requirement.
32128         * modules/wcwidth (Files): Add lib/wcwidth.c.
32129         (Makefile.am): Remove redundant statement.
32130
32131 2007-07-07  Bruno Haible  <bruno@clisp.org>
32132
32133         * MODULES.html.sh (Unicode string functions): Add the new modules.
32134
32135         * tests/uniwidth/test-u32-strwidth.c: New file.
32136         * modules/uniwidth/u32-strwidth-tests: New file.
32137
32138         * lib/uniwidth/u32-strwidth.c: New file.
32139         * modules/uniwidth/u32-strwidth: New file.
32140
32141         * tests/uniwidth/test-u16-strwidth.c: New file.
32142         * modules/uniwidth/u16-strwidth-tests: New file.
32143
32144         * lib/uniwidth/u16-strwidth.c: New file.
32145         * modules/uniwidth/u16-strwidth: New file.
32146
32147         * tests/uniwidth/test-u8-strwidth.c: New file.
32148         * modules/uniwidth/u8-strwidth-tests: New file.
32149
32150         * lib/uniwidth/u8-strwidth.c: New file.
32151         * modules/uniwidth/u8-strwidth: New file.
32152
32153         * tests/uniwidth/test-u32-width.c: New file.
32154         * modules/uniwidth/u32-width-tests: New file.
32155
32156         * lib/uniwidth/u32-width.c: New file.
32157         * modules/uniwidth/u32-width: New file.
32158
32159         * tests/uniwidth/test-u16-width.c: New file.
32160         * modules/uniwidth/u16-width-tests: New file.
32161
32162         * lib/uniwidth/u16-width.c: New file.
32163         * modules/uniwidth/u16-width: New file.
32164
32165         * tests/uniwidth/test-u8-width.c: New file.
32166         * modules/uniwidth/u8-width-tests: New file.
32167
32168         * lib/uniwidth/u8-width.c: New file.
32169         * modules/uniwidth/u8-width: New file.
32170
32171         * tests/uniwidth/test-uc_width.c: New file.
32172         * modules/uniwidth/width-tests: New file.
32173
32174         * lib/uniwidth/width.c: New file, from GNU libiconv.
32175         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32176         * modules/uniwidth/width: New file.
32177
32178         * lib/uniwidth.h: New file, from GNU libiconv.
32179         * modules/uniwidth/base: New file.
32180
32181 2007-07-07  Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/uniname.h: New file, from GNU gettext.
32184         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32185         * lib/uniname/uninames.h: New file, from GNU gettext.
32186         * lib/uniname/uniname.c: New file, from GNU gettext.
32187         * tests/uniname/test-uninames.sh: New file.
32188         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32189         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32190         * modules/uniname/base: New file.
32191         * modules/uniname/uniname: New file.
32192         * modules/uniname/uniname-tests: New file.
32193         * MODULES.html.sh (Unicode string functions): Add the new modules.
32194
32195 2007-07-06  Bruno Haible  <bruno@clisp.org>
32196
32197         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32198
32199 2007-07-06  Bruno Haible  <bruno@clisp.org>
32200
32201         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32202         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32203         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32204         include <sys/time.h>.
32205         Reported by Eric Blake.
32206
32207 2007-07-06  Eric Blake  <ebb9@byu.net>
32208
32209         Fix testing canonicalize on cygwin.
32210         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32211         Revert patch from 2007-06-19.
32212         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32213         canonicalize module is also in use.
32214         * tests/test-canonicalize.c: New file.
32215         * tests/test-canonicalize.sh: Likewise.
32216         * modules/canonicalize-tests: Likewise.
32217
32218 2007-07-06  Jim Meyering  <jim@meyering.net>
32219
32220         * lib/getugroups.c (getugroups): Detect getgrent failure.
32221         Adjust comment to reflect reality: this function may return -1.
32222
32223 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32224
32225         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32226         the new TP address.
32227         (usage): Fix typo
32228         (gnulib_mk): New variable.
32229
32230 2007-07-05  Jim Meyering  <jim@meyering.net>
32231
32232         Don't let endgrent clobber errno, no matter how improbable.
32233         * lib/getugroups.c (getugroups): Save and restore errno around
32234         endgrent call.
32235
32236         Close the group DB even when failing with 2^31 or more members.
32237         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32238
32239 2007-07-04  Jim Meyering  <jim@meyering.net>
32240
32241         * lib/getugroups.h: New file.
32242         * lib/getugroups.c: Include "getugroups.h".
32243         Remove uses of "register" keyword.
32244         Move local variable, "cp", down into scope where used.
32245         Give "username" parameter the "const" attribute.
32246         * modules/getugroups (Files): Add lib/getugroups.h
32247
32248 2007-07-04  Karl Berry  <karl@gnu.org>
32249
32250         * MODULES.html.sh (func_all_modules): Complete rename of
32251         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32252
32253 2007-07-02  Bruno Haible  <bruno@clisp.org>
32254
32255         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32256         mode, when inttypes.h comes from gnulib.
32257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32258
32259 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32260
32261         * NEWS: Mention lgpl module name change.
32262
32263         * modules/lgpl-2.1: Renamed from lgpl.
32264
32265         * NEWS: Mention gpl module name change.
32266
32267         * modules/gpl-3.0: New file, based on gpl-2.0.
32268
32269         * modules/gpl-2.0: Renamed from gpl.
32270
32271         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32272         doc/gpl-2.0.texi.
32273
32274 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32275
32276         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32277         #define __STDC_LIMIT_MACROS temporarily while including
32278         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32279         Problem reported by Joel E. Denny in
32280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32281
32282 2007-07-01  Bruno Haible  <bruno@clisp.org>
32283
32284         * lib/unistdio.h: New file.
32285         * lib/unistdio/u-asnprintf.h: New file.
32286         * lib/unistdio/u-asprintf.h: New file.
32287         * lib/unistdio/u-printf-args.c: New file.
32288         * lib/unistdio/u-printf-args.h: New file.
32289         * lib/unistdio/u-printf-parse.h: New file.
32290         * lib/unistdio/u-snprintf.h: New file.
32291         * lib/unistdio/u-sprintf.h: New file.
32292         * lib/unistdio/u-vasprintf.h: New file.
32293         * lib/unistdio/u-vsnprintf.h: New file.
32294         * lib/unistdio/u-vsprintf.h: New file.
32295         * lib/unistdio/ulc-asnprintf.c: New file.
32296         * lib/unistdio/ulc-asprintf.c: New file.
32297         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32298         * lib/unistdio/ulc-printf-parse.c: New file.
32299         * lib/unistdio/ulc-snprintf.c: New file.
32300         * lib/unistdio/ulc-sprintf.c: New file.
32301         * lib/unistdio/ulc-vasnprintf.c: New file.
32302         * lib/unistdio/ulc-vasprintf.c: New file.
32303         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32304         * lib/unistdio/ulc-vsnprintf.c: New file.
32305         * lib/unistdio/ulc-vsprintf.c: New file.
32306         * lib/unistdio/u8-asnprintf.c: New file.
32307         * lib/unistdio/u8-asprintf.c: New file.
32308         * lib/unistdio/u8-printf-parse.c: New file.
32309         * lib/unistdio/u8-snprintf.c: New file.
32310         * lib/unistdio/u8-sprintf.c: New file.
32311         * lib/unistdio/u8-vasnprintf.c: New file.
32312         * lib/unistdio/u8-vasprintf.c: New file.
32313         * lib/unistdio/u8-vsnprintf.c: New file.
32314         * lib/unistdio/u8-vsprintf.c: New file.
32315         * lib/unistdio/u8-u8-asnprintf.c: New file.
32316         * lib/unistdio/u8-u8-asprintf.c: New file.
32317         * lib/unistdio/u8-u8-snprintf.c: New file.
32318         * lib/unistdio/u8-u8-sprintf.c: New file.
32319         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32320         * lib/unistdio/u8-u8-vasprintf.c: New file.
32321         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32322         * lib/unistdio/u8-u8-vsprintf.c: New file.
32323         * lib/unistdio/u16-asnprintf.c: New file.
32324         * lib/unistdio/u16-asprintf.c: New file.
32325         * lib/unistdio/u16-printf-parse.c: New file.
32326         * lib/unistdio/u16-snprintf.c: New file.
32327         * lib/unistdio/u16-sprintf.c: New file.
32328         * lib/unistdio/u16-vasnprintf.c: New file.
32329         * lib/unistdio/u16-vasprintf.c: New file.
32330         * lib/unistdio/u16-vsnprintf.c: New file.
32331         * lib/unistdio/u16-vsprintf.c: New file.
32332         * lib/unistdio/u16-u16-asnprintf.c: New file.
32333         * lib/unistdio/u16-u16-asprintf.c: New file.
32334         * lib/unistdio/u16-u16-snprintf.c: New file.
32335         * lib/unistdio/u16-u16-sprintf.c: New file.
32336         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32337         * lib/unistdio/u16-u16-vasprintf.c: New file.
32338         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32339         * lib/unistdio/u16-u16-vsprintf.c: New file.
32340         * lib/unistdio/u32-asnprintf.c: New file.
32341         * lib/unistdio/u32-asprintf.c: New file.
32342         * lib/unistdio/u32-printf-parse.c: New file.
32343         * lib/unistdio/u32-snprintf.c: New file.
32344         * lib/unistdio/u32-sprintf.c: New file.
32345         * lib/unistdio/u32-vasnprintf.c: New file.
32346         * lib/unistdio/u32-vasprintf.c: New file.
32347         * lib/unistdio/u32-vsnprintf.c: New file.
32348         * lib/unistdio/u32-vsprintf.c: New file.
32349         * lib/unistdio/u32-u32-asnprintf.c: New file.
32350         * lib/unistdio/u32-u32-asprintf.c: New file.
32351         * lib/unistdio/u32-u32-snprintf.c: New file.
32352         * lib/unistdio/u32-u32-sprintf.c: New file.
32353         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32354         * lib/unistdio/u32-u32-vasprintf.c: New file.
32355         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32356         * lib/unistdio/u32-u32-vsprintf.c: New file.
32357         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32358         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32359         * tests/unistdio/test-ulc-printf1.h: New file.
32360         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32361         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32362         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32363         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32364         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32365         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32366         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32367         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32368         * tests/unistdio/test-u8-asnprintf1.c: New file.
32369         * tests/unistdio/test-u8-asnprintf1.h: New file.
32370         * tests/unistdio/test-u8-printf1.h: New file.
32371         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32372         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32373         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32374         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32375         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32376         * tests/unistdio/test-u8-vasprintf1.c: New file.
32377         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32378         * tests/unistdio/test-u8-vsprintf1.c: New file.
32379         * tests/unistdio/test-u16-asnprintf1.c: New file.
32380         * tests/unistdio/test-u16-asnprintf1.h: New file.
32381         * tests/unistdio/test-u16-printf1.h: New file.
32382         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32383         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32384         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32385         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32386         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32387         * tests/unistdio/test-u16-vasprintf1.c: New file.
32388         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32389         * tests/unistdio/test-u16-vsprintf1.c: New file.
32390         * tests/unistdio/test-u32-asnprintf1.c: New file.
32391         * tests/unistdio/test-u32-asnprintf1.h: New file.
32392         * tests/unistdio/test-u32-printf1.h: New file.
32393         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32394         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32395         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32396         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32397         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32398         * tests/unistdio/test-u32-vasprintf1.c: New file.
32399         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32400         * tests/unistdio/test-u32-vsprintf1.c: New file.
32401         * modules/unistdio/base: New file.
32402         * modules/unistdio/u-printf-args: New file.
32403         * modules/unistdio/ulc-asnprintf: New file.
32404         * modules/unistdio/ulc-asprintf: New file.
32405         * modules/unistdio/ulc-fprintf: New file.
32406         * modules/unistdio/ulc-printf-parse: New file.
32407         * modules/unistdio/ulc-snprintf: New file.
32408         * modules/unistdio/ulc-sprintf: New file.
32409         * modules/unistdio/ulc-vasnprintf: New file.
32410         * modules/unistdio/ulc-vasprintf: New file.
32411         * modules/unistdio/ulc-vfprintf: New file.
32412         * modules/unistdio/ulc-vsnprintf: New file.
32413         * modules/unistdio/ulc-vsprintf: New file.
32414         * modules/unistdio/u8-asnprintf: New file.
32415         * modules/unistdio/u8-asprintf: New file.
32416         * modules/unistdio/u8-printf-parse: New file.
32417         * modules/unistdio/u8-snprintf: New file.
32418         * modules/unistdio/u8-sprintf: New file.
32419         * modules/unistdio/u8-vasnprintf: New file.
32420         * modules/unistdio/u8-vasprintf: New file.
32421         * modules/unistdio/u8-vsnprintf: New file.
32422         * modules/unistdio/u8-vsprintf: New file.
32423         * modules/unistdio/u8-u8-asnprintf: New file.
32424         * modules/unistdio/u8-u8-asprintf: New file.
32425         * modules/unistdio/u8-u8-snprintf: New file.
32426         * modules/unistdio/u8-u8-sprintf: New file.
32427         * modules/unistdio/u8-u8-vasnprintf: New file.
32428         * modules/unistdio/u8-u8-vasprintf: New file.
32429         * modules/unistdio/u8-u8-vsnprintf: New file.
32430         * modules/unistdio/u8-u8-vsprintf: New file.
32431         * modules/unistdio/u16-asnprintf: New file.
32432         * modules/unistdio/u16-asprintf: New file.
32433         * modules/unistdio/u16-printf-parse: New file.
32434         * modules/unistdio/u16-snprintf: New file.
32435         * modules/unistdio/u16-sprintf: New file.
32436         * modules/unistdio/u16-vasnprintf: New file.
32437         * modules/unistdio/u16-vasprintf: New file.
32438         * modules/unistdio/u16-vsnprintf: New file.
32439         * modules/unistdio/u16-vsprintf: New file.
32440         * modules/unistdio/u16-u16-asnprintf: New file.
32441         * modules/unistdio/u16-u16-asprintf: New file.
32442         * modules/unistdio/u16-u16-snprintf: New file.
32443         * modules/unistdio/u16-u16-sprintf: New file.
32444         * modules/unistdio/u16-u16-vasnprintf: New file.
32445         * modules/unistdio/u16-u16-vasprintf: New file.
32446         * modules/unistdio/u16-u16-vsnprintf: New file.
32447         * modules/unistdio/u16-u16-vsprintf: New file.
32448         * modules/unistdio/u32-asnprintf: New file.
32449         * modules/unistdio/u32-asprintf: New file.
32450         * modules/unistdio/u32-printf-parse: New file.
32451         * modules/unistdio/u32-snprintf: New file.
32452         * modules/unistdio/u32-sprintf: New file.
32453         * modules/unistdio/u32-vasnprintf: New file.
32454         * modules/unistdio/u32-vasprintf: New file.
32455         * modules/unistdio/u32-vsnprintf: New file.
32456         * modules/unistdio/u32-vsprintf: New file.
32457         * modules/unistdio/u32-u32-asnprintf: New file.
32458         * modules/unistdio/u32-u32-asprintf: New file.
32459         * modules/unistdio/u32-u32-snprintf: New file.
32460         * modules/unistdio/u32-u32-sprintf: New file.
32461         * modules/unistdio/u32-u32-vasnprintf: New file.
32462         * modules/unistdio/u32-u32-vasprintf: New file.
32463         * modules/unistdio/u32-u32-vsnprintf: New file.
32464         * modules/unistdio/u32-u32-vsprintf: New file.
32465         * modules/unistdio/ulc-asnprintf-tests: New file.
32466         * modules/unistdio/ulc-vasnprintf-tests: New file.
32467         * modules/unistdio/ulc-vasprintf-tests: New file.
32468         * modules/unistdio/ulc-vsnprintf-tests: New file.
32469         * modules/unistdio/ulc-vsprintf-tests: New file.
32470         * modules/unistdio/u8-asnprintf-tests: New file.
32471         * modules/unistdio/u8-vasnprintf-tests: New file.
32472         * modules/unistdio/u8-vasprintf-tests: New file.
32473         * modules/unistdio/u8-vsnprintf-tests: New file.
32474         * modules/unistdio/u8-vsprintf-tests: New file.
32475         * modules/unistdio/u16-asnprintf-tests: New file.
32476         * modules/unistdio/u16-vasnprintf-tests: New file.
32477         * modules/unistdio/u16-vasprintf-tests: New file.
32478         * modules/unistdio/u16-vsnprintf-tests: New file.
32479         * modules/unistdio/u16-vsprintf-tests: New file.
32480         * modules/unistdio/u32-asnprintf-tests: New file.
32481         * modules/unistdio/u32-vasnprintf-tests: New file.
32482         * modules/unistdio/u32-vasprintf-tests: New file.
32483         * modules/unistdio/u32-vsnprintf-tests: New file.
32484         * modules/unistdio/u32-vsprintf-tests: New file.
32485         * MODULES.html.sh (Unicode string functions): Add the new modules.
32486
32487 2007-07-01  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/sprintf.c (sprintf): Limit the available length estimation,
32490         to avoid address wraparound.
32491         * lib/vsprintf.c (vsprintf): Likewise.
32492         * modules/sprintf-posix (Dependencies): Add stdint.
32493         * modules/vsprintf-posix (Dependencies): Likewise.
32494
32495 2007-07-01  Bruno Haible  <bruno@clisp.org>
32496
32497         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32498         Windows PATH as well. Conservative double-quoting. Comments.
32499
32500 2007-07-01  Bruno Haible  <bruno@clisp.org>
32501             Eric Blake  <ebb9@byu.net>
32502             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32503
32504         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32505         empty components in $PATH, denoting '.'.
32506
32507 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32508
32509         * gnulib-tool: Fix indentation.
32510         (func_create_megatestdir): Likewise.
32511         Report by Bruno Haible.
32512
32513 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32514
32515         Sync from Automake.
32516         * build-aux/gnupload: Fix shell portability issues with for loops.
32517         Report by Karl Berry.
32518
32519 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32520
32521         * build-aux/maint.mk (POURL): Use translationproject.org.
32522
32523 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32524             Bruno Haible  <bruno@clisp.org>
32525
32526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32527         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32528         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32529         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32530         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32531
32532 2007-06-27  Bruno Haible  <bruno@clisp.org>
32533
32534         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32535         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32536
32537 2007-06-26  Karl Berry  <karl@gnu.org>
32538
32539         * MODULES.html.sh: remove xreadlink-with-size.
32540
32541 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32542
32543         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32544         method that I hope also handles the double-include problem noted
32545         by Bruno Haible in
32546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32547
32548 2007-06-23  Bruno Haible  <bruno@clisp.org>
32549
32550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32551         Don't let the 'mostlyclean' target fail if the last subdirectory could
32552         not be removed.
32553         Reported by Karl Berry.
32554
32555 2007-06-23  Bruno Haible  <bruno@clisp.org>
32556
32557         * gnulib-tool (echo): Add a speedier workaround for ksh.
32558         * tests/test-echo.sh: Likewise.
32559
32560 2007-06-23  Bruno Haible  <bruno@clisp.org>
32561
32562         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32563         * tests/test-echo.sh: Likewise.
32564
32565 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32566
32567         * gnulib-tool (IFS): Initialize early, so we don't set it to
32568         empty later.
32569         (self_abspathname): Rewrite algorithm to set it, reindent.
32570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32571         (func_create_megatestdir): Merge some sed scripts.
32572
32573 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32574
32575         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32576         exposed by Sun Studio 11 cc on Solaris 8.
32577
32578 2007-06-22  Bruno Haible  <bruno@clisp.org>
32579
32580         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32581         backslashes.
32582         * tests/test-echo.sh: New file.
32583
32584 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32585
32586         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32587         simplify `sed_replace_build_aux' scripts, they are portable but
32588         echoing them with `echo' is not.
32589         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32590
32591 2007-06-21  Karl Berry  <karl@gnu.org>
32592
32593         * config/srclist.txt: guess we can't handle the licenses via
32594         srclist at the moment.
32595
32596 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32597
32598         * MODULES.html.sh: Add include_next.
32599         * modules/include_next: New file.
32600
32601 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32602
32603         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32604         INCLUDE_NEXT.
32605         (gl_CHECK_NEXT_HEADERS): New macro.
32606         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32607         the obsolescent gl_ABSOLUTE_HEADER.
32608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32609         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32610         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32611         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32612         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32613         * m4/math_h.m4 (gl_MATH_H): Likewise.
32614         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32615         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32616         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32617         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32618         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32619         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32620         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32625         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32626         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32627         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32628         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32629         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32630         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32631         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32632         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32633         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32634         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32635         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32636         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32637         * lib/float_.h: Likewise.
32638         * lib/inttypes_.h: Likewise.
32639         * lib/math_.h: Likewise.
32640         * lib/search_.h: Likewise.
32641         * lib/signal_.h: Likewise.
32642         * lib/stdint_.h: Likewise.
32643         * lib/stdio_.h: Likewise.
32644         * lib/stdlib_.h: Likewise.
32645         * lib/string_.h: Likewise.
32646         * lib/sys_stat_.h: Likewise.
32647         * lib/sys_time_.h: Likewise.
32648         * lib/time_.h: Likewise.
32649         * lib/unistd_.h: Likewise.
32650         * lib/wchar_.h: Likewise.
32651         * lib/wctype_.h: Likewise.
32652         * lib/dirent_.h: Likewise.
32653         * lib/iconv_.h: Likewise.
32654         * lib/locale_.h: Likewise.
32655         * lib/netinet_in_.h: Likewise.
32656         * lib/sys_select_.h: Likewise.
32657         * lib/sys_socket_.h: Likewise.
32658         * lib/sysexits_.h: Likewise.
32659         * modules/fcntl (Depends-on): Depend on include_next, not
32660         absolute_header.
32661         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32662         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32663         * modules/fchdir: Likewise.
32664         * modules/float: Likewise.
32665         * modules/iconv_open: Likewise.
32666         * modules/inttypes: Likewise.
32667         * modules/locale: Likewise.
32668         * modules/math: Likewise.
32669         * modules/netinet_in: Likewise.
32670         * modules/search: Likewise.
32671         * modules/signal: Likewise.
32672         * modules/stdint: Likewise.
32673         * modules/stdio: Likewise.
32674         * modules/stdlib: Likewise.
32675         * modules/string: Likewise.
32676         * modules/sys_select: Likewise.
32677         * modules/sys_socket: Likewise.
32678         * modules/sys_stat: Likewise.
32679         * modules/sys_time: Likewise.
32680         * modules/sysexits: Likewise.
32681         * modules/time: Likewise.
32682         * modules/unistd: Likewise.
32683         * modules/wchar: Likewise.
32684         * modules/wctype: Likewise.
32685         * modules/sys_stat: Change maintainer to "all".
32686         * modules/unistd: Likewise.
32687
32688 2007-06-20  Karl Berry  <karl@gnu.org>
32689
32690         * config/srclist.txt: track www changes in license files.
32691
32692 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32693
32694         * build-aux/bootstrap: Remove stray dot.
32695         Make sure build_aux settings are honored when linking
32696         gnulib_extra_files.
32697
32698 2007-06-19  Eric Blake  <ebb9@byu.net>
32699
32700         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32701         Allow compilation on cygwin.
32702
32703 2007-06-19  Jim Meyering  <jim@meyering.net>
32704
32705         xreadlink-with-size: Remove module.  No longer used.
32706         Ex-callers now use xreadlink or mreadlink-with-size.
32707         * modules/xreadlink-with-size: Remove module.
32708         * lib/xreadlink-with-size.c: Remove file.
32709         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32710         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32711         just before the function definition *is* accurate.
32712
32713         Eliminate one way canonicalize_filename_mode could exit.
32714         * lib/canonicalize.c (canonicalize_filename_mode):
32715         Use mreadlink_with_size, not xreadlink_with_size.
32716
32717 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32718
32719         Detect porting problems to FreeBSD/arm, which has time_t wider than
32720         long int.  Original problem reported for GNU diff by Xin Li in
32721         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32722         * modules/getdate (Depends-on): Add intprops, verify.
32723         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32724         is an integer type no wider than long int.
32725
32726 2007-06-18  Jim Meyering  <jim@meyering.net>
32727
32728         New module: mreadlink-with-size.
32729         * MODULES.html.sh: Add mreadlink-with-size.
32730         * modules/mreadlink-with-size: New module
32731         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32732         not xreadlink-with-size.
32733         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32734
32735 2007-06-16  Bruno Haible  <bruno@clisp.org>
32736
32737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32738         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32739         Reported by Gary V. Vaughan <gary@gnu.org>.
32740
32741 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32742
32743         Revamp lchown so that it lives in unistd.h where it belongs.
32744         * lib/lchown.h: Remove.
32745         * lib/dirchownmod.c: Don't include lib/lchown.h.
32746         * lib/fchownat.c: Likewise.
32747         * lib/openat.c: Likewise.
32748         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32749         does not follow symlinks.
32750         (EOPNOTSUPP): Define if not defined.
32751         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32752         is defined to 0.
32753         (lchown): New decl.
32754         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32755         Do not check for lchown decl.
32756         Set REPLACE_LCHOWN.
32757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32758         REPLACE_LCHOWN.
32759         * modules/chown: Make it clear it follows symlinks.
32760         * modules/lchown: Make it clear it doesn't follow symlinks.
32761         (Files): Remove lib/lchown.h
32762         (Depends-on): Add unistd.
32763         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32764         (Include): Include <unistd.h>, not "lchown.h".
32765         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32766         REPLACE_LCHOWN.
32767
32768 2007-06-15  Jim Meyering  <jim@meyering.net>
32769
32770         Change license (GPL to LGPL) of fsusage and dependents.
32771         * modules/fsusage (License): Change to LGPL.
32772         * modules/full-read (License): Likewise.
32773         * modules/full-write (License): Likewise.
32774         * modules/safe-read (License): Likewise.
32775         * modules/safe-write (License): Likewise.
32776
32777 2007-06-14  Ben Pfaff  <blp@gnu.org>
32778
32779         Missing part of allocsa -> malloca transition.
32780         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32781         gl_MALLOCA.
32782
32783 2007-06-12  Bruno Haible  <bruno@clisp.org>
32784
32785         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32786         to ia64, x86_64, i386.
32787         Reported by Eric Blake.
32788
32789 2007-06-12  Bruno Haible  <bruno@clisp.org>
32790
32791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32792         cross-compiling to x86_64.
32793
32794 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32795
32796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32797         glitch reported by Ralf Wildenhues in
32798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32799
32800         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32801         Vin Shelton.
32802
32803 2007-06-11  Bruno Haible  <bruno@clisp.org>
32804
32805         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32806         replacement string.
32807         Reported by Eric Blake.
32808
32809 2007-06-10  Bruno Haible  <bruno@clisp.org>
32810
32811         Prepare vasnprintf code for use with Unicode strings.
32812         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32813         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32814         TYPE_U32_STRING.
32815         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32816         a_u32_string variants.
32817         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32818         * lib/printf-args.c: Don't include config.h and the specification
32819         header if PRINTF_FETCHARGS is already defined.
32820         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32821         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32822         TYPE_U16_STRING, TYPE_U32_STRING.
32823         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32824         u16_directive, u16_directives, u32_directive, u32_directives): New
32825         types.
32826         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32827         New declarations.
32828         * lib/printf-parse.c: Don't include config.h and the specification
32829         header if PRINTF_PARSE is already defined. Eliminate the set of
32830         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32831         them now. Include c-ctype.h.
32832         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32833         directive and CHAR_T_ONLY_ASCII.
32834         * lib/vasnprintf.c: Don't include config.h and the specification header
32835         if VASNPRINTF is already defined.
32836         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32837         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32838         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32839         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32840         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32841         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32842         code accordingly.
32843         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32844         pad_ourselves also in this case, with the 'c' and 's' directives, and
32845         with a different notion of "width".
32846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32847
32848 2007-06-10  Bruno Haible  <bruno@clisp.org>
32849
32850         * modules/unistr/u32-mbsnlen: New file.
32851         * lib/unistr/u32-mbsnlen.c: New file.
32852
32853         * modules/unistr/u16-mbsnlen: New file.
32854         * lib/unistr/u16-mbsnlen.c: New file.
32855
32856         * modules/unistr/u8-mbsnlen: New file.
32857         * lib/unistr/u8-mbsnlen.c: New file.
32858
32859         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32860         declarations.
32861
32862 2007-06-10  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/string_.h (mbsnlen): New declaration.
32865         * lib/mbsnlen.c: New file.
32866         * m4/mbsnlen.m4: New file.
32867         * modules/mbsnlen: New file.
32868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32869         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32870         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32871
32872 2007-06-10  Bruno Haible  <bruno@clisp.org>
32873
32874         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32875
32876 2007-06-10  Bruno Haible  <bruno@clisp.org>
32877
32878         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32879         * lib/mbuiter.h: Likewise.
32880
32881 2007-06-10  Bruno Haible  <bruno@clisp.org>
32882
32883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32884         declaration.
32885
32886 2007-06-10  Karl Berry  <karl@gnu.org>
32887
32888         * config/srclist.txt: remove gettext entries, Bruno prefers
32889         to update individually.
32890
32891 2007-06-10  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32894         'maxlen'. Ensure only length + width bytes are allocated, not
32895         length + 1 + width.
32896
32897 2007-06-09  Bruno Haible  <bruno@clisp.org>
32898
32899         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32900         (CHAR_T): Remove macro.
32901         (VASNPRINTF): Update.
32902
32903 2007-06-09  Bruno Haible  <bruno@clisp.org>
32904
32905         * MODULES.html.sh (Unicode string functions): Add the new modules.
32906
32907         * modules/uniconv/u32-conv-to-enc: New file.
32908         * lib/uniconv/u32-conv-to-enc.c: New file.
32909         * modules/uniconv/u32-conv-to-enc-tests: New file.
32910         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32911
32912         * modules/uniconv/u16-conv-to-enc: New file.
32913         * lib/uniconv/u16-conv-to-enc.c: New file.
32914         * lib/uniconv/u-conv-to-enc.h: New file.
32915         * modules/uniconv/u16-conv-to-enc-tests: New file.
32916         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32917
32918         * modules/uniconv/u8-conv-to-enc: New file.
32919         * lib/uniconv/u8-conv-to-enc.c: New file.
32920         * modules/uniconv/u8-conv-to-enc-tests: New file.
32921         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32922
32923         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32924         u32_conv_to_encoding): New declarations.
32925
32926 2007-06-09  Bruno Haible  <bruno@clisp.org>
32927
32928         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32929
32930 2007-06-09  Bruno Haible  <bruno@clisp.org>
32931
32932         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32933         * modules/malloca: Renamed from modules/allocsa, updated.
32934         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32935         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32936         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32937         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32938         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32939         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32940         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32941         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32942         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32943         * modules/c-strcasestr (Depends-on): Update.
32944         * lib/c-strcasestr.c: Update.
32945         * modules/c-strstr (Depends-on): Update.
32946         * lib/c-strstr.c: Update.
32947         * modules/canonicalize-lgpl (Depends-on): Update.
32948         * lib/canonicalize-lgpl.c: Update.
32949         * modules/clean-temp (Depends-on): Update.
32950         * lib/clean-temp.c: Update.
32951         * modules/csharpcomp (Depends-on): Update.
32952         * lib/csharpcomp.c: Update.
32953         * modules/csharpexec (Depends-on): Update.
32954         * lib/csharpexec.c: Update.
32955         * modules/javacomp (Depends-on): Update.
32956         * lib/javacomp.c: Update.
32957         * modules/javaexec (Depends-on): Update.
32958         * lib/javaexec.c: Update.
32959         * modules/mbscasestr (Depends-on): Update.
32960         * lib/mbscasestr.c: Update.
32961         * modules/mbsstr (Depends-on): Update.
32962         * lib/mbsstr.c: Update.
32963         * modules/setenv (Depends-on): Update.
32964         * lib/setenv.c: Update.
32965         * modules/strcasestr (Depends-on): Update.
32966         * lib/strcasestr.c: Update.
32967         * modules/striconveha (Depends-on): Update.
32968         * lib/striconveha.c: Update.
32969         * modules/relocatable-prog-wrapper (Files): Update.
32970         * lib/relocwrapper.c: Update.
32971         * build-aux/install-reloc: Update.
32972         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32973
32974 2007-06-08  Bruno Haible  <bruno@clisp.org>
32975
32976         Port to uClibc.
32977         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32978         * lib/fpurge.c (fpurge): Likewise.
32979         * lib/freading.c (freading): Likewise.
32980         * lib/fseeko.c (rpl_fseeko): Likewise.
32981         * lib/fseterr.c (fseterr): Likewise.
32982         * lib/fwriting.c (fwriting): Likewise.
32983         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32984
32985 2007-06-08  Bruno Haible  <bruno@clisp.org>
32986
32987         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32988         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32989         * modules/gettext (Files): Add m4/intlmacosx.m4.
32990
32991 2007-06-07  Bruno Haible  <bruno@clisp.org>
32992
32993         * modules/localename-tests: New file.
32994         * tests/test-localename.c: New file.
32995
32996         New module 'localename'.
32997         * lib/localename.h: New file.
32998         * lib/localename.c: New file, from GNU gettext.
32999         * m4/localename.m4: New file.
33000         * modules/localename: New file.
33001
33002 2007-06-07  Bruno Haible  <bruno@clisp.org>
33003
33004         Work around the lack of <wchar.h> on some builds of uClibc.
33005         * doc/headers/wchar.texi: Update.
33006         * lib/wchar_.h: Include <wchar.h> only if it exists.
33007         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33008         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33009         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33010         doesn't exist.
33011         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33012         * modules/mbfile (Depends-on): Add wchar.
33013         * modules/mbiter (Depends-on): Likewise.
33014         * modules/mbuiter (Depends-on): Likewise.
33015         Reported by Simon Josefsson.
33016
33017 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33018
33019         Work around problem reported by Steven M. Schweda in
33020         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33021         Tru64 5.1B with the Compaq compiler environment installed declares
33022         an 'isblank' function but does not define it in the C library.
33023         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33024         * lib/regex_internal.h (isblank): Likewise.
33025         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33026         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33027
33028 2007-06-05  Bruno Haible  <bruno@clisp.org>
33029
33030         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33031         ia64.
33032         * modules/printf-safe: New file.
33033         * modules/fprintf-posix (Depends-on): Add printf-safe.
33034         * modules/printf-posix (Depends-on): Likewise.
33035         * modules/snprintf-posix (Depends-on): Likewise.
33036         * modules/sprintf-posix (Depends-on): Likewise.
33037         * modules/vasnprintf-posix (Depends-on): Likewise.
33038         * modules/vasprintf-posix (Depends-on): Likewise.
33039         * modules/vfprintf-posix (Depends-on): Likewise.
33040         * modules/vprintf-posix (Depends-on): Likewise.
33041         * modules/vsnprintf-posix (Depends-on): Likewise.
33042         * modules/vsprintf-posix (Depends-on): Likewise.
33043         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33044         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33045         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33046         "no" on i386, x86_64, ia64.
33047         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33048         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33049         on i386, x86_64, ia64.
33050         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33051         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33052         on i386, x86_64, ia64.
33053         * tests/test-vasnprintf-posix.c: Include float.h.
33054         (LDBL80_WORDS): New macro.
33055         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33056         on i386, x86_64, ia64.
33057         * tests/test-vasprintf-posix.c: Include float.h.
33058         (LDBL80_WORDS): New macro.
33059         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33060         on i386, x86_64, ia64.
33061         * tests/test-snprintf-posix.c: Include float.h.
33062         * tests/test-sprintf-posix.c: Likewise.
33063         * tests/test-vsnprintf-posix.c: Likewise.
33064         * tests/test-vsprintf-posix.c: Likewise.
33065
33066 2007-06-05  Bruno Haible  <bruno@clisp.org>
33067
33068         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33069         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33070         non-IEEE numbers on i386, x86_64, ia64.
33071         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33072         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33073         * tests/test-isnanl.h: Include float.h.
33074         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33075
33076 2007-06-05  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33079         also the %a / %A. Handle the %a / %A code before this extra handling.
33080
33081 2007-06-05  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33084         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33085
33086 2007-06-05  Bruno Haible  <bruno@clisp.org>
33087
33088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33089         typo in variable name.
33090
33091 2007-06-05  Eric Blake  <ebb9@byu.net>
33092
33093         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33094         Reported by Simon Josefsson.
33095
33096 2007-06-04  Bruno Haible  <bruno@clisp.org>
33097
33098         Avoid test failures on some PowerPC platforms.
33099         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33100         Define differently for PowerPC.
33101         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33102         Reported by Gary V. Vaughan <gary@gnu.org>.
33103
33104 2007-06-02  Bruno Haible  <bruno@clisp.org>
33105
33106         Fix test-stdint failure on FreeBSD/ia64.
33107         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33108         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33109         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33110         * doc/headers/stdint.texi: Update.
33111
33112 2007-06-01  Bruno Haible  <bruno@clisp.org>
33113
33114         * tests/test-binary-io.c (main): Pass a third argument to open().
33115         Reported by Gary V. Vaughan <gary@gnu.org>.
33116
33117 2007-06-01  Bruno Haible  <bruno@clisp.org>
33118
33119         * doc/functions/frexpl.texi: Update for mingw.
33120
33121 2007-06-01  Bruno Haible  <bruno@clisp.org>
33122
33123         * tests/test-lseek.c (main): Disable test of errno for invalid third
33124         argument.
33125         * doc/functions/lseek.texi: Update.
33126         Reported by Gary V. Vaughan <gary@gnu.org>.
33127
33128 2007-05-28  Bruno Haible  <bruno@clisp.org>
33129
33130         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33131
33132 2007-05-31  Eric Blake  <ebb9@byu.net>
33133
33134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33135         cross compiling.
33136
33137 2007-05-30  Eric Blake  <ebb9@byu.net>
33138         and Bruno Haible  <bruno@clisp.org>
33139
33140         Work around mingw test failures exposed by m4-1.4.9b.
33141         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33142         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33143         moment.
33144
33145 2007-05-30  Bruno Haible  <bruno@clisp.org>
33146
33147         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33148         assuming that they are closed. Needed on HP-UX 11.
33149
33150 2007-05-29  Bruno Haible  <bruno@clisp.org>
33151
33152         Fix a problem with #include_next.
33153         * lib/dirent_.h: Split the double-inclusion guard.
33154         * lib/fcntl_.h: Likewise.
33155         * lib/float_.h: Likewise.
33156         * lib/iconv_.h: Likewise.
33157         * lib/inttypes_.h: Likewise.
33158         * lib/locale_.h: Likewise.
33159         * lib/math_.h: Likewise.
33160         * lib/netinet_in_.h: Likewise.
33161         * lib/search_.h: Likewise.
33162         * lib/signal_.h: Likewise.
33163         * lib/stdint_.h: Likewise.
33164         * lib/stdio_.h: Likewise.
33165         * lib/stdlib_.h: Likewise.
33166         * lib/string_.h: Likewise.
33167         * lib/sys_select_.h: Likewise.
33168         * lib/sys_socket_.h: Likewise.
33169         * lib/sys_stat_.h: Likewise.
33170         * lib/sys_time_.h: Likewise.
33171         * lib/sysexits_.h: Likewise.
33172         * lib/time_.h: Likewise.
33173         * lib/unistd_.h: Likewise.
33174         * lib/wchar_.h: Likewise.
33175         * lib/wctype_.h: Likewise.
33176
33177 2007-05-29  Bruno Haible  <bruno@clisp.org>
33178
33179         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33180         for the moment.
33181
33182 2007-05-29  Bruno Haible  <bruno@clisp.org>
33183
33184         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33185         invocation.
33186         Reported by Eric Blake.
33187
33188 2007-05-29  Bruno Haible  <bruno@clisp.org>
33189
33190         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33191         compiling case.
33192
33193 2007-05-29  Eric Blake  <ebb9@byu.net>
33194             Bruno Haible  <bruno@clisp.org>
33195
33196         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33197         cross compiles.
33198
33199 2007-05-28  Eric Blake  <ebb9@byu.net>
33200
33201         * modules/closein-tests (test_closein_LDADD): Support test on
33202         cygwin with libtool.
33203
33204 2007-05-28  Bruno Haible  <bruno@clisp.org>
33205
33206         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33207         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33208         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33209         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33210         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33211         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33212         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33213         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33214         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33215
33216 2007-05-28  Eric Blake  <ebb9@byu.net>
33217
33218         Unconditionally include <config.h> in unit tests.
33219         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33220         * tests/test-allocsa.c, tests/test-arcfour.c,
33221         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33222         tests/test-array_list.c, tests/test-array_oset.c,
33223         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33224         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33225         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33226         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33227         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33228         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33229         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33230         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33231         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33232         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33233         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33234         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33235         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33236         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33237         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33238         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33239         test-md5.c, test-memmem.c, test-printf-posix.c,
33240         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33241         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33242         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33243         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33244         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33245         test-vasnprintf-posix2.c, test-vasnprintf.c,
33246         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33247         test-vfprintf-posix.c, test-vprintf-posix.c,
33248         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33249         test-xvasprintf.c: Likewise.
33250
33251 2007-05-28  Bruno Haible  <bruno@clisp.org>
33252
33253         * gnulib-tool (func_import): Remember the --with-tests command-line
33254         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33255         Reported by Eric Blake.
33256
33257 2007-05-28  Bruno Haible  <bruno@clisp.org>
33258
33259         * modules/ftell-tests: New file.
33260         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33261         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33262
33263         * lib/ftell.c: New file.
33264         * modules/ftell: New file.
33265         * m4/ftell.m4: New file.
33266         * doc/functions/ftell.texi: Update.
33267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33268         REPLACE_FTELL.
33269         * lib/stdio_.h (rpl_ftell): New declaration.
33270         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33271         REPLACE_FTELL.
33272
33273 2007-05-28  Eric Blake  <ebb9@byu.net>
33274
33275         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33276
33277 2007-05-28  Bruno Haible  <bruno@clisp.org>
33278
33279         * modules/fseek-tests: New file.
33280         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33281         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33282
33283         * lib/fseek.c: New file.
33284         * modules/fseek: New file.
33285         * m4/fseek.m4: New file.
33286         * doc/functions/fseek.texi: Update.
33287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33288         REPLACE_FSEEK.
33289         * lib/stdio_.h (rpl_fseek): New declaration.
33290         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33291         REPLACE_FSEEK.
33292
33293 2007-05-28  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/stdio_.h (fflush): More comments.
33296
33297 2007-05-28  Bruno Haible  <bruno@clisp.org>
33298
33299         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33300         runtime test.
33301
33302 2007-05-28  Eric Blake  <ebb9@byu.net>
33303
33304         Improve lseek module.
33305         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33306         * lib/unistd_.h (lseek): Scale back link warning message.
33307         * tests/test-lseek.c: Beef up test.
33308         * tests/test-lseek.sh: Exercise more facets of lseek.
33309         Reported by Bruno Haible.
33310
33311 2007-05-28  Bruno Haible  <bruno@clisp.org>
33312
33313         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33314         to define.
33315
33316 2007-05-27  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33319
33320 2007-05-27  Bruno Haible  <bruno@clisp.org>
33321
33322         * modules/openmp: New file.
33323         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33324         Noah Misch.
33325
33326 2007-05-26  Bruno Haible  <bruno@clisp.org>
33327
33328         * modules/chdir-long (Depends-on): Add fchdir.
33329         * modules/chdir-safer (Depends-on): Likewise.
33330         * modules/fts (Depends-on): Likewise.
33331         * modules/fts-lgpl (Depends-on): Likewise.
33332         * modules/openat (Depends-on): Likewise.
33333         * modules/savewd (Depends-on): Likewise.
33334
33335 2007-05-24  Eric Blake  <ebb9@byu.net>
33336
33337         Fix lseek on mingw.
33338         * modules/lseek: New module.
33339         * m4/lseek.m4: New file.
33340         * lib/lseek.c: New file.
33341         * modules/lseek-tests: New file.
33342         * tests/test-lseek.c: New file.
33343         * tests/test-lseek.sh: New file.
33344         * MODULES.html.sh: Document lseek module.
33345         * modules/fflush (Depends-on): Add lseek, fseeko.
33346         * modules/fseeko (Depends-on): Likewise.
33347         * modules/ftello (Depends-on): Likewise.
33348         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33349         broken.
33350         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33351         broken.
33352         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33353         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33354         * lib/ftello.c (rpl_ftello): Likewise.
33355         * tests/test-fseeko.c (main): Test this.
33356         * tests/test-fseeko.sh: Likewise.
33357         * tests/test-ftello.c (main): Likewise.
33358         * tests/test-ftello.sh: Likewise.
33359         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33360         implies replacing fseek.
33361         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33362         HAVE_FTELLO.
33363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33364         * modules/unistd (Makefile.am): Likewise.
33365         * lib/unistd_.h (lseek): Declare a replacement.
33366         * doc/functions/lseek.texi (lseek): Document this fix.
33367         * doc/functions/fseek.texi (fseek): Likewise.
33368         * doc/functions/ftell.texi (ftell): Likewise.
33369
33370 2007-05-24  Bruno Haible  <bruno@clisp.org>
33371
33372         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33373         in the printed representation of a NaN.
33374         * tests/test-vasprintf-posix.c (test_function): Likewise.
33375         * tests/test-snprintf-posix.h (test_function): Likewise.
33376         * tests/test-sprintf-posix.h (test_function): Likewise.
33377         Reported by Eric Blake.
33378
33379 2007-05-23  Eric Blake  <ebb9@byu.net>
33380
33381         Fix fseeko/ftello on cygwin 1.5.24.
33382         * doc/functions/fseeko.texi (fseeko): Document the fix.
33383         * doc/functions/ftello.texi (ftello): Document the fix.
33384         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33385         * doc/functions/stdout.text (stdout): New file.
33386         * doc/functions/stderr.text (stderr): New file.
33387         * doc/gnulib.texi (Function Substitutes): Use new files.
33388         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33389         prior to 1.7.0.
33390         * tests/test-ftello.c (main): Likewise for ftello.
33391         * tests/test-fseeko.sh: New file.
33392         * tests/test-ftello.sh: New file.
33393         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33394         with seekable stdin.
33395         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33397         (gl_REPLACE_FSEEKO): New macro.
33398         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33399         * modules/fseeko (Files): Distribute fseeko.c.
33400         * modules/ftello (Files): Distribute ftello.c.
33401         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33402         mode.
33403         * lib/ftello.c (rpl_ftello): New file.
33404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33405         fseeko, ftello.
33406         (gl_STDIN_LARGE_OFFSET): New macro.
33407         * modules/stdio (Makefile.am): Perform the replacement.
33408         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33409
33410 2007-05-23  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33413         GNULIB_POSIXCHECK is defined.
33414
33415 2007-05-21  Bruno Haible  <bruno@clisp.org>
33416
33417         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33418         Check also the output for NaN arguments. When cross-compiling, guess
33419         no on IRIX.
33420         * lib/vasnprintf.c: Update comments.
33421         * tests/test-vasnprintf-posix.c (strisnan): New function.
33422         (test_function): Use it.
33423         * tests/test-vasprintf-posix.c (strisnan): New function.
33424         (test_function): Use it.
33425         * tests/test-snprintf-posix.h (strisnan): New function.
33426         (test_function): Use it.
33427         * tests/test-sprintf-posix.h (strisnan): New function.
33428         (test_function): Use it.
33429         Reported by Eric Blake.
33430
33431 2007-05-20  Bruno Haible  <bruno@clisp.org>
33432
33433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33434         numbers that fails on BeOS.
33435         * doc/functions/frexpl.texi: Update.
33436
33437 2007-05-20  Jim Meyering  <jim@meyering.net>
33438
33439         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33440         forced upon us by glibc-2.6.
33441
33442 2007-05-20  Bruno Haible  <bruno@clisp.org>
33443
33444         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33445         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33446         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33447         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33448         NEED_PRINTF_INFINITE.
33449         (is_infinitel): New function.
33450         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33452         gl_PREREQ_VASNPRINTF_INFINITE.
33453         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33454         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33455         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33456         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33457         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33458         gl_PREREQ_VASNPRINTF_INFINITE.
33459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33466         * doc/functions/fprintf.texi: Update.
33467         * doc/functions/printf.texi: Update.
33468         * doc/functions/snprintf.texi: Update.
33469         * doc/functions/sprintf.texi: Update.
33470         * doc/functions/vfprintf.texi: Update.
33471         * doc/functions/vprintf.texi: Update.
33472         * doc/functions/vsnprintf.texi: Update.
33473         * doc/functions/vsprintf.texi: Update.
33474
33475 2007-05-20  Bruno Haible  <bruno@clisp.org>
33476
33477         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33478         was not found in libc.
33479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33480
33481 2007-05-20  Bruno Haible  <bruno@clisp.org>
33482
33483         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33484         printed as "-nan" instead of "nan".
33485         * tests/test-vasprintf-posix.c (test_function): Likewise.
33486         * tests/test-snprintf-posix.h (test_function): Likewise.
33487         * tests/test-sprintf-posix.h (test_function): Likewise.
33488         Needed for HP-UX 11.
33489
33490 2007-05-20  Jim Meyering  <jim@meyering.net>
33491
33492         Fix buggy test for the fchownat-deref bug.
33493         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33494         symlink required for the run-test.  Without it, this test would
33495         always declare that fchownat doesn't work, and client code would
33496         unnecessarily use the replacement function with fixed libc.
33497         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33498         Reported by Greg Schafer.
33499
33500 2007-05-19  Bruno Haible  <bruno@clisp.org>
33501
33502         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33503         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33504         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33505         Needed for IRIX 6.5 and Solaris 2.5.1.
33506
33507 2007-05-19  Bruno Haible  <bruno@clisp.org>
33508
33509         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33510         (test_function): Skip tests involving -0.0 on platforms where
33511         -0.0 = 0.0.
33512         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33513         (test_function): Skip tests involving -0.0 on platforms where
33514         -0.0 = 0.0.
33515         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33516         (test_function): Skip tests involving -0.0 on platforms where
33517         -0.0 = 0.0.
33518         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33519         (test_function): Skip tests involving -0.0 on platforms where
33520         -0.0 = 0.0.
33521         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33522         tests.
33523         * tests/test-printf-posix.h (test_function): Likewise.
33524         * tests/test-printf-posix.output: Remove all -0.0 related results.
33525         Needed for IRIX 6.5.
33526
33527 2007-05-19  Bruno Haible  <bruno@clisp.org>
33528
33529         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33530         printed as "nan0x7fffffff" instead of "nan".
33531         * tests/test-vasprintf-posix.c (test_function): Likewise.
33532         * tests/test-snprintf-posix.h (test_function): Likewise.
33533         * tests/test-sprintf-posix.h (test_function): Likewise.
33534         * tests/test-fprintf-posix.h (NaN): Remove macro.
33535         (test_function): Remove all NaN related tests.
33536         * tests/test-printf-posix.h (NaN): Remove macro.
33537         (test_function): Remove all NaN related tests.
33538         * tests/test-printf-posix.output: Remove all NaN related results.
33539         Needed for IRIX 6.5.
33540
33541 2007-05-19  Bruno Haible  <bruno@clisp.org>
33542
33543         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33545
33546 2007-05-19  Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/float_.h: New file.
33549         * m4/float_h.m4: New file.
33550         * modules/float: New file.
33551         * modules/isnanl (Dependencies): Add float.
33552         * modules/isnanl-nolibm (Dependencies): Likewise.
33553         * modules/mathl (Dependencies): Likewise.
33554         * modules/printf-frexpl (Dependencies): Likewise.
33555         * modules/signbit (Dependencies): Likewise.
33556         * modules/vasnprintf (Dependencies): Likewise.
33557         * doc/headers/float.texi: Update.
33558
33559 2007-05-19  Jim Meyering  <jim@meyering.net>
33560
33561         * lib/utimens.c (gl_futimens): Rename from futimens,
33562         now that glibc-2.6 declares futimens.
33563         * lib/utimens.h: Likewise.
33564
33565 2007-05-19  Bruno Haible  <bruno@clisp.org>
33566
33567         Avoid test failures on mingw.
33568         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33569         * tests/test-printf-posix.sh: Likewise.
33570         * tests/test-vfprintf-posix.sh: Likewise.
33571         * tests/test-vprintf-posix.sh: Likewise.
33572
33573 2007-05-19  Bruno Haible  <bruno@clisp.org>
33574
33575         Fix *printf result for NaN, Inf, -0.0 on mingw.
33576         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33577         * lib/vasnprintf.c: Include math.h and isnan.h.
33578         (is_infinite_or_zero): New function.
33579         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33580         values in the %f, %F, %e, %E, %g, %G directives.
33581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33583         gl_PRINTF_INFINITE and test its result. Invoke
33584         gl_PREREQ_VASNPRINTF_INFINITE.
33585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33592         * doc/functions/fprintf.texi: Update.
33593         * doc/functions/printf.texi: Update.
33594         * doc/functions/snprintf.texi: Update.
33595         * doc/functions/sprintf.texi: Update.
33596         * doc/functions/vfprintf.texi: Update.
33597         * doc/functions/vprintf.texi: Update.
33598         * doc/functions/vsnprintf.texi: Update.
33599         * doc/functions/vsprintf.texi: Update.
33600
33601 2007-05-19  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33604         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33605         Instead of multiplying with 10^k, set extra_zeroes to k.
33606         (scale10_round_long_double): Remove function.
33607
33608 2007-05-18  Bruno Haible  <bruno@clisp.org>
33609
33610         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33611         introduced on 2007-05-06.
33612
33613 2007-05-18  Bruno Haible  <bruno@clisp.org>
33614
33615         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33616         %g directives.
33617         * tests/test-vasprintf-posix.c (test_function): Likewise.
33618         * tests/test-snprintf-posix.h (test_function): Likewise.
33619         * tests/test-sprintf-posix.h (test_function): Likewise.
33620
33621 2007-05-18  Bruno Haible  <bruno@clisp.org>
33622
33623         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33624         (strmatch): New function.
33625         (test_function): Test the %f directive on numbers of various exponents.
33626         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33627         (strmatch): New function.
33628         (test_function): Test the %f directive on numbers of various exponents.
33629         * tests/test-snprintf-posix.h (strmatch): New function.
33630         (test_function): Test the %f directive on numbers of various exponents.
33631         * tests/test-sprintf-posix.h (strmatch): New function.
33632         (test_function): Test the %f directive on numbers of various exponents.
33633         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33634         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33635         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33636         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33637
33638 2007-05-18  Bruno Haible  <bruno@clisp.org>
33639
33640         Add support for 'long double' number output.
33641         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33642         * lib/vasnprintf.c: Include math.h and float+.h.
33643         (mp_limb_t): New type.
33644         (GMP_LIMB_BITS): New macro.
33645         (mp_twolimb_t): New type.
33646         (GMP_TWOLIMB_BITS): New macro.
33647         (mpn_t): New type.
33648         (multiply, divide, convert_to_decimal, decode_long_double,
33649         scale10_round_long_double, scale10_round_decimal_long_double,
33650         floorlog10l): New functions.
33651         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33652         for the %f, %F, %e, %E, %g, %G directives.
33653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33655         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33656         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33664         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33665         * modules/snprintf-posix (Depends-on): Likewise.
33666         * modules/sprintf-posix (Depends-on): Likewise.
33667         * modules/vasnprintf-posix (Depends-on): Likewise.
33668         * modules/vasprintf-posix (Depends-on): Likewise.
33669         * modules/vfprintf-posix (Depends-on): Likewise.
33670         * modules/vsnprintf-posix (Depends-on): Likewise.
33671         * modules/vsprintf-posix (Depends-on): Likewise.
33672         * modules/vasnprintf (Files): Add lib/float+.h.
33673         * doc/functions/fprintf.texi: Update.
33674         * doc/functions/printf.texi: Update.
33675         * doc/functions/snprintf.texi: Update.
33676         * doc/functions/sprintf.texi: Update.
33677         * doc/functions/vfprintf.texi: Update.
33678         * doc/functions/vprintf.texi: Update.
33679         * doc/functions/vsnprintf.texi: Update.
33680         * doc/functions/vsprintf.texi: Update.
33681
33682 2007-05-18  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33685
33686 2007-05-18  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33689         for printing 64-bit integers. Needed for mingw.
33690
33691 2007-05-18  Bruno Haible  <bruno@clisp.org>
33692
33693         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33694         gl_FUNC_FREXPL_WORKS.
33695         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33696
33697 2007-05-18  Bruno Haible  <bruno@clisp.org>
33698
33699         * modules/frexpl-nolibm-tests: New file.
33700
33701         * modules/frexpl-nolibm: New file.
33702         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33703
33704 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33705
33706         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33707         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33708         GCC 4.2, which otherwise issues a lot of warnings.
33709         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33710         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33711         Likewise.
33712         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33713         * modules/iconv_open (iconv.h): Likewise.
33714         * modules/locale (locale.h): Likewise.
33715         * modules/netinet_in (netinet/in.h): Likewise.
33716         * modules/sys_select (sys_select.h): Likewise.
33717         * modules/sys_socket (sys/socket.h): Likewise.
33718         * modules/sys_stat (sys/stat.h): Likewise.
33719         * modules/sysexits (sysexits.h): Likewise.
33720         * modules/unistd (unistd.h): Likewise.
33721
33722 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33723
33724         * modules/closein-tests (Makefile.am): Distribute
33725         `test-closein.sh'.
33726
33727 2007-05-17  Bruno Haible  <bruno@clisp.org>
33728
33729         * tests/test-printf-posix.output: Renamed from
33730         tests/test-fprintf-posix.out.
33731         * modules/fprintf-posix-tests: Update.
33732         * modules/printf-posix-tests: Update.
33733         * modules/vfprintf-posix-tests: Update.
33734         * modules/vprintf-posix-tests: Update.
33735         * tests/test-fprintf-posix.sh: Update.
33736         * tests/test-printf-posix.sh: Update.
33737         * tests/test-vfprintf-posix.sh: Update.
33738         * tests/test-vprintf-posix.sh: Update.
33739         Reported by Ralf Wildenhues.
33740
33741 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33742
33743         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33744         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33745         GCC 4.2, which otherwise issues a lot of warnings.
33746         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33747         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33748         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33749         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33750         it should no longer be needed.
33751         * lib/string_.h: Likewise.
33752         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33753         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33754         * modules/inttypes (inttypes.h): Likewise.
33755         * modules/math (math.h): Likewise.
33756         * modules/search (search.h): Likewise.
33757         * modules/signal (signal.h): Likewise.
33758         * modules/stdint (stdint.h): Likewise.
33759         * modules/stdio (stdio.h): Likewise.
33760         * modules/stdlib (stdlib.h): Likewise.
33761         * modules/string (string.h): Likewise.
33762         * modules/sys_time (sys/time.h): Likewise.
33763         * modules/time (time.h): Likewise.
33764         * modules/wchar (wchar.h): Likewise.
33765         * modules/wctype (wtype.h): Likewise.
33766
33767 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33768
33769         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33770
33771 2007-05-13  Bruno Haible  <bruno@clisp.org>
33772
33773         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33774         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33775         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33776         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33777         (gl_PREREQ_STRTOK_R): Don't require it here.
33778
33779 2007-05-13  Bruno Haible  <bruno@clisp.org>
33780
33781         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33782         when used in C++ mode.
33783
33784 2007-05-12  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/linebuffer.h: Tweak doc.
33787         * lib/linebuffer.c: Likewise.
33788
33789 2007-05-12  James Youngman  <jay@gnu.org>
33790
33791         * lib/linebuffer.c (readlinebuffer_delim): New function,
33792         like readlinebuffer, but use a caller-specified delimiter.
33793         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33794         as the delimiter.
33795         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33796
33797 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33798
33799         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33800         * modules/openat (Files): Remove openat-die.c.
33801         (Depends-on): Add openat-die.
33802         * modules/openat-die: New module.
33803
33804 2007-05-06  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33807         Update with info about Cygwin.
33808         * doc/functions/fprintf.texi: Update.
33809         * doc/functions/printf.texi: Update.
33810         * doc/functions/snprintf.texi: Update.
33811         * doc/functions/sprintf.texi: Update.
33812         * doc/functions/vfprintf.texi: Update.
33813         * doc/functions/vprintf.texi: Update.
33814         * doc/functions/vsnprintf.texi: Update.
33815         * doc/functions/vsprintf.texi: Update.
33816         Reported by Eric Blake.
33817
33818 2007-05-06  Bruno Haible  <bruno@clisp.org>
33819
33820         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33821         padding ourselves for the floating-point directives.
33822         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33825         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33826         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33827         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33831         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33834         * tests/test-snprintf-posix.h (test_function): Also check the width
33835         and some flags in the %f directive.
33836         * tests/test-sprintf-posix.h (test_function): Likewise.
33837         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33838         * tests/test-vasprintf-posix.c (test_function): Likewise.
33839         * doc/functions/fprintf.texi: Update.
33840         * doc/functions/printf.texi: Update.
33841         * doc/functions/snprintf.texi: Update.
33842         * doc/functions/sprintf.texi: Update.
33843         * doc/functions/vfprintf.texi: Update.
33844         * doc/functions/vprintf.texi: Update.
33845         * doc/functions/vsnprintf.texi: Update.
33846         * doc/functions/vsprintf.texi: Update.
33847
33848 2007-05-06  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33851         pass the ' flag character to sprintf or snprintf.
33852         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33855         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33856         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33858         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33859         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33864         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33865         flag.
33866         * tests/test-sprintf-posix.h (test_function): Likewise.
33867         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33868         * tests/test-vasprintf-posix.c (test_function): Likewise.
33869         * doc/functions/fprintf.texi: Update.
33870         * doc/functions/printf.texi: Update.
33871         * doc/functions/snprintf.texi: Update.
33872         * doc/functions/sprintf.texi: Update.
33873         * doc/functions/vfprintf.texi: Update.
33874         * doc/functions/vprintf.texi: Update.
33875         * doc/functions/vsnprintf.texi: Update.
33876         * doc/functions/vsprintf.texi: Update.
33877
33878 2007-05-01  Bruno Haible  <bruno@clisp.org>
33879
33880         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33881
33882 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33883
33884         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33885         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33886
33887 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33888
33889         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33890         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33892
33893 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33894
33895         * lib/argp-help.c (struct hol_entry): New member `ord'.
33896         (HOL_ENTRY_PTRCMP): Use ord for comparison
33897         (hol_sort): Initialize ord.
33898
33899 2007-05-01  Bruno Haible  <bruno@clisp.org>
33900
33901         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33902         Reported by Eric Blake.
33903         * doc/gnulib.texi (Function Substitutes): Update.
33904
33905 2007-05-01  Bruno Haible  <bruno@clisp.org>
33906
33907         * doc/functions.texi: Remove file, now redundant through
33908         doc/functions/*.texi.
33909
33910 2007-05-01  Bruno Haible  <bruno@clisp.org>
33911
33912         * modules/argp (Depends-on): Add sleep.
33913
33914 2007-05-01  Bruno Haible  <bruno@clisp.org>
33915
33916         * modules/sleep-tests: New file.
33917         * tests/test-sleep.c: New file.
33918
33919         * modules/sleep: New file.
33920         * lib/sleep.c: New file.
33921         * m4/sleep.m4: New file.
33922         * lib/unistd_.h (sleep): New declaration.
33923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33924         HAVE_SLEEP.
33925         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33926         * doc/functions/sleep.texi: Document the sleep module.
33927
33928 2007-05-01  Bruno Haible  <bruno@clisp.org>
33929
33930         * lib/sigprocmask.h: Remove file.
33931         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33932         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33933         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33934         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33935         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33936         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33937         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33938         HAVE_SIGSET_T as a shell variable.
33939         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33940         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33941         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33942         (Depends-on): Add signal. Remove verify.
33943         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33944         (Include): Mention <signal.h> instead of sigprocmask.h.
33945         * NEWS: Mention the change.
33946         * lib/fatal-signal.c: Don't include sigprocmask.h.
33947
33948 2007-05-01  Bruno Haible  <bruno@clisp.org>
33949
33950         * modules/signal: New file.
33951         * lib/signal_.h: New file.
33952         * m4/signal_h.m4: New file.
33953
33954 2007-05-01  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33957         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33958         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33959         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33960
33961 2007-05-01  Bruno Haible  <bruno@clisp.org>
33962
33963         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33964         configure time.
33965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33966         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33967         * modules/sys_stat (Makefile.am): Substitute their values into
33968         sys/stat.h.
33969
33970 2007-05-01  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33973         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33974         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33975
33976 2007-05-01  Bruno Haible  <bruno@clisp.org>
33977
33978         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33979         'assert' module here.
33980
33981 2007-05-01  Bruno Haible  <bruno@clisp.org>
33982
33983         * doc/functions/*.texi: New files.
33984         * doc/functions/google-ranking.txt: New file.
33985         * doc/gnulib.texi (Function Substitutes): New chapter.
33986         (ctime, inet_ntoa): Remove sections.
33987         * doc/ctime.texi: Remove file.
33988         * doc/inet_ntoa.texi: Remove file.
33989         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33990         dependencies.
33991         (%.info): New rule, specifying a --reference-limit.
33992
33993 2007-05-01  Bruno Haible  <bruno@clisp.org>
33994
33995         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33996
33997 2007-05-01  Bruno Haible  <bruno@clisp.org>
33998
33999         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34000         the portability of 'mkdir' to mingw systems.
34001
34002 2007-05-01  Bruno Haible  <bruno@clisp.org>
34003
34004         * doc/headers/google-ranking.txt: New file.
34005
34006 2007-04-30  Eric Blake  <ebb9@byu.net>
34007
34008         Prefer fseeko to fseek.
34009         * modules/getpass (Depends-on): Add fseeko.
34010         * lib/getpass.c (getpass): Use fseeko, not fseek.
34011
34012 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34013
34014         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34015         assumes the sorting is stable, while most qsort implementations
34016         are not.  Use argument addresses to ensure they never compare as
34017         equal.
34018
34019         * tests/test-argp-2.sh (usage-indent test): Fix output
34020         (func_compare): Restore diff options
34021         * tests/test-argp.c: Restore #include "progname.h"
34022
34023 2007-04-29  Bruno Haible  <bruno@clisp.org>
34024
34025         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34027         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34029         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34030         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34031         (TESTS, check_PROGRAMS): Add test-snprintf.
34032         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34033         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34034         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34035         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34036         assertions that fail on HP-UX, OSF/1, or IRIX.
34037         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34038
34039 2007-04-29  Bruno Haible  <bruno@clisp.org>
34040
34041         * MODULES.html.sh (posix_functions): Remove 'contents'.
34042
34043 2007-04-29  Karl Berry  <karl@gnu.org>
34044
34045         * config/srclist.txt (gendocs_template_min): new entry.
34046
34047 2007-04-29  Bruno Haible  <bruno@clisp.org>
34048
34049         Work around fpurge bug on BSD systems.
34050         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34051         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34052         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34053         fpurge to rpl_fpurge if the system already has this function.
34054         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34055         the case where the system already has this function. Correct invariants
34056         on BSD systems.
34057         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34058         BSD systems.
34059
34060 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34061
34062         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34063         proposed by Sven Verdoolaege.
34064
34065         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34066         options.
34067         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34068         (usage and help tests): Update
34069
34070 2007-04-29  Bruno Haible  <bruno@clisp.org>
34071
34072         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34073         Print more information in case of failure. Disable a test on BeOS.
34074
34075 2007-04-29  Bruno Haible  <bruno@clisp.org>
34076
34077         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34078         This helps debugging on systems on which no gdb is available.
34079
34080 2007-04-29  Bruno Haible  <bruno@clisp.org>
34081
34082         * lib/freading.h: Improve comments.
34083         * lib/fwriting.h: Likewise.
34084         * tests/test-freading.c (main): Don't check freading immediately after
34085         repositioning. Needed for glibc.
34086
34087 2007-04-29  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/freading.c (freading): Trivial simplification.
34090
34091 2007-04-28  Bruno Haible  <bruno@clisp.org>
34092
34093         * tests/test-fwriting.c (main): Also test the interaction between
34094         fflush and fwriting.
34095         * modules/fwriting-tests (Depends-on): Add fflush.
34096
34097         * tests/test-freading.c (main): Also test the interaction between
34098         fflush and freading.
34099         * modules/freading-tests (Depends-on): Add fflush.
34100
34101 2007-04-28  Bruno Haible  <bruno@clisp.org>
34102
34103         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34104         fseeko and ftello.
34105         Suggested by Eric Blake.
34106
34107 2007-04-28  Jim Meyering  <jim@meyering.net>
34108
34109         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34110         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34111         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34112
34113 2007-04-27  Eric Blake  <ebb9@byu.net>
34114
34115         * doc/headers/assert.texi (assert.h): Document assert module use.
34116
34117 2007-04-27  Bruno Haible  <bruno@clisp.org>
34118
34119         * doc/headers/*.texi: New files.
34120         * doc/gnulib.texi (Header File Substitutes): New chapter.
34121         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34122         dependencies.
34123         (standards.info ,standards.html, standards.dvi): Update dependencies.
34124         (mostlyclean, clean): New targets.
34125
34126 2007-04-27  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34129         * modules/sysexits (Files, Makefile.am): Update.
34130
34131         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34132         * modules/sys_socket (Files, Makefile.am): Update.
34133
34134         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34135         * modules/sys_stat (Files, Makefile.am): Update.
34136
34137 2007-04-27  Eric Blake  <ebb9@byu.net>
34138
34139         * lib/freading.h: Improve comments.
34140         * lib/fwriting.h: Likewise.
34141         * lib/fflush.c: Likewise.
34142
34143         Fix closein for mingw.
34144         * modules/closein-tests: Add tests for closein.
34145         * tests/test-closein.c: New file.
34146         * tests/test-closein.sh: Likewise.
34147         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34148         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34149
34150 2007-04-27  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34153         version is < 6.
34154         * lib/math_.h [__DECC]: Likewise.
34155         * lib/stdio_.h [__DECC]: Likewise.
34156         * lib/stdlib_.h [__DECC]: Likewise.
34157         * lib/string_.h [__DECC]: Likewise.
34158         * lib/time_.h [__DECC]: Likewise.
34159         * lib/wchar_.h [__DECC]: Likewise.
34160         * lib/wctype_.h [__DECC]: Likewise.
34161
34162 2007-04-27  Bruno Haible  <bruno@clisp.org>
34163
34164         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34165
34166 2007-04-27  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/fflush.c: Add comments.
34169         * modules/fpurge-tests (Depends-on): Add fflush.
34170         * modules/freadable-tests (Depends-on): Likewise.
34171         * modules/fwritable-tests (Depends-on): Likewise.
34172
34173 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34174
34175         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34176         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34177         Report by Bruno Haible <bruno@clisp.org>.
34178
34179 2007-04-26  Eric Blake  <ebb9@byu.net>
34180
34181         Fix fflush on mingw.
34182         * modules/fflush (Depends-on): Add freading.
34183         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34184         but unread data.
34185
34186 2007-04-26  Eric Blake  <ebb9@byu.net>
34187         and Bruno Haible  <bruno@clisp.org>
34188
34189         Implement freading and fwriting.
34190         * lib/freading.c: New file.
34191         * lib/freading.h: Likewise.
34192         * m4/freading.m4: Likewise.
34193         * modules/freading: Likewise.
34194         * modules/freading-tests: Likewise.
34195         * tests/test-freading.c: Likewise.
34196         * lib/fwriting.c: New file.
34197         * lib/fwriting.h: Likewise.
34198         * m4/fwriting.m4: Likewise.
34199         * modules/fwriting: Likewise.
34200         * modules/fwriting-tests: Likewise.
34201         * tests/test-fwriting.c: Likewise.
34202         * MODULES.html.sh (File stream based Input/Output): Mention them.
34203
34204 2007-04-26  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34207         'long' when we assume it.
34208         Suggested by Eric Blake.
34209
34210 2007-04-26  Bruno Haible  <bruno@clisp.org>
34211
34212         Ensure fseeko, ftello are declared on glibc systems.
34213         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34214         * modules/fseeko (configure.ac-early): Likewise.
34215         * modules/ftello (configure.ac-early): Likewise.
34216         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34217         AC_FUNC_FSEEKO for this.
34218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34219         (gl_CHECK_FSEEKO): Remove macro.
34220
34221 2007-04-26  Bruno Haible  <bruno@clisp.org>
34222
34223         * tests/test-fflush.c (main): Also check the ftell result after
34224         fflush and fseek/fseeko.
34225         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34226         file descriptor position cache in the stream.
34227         * lib/fseeko.c (rpl_fseeko): Likewise.
34228
34229 2007-04-26  Bruno Haible  <bruno@clisp.org>
34230
34231         * modules/fflush-tests (Depends-on): Add fseeko.
34232
34233 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34234             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34235
34236         * lib/argz_.h: ensure error_t definition is obtained in same
34237         mechanism system argz.h would have.
34238         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34239         argz facilities are known bad.  Err on the side of caution if
34240         cross-compiling.
34241
34242 2007-04-25  Eric Blake  <ebb9@byu.net>
34243
34244         * lib/fpurge.c (includes): Use stdlib.h for free.
34245         * tests/test-fflush.c (main): Also test fflush-fseeko.
34246
34247 2007-04-25  Bruno Haible  <bruno@clisp.org>
34248
34249         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34250         * lib/fseeko.c: New file.
34251         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34252         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34253         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34254         gl_FUNC_FSEEKO.
34255         (gl_FUNC_FSEEKO): Invoke it.
34256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34257         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34258         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34259
34260 2007-04-25  Bruno Haible  <bruno@clisp.org>
34261
34262         * modules/fflush (Depends-on): Add ftello.
34263
34264 2007-04-25  Bruno Haible  <bruno@clisp.org>
34265
34266         * modules/ftello-tests: New file.
34267         * tests/test-ftello.c: New file.
34268
34269         * modules/ftello: New file.
34270         * m4/ftello.m4: New file.
34271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34272         HAVE_FTELLO.
34273         * lib/stdio_.h (ftello): New declaration.
34274         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34275         HAVE_FTELLO.
34276
34277 2007-04-25  Bruno Haible  <bruno@clisp.org>
34278
34279         * modules/fseeko-tests: New file.
34280         * tests/test-fseeko.c: New file.
34281
34282         * modules/fseeko: New file.
34283         * m4/fseeko.m4: New file.
34284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34285         HAVE_FSEEKO.
34286         * lib/stdio_.h (fseeko): New declaration.
34287         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34288         HAVE_FSEEKO.
34289
34290 2007-04-25  Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34293
34294 2007-04-25  Bruno Haible  <bruno@clisp.org>
34295
34296         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34297         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34298         * tests/test-unistd.c: Likewise.
34299         * tests/test-fcntl.c: Likewise.
34300
34301 2007-04-23  Eric Blake  <ebb9@byu.net>
34302
34303         * lib/fflush.c: Fix missing include.
34304         Reported by Bruno Haible.
34305
34306 2007-04-23  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34309         Reported by Eric Blake.
34310
34311 2007-04-23  Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34314
34315 2007-04-23  Bruno Haible  <bruno@clisp.org>
34316
34317         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34318
34319 2007-04-23  Bruno Haible  <bruno@clisp.org>
34320
34321         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34322         Needed on HP-UX 11.
34323
34324 2007-04-16  Eric Blake  <ebb9@byu.net>
34325
34326         Make fflush rely on fpurge.
34327         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34328         open coding all variants.
34329         * modules/fflush (Depends-on): Add fpurge and unistd.
34330         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34331         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34332
34333         Fix --with-tests compilation on cygwin.
34334         * modules/argmatch-tests (Makefile.am): List gnulib library first
34335         in LDADD.
34336         * modules/argp-tests (Makefile.am): Likewise.
34337         * modules/array-list-tests (Makefile.am): Likewise.
34338         * modules/array-oset-tests (Makefile.am): Likewise.
34339         * modules/avltree-list-tests (Makefile.am): Likewise.
34340         * modules/avltree-oset-tests (Makefile.am): Likewise.
34341         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34342         * modules/carray-list-tests (Makefile.am): Likewise.
34343         * modules/dirname-tests (Makefile.am): Likewise.
34344         * modules/frexp-tests (Makefile.am): Likewise.
34345         * modules/isnanl-tests (Makefile.am): Likewise.
34346         * modules/linked-list-tests (Makefile.am): Likewise.
34347         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34348         * modules/lock-tests (Makefile.am): Likewise.
34349         * modules/rbtree-list-tests (Makefile.am): Likewise.
34350         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34351         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34352         * modules/tls-tests (Makefile.am): Likewise.
34353         * modules/tsearch-tests (Makefile.am): Likewise.
34354         * modules/xvasprintf-tests (Makefile.am): Likewise.
34355
34356         Fix fpurge for cygwin.
34357         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34358         value.
34359         * modules/fpurge-tests (Depends-on): Clean up trash.
34360
34361 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34362
34363         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34364
34365         * m4/autobuild.m4: Re-indent.
34366
34367 2007-04-13  Bruno Haible  <bruno@clisp.org>
34368
34369         * modules/fpurge-tests: New file.
34370         * tests/test-fpurge.c: New file.
34371
34372         * modules/fpurge: New file.
34373         * lib/fpurge.h: New file.
34374         * lib/fpurge.c: New file.
34375         * m4/fpurge.m4: New file.
34376
34377 2007-04-13  Bruno Haible  <bruno@clisp.org>
34378
34379         * modules/fbufmode-tests: New file.
34380         * tests/test-fbufmode.c: New file.
34381
34382         * modules/fbufmode: New file.
34383         * lib/fbufmode.h: New file.
34384         * lib/fbufmode.c: New file.
34385         * m4/fbufmode.m4: New file.
34386
34387 2007-04-13  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/fwritable-tests: New file.
34390         * tests/test-fwritable.c: New file.
34391
34392         * modules/fwritable: New file.
34393         * lib/fwritable.h: New file.
34394         * lib/fwritable.c: New file.
34395         * m4/fwritable.m4: New file.
34396
34397 2007-04-13  Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/freadable-tests: New file.
34400         * tests/test-freadable.c: New file.
34401
34402         * modules/freadable: New file.
34403         * lib/freadable.h: New file.
34404         * lib/freadable.c: New file.
34405         * m4/freadable.m4: New file.
34406
34407 2007-04-13  Bruno Haible  <bruno@clisp.org>
34408
34409         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34410         MOSTLYCLEANFILES.
34411
34412 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34413
34414         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34415         gzip bootstrap.conf to avoid dragging in i18n machinery.
34416         (gnulib_tool_option): Use it.
34417
34418 2007-04-13  Bruno Haible  <bruno@clisp.org>
34419
34420         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34421         %F directives.
34422         * tests/test-vasprintf-posix.c (test_function): Likewise.
34423         * tests/test-snprintf-posix.h (test_function): Likewise.
34424         * tests/test-sprintf-posix.h (test_function): Likewise.
34425         * tests/test-fprintf-posix.h (test_function): Likewise.
34426         * tests/test-printf-posix.h (test_function): Likewise.
34427         * tests/test-fprintf-posix.out: Likewise.
34428
34429 2007-04-13  Bruno Haible  <bruno@clisp.org>
34430
34431         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34432         * modules/tls-tests (configure.ac): Likewise.
34433         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34434
34435 2007-04-13  Bruno Haible  <bruno@clisp.org>
34436
34437         * lib/tls.c (glthread_tls_get): Fix return type.
34438         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34439
34440 2007-04-12  Eric Blake  <ebb9@byu.net>
34441
34442         * modules/gettime (Depends-on): Remove gettime.
34443         Reported by Dmitry V. Levin.
34444
34445 2007-04-12  Bruno Haible  <bruno@clisp.org>
34446
34447         * modules/fflush (Include): Mention <stdio.h>.
34448         * modules/strtoimax (Include): Mention <inttypes.h>.
34449         * modules/strtoumax (Include): Likewise.
34450
34451 2007-04-12  Eric Blake  <ebb9@byu.net>
34452
34453         * .cvsignore: New file.
34454         * .gitignore: Likewise.
34455
34456 2007-04-12  Bruno Haible  <bruno@clisp.org>
34457
34458         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34459         not before, since $(LDADD) often contains libgnu.a.
34460         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34461         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34462         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34463         Needed on Cygwin.
34464
34465 2007-04-12  Eric Blake  <ebb9@byu.net>
34466
34467         Work around glibc's failure to flush stdin on fclose.
34468         * lib/closein.c (close_stdin): Flush stdin before closing.
34469
34470         Work around glibc's failure to reset seekable stdin on exit.
34471         * modules/closein: New module.
34472         * lib/closein.c: New file.
34473         * lib/closein.h: Likewise.
34474         * m4/closein.m4: Likewise.
34475         * MODULES.html.sh (File stream based Input/Output): Document it.
34476
34477 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34478
34479         * gnulib-tool: Rename generated 'autobuild' script to
34480         'do-autobuild' in --create-megatestdir output.
34481
34482         * doc/gnulib.texi (Build robot for gnulib): Fix.
34483
34484 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34485
34486         * modules/sysexits (Depends-on): Add absolute-header.
34487
34488 2007-04-12  Eric Blake  <ebb9@byu.net>
34489
34490         No need to preserve errno on success.
34491         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34492         Reported by Bruno Haible.
34493
34494 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34495
34496         * MODULES.html.sh (Support for maintaining and releasing
34497         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34498
34499 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34500
34501         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34502
34503 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34504
34505         * modules/autobuild: New module.
34506
34507         * m4/autobuild.m4: New file.
34508
34509 2007-04-11  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34512         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34516         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34517         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34519         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34520         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34522         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34523         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34524         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34525         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34526         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34528         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34529         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34530         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34531         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34532         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34534         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34535         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34537         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34538         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34539         Reported by Eric Blake.
34540
34541 2007-04-11  Bruno Haible  <bruno@clisp.org>
34542
34543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34544
34545 2007-04-10  Bruno Haible  <bruno@clisp.org>
34546
34547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34548         for NaN and Infinity. Needed on FreeBSD 6.1.
34549         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34550         regarding results for "%010a" of Infinity and NaN.
34551         * tests/test-vasprintf-posix.c (test_function): Likewise.
34552         * tests/test-snprintf-posix.h (test_function): Likewise.
34553         * tests/test-sprintf-posix.h (test_function): Likewise.
34554         * tests/test-fprintf-posix.h (test_function): Likewise.
34555         * tests/test-printf-posix.h (test_function): Likewise.
34556         * tests/test-fprintf-posix.out: Likewise.
34557
34558 2007-04-10  Bruno Haible  <bruno@clisp.org>
34559
34560         * modules/locale-tests: New file.
34561         * tests/test-locale.c: New file.
34562
34563         * modules/locale: New file.
34564         * lib/locale_.h: New file.
34565         * m4/locale_h.m4: New file.
34566
34567 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34568             Bruno Haible  <bruno@clisp.org>
34569
34570         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34571         be determined, test for availability of the copysignf, copysign,
34572         copysignl functions.
34573         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34574         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34575         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34576
34577 2007-04-09  Eric Blake  <ebb9@byu.net>
34578
34579         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34580         * modules/stdio (Makefile.am): Support fflush.
34581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34582         * modules/fflush: New file.
34583         * lib/fflush.c: Likewise.
34584         * m4/fflush.m4: Likewise.
34585         * modules/fflush-tests: New test.
34586         * tests/test-fflush.c: Likewise.
34587         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34588
34589 2007-04-06  Bruno Haible  <bruno@clisp.org>
34590
34591         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34592         (VASNPRINTF): Use signbit for faster determination whether to print a
34593         minus sign.
34594         * modules/vasnprintf (Files): Remove lib/float+.h.
34595         * modules/fprintf-posix (Depends-on): Add signbit.
34596         * modules/snprintf-posix (Depends-on): Likewise.
34597         * modules/sprintf-posix (Depends-on): Likewise.
34598         * modules/vasnprintf-posix (Depends-on): Likewise.
34599         * modules/vasprintf-posix (Depends-on): Likewise.
34600         * modules/vfprintf-posix (Depends-on): Likewise.
34601         * modules/vsnprintf-posix (Depends-on): Likewise.
34602         * modules/vsprintf-posix (Depends-on): Likewise.
34603
34604 2007-04-06  Bruno Haible  <bruno@clisp.org>
34605
34606         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34607         * tests/test-frexpl.c (main): Likewise.
34608         * tests/test-ldexpl.c (main): Likewise.
34609         * modules/frexp-tests (Depends-on): Add signbit.
34610         * modules/frexpl-tests (Depdends-on): Likewise.
34611         * modules/ldexpl-tests (Depdends-on): Likewise.
34612
34613 2007-04-06  Bruno Haible  <bruno@clisp.org>
34614
34615         * modules/signbit-tests: New file.
34616         * tests/test-signbit.c: New file.
34617
34618         * modules/signbit: New file.
34619         * lib/signbitf.c: New file.
34620         * lib/signbitd.c: New file.
34621         * lib/signbitl.c: New file.
34622         * m4/signbit.m4: New file.
34623         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34624         (signbit): New macro.
34625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34626         REPLACE_SIGNBIT.
34627         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34628         REPLACE_FREXPL into math.h.
34629
34630 2007-04-06  Bruno Haible  <bruno@clisp.org>
34631
34632         * modules/isnanf-nolibm-tests: New file.
34633         * tests/test-isnanf.c: New file.
34634
34635         * modules/isnanf-nolibm: New file.
34636         * lib/isnanf.h: New file.
34637         * lib/isnanf.c: New file.
34638         * lib/isnan.c: Consider the USE_FLOAT macro.
34639         * m4/isnanf.m4: New file.
34640
34641 2007-04-06  Bruno Haible  <bruno@clisp.org>
34642
34643         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34644         (Link): New section.
34645
34646         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34647
34648 2007-04-06  Bruno Haible  <bruno@clisp.org>
34649
34650         Assume the 'long double' type.
34651         * m4/longdouble.m4: Remove file.
34652         * config/srclist.txt: Don't mention longdouble.m4.
34653         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34654         * lib/float+.h: Likewise.
34655         * lib/frexp.c: Likewise.
34656         * lib/printf-args.h: Likewise.
34657         * lib/printf-args.c: Likewise.
34658         * lib/printf-frexp.c: Likewise.
34659         * lib/printf-parse.c: Likewise.
34660         * lib/vasnprintf.c: Likewise.
34661         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34662         * m4/intl.m4: Likewise.
34663         * m4/isnanl.m4: Likewise.
34664         * m4/printf.m4: Likewise.
34665         * m4/printf-frexpl.m4: Likewise.
34666         * m4/vasnprintf.m4: Likewise.
34667         * modules/allocsa (Files): Remove m4/longdouble.m4.
34668         * modules/gettext (Files): Likewise.
34669         * modules/relocatable-prog-wrapper (Files): Likewise.
34670         * modules/vasnprintf (Files): Likewise.
34671         * modules/isnanl (Files): Likewise.
34672         (Include): Simplify.
34673         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34674         (Include): Simplify.
34675         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34676         (Include): Simplify.
34677         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34678         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34679         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34680         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34681         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34682         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34683         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34684         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34685         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34686         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34687         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34688         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34689         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34690         * tests/test-isnanl.c: Likewise.
34691         * tests/test-snprintf-posix.h: Likewise.
34692         * tests/test-sprintf-posix.h: Likewise.
34693         * tests/test-vasnprintf-posix.c: Likewise.
34694         * tests/test-vasnprintf-posix2.c: Likewise.
34695         * tests/test-vasprintf-posix.c: Likewise.
34696
34697 2007-04-06  Bruno Haible  <bruno@clisp.org>
34698
34699         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34700         * lib/math_.h [__DECC]: Include the overridden include file through
34701         #include_next, outside the double-inclusion guard.
34702         * lib/stdio_.h [__DECC]: Likewise.
34703         * lib/stdlib_.h [__DECC]: Likewise.
34704         * lib/string_.h [__DECC]: Likewise.
34705         * lib/time_.h [__DECC]: Likewise.
34706         * lib/wchar_.h [__DECC]: Likewise.
34707         * lib/wctype_.h [__DECC]: Likewise.
34708         * lib/inttypes_.h [__DECC]: Likewise.
34709         Reported by Albert Chin <china@thewrittenword.com> in
34710         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34711
34712 2007-04-04  Eric Blake  <ebb9@byu.net>
34713
34714         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34715         1.5.x.
34716
34717 2007-04-04  Bruno Haible  <bruno@clisp.org>
34718
34719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34720         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34721
34722 2007-04-04  Bruno Haible  <bruno@clisp.org>
34723
34724         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34725         results for "%010a" of Infinity and NaN.
34726         * tests/test-vasprintf-posix.c (test_function): Likewise.
34727         * tests/test-snprintf-posix.h (test_function): Likewise.
34728         * tests/test-sprintf-posix.h (test_function): Likewise.
34729         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34730         * tests/test-printf-posix.h (test_function): Likewise.
34731         * tests/test-fprintf-posix.out: Update.
34732         Needed for FreeBSD 6.1.
34733
34734 2007-04-04  Bruno Haible  <bruno@clisp.org>
34735
34736         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34737         directly used by the gnulib modules nor by gnulib-tool.
34738
34739 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34740
34741         * DEPENDENCIES: Give overall description of version dependency
34742         desirability.  Use more-typical names for apps.
34743         Add shell, coreutils, diffutils, grep, tar, gzip.
34744
34745 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34746
34747         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34748
34749 2007-04-04  Karl Berry  <karl@gnu.org>
34750
34751         * MODULES.html.sh (func_module): missing '.
34752
34753 2007-04-03  Bruno Haible  <bruno@clisp.org>
34754
34755         * modules/argmatch-tests (Makefile.am): New variable
34756         test_argmatch_LDADD.
34757         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34758         * modules/array-list-tests (Makefile.am): New variable
34759         test_array_list_LDADD.
34760         * modules/array-oset-tests (Makefile.am): New variable
34761         test_array_oset_LDADD.
34762         * modules/avltree-list-tests (Makefile.am): New variable
34763         test_avltree_list_LDADD.
34764         * modules/avltree-oset-tests (Makefile.am): New variable
34765         test_avltree_oset_LDADD.
34766         * modules/avltreehash-list-tests (Makefile.am): New variable
34767         test_avltreehash_list_LDADD.
34768         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34769         test_canonicalize_lgpl_LDADD.
34770         * modules/carray-list-tests (Makefile.am): New variable
34771         test_carray_list_LDADD.
34772         * modules/dirname-tests (Makefile.am): New variable
34773         test_dirname_LDADD.
34774         * modules/linked-list-tests (Makefile.am): New variable
34775         test_linked_list_LDADD.
34776         * modules/linkedhash-list-tests (Makefile.am): New variable
34777         test_linkedhash_list_LDADD.
34778         * modules/rbtree-list-tests (Makefile.am): New variable
34779         test_rbtree_list_LDADD.
34780         * modules/rbtree-oset-tests (Makefile.am): New variable
34781         test_rbtree_oset_LDADD.
34782         * modules/rbtreehash-list-tests (Makefile.am): New variable
34783         test_rbtreehash_list_LDADD.
34784         * modules/xvasprintf-tests (Makefile.am): New variable
34785         test_xvasprintf_LDADD.
34786         Reported by Eric Blake.
34787
34788 2007-04-03  Eric Blake  <ebb9@byu.net>
34789
34790         * DEPENDENCIES: Weaken m4 requirements.
34791
34792 2007-04-03  Bruno Haible  <bruno@clisp.org>
34793
34794         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34795         * modules/isnanl-tests (configure.ac): Likewise.
34796
34797 2007-04-03  Ben Pfaff  <blp@gnu.org>
34798
34799         * modules/iconv_open: Add $(srcdir)/ to source directory
34800         references in Makefile fragments that call gperf, to fix VPATH
34801         builds.
34802
34803 2007-04-03  Bruno Haible  <bruno@clisp.org>
34804
34805         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34806         * lib/ldexpl.c: Undo last change.
34807
34808 2007-04-03  Bruno Haible  <bruno@clisp.org>
34809
34810         * modules/printf-frexpl (Depends-on): Undo last change.
34811         (Files): Add m4/ldexpl.m4.
34812
34813 2007-04-03  Bruno Haible  <bruno@clisp.org>
34814
34815         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34816         * modules/isnanl (Link): New section.
34817
34818         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34819         * modules/frexp (Link): New section.
34820
34821         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34822         * modules/frexpl (Link): New section.
34823
34824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34825         * modules/ldexpl (Link): New section.
34826
34827 2007-04-03  Bruno Haible  <bruno@clisp.org>
34828
34829         * modules/TEMPLATE-EXTENDED: New file.
34830         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34831
34832 2007-04-03  Bruno Haible  <bruno@clisp.org>
34833
34834         * DEPENDENCIES: New file.
34835         Suggested by Simon Josefsson.
34836
34837 2007-04-03  Bruno Haible  <bruno@clisp.org>
34838
34839         * doc/gnulib.texi: Escape @.
34840
34841 2007-04-03  James Youngman  <jay@gnu.org>
34842         and Paul Eggert  <eggert@cs.ucla.edu>
34843
34844         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34845         birthtime on all systems that have birthtime, not just those which
34846         use st_birthtimensec rather than st_birthtim.  Putting zero in
34847         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34848         that the birth time is not available for files on an NFS mount.
34849
34850 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34851
34852         * modules/memxor: Move back from crypto/, suggested by Bruno.
34853         * modules/crypto/hmac-sha1: Fix memxor dependency.
34854
34855         * modules/crypto/gc: Moved from ../.
34856
34857 2007-04-02  Eric Blake  <ebb9@byu.net>
34858
34859         * lib/ldexpl.c (includes): Avoid libm.
34860
34861         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34862
34863 2007-04-02  Bruno Haible  <bruno@clisp.org>
34864
34865         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34866         on IRIX.
34867
34868 2007-04-02  Bruno Haible  <bruno@clisp.org>
34869
34870         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34871         x86 or x86_64 platforms running MacOS X.
34872         Reported by Ryan Schmidt <@ryandesign.com>.
34873
34874 2007-04-02  Bruno Haible  <bruno@clisp.org>
34875
34876         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34877         i386.
34878
34879 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34880
34881         * modules/crypto/arcfour: Moved from ../.
34882         * modules/crypto/arcfour-tests: Moved from ../.
34883         * modules/crypto/arctwo: Moved from ../.
34884         * modules/crypto/arctwo-tests: Moved from ../.
34885         * modules/crypto/des: Moved from ../.
34886         * modules/crypto/des-tests: Moved from ../.
34887         * modules/crypto/gc-arcfour: Moved from ../.
34888         * modules/crypto/gc-arcfour-tests: Moved from ../.
34889         * modules/crypto/gc-arctwo: Moved from ../.
34890         * modules/crypto/gc-arctwo-tests: Moved from ../.
34891         * modules/crypto/gc-des: Moved from ../.
34892         * modules/crypto/gc-des-tests: Moved from ../.
34893         * modules/crypto/gc-hmac-md5: Moved from ../.
34894         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34895         * modules/crypto/gc-hmac-sha1: Moved from ../.
34896         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34897         * modules/crypto/gc-md2: Moved from ../.
34898         * modules/crypto/gc-md2-tests: Moved from ../.
34899         * modules/crypto/gc-md4: Moved from ../.
34900         * modules/crypto/gc-md4-tests: Moved from ../.
34901         * modules/crypto/gc-md5: Moved from ../.
34902         * modules/crypto/gc-md5-tests: Moved from ../.
34903         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34904         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34905         * modules/crypto/gc-random: Moved from ../.
34906         * modules/crypto/gc-rijndael: Moved from ../.
34907         * modules/crypto/gc-rijndael-tests: Moved from ../.
34908         * modules/crypto/gc-sha1: Moved from ../.
34909         * modules/crypto/gc-sha1-tests: Moved from ../.
34910         * modules/crypto/gc-tests: Moved from ../.
34911         * modules/crypto/hmac-md5: Moved from ../.
34912         * modules/crypto/hmac-md5-tests: Moved from ../.
34913         * modules/crypto/hmac-sha1: Moved from ../.
34914         * modules/crypto/hmac-sha1-tests: Moved from ../.
34915         * modules/crypto/md2: Moved from ../.
34916         * modules/crypto/md2-tests: Moved from ../.
34917         * modules/crypto/md4: Moved from ../.
34918         * modules/crypto/md4-tests: Moved from ../.
34919         * modules/crypto/md5: Moved from ../.
34920         * modules/crypto/md5-tests: Moved from ../.
34921         * modules/crypto/memxor: Moved from ../.
34922         * modules/crypto/rijndael: Moved from ../.
34923         * modules/crypto/rijndael-tests: Moved from ../.
34924         * modules/crypto/sha1: Moved from ../.
34925
34926 2007-03-30  James Youngman  <jay@gnu.org>
34927
34928         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34929         rename() to change the ctime of a file (because ctime is unaffected
34930         by rename on jfs2 on AIX 5.1).
34931         (main): Start by doing cleanup, in case a previous run failed leaving
34932         test files behind.
34933
34934 2007-03-31  Bruno Haible  <bruno@clisp.org>
34935
34936         Support old proprietary implementations of iconv.
34937         * modules/iconv_open: New file.
34938         * lib/iconv_.h: New file.
34939         * m4/iconv_h.m4: New file.
34940         * lib/iconv_open.c: New file.
34941         * lib/iconv_open-aix.gperf: New file.
34942         * lib/iconv_open-hpux.gperf: New file.
34943         * lib/iconv_open-irix.gperf: New file.
34944         * lib/iconv_open-osf.gperf: New file.
34945         * m4/iconv_open.m4: New file.
34946         * modules/linebreak (Depends-on): Add iconv_open.
34947         * modules/striconv (Depends-on): Likewise.
34948         * modules/striconveh (Depends-on): Likewise.
34949         * modules/unicodeio (Depends-on): Likewise.
34950         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34951         (iconv_t)(-1).
34952         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34953         conversion if cd is (iconv_t)(-1).
34954         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34955         is not possible.
34956
34957 2007-03-31  Bruno Haible  <bruno@clisp.org>
34958
34959         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34960         work on Solaris either. Protect also second use of "autodetect_jp".
34961
34962 2007-03-31  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34965         the function is not present.
34966
34967 2007-03-31  Bruno Haible  <bruno@clisp.org>
34968
34969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34970         the function is not present.
34971
34972 2007-03-31  Bruno Haible  <bruno@clisp.org>
34973
34974         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34975         a bug in HP-UX iconv_open().
34976
34977 2007-03-31  Bruno Haible  <bruno@clisp.org>
34978
34979         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34980         (Mathematics <math.h>): New section, add fpieee.
34981         (Input/output <stdio.h>): Add fseterr.
34982         (Mathematics <math.h>): New section, add printf-frexp.
34983         (Container data structures): Add sublist.
34984         (Core language properties): Add fpucw, inline.
34985         (Functions for greatest-width integer types <inttypes.h>): Add
34986         imaxabs, imaxdiv, inttypes.
34987         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34988         isnanl-nolibm, ldexp.
34989         (Mathematics <math.h>): New section, add printf-frexpl.
34990         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34991         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34992         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34993         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34994         (Unicode string functions): Add unistr/u*-mbtoucr.
34995         (Java): Add javacomp-script, javaexec-script.
34996         (C#): Add csharpcomp-script, csharpexec-script.
34997         (Support for building libraries and executables): Add havelib,
34998         relocatable-*.
34999         (Support for maintaining and releasing projects): Renamed from
35000         'Support for maintaining and release projects'. Add announce-gen.
35001
35002 2007-03-31  Bruno Haible  <bruno@clisp.org>
35003
35004         * README: Talk primarily about git.
35005         (git and CVS): Renamed from CVS.
35006         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35007         gnulib is available through git.
35008         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35009
35010 2007-03-30  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35013         * lib/poll_.h: Likewise.
35014         * lib/stat_.h: Likewise.
35015         * lib/sys_time_.h: Likewise.
35016         * lib/sysexit_.h: Likewise.
35017         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35018         * lib/stdbool_.h: Likewise.
35019         * lib/byteswap_.h: Add double-inclusion guard.
35020
35021 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35022
35023         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35024
35025 2007-03-30  Karl Berry  <karl@gnu.org>
35026
35027         * config/srclist-update: double space after USA in the license
35028         substitution, since that's how it's usually (?) written.
35029
35030 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35031
35032         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35033         reported by Bruno Haible.
35034
35035 2007-03-29  Bruno Haible  <bruno@clisp.org>
35036
35037         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35038         a bug in AIX iconv().
35039
35040 2007-03-29  Bruno Haible  <bruno@clisp.org>
35041
35042         * modules/ldexpl-tests: New file.
35043         * tests/test-ldexpl.c: New file.
35044
35045 2007-03-29  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/ldexpl.c: Include fpucw.h.
35048         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35049         multiplication.
35050         * modules/ldexpl (Depends-on): Add fpucw.
35051
35052 2007-03-29  Bruno Haible  <bruno@clisp.org>
35053
35054         * modules/ldexpl: New file.
35055         * m4/ldexpl.m4: New file.
35056         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35057         set.
35058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35059         REPLACE_LDEXPL.
35060         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35061         REPLACE_LDEXPL.
35062         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35063         gl_FUNC_LDEXPL_WORKS.
35064         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35065         * modules/mathl (Files): Remove lib/ldexpl.c.
35066         (Depends-on): Add ldexpl.
35067
35068 2007-03-29  Bruno Haible  <bruno@clisp.org>
35069
35070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35071
35072 2007-03-29  Bruno Haible  <bruno@clisp.org>
35073
35074         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35075         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35076         and possibly also HP-UX.
35077         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35078         work on AIX, IRIX, HP-UX, OSF/1.
35079         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35080         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35081         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35082         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35083         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35084         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35085
35086 2007-03-29  Bruno Haible  <bruno@clisp.org>
35087
35088         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35089
35090 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35091
35092         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35093         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35094
35095 2007-03-29  Eric Blake  <ebb9@byu.net>
35096
35097         * lib/acl-internal.h: Remove redundant include.
35098         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35099         Cygwin when a file is locked.
35100
35101 2007-03-29  Bruno Haible  <bruno@clisp.org>
35102
35103         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35104         file.
35105         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35106
35107 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35108
35109         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35110         try to remove a parent directory if the child couldn't be removed
35111         (except for the first rmdir, which could fail because the child
35112         doesn't exist).  Problem reported by Jeff Blaine in
35113         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35114
35115 2007-03-28  Bruno Haible  <bruno@clisp.org>
35116
35117         * lib/striconveh.c (utf8conv_carefully): New function.
35118         (mem_cd_iconveh_internal): Invoke it.
35119
35120 2007-03-28  Bruno Haible  <bruno@clisp.org>
35121
35122         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35123         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35124         input.
35125         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35126         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35127         unistr/u8-uctomb.
35128
35129 2007-03-28  Bruno Haible  <bruno@clisp.org>
35130
35131         * modules/unistr/u8-mbtoucr: New file.
35132         * lib/unistr/u8-mbtoucr.c: New file.
35133         * modules/unistr/u16-mbtoucr: New file.
35134         * lib/unistr/u16-mbtoucr.c: New file.
35135         * modules/unistr/u16-mbtoucr: New file.
35136         * lib/unistr/u16-mbtoucr.c: New file.
35137         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35138
35139 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35140             Bruno Haible  <bruno@clisp.org>
35141
35142         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35143         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35144         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35145
35146         * m4/stdio_h.m4: Add stubs for vasprintf too.
35147
35148         * modules/stdio: Support vasprintf in sed command.
35149
35150         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35151         vasprintf.h.  Add stdio module indicator.
35152
35153         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35154         vasprintf.h.
35155
35156         * lib/vasprintf.h: File removed.
35157
35158         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35159         * lib/vasprintf.c: Ditto.
35160         * lib/xvasprintf.c: Ditto.
35161         * tests/test-vasprintf-posix.c: Ditto.
35162         * tests/test-vasprintf.c: Ditto.
35163
35164 2007-03-27  Bruno Haible  <bruno@clisp.org>
35165
35166         Make vasnprintf multithread-safe.
35167         * lib/vasnprintf.c (decimal_point_char): New function.
35168         (VASNPRINTF): Use it.
35169         Suggested by Simon Josefsson.
35170
35171 2007-03-27  Eric Blake  <ebb9@byu.net>
35172
35173         Support sub-second birthtime on cygwin.
35174         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35175         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35176         (get_stat_birthtime): Also work with st_birthtim.
35177
35178 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35179
35180         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35181         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35182         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35183         (get_stat_birthtime_ns): Simplify compile-time tests.
35184         (get_stat_birthtime): Change the API to look like
35185         get_stat_mtime etc., except return a negative tv_nsec on error.
35186         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35187         Don't check for "spare" fields.
35188         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35189         or for struct stat.st_birthtime, as these tests aren't used.
35190         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35191
35192 2007-03-27  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/stat-time.h: Include <sys/stat.h>.
35195
35196 2007-03-27  James Youngman  <jay@gnu.org>
35197
35198         * lib/stat-time.h (get_stat_birthtime): New function for
35199           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35200         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35201           and its variants.
35202         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35203         * modules/stat-time-test: New file.
35204         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35205
35206 2007-03-26  Bruno Haible  <bruno@clisp.org>
35207
35208         Better support of signalling NaNs.
35209         * lib/atanl.c: Include isnanl.h.
35210         (atanl): Perform test for NaN at the beginning of the function and
35211         through a call to isnanl.
35212         * lib/cosl.c: Include isnanl.h.
35213         (cosl): Perform test for NaN at the beginning of the function and
35214         through a call to isnanl.
35215         * lib/ldexpl.c: Include isnanl.h.
35216         (ldexpl): Perform test for NaN through a call to isnanl.
35217         * lib/logl.c: Include isnanl.h.
35218         (logl): Perform test for NaN at the beginning of the function and
35219         through a call to isnanl.
35220         * lib/sinl.c: Include isnanl.h.
35221         (sinl): Perform test for NaN at the beginning of the function and
35222         through a call to isnanl.
35223         * lib/sqrtl.c: Include isnanl.h.
35224         (sqrtl): Perform test for NaN at the beginning of the function and
35225         through a call to isnanl.
35226         * lib/tanl.c: Include isnanl.h.
35227         (tanl): Perform test for NaN at the beginning of the function and
35228         through a call to isnanl.
35229         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35230         * modules/mathl (Depends-on): Add isnanl.
35231
35232 2007-03-26  Eric Blake  <ebb9@byu.net>
35233
35234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35235         regression in logic sense of previous patch.
35236
35237 2007-03-26  Bruno Haible  <bruno@clisp.org>
35238
35239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35240         unportable shell command "if ! ...".
35241         Reported by Ralf Wildenhues.
35242
35243 2007-03-25  Bruno Haible  <bruno@clisp.org>
35244
35245         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35246         <sysexits.h> file, and only add EX_CONFIG.
35247         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35248         absolute file name and whether it is sufficient. Substitute also
35249         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35250         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35251         ABSOLUTE_SYSEXITS_H into sysexits.h.
35252
35253 2007-03-25  Bruno Haible  <bruno@clisp.org>
35254
35255         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35256         hints is NULL.
35257
35258 2007-03-25  Bruno Haible  <bruno@clisp.org>
35259
35260         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35261         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35262
35263 2007-03-25  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/vasnprintf.c: Include langinfo.h.
35266         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35267         multithread-safe.
35268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35277         Reported by Simon Josefsson.
35278
35279 2007-03-25  Bruno Haible  <bruno@clisp.org>
35280
35281         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35282         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35283         * modules/vasnprintf (Depends-on): Add stdint.
35284
35285 2007-03-25  Bruno Haible  <bruno@clisp.org>
35286
35287         * modules/fpieee: New file.
35288         * m4/fpieee.m4: New file.
35289         * modules/isnan-nolibm (Depends-on): Add fpieee.
35290         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35291         * modules/isnanl (Depends-on): Add fpieee.
35292
35293 2007-03-25  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35296
35297 2007-03-25  Bruno Haible  <bruno@clisp.org>
35298
35299         Avoid test failures on IRIX 6.5.
35300         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35301         (main): Use it.
35302         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35303         macros.
35304         (main): Use them.
35305
35306 2007-03-25  Bruno Haible  <bruno@clisp.org>
35307
35308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35309         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35310         exists but doesn't work.
35311         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35312         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35314         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35315
35316 2007-03-25  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35319         returns inf. Needed on IRIX 6.5.
35320
35321 2007-03-25  Bruno Haible  <bruno@clisp.org>
35322
35323         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35324         (main): Use isnanl instead of x != x idiom.
35325         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35326
35327         * tests/test-frexp.c: Include isnan.h.
35328         (main): Use isnan instead of x != x idiom.
35329         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35330
35331 2007-03-25  Bruno Haible  <bruno@clisp.org>
35332
35333         * tests/test-frexp.c (NaN): New function/macro.
35334         (main): Use it instead of 0.0 / 0.0.
35335         * tests/test-isnan.c (NaN): New function/macro.
35336         (main): Use it instead of 0.0 / 0.0.
35337         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35338         (test_function): Use it instead of 0.0 / 0.0.
35339         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35340         (test_function): Use it instead of 0.0 / 0.0.
35341         * tests/test-snprintf-posix.h (NaN): New function/macro.
35342         (test_function): Use it instead of 0.0 / 0.0.
35343         * tests/test-sprintf-posix.h (NaN): New function/macro.
35344         (test_function): Use it instead of 0.0 / 0.0.
35345         * tests/test-fprintf-posix.h (NaN): New function/macro.
35346         (test_function): Use it instead of 0.0 / 0.0.
35347         * tests/test-printf-posix.h (NaN): New function/macro.
35348         (test_function): Use it instead of 0.0 / 0.0.
35349
35350         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35351
35352 2007-03-25  Bruno Haible  <bruno@clisp.org>
35353
35354         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35355
35356 2007-03-25  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/regexec.c (merge_state_with_log): Make static.
35359
35360 2007-03-25  Bruno Haible  <bruno@clisp.org>
35361
35362         * lib/trigl.c (kernel_rem_pio2): Make static.
35363
35364 2007-03-25  Bruno Haible  <bruno@clisp.org>
35365
35366         * lib/sincosl.c (sincosl_table): Make static.
35367
35368 2007-03-25  Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35371         if the compiler does not support C99.
35372
35373 2007-03-25  Bruno Haible  <bruno@clisp.org>
35374
35375         * modules/time (Makefile.am): Ensure all rule action lines start with a
35376         tab.
35377
35378 2007-03-24  Bruno Haible  <bruno@clisp.org>
35379
35380         * modules/tsearch-tests: New file.
35381         * tests/test-tsearch.sh: New file.
35382         * tests/test-tsearch.c: New file, mostly copied from glibc.
35383
35384         * modules/search-tests: New file.
35385         * tests/test-search.c: New file.
35386
35387         * modules/search: New file.
35388         * lib/search_.h: New file, incorporating lib/tsearch.h.
35389         * m4/search_h.m4: New file.
35390         * lib/tsearch.h: Remove file.
35391         * lib/tsearch.c: Include search.h instead of tsearch.h.
35392         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35393         HAVE_TSEARCH.
35394         * modules/tsearch (Files): Remove lib/tsearch.h.
35395         (Depends-on): Add search.
35396         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35397         (Include): Change tsearch.h into search.h.
35398
35399 2007-03-24  Bruno Haible  <bruno@clisp.org>
35400
35401         * modules/fpucw: New file.
35402         * lib/fpucw.h: New file.
35403         * lib/frexp.c: Include fpucw.h.
35404         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35405         (FUNC): Use them.
35406         * lib/printf-frexp.c: Include fpucw.h.
35407         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35408         (FUNC): Use them.
35409         * lib/vasnprintf.c: Include fpucw.h.
35410         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35411         'long double' calculations.
35412         * tests/test-frexpl.c: Include fpucw.h.
35413         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35414         * tests/test-printf-frexpl.c: Include fpucw.h.
35415         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35416         * modules/frexpl (Depends-on): Add fpucw.
35417         * modules/printf-frexpl (Depends-on): Likewise.
35418         * modules/fprintf-posix (Depends-on): Likewise.
35419         * modules/snprintf-posix (Depends-on): Likewise.
35420         * modules/sprintf-posix (Depends-on): Likewise.
35421         * modules/vasnprintf-posix (Depends-on): Likewise.
35422         * modules/vasprintf-posix (Depends-on): Likewise.
35423         * modules/vfprintf-posix (Depends-on): Likewise.
35424         * modules/vsnprintf-posix (Depends-on): Likewise.
35425         * modules/vsprintf-posix (Depends-on): Likewise.
35426         * modules/frexpl-tests (Depends-on): Likewise.
35427         * modules/printf-frexpl-tests (Depends-on): Likewise.
35428
35429 2007-03-24  Bruno Haible  <bruno@clisp.org>
35430
35431         * lib/float+.h: New file.
35432         * lib/isnan.c: Include float+.h.
35433         (SIZE): New macro.
35434         (FUNC): Compare only SIZE bytes of the value.
35435         * lib/vasnprintf.c: Include float+.h.
35436         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35437         SIZEOF_LDBL or SIZEOF_DBL bytes.
35438         * modules/isnan-nolibm (Files): Add lib/float+.h.
35439         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35440         * modules/isnanl (Files): Add lib/float+.h.
35441         * modules/vasnprintf (Files): Add lib/float+.h.
35442
35443 2007-03-24  Bruno Haible  <bruno@clisp.org>
35444
35445         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35446         include isnanl-nolibm.h.
35447
35448 2007-03-24  Bruno Haible  <bruno@clisp.org>
35449
35450         * tests/test-read-file.c (main): Don't produce spurious output for
35451         expected situations. Make the test fail if it encountered unexpected
35452         results.
35453
35454 2007-03-24  Bruno Haible  <bruno@clisp.org>
35455
35456         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35457         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35458
35459 2007-03-24  Bruno Haible  <bruno@clisp.org>
35460
35461         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35462
35463 2007-03-24  Bruno Haible  <bruno@clisp.org>
35464
35465         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35466         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35467
35468         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35469         * modules/utf8-ucs4: Turn into a symbolic link to module
35470         unistr/u8-mbtouc.
35471
35472         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35473         utf8-ucs4-unsafe.
35474         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35475         unistr/u8-mbtouc-unsafe.
35476
35477         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35478         * modules/utf16-ucs4: Turn into a symbolic link to module
35479         unistr/u16-mbtouc.
35480
35481         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35482         utf16-ucs4-unsafe.
35483         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35484         unistr/u16-mbtouc-unsafe.
35485
35486         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35487         * modules/ucs4-utf8: Turn into a symbolic link to module
35488         unistr/u8-ubtomb.
35489
35490         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35491         * modules/ucs4-utf16: Turn into a symbolic link to module
35492         unistr/u16-ubtomb.
35493
35494 2007-03-24  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35497         Enable the function only if HAVE_INLINE.
35498         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35499         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35500         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35501         Enable the function only if HAVE_INLINE.
35502         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35503         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35504         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35505         Enable the function only if HAVE_INLINE.
35506         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35507         Enable the function only if HAVE_INLINE.
35508         * modules/utf8-ucs4: Update.
35509         * modules/utf8-ucs4-unsafe: Update.
35510         * modules/utf16-ucs4: Update.
35511         * modules/utf16-ucs4-unsafe: Update.
35512         * modules/ucs4-utf8: Update.
35513         * modules/ucs4-utf16: Update.
35514
35515 2007-03-24  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/utf8-ucs4.h: Remove file.
35518         * lib/utf8-ucs4-unsafe.h: Remove file.
35519         * lib/utf16-ucs4.h: Remove file.
35520         * lib/utf16-ucs4-unsafe.h: Remove file.
35521         * lib/ucs4-utf8.h: Remove file.
35522         * lib/ucs4-utf16.h: Remove file.
35523         * lib/unistr.h: Include their previous contents.
35524         * m4/utf-ucs4.m4: Remove file.
35525         * m4/ucs4-utf.m4: Remove file.
35526         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35527         (Depends-on): Add unistr/base.
35528         (configure.ac): Remove gl_UTF_UCS4.
35529         (Makefile.am): Update.
35530         (Include): Change to unistr.h.
35531         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35532         (Depends-on): Add unistr/base.
35533         (configure.ac): Remove gl_UTF_UCS4.
35534         (Makefile.am): Update.
35535         (Include): Change to unistr.h.
35536         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35537         (Depends-on): Add unistr/base.
35538         (configure.ac): Remove gl_UTF_UCS4.
35539         (Makefile.am): Update.
35540         (Include): Change to unistr.h.
35541         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35542         (Depends-on): Add unistr/base.
35543         (configure.ac): Remove gl_UTF_UCS4.
35544         (Makefile.am): Update.
35545         (Include): Change to unistr.h.
35546         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35547         (Depends-on): Add unistr/base.
35548         (configure.ac): Remove gl_UCS4_UTF.
35549         (Makefile.am): Update.
35550         (Include): Change to unistr.h.
35551         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35552         (Depends-on): Add unistr/base.
35553         (configure.ac): Remove gl_UCS4_UTF.
35554         (Makefile.am): Update.
35555         (Include): Change to unistr.h.
35556         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35557         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35558         utf8-ucs4-unsafe.h.
35559         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35560         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35561         utf16-ucs4-unsafe.h.
35562         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35563         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35564         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35565         * lib/unistr/u8-strchr.c: Likewise.
35566         * lib/unistr/u8-strrchr.c: Likewise.
35567         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35568         * lib/unistr/u16-strchr.c: Likewise.
35569         * lib/unistr/u16-strrchr.c: Likewise.
35570         * lib/striconveh.c: Update.
35571         * lib/linebreak.c: Update.
35572
35573 2007-03-24  Bruno Haible  <bruno@clisp.org>
35574
35575         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35576         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35577
35578 2007-03-22  Bruno Haible  <bruno@clisp.org>
35579
35580         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35581
35582 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35583
35584         * MODULES.html.sh (File system functions): New module write-any-file.
35585         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35586         * m4/write-any-file.m4: New files.
35587
35588 2007-03-23  Eric Blake  <ebb9@byu.net>
35589
35590         * gnulib-tool: Rearrange space-tab sequences, since some editors
35591         like to eat them.
35592
35593 2007-03-23  Eric Blake  <ebb9@byu.net>
35594
35595         * lib/version-etc.c (version_etc_va): Update license wording to
35596         be more concise.  Recommended by Richard Stallman.
35597
35598 2007-03-22  Bruno Haible  <bruno@clisp.org>
35599
35600         * lib/poll.c (MSG_PEEK): New fallback definition.
35601
35602 2007-03-22  Bruno Haible  <bruno@clisp.org>
35603
35604         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35605         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35606         (main): Update.
35607         Fixes a compilation error on BeOS.
35608
35609 2007-03-22  Bruno Haible  <bruno@clisp.org>
35610
35611         * modules/frexpl-tests: New file.
35612         * tests/test-frexpl.c: New file.
35613
35614         * modules/frexpl: New file.
35615         * m4/frexpl.m4: New file.
35616         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35617         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35619         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35620         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35621         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35622
35623 2007-03-22  Bruno Haible  <bruno@clisp.org>
35624
35625         * lib/frexpl.c: Share code with lib/frexp.c.
35626         * modules/mathl (Files): Add lib/frexp.c.
35627         (Depends-on): Add isnanl-nolibm.
35628
35629 2007-03-22  Bruno Haible  <bruno@clisp.org>
35630
35631         * modules/printf-frexp (Files): Add m4/frexp.m4.
35632         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35633         only if the found frexp function actually works.
35634
35635 2007-03-22  Bruno Haible  <bruno@clisp.org>
35636
35637         * lib/frexp.c: Remove older implementation that uses divisions.
35638
35639 2007-03-21  Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/frexp-tests: New file.
35642         * tests/test-frexp.c: New file.
35643
35644         * modules/frexp: New file.
35645         * lib/frexp.c: New file.
35646         * m4/frexp.m4: New file.
35647         * lib/math_.h (frexp): New declaration.
35648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35649         REPLACE_FREXP.
35650         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35651
35652 2007-03-21  Bruno Haible  <bruno@clisp.org>
35653
35654         * modules/isnanl-tests: New file.
35655         * tests/test-isnanl.c: New file.
35656
35657         * modules/isnanl: New file.
35658         * lib/isnanl.h: New file.
35659         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35660         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35661         gl_FUNC_ISNANL_WORKS.
35662         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35663         New macros.
35664
35665 2007-03-21  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35668         lib/isnanl.h.
35669         (Include): Update.
35670         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35671         * lib/vasnprintf.c: Update.
35672         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35673         tests/test-isnanl.h, remove tests/test-isnanl.c.
35674         (Makefile.am): Update.
35675         * tests/test-isnanl-nolibm.c: New file.
35676         * tests/test-isnanl.h: New file.
35677         * tests/test-isnanl.c: Remove file.
35678
35679 2007-03-21  Jim Meyering  <jim@meyering.net>
35680
35681         When trying to open ".", treat ESTALE like EACCES.
35682         * lib/savewd.c (savewd_save): Resort to forking not just upon
35683         failure with EACCES, but also when errno is ESTALE.
35684
35685 2007-03-20  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35688         Needed on AIX 5.1. Reported by Matthew Woehlke.
35689
35690 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35691
35692         Suggestions by Bruno Haible:
35693         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35694         our own.
35695         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35696         * modules/acl (Depends-on): Add gettext.
35697
35698 2007-03-19  Bruno Haible  <bruno@clisp.org>
35699
35700         * modules/iconvme: Remove file.
35701         * lib/iconvme.h: Remove file.
35702         * lib/iconvme.c: Remove file.
35703         * m4/iconvme.m4: Remove file.
35704
35705 2007-03-19  Bruno Haible  <bruno@clisp.org>
35706
35707         * doc/relocatable-maint.texi: Break long shell script line.
35708         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35709
35710 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35711
35712         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35713         handle file_has_acl.
35714         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35715         * lib/acl.c: Move header inclusions and related macro defns into
35716         lib/acl-internal.h.
35717         (S_ISLNK): Remove defn, since that's now done for us.
35718         (file_has_acl): Move to lib/file-has-acl.c.
35719         Call acl_trivial if available.  This is the crucial part of the fix.
35720         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35721         shared within the library.  Rewrite a bit, partly to make it compatible
35722         with the GNU coding style.
35723         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35724         Remove unnecessary double-quotes.
35725         Don't test for acl_to_text; the build will catch that.
35726         Replace acl_entries if it doesn't exist and it is needed.
35727         Check for -lsec and acl_trivial (as used on Solaris 10).
35728         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35729         lib/file-has-acl.c.
35730         (Depends-on): Add sys_stat, for S_ISLNK.
35731
35732 2007-03-19  Ben Pfaff  <blp@gnu.org>
35733
35734         * doc/gnulib.texi: Fix typos.
35735         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35736
35737 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35738
35739         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35740         If size is zero here, buf must be zero.
35741
35742 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35743
35744         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35745         <bruno@clisp.org>.
35746
35747 2007-03-18  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35750         Suggested by Eric Blake.
35751
35752 2007-03-18  Ben Pfaff  <blp@gnu.org>
35753
35754         * doc/relocatable.texi: Recommend using as prefix a directory
35755         that does not exist and will never be created.  Based on
35756         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35757         and others.
35758
35759 2007-03-17  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/fchownat.c: Include lchown.h.
35762
35763 2007-03-17  Bruno Haible  <bruno@clisp.org>
35764
35765         Fix endless loop when the given allocated size was > INT_MAX.
35766         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35767         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35768         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35769         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35770         * lib/sprintf.c (sprintf): Likewise.
35771
35772 2007-03-17  Bruno Haible  <bruno@clisp.org>
35773
35774         * tests/test-argp-2.sh (func_compare): Output a context diff.
35775
35776 2007-03-17  Bruno Haible  <bruno@clisp.org>
35777
35778         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35779         locale's decimal-point character.
35780
35781 2007-03-17  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35784         before comparing it. Needed because on some platforms (e.g. x86) a
35785         'long double' occupies less bytes than sizeof (long double).
35786
35787 2007-03-17  Bruno Haible  <bruno@clisp.org>
35788
35789         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35790         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35791         * tests/test-getaddrinfo.c (simple): Likewise.
35792         * tests/test-read-file.c (main): Likewise.
35793
35794 2007-03-17  Bruno Haible  <bruno@clisp.org>
35795
35796         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35797
35798 2007-03-17  Bruno Haible  <bruno@clisp.org>
35799
35800         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35801         unused variable.
35802
35803 2007-03-17  Bruno Haible  <bruno@clisp.org>
35804
35805         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35806         * tests/test-c-strncasecmp.c: Likewise.
35807
35808 2007-03-17  Bruno Haible  <bruno@clisp.org>
35809
35810         * modules/stdlib (Depends-on): Add unistd.
35811         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35812         Needed for MacOS X 10.3.
35813
35814 2007-03-17  Bruno Haible  <bruno@clisp.org>
35815
35816         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35817
35818 2007-03-17  Bruno Haible  <bruno@clisp.org>
35819
35820         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35821
35822 2007-03-17  Bruno Haible  <bruno@clisp.org>
35823
35824         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35825         to reflect files copied from gnulib (with or without modifications).
35826         Suggested by Jim Meyering.
35827
35828 2007-03-17  Eric Blake  <ebb9@byu.net>
35829
35830         * NEWS: Document stdlib change from 2007-02-18.
35831
35832 2007-03-17  Jim Meyering  <jim@meyering.net>
35833
35834         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35835         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35836         someone uses a name containing shell meta-characters.
35837         Reported by Alfred M. Szmidt.
35838
35839         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35840
35841 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35842
35843         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35844         and copy gettext configuration files only if configure.ac contains
35845         a use of AM_GNU_GETTEXT_VERSION.
35846
35847 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35848
35849         * build-aux/bootstrap (gnulib_name): New variable.
35850         (gnulib_tool_options): Use it.
35851
35852 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35853
35854         * tests/test-des.c: Use new namespace.
35855
35856 2007-03-15  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35859         Reported by James Youngman <jay@gnu.org>.
35860
35861 2007-03-15  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35864         declared prototype. Needed with cc on OSF/1 5.1.
35865
35866 2007-03-15  Bruno Haible  <bruno@clisp.org>
35867
35868         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35869         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35870         (struct gl_list_implementation): Add dispose_fn argument to the
35871         'create_empty', 'create' methods.
35872         (struct gl_list_impl_base): Add field 'dispose_fn'.
35873         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35874         argument.
35875         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35876         dispose_fn argument.
35877         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35878         dispose_fn on the dropped values.
35879         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35880         dispose_fn argument.
35881         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35882         dropped values.
35883         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35884         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35885         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35886         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35887         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35888         argument.
35889         (gl_tree_list_free): Call dispose_fn on the dropped values.
35890         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35891         the dropped values.
35892         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35893         Add dispose_fn argument.
35894         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35895         Call dispose_fn on the dropped values.
35896         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35897         Add dispose_fn argument.
35898         (gl_sublist_create): Initialize the 'dispose_fn' field.
35899         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35900         * tests/test-array_list.c (main): Update.
35901         * tests/test-carray_list.c (main): Update.
35902         * tests/test-avltree_list.c (main): Update.
35903         * tests/test-rbtree_list.c (main): Update.
35904         * tests/test-avltreehash_list.c (main): Update.
35905         * tests/test-rbtreehash_list.c (main): Update.
35906         * tests/test-linked_list.c (main): Update.
35907         * tests/test-linkedhash_list.c (main): Update.
35908         * tests/test-array_oset.c (main): Update.
35909
35910 2007-03-15  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35913         (gl_oset_create_empty): Add dispose_fn argument.
35914         (struct gl_oset_implementation): Add dispose_fn argument to
35915         'create_empty' method.
35916         (struct gl_oset_impl_base): Add dispose_fn field.
35917         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35918         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35919         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35920         values.
35921         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35922         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35923         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35924         dropped value.
35925         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35926         dropped value.
35927         * tests/test-array_oset.c (main): Update.
35928         * tests/test-avltree_oset.c (main): Update.
35929         * tests/test-rbtree_oset.c (main): Update.
35930         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35931
35932 2007-03-13  Bruno Haible  <bruno@clisp.org>
35933
35934         * tests/test-stdbool.c (i): Update after last patch.
35935
35936 2007-03-12  Bruno Haible  <bruno@clisp.org>
35937
35938         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35939         the iswprint macro. Needed on Solaris 2.5.1.
35940
35941 2007-03-12  Bruno Haible  <bruno@clisp.org>
35942
35943         * tests/test-printf-frexp.c (main): Declare x as volatile.
35944
35945 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35946
35947         * doc/gnulib.texi (Build robot for gnulib): New section.
35948
35949 2007-03-12  Jim Meyering  <jim@meyering.net>
35950
35951         * build-aux/bootstrap: New file.
35952         * build-aux/bootstrap.conf: New file, from coreutils.
35953
35954 2007-03-11  Bruno Haible  <bruno@clisp.org>
35955
35956         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35957
35958 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35959
35960         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35961         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35962         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35963
35964 2007-03-11  Bruno Haible  <bruno@clisp.org>
35965
35966         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35967         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35968
35969 2007-03-11  Bruno Haible  <bruno@clisp.org>
35970
35971         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35972         formula. Needed for SunPRO C 5.0.
35973
35974 2007-03-11  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/long-options (Depends-on): Add getopt.
35977
35978 2007-03-11  Bruno Haible  <bruno@clisp.org>
35979
35980         * modules/modechange (Depends-on): Add stdbool.
35981
35982 2007-03-11  Bruno Haible  <bruno@clisp.org>
35983
35984         * modules/i-ring (Depends-on): Add stdbool.
35985
35986 2007-03-11  Bruno Haible  <bruno@clisp.org>
35987
35988         * modules/gc-des (Depends-on): Add stdbool.
35989
35990 2007-03-11  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35993
35994 2007-03-11  Bruno Haible  <bruno@clisp.org>
35995
35996         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35997
35998 2007-03-11  Bruno Haible  <bruno@clisp.org>
35999
36000         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36001
36002 2007-03-11  Bruno Haible  <bruno@clisp.org>
36003
36004         * lib/vasnprintf.c (sprintf): Undefine.
36005
36006 2007-03-11  Bruno Haible  <bruno@clisp.org>
36007
36008         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36009         initializers in SunPRO C and Compaq C compilers.
36010
36011 2007-03-11  Bruno Haible  <bruno@clisp.org>
36012
36013         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36014         decrementing code ANSI C compliant.
36015
36016 2007-03-11  Bruno Haible  <bruno@clisp.org>
36017
36018         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36019         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36020
36021 2007-03-11  Bruno Haible  <bruno@clisp.org>
36022
36023         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36024         <stdbool.h> substitute doesn't pass.
36025
36026 2007-03-11  Bruno Haible  <bruno@clisp.org>
36027
36028         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36029
36030 2007-03-11  Bruno Haible  <bruno@clisp.org>
36031
36032         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36033         script, for submission to autobuild.josefsson.org.
36034
36035 2007-03-10  Bruno Haible  <bruno@clisp.org>
36036
36037         * modules/canonicalize-lgpl-tests: New file.
36038         * tests/test-canonicalize-lgpl.sh: New file.
36039         * tests/test-canonicalize-lgpl.c: New file.
36040
36041         * modules/c-strcase-tests: New file.
36042         * tests/test-c-strcase.sh: New file.
36043         * tests/test-c-strcasecmp.c: New file.
36044         * tests/test-c-strncasecmp.c: New file.
36045
36046         * modules/atexit-tests: New file.
36047         * tests/test-atexit.sh: New file.
36048         * tests/test-atexit.c: New file.
36049
36050 2007-03-10  Bruno Haible  <bruno@clisp.org>
36051
36052         * tests/test-binary-io.sh: Use temporary filenames that are not so
36053         likely to clash with those of other tests (in a parallel make).
36054         * tests/test-binary-io.c: Likewise.
36055
36056 2007-03-10  Bruno Haible  <bruno@clisp.org>
36057
36058         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36059         fallback; use #error instead.
36060         Suggested by Simon Josefsson.
36061
36062 2007-03-10  Bruno Haible  <bruno@clisp.org>
36063
36064         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36065         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36066         first and the last.
36067
36068 2007-03-10  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36071
36072 2007-03-10  Bruno Haible  <bruno@clisp.org>
36073
36074         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36075         "make distcheck".
36076         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36077         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36078         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36079
36080 2007-03-10  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36083         variable.
36084         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36085         variable.
36086
36087 2007-03-09  Eric Blake  <ebb9@byu.net>
36088         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36089
36090         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36091         types are not being provided by gnulib.
36092         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36093         types are supported.
36094
36095 2007-03-10  Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/stdio_.h (__attribute__): New macro.
36098         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36099         vsprintf): Specify __attribute__ __format__ for GCC.
36100         Suggested by Eric Blake.
36101
36102 2007-03-09  Bruno Haible  <bruno@clisp.org>
36103
36104         * modules/printf-posix-tests: New file.
36105         * tests/test-printf-posix.sh: New file.
36106         * tests/test-printf-posix.c: New file.
36107
36108         * modules/printf-posix: New file.
36109         * lib/printf.c: New file.
36110         * m4/printf-posix-rpl.m4: New file.
36111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36112         REPLACE_PRINTF.
36113         * lib/stdio_.h (printf): New declaration.
36114         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36115         ____strfmon____): New macros.
36116         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36117         REPLACE_PRINTF.
36118
36119 2007-03-09  Bruno Haible  <bruno@clisp.org>
36120
36121         * tests/test-vasnprintf-posix2.sh: New file.
36122         * tests/test-vasnprintf-posix2.c: New file.
36123         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36124         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36125         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36126
36127         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36128         a locale dependent decimal point, rather than always '.'.
36129
36130 2007-03-09  Eric Blake  <ebb9@byu.net>
36131
36132         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36133         spite of platforms like Tandem/NSK that define it to -1.
36134
36135 2007-03-08  Bruno Haible  <bruno@clisp.org>
36136
36137         * modules/vprintf-posix-tests: New file.
36138         * tests/test-vprintf-posix.sh: New file.
36139         * tests/test-vprintf-posix.c: New file.
36140         * tests/test-printf-posix.h: New file.
36141
36142         * modules/vprintf-posix: New file.
36143         * lib/vprintf.c: New file.
36144         * m4/vprintf-posix.m4: New file.
36145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36146         REPLACE_VPRINTF.
36147         * lib/stdio_.h (vprintf): New declaration.
36148         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36149         REPLACE_VPRINTF.
36150
36151 2007-03-08  Bruno Haible  <bruno@clisp.org>
36152
36153         * modules/fprintf-posix-tests: New file.
36154         * tests/test-fprintf-posix.sh: New file.
36155         * tests/test-fprintf-posix.c: New file.
36156
36157         * modules/fprintf-posix: New file.
36158         * lib/fprintf.c: New file.
36159         * m4/fprintf-posix.m4: New file.
36160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36161         REPLACE_FPRINTF.
36162         * lib/stdio_.h (fprintf): New declaration.
36163         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36164         REPLACE_FPRINTF.
36165
36166 2007-03-08  Bruno Haible  <bruno@clisp.org>
36167
36168         * modules/vfprintf-posix-tests: New file.
36169         * tests/test-vfprintf-posix.sh: New file.
36170         * tests/test-vfprintf-posix.c: New file.
36171         * tests/test-fprintf-posix.h: New file.
36172         * tests/test-fprintf-posix.out: New file.
36173
36174         * modules/vfprintf-posix: New file.
36175         * lib/vfprintf.c: New file.
36176         * m4/vfprintf-posix.m4: New file.
36177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36178         REPLACE_VFPRINTF.
36179         * lib/stdio_.h (vfprintf): New declaration.
36180         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36181         REPLACE_VFPRINTF.
36182
36183 2007-03-08  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36186
36187 2007-03-08  Bruno Haible  <bruno@clisp.org>
36188
36189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36190         instead of 'expr' invocations.
36191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36196         Suggested by Paul Eggert.
36197
36198 2007-03-08  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/fseterr-tests: New file.
36201         * tests/test-fseterr.c: New file.
36202
36203         * modules/fseterr: New file.
36204         * lib/fseterr.h: New file.
36205         * lib/fseterr.c: New file.
36206
36207 2007-03-08  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36210         * lib/getopt_.h: Likewise.
36211         * lib/mbswidth.h: Likewise.
36212         * lib/setenv.h: Likewise.
36213         * lib/vasnprintf.h: Likewise.
36214         * lib/vasprintf.h: Likewise.
36215         * lib/verror.h: Likewise.
36216         * lib/xsetenv.h: Likewise.
36217         * lib/xvasprintf.h: Likewise.
36218
36219 2007-03-08  Jim Meyering  <jim@meyering.net>
36220
36221         * users.txt: Add parted.
36222
36223         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36224
36225 2007-03-07  Bruno Haible  <bruno@clisp.org>
36226
36227         * m4/printf.m4: Make the shell script snippets copy&pastable.
36228
36229 2007-03-02  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/netinet_in_.h: New file.
36232         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36233         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36234         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36235         (Depends-on): Add absolute-header.
36236         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36237         into netinet/in.h.
36238
36239 2007-03-03  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/sys_select_.h: New file.
36242         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36243         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36244         * modules/sys_select (Files): Add lib/sys_select_.h.
36245         (Depends-on): Add absolute-header.
36246         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36247         into sys/select.h.
36248
36249 2007-03-02  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36252         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36253         values.
36254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36255         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36256         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36257         * modules/sys_socket (Depends-on): Add absolute-header.
36258         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36259         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36260         (Include): Remove requirement of inclusion of <sys/types.h>.
36261
36262 2007-03-02  Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/byteswap_.h (bswap_32): Fix formula.
36265
36266 2007-03-06  Bruno Haible  <bruno@clisp.org>
36267
36268         * modules/sprintf-posix-tests: New file.
36269         * tests/test-sprintf-posix.c: New file.
36270
36271         * modules/sprintf-posix: New file.
36272         * lib/sprintf.c: New file.
36273         * m4/sprintf-posix.m4: New file.
36274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36275         REPLACE_SPRINTF.
36276         * lib/stdio_.h (sprintf): New declaration.
36277         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36278         REPLACE_SPRINTF.
36279
36280 2007-03-06  Bruno Haible  <bruno@clisp.org>
36281
36282         * modules/vsprintf-posix-tests: New file.
36283         * tests/test-vsprintf-posix.c: New file.
36284         * tests/test-sprintf-posix.h: New file.
36285
36286         * modules/vsprintf-posix: New file.
36287         * lib/vsprintf.c: New file.
36288         * m4/vsprintf-posix.m4: New file.
36289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36290         REPLACE_VSPRINTF.
36291         * lib/stdio_.h (vsprintf): New declaration.
36292         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36293         REPLACE_VSPRINTF.
36294
36295 2007-03-06  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/vsnprintf (Depend-on): Remove minmax.
36298
36299 2007-03-06  Bruno Haible  <bruno@clisp.org>
36300
36301         * modules/snprintf-posix-tests: New file.
36302         * tests/test-snprintf-posix.c: New file.
36303
36304         * modules/snprintf-posix: New file.
36305         * m4/snprintf-posix.m4: New file.
36306         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36307         gl_FUNC_SNPRINTF.
36308         (gl_FUNC_SNPRINTF): Invoke it.
36309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36310         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36311         is set.
36312         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36313
36314 2007-03-06  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/vsnprintf-posix-tests: New file.
36317         * tests/test-vsnprintf-posix.c: New file.
36318         * tests/test-snprintf-posix.h: New file.
36319
36320         * modules/vsnprintf-posix: New file.
36321         * m4/vsnprintf-posix.m4: New file.
36322         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36323         gl_FUNC_VSNPRINTF.
36324         (gl_FUNC_VSNPRINTF): Invoke it.
36325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36326         * lib/stdio_.h (vsnprintf): Define as a replacement if
36327         REPLACE_VSNPRINTF is set.
36328         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36329
36330 2007-03-06  Bruno Haible  <bruno@clisp.org>
36331
36332         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36334
36335 2007-03-06  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36338         (asinl): Declare also if HAVE_DECL_ASINL is set.
36339         (atanl): Declare also if HAVE_DECL_ATANL is set.
36340         (ceill): Declare also if HAVE_DECL_CEILL is set.
36341         (cosl): Declare also if HAVE_DECL_COSL is set.
36342         (expl): Declare also if HAVE_DECL_EXPL is set.
36343         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36344         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36345         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36346         (logl): Declare also if HAVE_DECL_LOGL is set.
36347         (sinl): Declare also if HAVE_DECL_SINL is set.
36348         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36349         (tanl): Declare also if HAVE_DECL_TANL is set.
36350         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36353         declaration of frexpl, ldexpl.
36354         * modules/printf-frexpl (Depends-on): Add math.
36355         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36356
36357 2007-03-05  Bruno Haible  <bruno@clisp.org>
36358
36359         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36360         frexpl and ldexpl are declared.
36361         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36362
36363 2007-03-05  Bruno Haible  <bruno@clisp.org>
36364
36365         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36366         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36367
36368 2007-03-05  Bruno Haible  <bruno@clisp.org>
36369
36370         * lib/stdio_.h: Include <stddef.h>.
36371
36372 2007-03-05  Bruno Haible  <bruno@clisp.org>
36373
36374         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36375
36376 2007-03-05  Bruno Haible  <bruno@clisp.org>
36377
36378         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36379         NetBSD 4, from Ralf Wildenhues.
36380
36381 2007-03-04  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/vasprintf.h: Update #if logic for the case when the functions
36384         exist but are overridden.
36385
36386 2007-03-04  Bruno Haible  <bruno@clisp.org>
36387
36388         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36389         implementations: glibc-2.4 and MacOS X 10.3.
36390         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36391         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36392         * tests/test-vasprintf-posix.c (test_function): Likewise.
36393
36394 2007-03-04  Bruno Haible  <bruno@clisp.org>
36395
36396         * modules/vasprintf-posix-tests: New file.
36397         * tests/test-vasprintf-posix.c: New file.
36398
36399         * modules/vasprintf-posix: New file.
36400         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36401         defined.
36402         * m4/vasprintf-posix.m4: New file.
36403         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36404         gl_FUNC_VASPRINTF.
36405         (gl_FUNC_VASPRINTF): Invoke it.
36406         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36407         here.
36408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36409
36410 2007-03-04  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36413         REPLACE_GETTIMEOFDAY.
36414         * modules/sys_time (Makefile.am): Likewise.
36415         * m4/sys_time_h.m4: Likewise.
36416         * m4/gettimeofday.m4: Likewise.
36417
36418 2007-03-04  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/vasnprintf-posix-tests: New file.
36421         * tests/test-vasnprintf-posix.c: New file.
36422
36423         * modules/vasnprintf-posix: New file.
36424         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36425         printf-frexpl.h.
36426         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36427         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36428         REPLACE_VASNPRINTF is defined.
36429         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36430         gl_FUNC_VASNPRINTF.
36431         (gl_FUNC_VASNPRINTF): Invoke it.
36432         * m4/vasnprintf-posix.m4: New file.
36433         * m4/printf.m4: New file.
36434
36435 2007-03-04  Bruno Haible  <bruno@clisp.org>
36436
36437         Compile progreloc.c only if --enable-relocatable is specified.
36438         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36439         if --enable-relocatable was specified.
36440         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36441         lib_SOURCES.
36442
36443 2007-03-04  Jim Meyering  <jim@meyering.net>
36444
36445         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36446         Use it consistently, rather than enumerating errno constants.
36447
36448 2007-03-04  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/xvasprintf-tests: New file.
36451         * tests/test-xvasprintf.c: New file.
36452
36453         * modules/vasprintf-tests: New file.
36454         * tests/test-vasprintf.c: New file.
36455
36456         * modules/vasnprintf-tests: New file.
36457         * tests/test-vasnprintf.c: New file.
36458
36459         * modules/vsnprintf-tests: New file.
36460         * tests/test-vsnprintf.c: New file.
36461
36462         * modules/snprintf-tests: New file.
36463         * tests/test-snprintf.c: New file.
36464
36465 2007-03-04  Bruno Haible  <bruno@clisp.org>
36466
36467         Compile relocatable.c only if --enable-relocatable is specified.
36468         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36469         gl_RELOCATABLE_LIBRARY.
36470         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36471         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36472         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36473         gl_RELOCATABLE_LIBRARY.
36474         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36475         (Makefile.am): Remove lib_SOURCES.
36476         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36477         gl_RELOCATABLE_LIBRARY.
36478         (Makefile.am): Remove lib_SOURCES.
36479         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36480         always.
36481         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36482         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36483
36484 2007-03-04  Bruno Haible  <bruno@clisp.org>
36485
36486         * modules/argmatch-tests: New file.
36487         * tests/test-argmatch.c: New file.
36488
36489         * tests/test-allocsa.c (main): Halve the number of loop runs.
36490
36491         * modules/alloca-opt-tests: New file.
36492         * tests/test-alloca-opt.c: New file.
36493
36494 2007-03-04  Jim Meyering  <jim@meyering.net>
36495
36496         Work around difference between Linux ACLs and Solaris 10 ZFS.
36497         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36498         for EINVAL.
36499
36500 2007-03-03  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/relocatable-prog (Depends-on): Add back progreloc's
36503         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36504
36505 2007-03-03  Bruno Haible  <bruno@clisp.org>
36506
36507         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36508         * modules/relocatable-lib: New file.
36509
36510 2007-03-03  Bruno Haible  <bruno@clisp.org>
36511
36512         * modules/relocatable-prog: Renamed from modules/relocatable.
36513         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36514
36515 2007-03-03  Bruno Haible  <bruno@clisp.org>
36516
36517         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36518         m4/relocatable-lib.m4.
36519         (Depends-on): Remove 'relocatable'.
36520         (configure.ac): Add gl_RELOCATABLE_NOP.
36521
36522 2007-03-03  Bruno Haible  <bruno@clisp.org>
36523
36524         * modules/relocatable-prog-wrapper: New file.
36525         * modules/relocatable (Depends-on): Add it. Remove all other
36526         dependencies except progname.
36527         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36528
36529         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36530         (gl_FUNC_STRERROR): Nop.
36531         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36532
36533         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36534         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36535
36536         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36537         (gl_FUNC_READLINK): Update.
36538
36539         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36540
36541 2007-03-03  Bruno Haible  <bruno@clisp.org>
36542
36543         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36544         * modules/xreadlink (Depends-on): Add unistd.
36545         * modules/xreadlink-with-size (Depends-on): Likewise.
36546
36547 2007-03-03  Bruno Haible  <bruno@clisp.org>
36548
36549         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36550         extracted from gt_FUNC_SETENV.
36551         (gt_FUNC_SETENV): Remove macro.
36552         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36553         remove gt_FUNC_SETENV.
36554
36555 2007-03-03  Bruno Haible  <bruno@clisp.org>
36556
36557         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36558         ENABLE_RELOCATABLE here.
36559         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36560
36561 2007-03-03  Bruno Haible  <bruno@clisp.org>
36562
36563         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36564         * tests/test-rbtreehash_list.c: Include progname.h.
36565         (main): Call set_program_name.
36566
36567         * modules/rbtree-oset-tests (Depends-on): Add progname.
36568         * tests/test-rbtree_oset.c: Include progname.h.
36569         (main): Call set_program_name.
36570
36571         * modules/rbtree-list-tests (Depends-on): Add progname.
36572         * tests/test-rbtree_list.c: Include progname.h.
36573         (main): Call set_program_name.
36574
36575         * modules/linked-list-tests (Depends-on): Add progname.
36576         * tests/test-linked_list.c: Include progname.h.
36577         (main): Call set_program_name.
36578
36579 2007-03-03  Bruno Haible  <bruno@clisp.org>
36580
36581         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36582         All uses of __restrict changed to _Restrict_.
36583         * lib/glob_.h (__restrict): Remove macro.
36584
36585 2007-03-02  Bruno Haible  <bruno@clisp.org>
36586
36587         * modules/gettext (configure.ac): Require gettext infrastructure
36588         from version 0.16.1.
36589
36590 2007-03-02  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/linkedhash-list-tests (Depends-on): Add progname.
36593         * tests/test-linkedhash_list.c: Include progname.h.
36594         (main): Call set_program_name.
36595
36596         * modules/carray-list-tests (Depends-on): Add progname.
36597         * tests/test-carray_list.c: Include progname.h.
36598         (main): Call set_program_name.
36599
36600         * modules/avltreehash-list-tests (Depends-on): Add progname.
36601         * tests/test-avltreehash_list.c: Include progname.h.
36602         (main): Call set_program_name.
36603
36604         * modules/avltree-oset-tests (Depends-on): Add progname.
36605         * tests/test-avltree_oset.c: Include progname.h.
36606         (main): Call set_program_name.
36607
36608         * modules/avltree-list-tests (Depends-on): Add progname.
36609         * tests/test-avltree_list.c: Include progname.h.
36610         (main): Call set_program_name.
36611
36612         * modules/array-oset-tests (Depends-on): Add progname.
36613         * tests/test-array_oset.c: Include progname.h.
36614         (main): Call set_program_name.
36615
36616         * modules/array-list-tests (Depends-on): Add progname.
36617         * tests/test-array_list.c: Include progname.h.
36618         (main): Call set_program_name.
36619
36620         * modules/argp-tests (Depends-on): Add progname.
36621         * tests/test-argp.c: Include argp.h first. Include progname.h.
36622         (main): Call set_program_name.
36623
36624 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36625
36626         * doc/gnulib-tool.texi (Initial import): Reword description of
36627         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36628         limited effect even if defined after the first system include.
36629
36630 2007-03-01  Bruno Haible  <bruno@clisp.org>
36631
36632         * build-aux/config.libpath: Update to libtool-1.5.22.
36633         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36634
36635 2007-03-01  Bruno Haible  <bruno@clisp.org>
36636
36637         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36638         foo_CFLAGS.
36639         Reported by Ralf Wildenhues.
36640
36641 2007-03-01  Bruno Haible  <bruno@clisp.org>
36642
36643         * build-aux/install-reloc: Remove object files left over by some
36644         compilers.
36645         Reported by Ralf Wildenhues.
36646
36647 2007-03-01  Bruno Haible  <bruno@clisp.org>
36648
36649         * build-aux/install-reloc: Break long lines.
36650
36651 2007-03-01  Bruno Haible  <bruno@clisp.org>
36652
36653         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36654         Reported by Ralf Wildenhues.
36655
36656 2007-03-01  Bruno Haible  <bruno@clisp.org>
36657
36658         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36659         include ordering constraints.
36660
36661 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36662
36663         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36665         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36666         as another example.
36667         * lib/time_.h: Fix misspelling.
36668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36669         Require gl_HEADER_TIME_H_DEFAULTS.
36670         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36671         * m4/time_r.m4 (gl_TIME_R): Likewise.
36672         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36673
36674 2007-03-01  Bruno Haible  <bruno@clisp.org>
36675
36676         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36677         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36678
36679 2007-03-01  Jim Meyering  <jim@meyering.net>
36680
36681         * modules/xreadlink (Maintainer): Add my name.
36682         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36683
36684 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36685             Bruno Haible  <bruno@clisp.org>
36686
36687         * build-aux/install-reloc: Compile also c-ctype.c.
36688         * build-aux/relocatable.sh.in: New file.
36689         * doc/relocatable.texi: New file.
36690         * doc/relocatable-maint.texi: New file.
36691         * doc/gnulib.texi: Include relocatable-maint.texi.
36692         * lib/progreloc.c: Include unistd.h unconditionally.
36693         * lib/relocwrapper.c: Include unistd.h unconditionally.
36694         Include c-ctype.h.
36695         (add_dotbin): Use c_tolower.
36696         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36697         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36698         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36699         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36700         to m4/relocatable-lib.m4.
36701         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36702         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36703         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36704         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36705         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36706         * modules/relocatable: New file.
36707         * modules/relocatable-lib: New file.
36708         * modules/relocatable-script: New file.
36709
36710 2007-02-28  Bruno Haible  <bruno@clisp.org>
36711
36712         Import --enable-relocatable infrastructure.
36713         * build-aux/config.libpath: New file, from GNU gettext.
36714         * build-aux/install-reloc: New file, from GNU gettext.
36715         * build-aux/reloc-ldflags: New file, from GNU gettext.
36716         * lib/relocatable.h: New file, from GNU gettext.
36717         * lib/relocatable.c: New file, from GNU gettext.
36718         * lib/relocwrapper.c: New file, from GNU gettext.
36719         * m4/relocatable.m4: New file, from GNU gettext.
36720
36721 2007-02-28  Bruno Haible  <bruno@clisp.org>
36722
36723         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36724
36725         * modules/xreadlink: New file, from GNU gettext with modifications.
36726         * lib/xreadlink.c: New file, from GNU gettext.
36727         * lib/xreadlink.h: Add comments.
36728         (xreadlink): New declaration.
36729
36730         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36731         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36732         lib/xreadlink-with-size.c.
36733         (configure.ac): Remove gl_XREADLINK invocation.
36734         (Makefile.am): Augment lib_SOURCES.
36735         * m4/xreadlink.m4: Remove file.
36736         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36737         (xreadlink_with_size): Renamed from xreadink.
36738         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36739         * modules/canonicalize (Depends-on): Replace xreadlink with
36740         xreadlink-with-size.
36741         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36742
36743 2007-02-25  Jim Meyering  <jim@meyering.net>
36744
36745         * build-aux/announce-gen: When complaining about excess arguments,
36746         list them.
36747
36748 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36749
36750         * README: Document signed integer overflow situation more
36751         accurately.
36752
36753 2007-02-25  Bruno Haible  <bruno@clisp.org>
36754
36755         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36756         'a' or 'A' conversion.
36757
36758 2007-02-25  Bruno Haible  <bruno@clisp.org>
36759
36760         * modules/filename: Renamed from modules/pathname.
36761         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36762         lib/concatpath.c with lib/concat-filename.c.
36763         (Makefile.am): Update.
36764         (Include): Replace pathname.h with filename.h.
36765         * lib/filename.h: Renamed from lib/pathname.h.
36766         (concatenated_filename): Renamed from concatenated_pathname.
36767         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36768         (concatenated_filename): Renamed from concatenated_pathname.
36769         * lib/findprog.c: Include filename.h instead of pathname.h.
36770         (find_in_path): Update.
36771         * lib/javacomp.c: Include filename.h instead of pathname.h.
36772         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36773         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36774         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36775         is_oldgcj_14_13_usable, is_javac_usable): Update.
36776         * lib/javaexec.c: Include filename.h instead of pathname.h.
36777         (execute_java_class): Update.
36778         * modules/findprog: Update.
36779         * modules/javacomp: Update.
36780         * modules/javaexec: Update.
36781         * MODULES.html.sh (File system functions): Add 'filename', remove
36782         'pathname'.
36783
36784 2007-02-25  Bruno Haible  <bruno@clisp.org>
36785
36786         * modules/printf-frexpl-tests: New file.
36787         * tests/test-printf-frexpl.c: New file.
36788
36789         * modules/printf-frexpl: New file.
36790         * lib/printf-frexpl.h: New file.
36791         * lib/printf-frexpl.c: New file.
36792         * m4/printf-frexpl.m4: New file.
36793
36794 2007-02-25  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/printf-frexp-tests: New file.
36797         * tests/test-printf-frexp.c: New file.
36798
36799         * modules/printf-frexp: New file.
36800         * lib/printf-frexp.h: New file.
36801         * lib/printf-frexp.c: New file.
36802         * m4/printf-frexp.m4: New file.
36803
36804 2007-02-25  Bruno Haible  <bruno@clisp.org>
36805
36806         Assume automake >= 1.10 for the tests.
36807         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36808         * modules/arctwo-tests: Likewise.
36809         * modules/argp-tests: Likewise.
36810         * modules/avltree-list-tests: Likewise.
36811         * modules/avltree-oset-tests: Likewise.
36812         * modules/avltreehash-list-tests: Likewise.
36813         * modules/carray-list-tests: Likewise.
36814         * modules/crc-tests: Likewise.
36815         * modules/des-tests: Likewise.
36816         * modules/gc-arcfour-tests: Likewise.
36817         * modules/gc-arctwo-tests: Likewise.
36818         * modules/gc-des-tests: Likewise.
36819         * modules/gc-hmac-md5-tests: Likewise.
36820         * modules/gc-hmac-sha1-tests: Likewise.
36821         * modules/gc-md2-tests: Likewise.
36822         * modules/gc-md4-tests: Likewise.
36823         * modules/gc-md5-tests: Likewise.
36824         * modules/gc-pbkdf2-sha1-tests: Likewise.
36825         * modules/gc-rijndael-tests: Likewise.
36826         * modules/gc-sha1-tests: Likewise.
36827         * modules/gc-tests: Likewise.
36828         * modules/getaddrinfo-tests: Likewise.
36829         * modules/hmac-md5-tests: Likewise.
36830         * modules/hmac-sha1-tests: Likewise.
36831         * modules/linked-list-tests: Likewise.
36832         * modules/linkedhash-list-tests: Likewise.
36833         * modules/lock-tests: Likewise.
36834         * modules/md2-tests: Likewise.
36835         * modules/md4-tests: Likewise.
36836         * modules/md5-tests: Likewise.
36837         * modules/rbtree-list-tests: Likewise.
36838         * modules/rbtree-oset-tests: Likewise.
36839         * modules/rbtreehash-list-tests: Likewise.
36840         * modules/read-file-tests: Likewise.
36841         * modules/rijndael-tests: Likewise.
36842         * modules/stdint-tests: Likewise.
36843         * modules/tls-tests: Likewise.
36844
36845 2007-02-24  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36848         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36849         function; instead check whether isnan with a double argument links.
36850         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36851         function; instead check whether isnan with a 'long double' argument
36852         links.
36853         Reported by Eric Blake <ebb9@byu.net>.
36854
36855 2007-02-24  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36858         defined.
36859         * lib/isnanl.c: Remove all code. Just include isnan.c.
36860         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36861
36862 2007-02-25  Jim Meyering  <jim@meyering.net>
36863
36864         Avoid conflicting types for 'unsetenv' on FreeBSD.
36865         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36866         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36867         in stdlib.h.
36868
36869 2007-02-24  Bruno Haible  <bruno@clisp.org>
36870
36871         * modules/isnanl-nolibm-tests: New file.
36872         * tests/test-isnanl.c: New file.
36873
36874         * modules/isnanl-nolibm: New file.
36875         * lib/isnanl.h: New file.
36876         * lib/isnanl.c: New file.
36877         * m4/isnanl.m4: New file.
36878
36879 2007-02-24  Bruno Haible  <bruno@clisp.org>
36880
36881         * modules/isnan-nolibm-tests: New file.
36882         * tests/test-isnan.c: New file.
36883
36884         * modules/isnan-nolibm: New file.
36885         * lib/isnan.h: New file.
36886         * lib/isnan.c: New file.
36887         * m4/isnan.m4: New file.
36888
36889 2007-02-24  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36892         assume that an exponent fits in 20 bits.
36893
36894 2007-02-24  Jim Meyering  <jim@meyering.net>
36895
36896         * m4/regex.m4: Update the description of the configure-time option,
36897         --without-included-regex, to state accurately what the defaults are,
36898         and perhaps to give people an idea why using this option is risky.
36899
36900 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36901
36902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36903         loops on small arguments.  This attempts to avoid the problem
36904         Bruno Haible reported for AIX 4.3.2 in
36905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36906
36907 2007-02-23  Bruno Haible  <bruno@clisp.org>
36908
36909         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36910         Needed for help2man.
36911
36912 2007-02-23  Karl Berry  <karl@gnu.org>
36913
36914         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36915         exists, foo.h should be cvs-ignored, not committed.
36916
36917 2007-02-23  Eric Blake  <ebb9@byu.net>
36918
36919         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36920         * lib/stat-time.h (includes): Likewise.
36921         * lib/utimecmp.c (includes): Likewise.
36922         * lib/utimens.h (includes): Likewise.
36923         * lib/getdate.y (includes): Also include "timespec.h" for use
36924         internal to the module.
36925         * modules/utimens (Depends-on): Revert yesterday's patch.
36926         * modules/nanosleep (Depends-on): Add missing dependency.
36927
36928 2007-02-22  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/glob.c: Don't include getlogin_r.h.
36931
36932 2007-02-22  Jim Meyering  <jim@meyering.net>
36933
36934         * modules/utimens (Depends-on): Add timespec, required for
36935         utimens.h's inclusion of timespec.h.
36936
36937 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36938
36939         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36940         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36941         Schwab in
36942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36943         I'll try to think of a better way to fix the Solaris problem.
36944
36945         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36946         like glibc; on Solaris 10, it fails with errno == EINVAL.
36947         POSIX says the behavior is unspecified if the first argument is NULL,
36948         so play it safe and never pass NULL to the system getcwd.
36949
36950 2007-02-21  Jim Meyering  <jim@meyering.net>
36951
36952         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36953         of gettimeofday.  It would conflict with the one now always
36954         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36955         an IRIX 6.5 build failure.
36956
36957 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36958
36959         Minor fixups to port to Solaris 10 with Sun C 5.8.
36960         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36961         * modules/getcwd (Depends-on): Add dirfd.
36962         * lib/putenv.c (putenv): #undef it.
36963         (rpl_putenv): New decl.
36964         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36965
36966 2007-02-20  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/stdio-tests: New file.
36969         * tests/test-stdio.c: New file.
36970
36971         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36972         (Depends-on): Add stdio.
36973         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36974         (Include): Use <stdio.h> instead of vsnprintf.h.
36975         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36976         HAVE_DECL_VSNPRINTF.
36977         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36978
36979         * modules/snprintf (Files): Remove lib/snprintf.h.
36980         (Depends-on): Add stdio.
36981         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36982         (Include): Use <stdio.h> instead of snprintf.h.
36983         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36984         HAVE_DECL_SNPRINTF.
36985         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36986         * lib/getaddrinfo.c: Likewise.
36987
36988         * modules/stdio: New file.
36989         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36990         * lib/snprintf.h: Remove file.
36991         * lib/vsnprintf.h: Remove file.
36992         * lib/.cppi-disable: Remove snprintf.h.
36993         * m4/stdio_h.m4: New file.
36994         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36995
36996 2007-02-20  Jim Meyering  <jim@meyering.net>
36997
36998         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36999         used by e.g., mingw.  From Bruno Haible.
37000
37001 2007-02-19  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37004         warnings.
37005         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37006
37007 2007-02-19  Bruno Haible  <bruno@clisp.org>
37008
37009         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37010         from mingw users.
37011
37012 2007-02-19  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37015         warnings.
37016         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37017
37018 2007-02-19  Jim Meyering  <jim@meyering.net>
37019
37020         Don't use FD after a successful "fdopendir (fd)".
37021         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37022         Reset it by calling dirfd on the just-obtained DIR*.
37023
37024         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37025         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37026
37027 2007-02-18  Bruno Haible  <bruno@clisp.org>
37028
37029         * lib/readlink.c: Include <unistd.h>.
37030         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37031         HAVE_READLINK.
37032         * modules/readlink (Depends-on): Add unistd.
37033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37034         (Include): Add <unistd.h>.
37035
37036         * lib/getlogin_r.h: Remove file.
37037         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37038         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37039         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37040         HAVE_DECL_GETLOGIN_R.
37041         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37043         (Include): Use <unistd.h> instead of getlogin_r.h.
37044
37045         * lib/getcwd.h: Remove file.
37046         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37047         * lib/xgetcwd.c: Likewise.
37048         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37049         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37050         * modules/getcwd (Files): Remove lib/getcwd.h.
37051         (Depends-on): Add unistd.
37052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37053         (Include): Use <unistd.h> instad of getcwd.h.
37054
37055         * lib/ftruncate.c: Include <unistd.h> first.
37056         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37057         Set HAVE_FTRUNCATE.
37058         * modules/ftruncate (Depends-on): Add unistd.
37059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37060
37061         * lib/fchdir.c: Include <unistd.h> first.
37062         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37064         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37065         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37066         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37067
37068         * lib/dup2.c: Include <unistd.h> first.
37069         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37070         HAVE_DUP2.
37071         * modules/dup2 (Depends-on): Add unistd.
37072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37073
37074         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37075         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37076         REPLACE_CHOWN. Don't define chown as a macro here.
37077         * modules/chown (Depends-on): Add unistd.
37078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37079
37080         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37081         Add definition for GL_LINK_WARNING.
37082         (chown, dup2): New declarations.
37083         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37084         link warning.
37085         (ftruncate): New declaration.
37086         (getcwd): New declaration, taken from old getcwd.h.
37087         (getlogin_r): New declaration, taken from old getlogin_r.h.
37088         (readlink): New declaration.
37089         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37090         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37091         (gl_PREREQ_UNISTD): Remove macro.
37092         (gl_UNISTD_MODULE_INDICATOR): New macro.
37093         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37094         many new variables. Don't set UNISTD_H.
37095         * modules/unistd (Description): Change.
37096         (Depends-on): Add link-warning.
37097         (configure.ac): Update.
37098         (Makefile.am): Create unistd.h always. Substitute many new variables
37099         into it.
37100
37101 2007-02-18  Bruno Haible  <bruno@clisp.org>
37102
37103         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37104         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37105         HAVE_GETSUBOPT.
37106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37107         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37108         * lib/getsubopt.h: Remove file.
37109         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37110         (Depends-on): Add stdlib.
37111         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37112         (Includes): Use <stdlib.h> instead of getsubopt.h.
37113         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37114         Set HAVE_GETSUBOPT.
37115         * lib/getsubopt.c: Don't include getsubopt.h.
37116
37117 2007-02-18  Bruno Haible  <bruno@clisp.org>
37118
37119         * modules/fchdir (Depends-on): Add dup2.
37120
37121 2007-02-18  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/stdlib_.h: Handle glibc's special invocation convention
37124         specially.
37125
37126 2007-02-18  Bruno Haible  <bruno@clisp.org>
37127
37128         * modules/stdlib-tests: New file.
37129         * tests/test-stdlib.c: New file.
37130
37131         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37132         (Depends-on): Add stdlib.
37133         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37134         (Includes): Use <stdlib.h> instead of mkstemp.h.
37135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37136         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37137         * lib/mkstemp.c: Don't include mkstemp.h.
37138         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37139         * lib/stdlib--.h: Don't include mkstemp.h.
37140
37141         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37142         (Depends-on): Add stdlib.
37143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37144         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37145         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37146         HAVE_MKDTEMP.
37147         * lib/mkdtemp.c: Don't include mkdtemp.h.
37148         * lib/clean-temp.c: Don't include mkdtemp.h.
37149
37150         * modules/exit (Files): Remove lib/exit.h.
37151         (Depends-on): Add stdlib.
37152         (Makefile.am): Remove lib_SOURCES.
37153         (Include): Use <stdlib.h> instead of exit.h.
37154         * lib/argmatch.c: Don't include exit.h.
37155         * lib/execute.c: Likewise.
37156         * lib/pagealign_alloc.c: Likewise.
37157         * lib/pipe.c: Likewise.
37158         * lib/wait-process.c: Likewise.
37159         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37160         * lib/exitfail.c: Likewise.
37161         * lib/savewd.c: Likewise.
37162         * lib/xsetenv.c: Likewise.
37163
37164         * modules/stdlib: New file.
37165         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37166         and extra comments about mkstemp().
37167         * lib/exit.h: Remove file.
37168         * lib/mkdtemp.h: Remove file.
37169         * lib/mkstemp.h: Remove file.
37170         * m4/stdlib_h.m4: New file.
37171         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37172
37173 2007-02-18  Bruno Haible  <bruno@clisp.org>
37174
37175         * modules/math-tests: New file.
37176         * tests/test-math.c: New file.
37177
37178         * modules/math: New file.
37179         * modules/mathl (Files): Remove lib/mathl.h.
37180         (Depends-on): Add math.
37181         (Makefile.am): Don't mention mathl.h.
37182         (Include): Use <math.h> instead of mathl.h.
37183         * lib/math_.h: New file.
37184         * lib/mathl.h: Remove file.
37185         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37186         mathl.h.
37187         * lib/asinl.c: Likewise.
37188         * lib/atanl.c: Likewise.
37189         * lib/ceill.c: Likewise.
37190         * lib/cosl.c: Likewise.
37191         * lib/expl.c: Likewise.
37192         * lib/floorl.c: Likewise.
37193         * lib/frexpl.c: Likewise.
37194         * lib/ldexpl.c: Likewise.
37195         * lib/logl.c: Likewise.
37196         * lib/sincosl.c: Likewise.
37197         * lib/sinl.c: Likewise.
37198         * lib/sqrtl.c: Likewise.
37199         * lib/tanl.c: Likewise.
37200         * lib/trigl.c: Likewise.
37201         * m4/math_h.m4: New file.
37202         * MODULES.html.sh (Mathematics): Add math.
37203
37204 2007-02-17  Bruno Haible  <bruno@clisp.org>
37205
37206         * modules/wctype-tests: New file.
37207         * tests/test-wctype.c: New file.
37208
37209         * modules/wchar-tests: New file.
37210         * tests/test-wchar.c: New file.
37211
37212         * modules/unistd-tests: New file.
37213         * tests/test-unistd.c: New file.
37214
37215         * modules/time-tests: New file.
37216         * tests/test-time.c: New file.
37217
37218         * modules/sysexits-tests: New file.
37219         * tests/test-sysexits.c: New file.
37220
37221         * modules/sys_time-tests: New file.
37222         * tests/test-sys_time.c: New file.
37223
37224         * modules/sys_stat-tests: New file.
37225         * tests/test-sys_stat.c: New file.
37226
37227         * modules/sys_socket-tests: New file.
37228         * tests/test-sys_socket.c: New file.
37229
37230         * modules/sys_select-tests: New file.
37231         * tests/test-sys_select.c: New file.
37232
37233         * modules/string-tests: New file.
37234         * tests/test-string.c: New file.
37235
37236         * modules/stdbool-tests: New file.
37237         * tests/test-stdbool.c: New file.
37238
37239         * modules/netinet_in-tests: New file.
37240         * tests/test-netinet_in.c: New file.
37241
37242         * modules/inttypes-tests: New file.
37243         * tests/test-inttypes.c: New file.
37244
37245         * modules/fcntl-tests: New file.
37246         * tests/test-fcntl.c: New file.
37247
37248         * modules/byteswap-tests: New file.
37249         * tests/test-byteswap.c: New file.
37250
37251         * modules/arpa_inet-tests: New file.
37252         * tests/test-arpa_inet.c: New file.
37253
37254 2007-02-17  Bruno Haible  <bruno@clisp.org>
37255
37256         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37257         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37258         if the corresponding module is not enabled. Emit link warnings if
37259         the function is used nevertheless.
37260         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37261         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37262         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37263         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37264         * modules/inttypes (Depends-on): Add link-warning.
37265         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37266         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37267         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37268         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37269         * modules/imaxdiv (configure.ac): Likewise.
37270         * modules/strtoimax (configure.ac): Likewise.
37271         * modules/strtoumax (configure.ac): Likewise.
37272
37273 2007-02-17  Bruno Haible  <bruno@clisp.org>
37274
37275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37276         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37277         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37278         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37279
37280 2007-02-17  Bruno Haible  <bruno@clisp.org>
37281
37282         * modules/link-warning: New file.
37283         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37284         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37285         * modules/string (Depends-on): Add link-warning.
37286         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37287         string.h.
37288         * MODULES.html.sh (Support for building libraries and executables): Add
37289         link-warning.
37290
37291 2007-02-17  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37294         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37295         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37296         long lines.
37297
37298 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37299             Bruno Haible  <bruno@clisp.org>
37300
37301         * modules/tmpfile: New file.
37302         * lib/tmpfile.c: New file.
37303         * m4/tmpfile.m4: New file.
37304         * MODULES.html.sh (func_all_modules): New section "Input/output".
37305
37306 2007-02-15  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37309         (supports_delete_on_close): New function.
37310         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37311
37312 2007-02-14  Bruno Haible  <bruno@clisp.org>
37313
37314         * modules/mbspcasecmp-tests: New file.
37315         * tests/test-mbspcasecmp.sh: New file.
37316         * tests/test-mbspcasecmp.c: New file.
37317
37318         New module mbspcasecmp.
37319         * modules/mbspcasecmp: New file.
37320         * lib/mbspcasecmp.c: New file.
37321         * lib/string_.h (strncasecmp): Change warning message.
37322         (mbspcasecmp): New declaration.
37323         * m4/mbspcasecmp.m4: New file.
37324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37325         GNULIB_MBSPCASECMP.
37326         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37327         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37328
37329 2007-02-14  Bruno Haible  <bruno@clisp.org>
37330
37331         * modules/mbsncasecmp-tests: New file.
37332         * tests/test-mbsncasecmp.sh: New file.
37333         * tests/test-mbsncasecmp.c: New file.
37334
37335         New module mbsncasecmp.
37336         * modules/mbsncasecmp: New file.
37337         * lib/mbsncasecmp.c: New file.
37338         * lib/string_.h (mbsncasecmp): New declaration.
37339         * m4/mbsncasecmp.m4: New file.
37340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37341         GNULIB_MBSNCASECMP.
37342         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37343         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37344
37345 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37346
37347         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37348         Verify that it doesn't overlap with our flags.
37349         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37350         do not have the desired effect in multibyte locales; instead, use
37351         mbscasecmp.
37352         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37353         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37354         we don't require GNU fnmatch ourselves (if our users require it, they
37355         should do so explicitly).
37356
37357         Fix regex code so it doesn't rely on strcasecmp.
37358         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37359         Otherwise, include gnulib's langinfo.h.
37360         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37361         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37362         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37363         * modules/regex (FILES): Remove m4/codeset.m4.
37364         (Depends-on): Add localcharset.  Remove strcase.
37365
37366 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37367
37368         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37369         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37370
37371 2007-02-13  Bruno Haible  <bruno@clisp.org>
37372
37373         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37375
37376 2007-02-12  Bruno Haible  <bruno@clisp.org>
37377
37378         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37379         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37380         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37381         time warning rather than a link error.
37382
37383 2007-02-12  Bruno Haible  <bruno@clisp.org>
37384
37385         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37388
37389 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37390
37391         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37392         args, not 2.
37393
37394 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37395
37396         New module 'time', so that apps can include <time.h> as per
37397         POSIX and GNU instead of separate include files like time_r.h
37398         and timegm.h.  This implementation tries out a simpler approach
37399         for replacing decls in standard include files (as compared to
37400         the string module), somewhat as an experiment.
37401
37402         * config/srclist.txt: Comment out mktime.c for now.
37403         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37404         since it doesn't apply any more.  Use generic wording instead.
37405         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37406         'time'.
37407         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37408         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37409         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37410         Don't include <sys/types.h>; no longer needed since we assume C89.
37411         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37412         * lib/strftime.c: Likewise.
37413         * lib/time_r.c: Likewise.
37414         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37415         * lib/nanosleep.c: Include <time.h> first, to check interface.
37416         * lib/strptime.c: Likewise.
37417         * lib/time_r.c: Likewise.
37418         * lib/timegm.c: Likewise.
37419         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37420         needed.
37421         * lib/timegm.c: Don't include timegm.h; no longer needed.
37422         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37423         time.h now handles any problems in that area.
37424         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37425         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37426         that time.h defines struct timespec.
37427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37428         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37429         handles that.
37430         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37431         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37432         needed.  Set REPLACE_LOCALTIME.
37433         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37434         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37435         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37436         nanosleep; time_h.m4 now does that.  Don't require
37437         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37438         module handles this now.
37439         * modules/getdate (Depends-on): Remove timespec.  Add time.
37440         * modules/nanosleep (Depends-on): Likewise.
37441         * modules/stat-time (Depends-on): Likewise.
37442         * modules/nanosleep (Include): Include time.h, not timespec.h.
37443         * modules/strptime (Files): Remove lib/strptime.h.
37444         (Depends-on): Add extensions, time.
37445         (Include): Include time.h, not strptime.h.
37446         * modules/time_r (Files): Remove lib/time_r.h.
37447         (Depends-on): Add time.
37448         (Include): Include time.h, not time_r.h.
37449         * modules/timegm: Likewise.
37450         * modules/timespec (Description): Now does timespec-related decls
37451         of our own, instead of struct timespec itself.
37452         (Depends-on): Add time; remove extensions.
37453         (Maintainer): Add self.
37454         * modules/utimecmp (Depends-on): Add time; remove timespec.
37455         * modules/utimens (Depends-on): Likewise.
37456         * modules/xnanosleep (Depends-on): Likewise.
37457
37458 2007-02-11  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/c-strstr.c: Include allocsa.h.
37461         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37462         * lib/c-strcasestr.c: Include allocsa.h.
37463         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37464         * lib/strcasestr.c: Include allocsa.h.
37465         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37466         * lib/mbsstr.c: Include allocsa.h.
37467         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37468         allocsa/freesa instead of malloc/free.
37469         * lib/mbscasestr.c: Include allocsa.h.
37470         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37471         allocsa/freesa instead of malloc/free.
37472         * modules/c-strstr (Depends-on): Add allocsa.
37473         * modules/c-strcasestr (Depends-on): Likewise.
37474         * modules/strcasestr (Depends-on): Likewise.
37475         * modules/mbsstr (Depends-on): Likewise.
37476         * modules/mbscasestr (Depends-on): Likewise.
37477
37478 2007-02-11  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37481
37482         * modules/mbsspn-tests: New file.
37483         * tests/test-mbsspn.sh: New file.
37484         * tests/test-mbsspn.c: New file.
37485
37486 2007-02-11  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37489
37490         * modules/mbspbrk-tests: New file.
37491         * tests/test-mbspbrk.sh: New file.
37492         * tests/test-mbspbrk.c: New file.
37493
37494 2007-02-11  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37497         unneeded cast.
37498
37499         * modules/mbscspn-tests: New file.
37500         * tests/test-mbscspn.sh: New file.
37501         * tests/test-mbscspn.c: New file.
37502
37503 2007-02-11  Bruno Haible  <bruno@clisp.org>
37504
37505         * modules/mbscasecmp-tests: New file.
37506         * tests/test-mbscasecmp.sh: New file.
37507         * tests/test-mbscasecmp.c: New file.
37508
37509 2007-02-11  Bruno Haible  <bruno@clisp.org>
37510
37511         Ensure O(n) worst-case complexity of mbscasestr.
37512         * lib/mbscasestr.c: Include stdbool.h.
37513         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37514         functions.
37515         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37516         the bookkeeping indicates that it's worth it.
37517         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37518
37519         * modules/mbscasestr-tests: New file.
37520         * tests/test-mbscasestr1.c: New file.
37521         * tests/test-mbscasestr2.sh: New file.
37522         * tests/test-mbscasestr2.c: New file.
37523         * tests/test-mbscasestr3.sh: New file.
37524         * tests/test-mbscasestr3.c: New file.
37525         * tests/test-mbscasestr4.sh: New file.
37526         * tests/test-mbscasestr4.c: New file.
37527         * m4/locale-tr.m4: New file.
37528
37529 2007-02-11  Bruno Haible  <bruno@clisp.org>
37530
37531         Ensure O(n) worst-case complexity of mbsstr.
37532         * lib/mbsstr.c: Include stdbool.h.
37533         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37534         functions.
37535         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37536         bookkeeping indicates that it's worth it.
37537         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37538
37539         * modules/mbsstr-tests: New file.
37540         * tests/test-mbsstr1.c: New file.
37541         * tests/test-mbsstr2.sh: New file.
37542         * tests/test-mbsstr2.c: New file.
37543         * tests/test-mbsstr3.sh: New file.
37544         * tests/test-mbsstr3.c: New file.
37545         * m4/locale-fr.m4: New file.
37546
37547 2007-02-11  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/mbsrchr.c (mbsrchr): Fix bug.
37550
37551         * modules/mbsrchr-tests: New file.
37552         * tests/test-mbsrchr.sh: New file.
37553         * tests/test-mbsrchr.c: New file.
37554
37555 2007-02-11  Bruno Haible  <bruno@clisp.org>
37556
37557         * lib/mbschr.c (mbschr): Fix bug.
37558
37559         * modules/mbschr-tests: New file.
37560         * tests/test-mbschr.sh: New file.
37561         * tests/test-mbschr.c: New file.
37562         * m4/locale-zh.m4: New file.
37563
37564 2007-02-11  Bruno Haible  <bruno@clisp.org>
37565
37566         Support for copying multibyte string iterators.
37567         * lib/mbiter.h: Include <string.h>.
37568         (mbiter_multi_copy): New function.
37569         (mbi_copy): New macro.
37570         * lib/mbuiter.h: Include <string.h>.
37571         (mbuiter_multi_copy): New function.
37572         (mbui_copy): New macro.
37573
37574 2007-02-11  Bruno Haible  <bruno@clisp.org>
37575
37576         New module mbslen.
37577         * modules/mbslen: New file.
37578         * lib/mbslen.c: New file.
37579         * lib/string_.h (mbslen): New declaration.
37580         * m4/mbslen.m4: New file.
37581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37582         GNULIB_MBSLEN.
37583         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37584         * MODULES.html.sh (Internationalization functions): Add mbslen.
37585
37586 2007-02-11  Bruno Haible  <bruno@clisp.org>
37587
37588         Ensure O(n) worst-case complexity of strcasestr substitute.
37589         * lib/strcasestr.c: Include stdbool.h.
37590         (knuth_morris_pratt): New function.
37591         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37592         bookkeeping indicates that it's worth it.
37593         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37594
37595         * modules/strcasestr-tests: New file.
37596         * tests/test-strcasestr.c: New file.
37597
37598 2007-02-11  Bruno Haible  <bruno@clisp.org>
37599
37600         Ensure O(n) worst-case complexity of c_strcasestr.
37601         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37602         (knuth_morris_pratt): New function.
37603         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37604         the bookkeeping indicates that it's worth it.
37605         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37606
37607         * modules/c-strcasestr-tests: New file.
37608         * tests/test-c-strcasestr.c: New file.
37609
37610 2007-02-11  Bruno Haible  <bruno@clisp.org>
37611
37612         Ensure O(n) worst-case complexity of c_strstr.
37613         * lib/c-strstr.c: Include stdbool.h, string.h.
37614         (knuth_morris_pratt): New function.
37615         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37616         bookkeeping indicates that it's worth it.
37617         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37618
37619         * lib/c-strstr.c: Complete rewrite for maintainability.
37620
37621         * modules/c-strstr-tests: New file.
37622         * tests/test-c-strstr.c: New file.
37623
37624 2007-02-11  Bruno Haible  <bruno@clisp.org>
37625
37626         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37627         5.2.1 and earlier, whereby \055 was treated just like the range
37628         delimiter '-'.
37629         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37630
37631 2007-02-08  Bruno Haible  <bruno@clisp.org>
37632
37633         * modules/regex (Depends-on): Add stdbool.
37634         Reported by Dalibor Topic <robilad@kaffe.org>.
37635
37636 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37637
37638         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37639         Prefer returning from main to exiting from it.
37640         Remove unnecessary parens after sizeof.
37641
37642 2007-02-05  Bruno Haible  <bruno@clisp.org>
37643
37644         New module mbssep.
37645         * modules/mbssep: New file.
37646         * lib/mbssep.c: New file.
37647         * lib/string_.h (strsep): Add a conditional link warning.
37648         (mbssep): New declaration.
37649         * m4/mbssep.m4: New file.
37650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37651         GNULIB_MBSSEP.
37652         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37653         * MODULES.html.sh (Internationalization functions): Add mbssep.
37654
37655 2007-02-05  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37658         Optimize search in case of 1 delimiter.
37659
37660 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37661
37662         * lib/acl.h: Include sys/types.h before sys/acl.h.
37663
37664 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37665
37666         Merge upstream fix for glibc bugzilla #3957:
37667
37668         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37669
37670         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37671         bit for RE_HAT_LISTS_NOT_NEWLINE.
37672         (build_charclass_op): Remove bogus comment.
37673
37674 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37675
37676         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37677
37678 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37679
37680         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37681         * lib/memmem.c [!defined _LIBC]: Include config.h.
37682
37683 2007-02-04  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37686         warning message.
37687
37688 2007-02-04  Bruno Haible  <bruno@clisp.org>
37689
37690         New module mbstok_r.
37691         * modules/mbstok_r: New file.
37692         * lib/mbstok_r.c: New file.
37693         * lib/string_.h (strtok_r): Change argument names to match the
37694         comments. Add a conditional link warning.
37695         (mbstok_r): New declaration.
37696         * m4/mbstok_r.m4: New file.
37697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37698         GNULIB_MBSTOK_R.
37699         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37700         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37701
37702 2007-02-04  Bruno Haible  <bruno@clisp.org>
37703
37704         New module mbsspn.
37705         * modules/mbsspn: New file.
37706         * lib/mbsspn.c: New file.
37707         * lib/string_.h (strspn): Add a conditional link warning.
37708         (mbsspn): New declaration.
37709         * m4/mbsspn.m4: New file.
37710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37711         GNULIB_MBSSPN.
37712         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37713         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37714
37715 2007-02-04  Bruno Haible  <bruno@clisp.org>
37716
37717         New module mbspbrk.
37718         * modules/mbspbrk: New file.
37719         * lib/mbspbrk.c: New file.
37720         * lib/string_.h (strpbrk): Add a conditional link warning.
37721         (mbspbrk): New declaration.
37722         * m4/mbspbrk.m4: New file.
37723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37724         GNULIB_MBSPBRK.
37725         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37726         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37727
37728 2007-02-04  Bruno Haible  <bruno@clisp.org>
37729
37730         New module mbscspn.
37731         * modules/mbscspn: New file.
37732         * lib/mbscspn.c: New file.
37733         * lib/string_.h (strcspn): Add a conditional link warning.
37734         (mbscspn): New declaration.
37735         * m4/mbscspn.m4: New file.
37736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37737         GNULIB_MBSCSPN.
37738         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37739         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37740
37741 2007-02-04  Bruno Haible  <bruno@clisp.org>
37742
37743         New module mbscasestr, reduced goal of strcasestr.
37744         * modules/mbscasestr: New file.
37745         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37746         (mbscasestr): Renamed from strcasestr.
37747         * lib/strcasestr.c: Don't include mbuiter.h.
37748         (strcasestr): Remove support for multibyte locales.
37749         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37750         Change the conditional link warning.
37751         (mbscasestr): New declaration.
37752         * m4/mbscasestr.m4: New file.
37753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37754         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37755         REPLACE_STRCASESTR.
37756         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37758         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37759         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37760         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37761         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37762         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37763         (Depends-on): Remove mbuiter.
37764         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37765
37766 2007-02-04  Bruno Haible  <bruno@clisp.org>
37767
37768         Simplify handling of strncasecmp.
37769         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37770         the conditional link warning.
37771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37772         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37773         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37774         * modules/strcase (configure.ac): Don't invoke
37775         gl_STRING_MODULE_INDICATOR.
37776         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37777
37778 2007-02-04  Bruno Haible  <bruno@clisp.org>
37779
37780         New module mbscasecmp, reduced goal of strcasecmp.
37781         * modules/mbscasecmp: New file.
37782         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37783         (mbscasecmp): Renamed from strcasecmp.
37784         * lib/strcasecmp.c: Don't include mbuiter.h.
37785         (strcasecmp): Remove support for multibyte locales.
37786         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37787         Change the conditional link warning.
37788         (mbscasecmp): New declaration.
37789         * m4/mbscasecmp.m4: New file.
37790         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37791         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37792         REPLACE_STRCASECMP.
37793         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37795         GNULIB_MBSCASECMP.
37796         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37797         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37798         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37799         (Depends-on): Remove mbuiter.
37800         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37801
37802 2007-02-04  Bruno Haible  <bruno@clisp.org>
37803
37804         New module mbsstr. Remove module strstr.
37805         * modules/mbsstr: New file.
37806         * modules/strstr: Remove file.
37807         * lib/mbsstr.c: Renamed from lib/strstr.c.
37808         (mbsstr): Renamed from strstr.
37809         * lib/string_.h (strstr): Remove declaration. Change the conditional
37810         link warning.
37811         (mbsstr): New declaration.
37812         * m4/mbsstr.m4: New file.
37813         * m4/strstr.m4: Remove file.
37814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37815         REPLACE_STRSTR.
37816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37817         Don't initialize GNULIB_STRSTR.
37818         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37819         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37820         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37821         (Support for systems lacking ANSI C 89): Remove strstr.
37822
37823 2007-02-04  Bruno Haible  <bruno@clisp.org>
37824
37825         New module mbsrchr.
37826         * modules/mbsrchr: New file.
37827         * lib/mbsrchr.c: New file.
37828         * lib/string_.h (strrchr): Add a conditional link warning.
37829         (mbsrchr): New declaration.
37830         * m4/mbsrchr.m4: New file.
37831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37832         GNULIB_MBSRCHR.
37833         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37834         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37835
37836 2007-02-04  Bruno Haible  <bruno@clisp.org>
37837
37838         New module mbschr.
37839         * modules/mbschr: New file.
37840         * lib/mbschr.c: New file.
37841         * lib/string_.h (strchr): Add a conditional link warning.
37842         (mbschr): New declaration.
37843         * m4/mbschr.m4: New file.
37844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37845         GNULIB_MBSCHR.
37846         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37847         * MODULES.html.sh (Internationalization functions): Add mbschr.
37848
37849 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37850
37851         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37852
37853         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37854
37855 2007-02-04  Bruno Haible  <bruno@clisp.org>
37856
37857         New module description section 'configure.ac-early'.
37858         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37859         (func_get_autoconf_early_snippet): New function.
37860         (func_import, func_create_testdir): Use it. Remove special cases for
37861         modules 'extensions' and 'lock'.
37862         * modules/extensions (configure.ac-early): Require
37863         gl_USE_SYSTEM_EXTENSIONS.
37864         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37865
37866 2007-02-04  Bruno Haible  <bruno@clisp.org>
37867
37868         Make use of gcj-4.3's -fsource and -ftarget option.
37869         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37870         and if so try the options -fsource and -ftarget.
37871         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37872         source_version, ftarget_option, target_version arguments.
37873         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37874         (is_envjavac_oldgcj_14_14_usable): Renamed from
37875         is_envjavac_gcj_14_14_usable.
37876         (is_envjavac_oldgcj_14_13_usable): Renamed from
37877         is_envjavac_gcj_14_13_usable.
37878         (is_gcj_present): Update.
37879         (is_gcj_43, is_gcj43_usable): New functions.
37880         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37881         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37882         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37883         try the options -fsource and -ftarget.
37884
37885 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37886
37887         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37888         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37889         larger value.
37890
37891 2007-02-03  Jim Meyering  <jim@meyering.net>
37892
37893         Give tools a better chance to allocate space for very large buffers.
37894         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37895
37896         Make pwd and readlink work also when run with an unreadable parent dir
37897         on systems with openat support.
37898         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37899         provided getcwd function, even when we have openat support.
37900         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37901
37902 2007-02-02  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37905         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37906         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37907         portability problems if one of these functions is only used on specific
37908         platforms.
37909         Reported by Paul Eggert.
37910
37911 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37912
37913         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37914         is causing more trouble than it's curing.
37915         * lib/regex_internal.h (__mempcpy): Remove.
37916         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37917         (and make the code a tad smaller to boot).
37918         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37919
37920 2007-02-02  Jim Meyering  <jim@meyering.net>
37921
37922         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37923         section, not in the Makefile.am: one.
37924
37925 2007-02-02  Eric Blake  <ebb9@byu.net>
37926
37927         * lib/strchrnul.c: Always include config.h first.
37928
37929         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37930         gnulib strstr is not necessary here.
37931
37932 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37933
37934         * m4/socklen.m4: Fix typo.
37935
37936 2007-02-02  Eric Blake  <ebb9@byu.net>
37937
37938         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37939         * modules/netinet_in (Makefile.am): Likewise.
37940
37941 2007-02-01  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/string_.h (GL_LINK_WARNING): New macro.
37944         (strcasecmp, strstr, strcasestr): If provided by the system,
37945         conditionally define as a macro that leads to a warning instead of to
37946         an error.
37947         (strncasecmp): Conditionally define as a macro that leads to a warning.
37948
37949 2007-02-01  Karl Berry  <karl@gnu.org>
37950
37951         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37952
37953 2007-02-01  Bruno Haible  <bruno@clisp.org>
37954
37955         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37956         renamings.
37957
37958 2007-02-01  Eric Blake  <ebb9@byu.net>
37959
37960         * modules/regex (Depends-on): Revert dependence on mempcpy.
37961         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37962         module's definition of mempcpy.
37963         Reported by Paul Eggert.
37964
37965 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37966
37967         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37968         the symbol XYZ before redefining it.  This fixes a problem with
37969         programs that don't use XYZ, when compiled on systems that define
37970         XYZ to something else.
37971
37972 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37973
37974         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37975         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37976         writeable to group or other and (2) is intended to have a special
37977         mode bit that is set or cleared.  In such a case, the directory
37978         should be neither group- nor other-writeable until the special
37979         mode bits are right.
37980
37981 2007-01-31  Eric Blake  <ebb9@byu.net>
37982
37983         * modules/mountlist (Depends-on): Add strstr.
37984
37985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37986         bug.
37987         * modules/string (Makefile.am): Remove redundant replacement.
37988         * modules/regex (Depends-on): Add mempcpy.
37989
37990 2007-01-31  Bruno Haible  <bruno@clisp.org>
37991
37992         New module description field 'Link'.
37993         * gnulib-tool (func_usage): Document --extract-link-directive.
37994         (sed_extract_prog): Recognize 'Link' directive.
37995         (func_get_link_directive): New function.
37996         (func_import): Show summary of link directives.
37997         Handle --extract-link-directive option.
37998         * modules/acl (Link): New section.
37999         * modules/clock-time (Link): New section.
38000         * modules/euidaccess (Link): New section.
38001         * modules/gettext (Link): New section.
38002         * modules/iconv (Link): New section.
38003         * modules/lock (Link): New section.
38004         * modules/nanosleep (Link): New section.
38005         * modules/readline (Link): New section.
38006
38007 2007-01-27  Bruno Haible  <bruno@clisp.org>
38008
38009         Enforce the use of gnulib modules for unportable <string.h> functions.
38010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38011         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38012         (gl_HEADER_STRING_H_BODY): Require it.
38013         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38014         the symbol XYZ to one that gives a link error.
38015         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38016         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38017         * modules/mempcpy (configure.ac): Likewise.
38018         * modules/memrchr (configure.ac): Likewise.
38019         * modules/stpcpy (configure.ac): Likewise.
38020         * modules/stpncpy (configure.ac): Likewise.
38021         * modules/strcase (configure.ac): Likewise.
38022         * modules/strcasestr (configure.ac): Likewise.
38023         * modules/strchrnul (configure.ac): Likewise.
38024         * modules/strdup (configure.ac): Likewise.
38025         * modules/strndup (configure.ac): Likewise.
38026         * modules/strnlen (configure.ac): Likewise.
38027         * modules/strpbrk (configure.ac): Likewise.
38028         * modules/strsep (configure.ac): Likewise.
38029         * modules/strstr (configure.ac): Likewise.
38030         * modules/strtok_r (configure.ac): Likewise.
38031
38032 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38033
38034         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38035
38036 2007-01-30  Jim Meyering  <jim@meyering.net>
38037
38038         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38039
38040 2007-01-29  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38043         * lib/execute.c: Likewise.
38044         * lib/pipe.c: Likewise.
38045         * lib/printf-args.h: Likewise.
38046         * lib/printf-args.c: Likewise.
38047         * lib/printf-parse.c: Likewise.
38048         * lib/vasnprintf.c: Likewise.
38049
38050 2007-01-29  Eric Blake  <ebb9@byu.net>
38051
38052         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38053         declaration.
38054
38055 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38056
38057         * lib/strptime.h (strptime): Use 'restrict' for args where
38058         POSIX requires this.
38059         * lib/strptime.c (strptime): Likewise.
38060         Change license notice from LGPL to GPL, since gnulib-tool will
38061         change this as needed.
38062         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38063         defined.
38064         Include "strptime.h" first, to check interface.
38065         Do not #undef _LIBC and _NL_CURRENT.
38066         Do not include <stdlib.h>; no longer needed.
38067         Include "time_r.h" and declare ptime_locale_status
38068         only if _LIBC is not defined.
38069         (__P): Remove unused macro.
38070         (match_string): Bring back glibc version, but use it only if _LIBC
38071         is defined.
38072         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38073         Remove unnecessary assertion and abort() call.
38074         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38075         * m4/strptime.m4: Fix serial number comment.
38076         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38077         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38078         (Depends-on): Add time_r.
38079
38080 2007-01-29  Bruno Haible  <bruno@clisp.org>
38081
38082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38083         strptime.
38084         * modules/strptime (Depends-on): Add stdbool.
38085         * lib/strptime.h: Include <time.h> always. Add comments.
38086
38087 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38088
38089         * modules/strptime: New file.
38090         * lib/strptime.h: New file.
38091         * lib/strptime.c: New file.
38092         * m4/strptime.m4: New file.
38093
38094 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38095
38096         * MODULES.html.sh: New module mpsort.
38097         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38098
38099         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38100         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38101         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38102         All uses changed.
38103         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38104         All uses changed.
38105         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38106         to _Restrict_.
38107         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38108         the parameter matches the prototype.
38109
38110 2007-01-28  Jim Meyering  <jim@meyering.net>
38111
38112         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38113         sys/time.h here, reverting that part of the previous patch:
38114         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38115
38116 2007-01-28  Bruno Haible  <bruno@clisp.org>
38117
38118         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38119         value of $(SYS_TIME_H).
38120         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38121         remove it conditionally, too. [added by Jim Meyering]
38122         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38124         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38125         GETTIMEOFDAY_REPLACEMENT to 1.
38126
38127 2007-01-28  Bruno Haible  <bruno@clisp.org>
38128
38129         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38130         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38132         Set UNISTD_H instead of UNISTD_H2.
38133         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38134
38135 2007-01-28  Bruno Haible  <bruno@clisp.org>
38136
38137         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38138         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38139
38140 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38141
38142         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38143         (func_create_testdir): Ensure C locale for `grep' and `tr'
38144         character ranges.
38145         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38146         ACLOCAL_AMFLAGS parsing state machine.
38147
38148 2007-01-27  Bruno Haible  <bruno@clisp.org>
38149
38150         * modules/unistr/base: Update.
38151
38152 2007-01-27  Bruno Haible  <bruno@clisp.org>
38153
38154         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38155         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38156         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38157         modules/unistr/u32-mbtouc.
38158         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38159         * lib/unistr.h: Update.
38160         * lib/linebreak.c: Update.
38161         * modules/unistr/u32-mbtouc: Renamed from
38162         modules/unistr/u32-mbtouc-safe.
38163         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38164         * lib/unistr.h: Update.
38165         * lib/unistr/u32-to-u8.c: Update.
38166         * lib/unistr/u32-to-u16.c: Update.
38167
38168 2007-01-27  Bruno Haible  <bruno@clisp.org>
38169
38170         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38171         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38172         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38173         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38174         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38175         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38176         modules/unistr/u16-mbtouc.
38177         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38178         * lib/unistr.h: Update.
38179         * lib/linebreak.c: Update.
38180         * modules/linebreak: Update.
38181         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38182         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38183         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38184         * modules/unistr/u16-mbtouc: Renamed from
38185         modules/unistr/u16-mbtouc-safe.
38186         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38187         * lib/unistr.h: Update.
38188         * lib/unistr/u16-to-u8.c: Update.
38189         * modules/unistr/u16-to-u8: Update.
38190         * lib/unistr/u16-to-u32.c: Update.
38191         * modules/unistr/u16-to-u32: Update.
38192
38193 2007-01-27  Bruno Haible  <bruno@clisp.org>
38194
38195         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38196         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38197         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38198         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38199         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38200         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38201         modules/unistr/u8-mbtouc.
38202         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38203         * lib/unistr.h: Update.
38204         * lib/striconveh.c: Update.
38205         * modules/striconveh: Update.
38206         * lib/linebreak.c: Update.
38207         * modules/linebreak: Update.
38208         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38209         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38210         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38211         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38212         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38213         * lib/unistr.h: Update.
38214         * lib/striconveh.c: Update.
38215         * modules/striconveh: Update.
38216         * lib/unistr/u8-to-u16.c: Update.
38217         * modules/unistr/u8-to-u16: Update.
38218         * lib/unistr/u8-to-u32.c: Update.
38219         * modules/unistr/u8-to-u32: Update.
38220
38221 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38222
38223         Sync from Libtool.
38224         * lib/argz.c: Do not include strings.h nor memory.h, include
38225         string.h unconditionally.  Patch by Simon Josefsson.
38226
38227 2007-01-27  Bruno Haible  <bruno@clisp.org>
38228
38229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38230         from gl_HEADER_STRING_H_BODY.
38231         (gl_HEADER_STRING_H_BODY): Require it.
38232         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38235         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38237         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38240         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38243         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38244         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38245         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38246         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38247
38248 2007-01-27  Bruno Haible  <bruno@clisp.org>
38249
38250         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38251         check_PROGRAMS into noinst_PROGRAMS.
38252         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38253         check_PROGRAMS in this case.
38254         (func_import): Set for_test to false.
38255         (func_create_testdir): Set for_test to true.
38256
38257 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38258             Bruno Haible  <bruno@clisp.org>
38259
38260         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38261         (Depends-on): Add string.
38262         (Includes): Use <string.h> instead of strcasestr.h.
38263         * modules/string (Makefile.am): Also substitute the value of
38264         REPLACE_STRCASESTR.
38265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38266         assume strcasestr is declared in <string.h> not <strings.h>. Also
38267         set REPLACE_STRCASESTR.
38268         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38269         REPLACE_STRCASESTR.
38270         * lib/strcasestr.h: Remove file.
38271         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38272         * lib/string_.h (strcasestr): New declaration.
38273
38274 2007-01-27  Bruno Haible  <bruno@clisp.org>
38275
38276         * lib/string_.h: Use 'extern'.
38277
38278 2007-01-27  Jim Meyering  <jim@meyering.net>
38279
38280         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38281         of set-but-not-used local, "q".
38282
38283         * lib/mempcpy.c: Include <config.h> before <string.h>.
38284         This fixes a compilation error on HP-UX, due to the system's
38285         "restrict"-using mempcpy prototype.
38286
38287 2007-01-26  Bruno Haible  <bruno@clisp.org>
38288
38289         Small optimization.
38290         * lib/javacomp.c: Include c-strstr.h.
38291          (is_envjavac_gcj): Use c_strstr instead of strstr.
38292         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38293
38294 2007-01-26  Bruno Haible  <bruno@clisp.org>
38295
38296         * MODULES.html.sh (Unicode string functions): Add the new modules.
38297
38298         * modules/uniconv/u32-strconv-to-locale: New file.
38299         * lib/uniconv/u32-strconv-to-locale.c: New file.
38300
38301         * modules/uniconv/u16-strconv-to-locale: New file.
38302         * lib/uniconv/u16-strconv-to-locale.c: New file.
38303
38304         * modules/uniconv/u8-strconv-to-locale: New file.
38305         * lib/uniconv/u8-strconv-to-locale.c: New file.
38306
38307         * modules/uniconv/u32-strconv-from-locale: New file.
38308         * lib/uniconv/u32-strconv-from-locale.c: New file.
38309
38310         * modules/uniconv/u16-strconv-from-locale: New file.
38311         * lib/uniconv/u16-strconv-from-locale.c: New file.
38312
38313         * modules/uniconv/u8-strconv-from-locale: New file.
38314         * lib/uniconv/u8-strconv-from-locale.c: New file.
38315
38316         * modules/uniconv/u32-strconv-to-enc: New file.
38317         * lib/uniconv/u32-strconv-to-enc.c: New file.
38318         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38319         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38320
38321         * modules/uniconv/u16-strconv-to-enc: New file.
38322         * lib/uniconv/u16-strconv-to-enc.c: New file.
38323         * lib/uniconv/u-strconv-to-enc.h: New file.
38324         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38325         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38326
38327         * modules/uniconv/u8-strconv-to-enc: New file.
38328         * lib/uniconv/u8-strconv-to-enc.c: New file.
38329         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38330         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38331
38332         * modules/uniconv/u32-strconv-from-enc: New file.
38333         * lib/uniconv/u32-strconv-from-enc.c: New file.
38334         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38335         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38336
38337         * modules/uniconv/u16-strconv-from-enc: New file.
38338         * lib/uniconv/u16-strconv-from-enc.c: New file.
38339         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38340         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38341
38342         * modules/uniconv/u8-strconv-from-enc: New file.
38343         * lib/uniconv/u8-strconv-from-enc.c: New file.
38344         * lib/uniconv/u-strconv-from-enc.h: New file.
38345         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38346         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38347
38348         * modules/uniconv/u32-conv-from-enc: New file.
38349         * lib/uniconv/u32-conv-from-enc.c: New file.
38350         * modules/uniconv/u32-conv-from-enc-tests: New file.
38351         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38352
38353         * modules/uniconv/u16-conv-from-enc: New file.
38354         * lib/uniconv/u16-conv-from-enc.c: New file.
38355         * lib/uniconv/u-conv-from-enc.h: New file.
38356         * modules/uniconv/u16-conv-from-enc-tests: New file.
38357         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38358
38359         * modules/uniconv/u8-conv-from-enc: New file.
38360         * lib/uniconv/u8-conv-from-enc.c: New file.
38361         * modules/uniconv/u8-conv-from-enc-tests: New file.
38362         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38363
38364         * modules/uniconv/base: New file.
38365         * lib/uniconv.h: New file.
38366
38367 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38368
38369         * doc/gnulib-tool.texi (Initial import): Update to match current
38370         behavior with strdup module.
38371         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38372         * lib/memmem.h: Remove; all uses removed.  This is now done
38373         by <string.h>.
38374         * lib/mempcpy.h: Likewise.
38375         * lib/memrchr.h: Likewise.
38376         * lib/stpcpy.h: Likewise.
38377         * lib/stpncpy.h: Likewise.
38378         * lib/strcase.h: Likewise.
38379         * lib/strchrnul.h: Likewise.
38380         * lib/strdup.h: Likewise.
38381         * lib/strndup.h: Likewise.
38382         * lib/strnlen.h: Likewise.
38383         * lib/strpbrk.h: Likewise.
38384         * lib/strsep.h: Likewise.
38385         * lib/strstr.h: Likewise.
38386         * lib/strtok_r.h: Likewise.
38387         * lib/string_.h: New file.
38388         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38389         Rely on <string.h> instead.
38390         * lib/canon-host.c: Likewise.
38391         * lib/chdir-long.c: Likewise.
38392         * lib/concatpath.c: Likewise.
38393         * lib/exclude.c: Likewise.
38394         * lib/fchdir.c: Likewise.
38395         * lib/getaddrinfo.c: Likewise.
38396         * lib/getcwd.c: Likewise.
38397         * lib/getsubopt.c: Likewise.
38398         * lib/glob.c: Likewise.
38399         * lib/hard-locale.c: Likewise.
38400         * lib/iconvme.c: Likewise.
38401         * lib/javacomp.c: Likewise.
38402         * lib/mempcpy.c: Likewise.
38403         * lib/memrchr.c: Likewise.
38404         * lib/regex_internal.h: Likewise.
38405         * lib/stpncpy.c: Likewise.
38406         * lib/strcasecmp.c: Likewise.
38407         * lib/strchrnul.c: Likewise.
38408         * lib/strdup.c: Likewise.
38409         * lib/striconv.c: Likewise.
38410         * lib/striconveh.c: Likewise.
38411         * lib/striconveha.c: Likewise.
38412         * lib/strncasecmp.c: Likewise.
38413         * lib/strndup.c: Likewise.
38414         * lib/strnlen.c: Likewise.
38415         * lib/strsep.c: Likewise.
38416         * lib/strstr.c: Likewise.
38417         * lib/strtok_r.c: Likewise.
38418         * lib/userspec.c: Likewise.
38419         * lib/w32spawn.h: Likewise.
38420         * lib/xstrndup.c: Likewise.
38421         * lib/mountlist.c (strstr): Remove decl.
38422         * m4/string_h.m4: New file.
38423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38424         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38425         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38426         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38427         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38428         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38429         Set REPLACE_STRCASECMP if necessary.
38430         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38431         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38432         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38434         HAVE_DECL_STRDUP if necessary.
38435         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38436         since gl_FUNC_STRNDUP does that now.
38437         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38438         Check for decl here...
38439         (gl_PREREQ_STRNLEN): ... not here.
38440         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38441         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38442         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38443         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38444         necessary.
38445         * modules/string: New file.
38446         * modules/memmem (Files): Remove special-purpose include file.
38447         (Depends-on): Add string.
38448         (Include): Include <string.h>, not the removed file.
38449         * modules/mempcpy: Likewise.
38450         * modules/memrchr: Likewise.
38451         * modules/stpcpy: Likewise.
38452         * modules/stpncpy: Likewise.
38453         * modules/strcase: Likewise.
38454         * modules/strchrnul: Likewise.
38455         * modules/strdup: Likewise.
38456         * modules/strndup: Likewise.
38457         * modules/strnlen: Likewise.
38458         * modules/strpbrk: Likewise.
38459         * modules/strsep: Likewise.
38460         * modules/strstr: Likewise.
38461         * modules/strtok_r: Likewise.
38462         * tests/test-dirname.c: Don't include "strdup.h", since
38463         <string.h> now suffices.
38464         * tests/test-memmem.c: Don't include "memmem.h", since
38465         <string.h> now suffices.
38466
38467 2007-01-25  Bruno Haible  <bruno@clisp.org>
38468
38469         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38470         *resultp is 0.
38471
38472         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38473         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38474         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38475         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38476
38477         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38478         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38479         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38480         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38481         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38482         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38483
38484 2007-01-24  Bruno Haible  <bruno@clisp.org>
38485
38486         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38488         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38489         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38490         gl_FUNC_FTS_CORE.
38491         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38492         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38493         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38494         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38495         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38496         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38497         gl_FUNC_FCHOWNAT.
38498         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38499         gl_FUNC_STRFTIME.
38500         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38501         Reported by Ralf Wildenhues.
38502
38503 2007-01-24  Bruno Haible  <bruno@clisp.org>
38504
38505         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38506         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38507         gl_GETADDRINFO.
38508         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38509         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38510         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38511
38512 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38513
38514         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38515         Don't use 'exit'; just return from 'main'.
38516         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38517
38518         * lib/fnmatch_.h: Readjust white space and comments to match
38519         glibc, to avoid spurious diffs.
38520
38521 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38522
38523         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38524         2004-12-01 change by Jakub Jelinek, since this code won't compile
38525         if !LIBC.  Problem reported by Bob Proulx.
38526
38527 2007-01-23  Bruno Haible  <bruno@clisp.org>
38528
38529         * lib/striconveh.c: Include c-strcaseeq.h.
38530         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38531         * modules/striconveh (Depends-on): Add c-strcaseeq.
38532
38533 2007-01-23  Bruno Haible  <bruno@clisp.org>
38534
38535         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38536
38537         * modules/c-strcaseeq: New file.
38538         * lib/c-strcaseeq.h: New file.
38539
38540         * modules/streq: New file.
38541         * lib/streq.h: New file.
38542
38543 2007-01-23  Bruno Haible  <bruno@clisp.org>
38544
38545         * modules/striconveha-tests: New file.
38546         * tests/test-striconveha.c: New file.
38547
38548         * lib/striconveha.h: Include <stdbool.h>.
38549         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38550         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38551         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38552         (mem_iconveha): New function.
38553         (str_iconveha_notranslit): Renamed from str_iconveha.
38554         (str_iconveha): New function.
38555         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38556         c-strcase.
38557
38558 2007-01-23  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38561         encodings without forgiving before trying any encoding with handler.
38562         (str_iconveha): Try all encodings without forgiving before trying any
38563         encoding with handler.
38564
38565 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38566
38567         Import the following changes from libc.
38568
38569         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38570
38571         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38572
38573         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38574
38575         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38576         normal_bracket label.
38577
38578         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38579
38580         [BZ #361]
38581         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38582         to normal_bracket after fetching the next character.
38583
38584 2007-01-22  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38587         argument.
38588         * lib/striconveh.c (iconv_carefully_1): New function.
38589         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38590         argument.
38591         (str_cd_iconveh): Update.
38592         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38593         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38594         * tests/test-striconveh.c (MAGIC): New macro.
38595         (new_offsets): New function.
38596         (main): Test call with and without offsets.
38597
38598 2007-01-22  Bruno Haible  <bruno@clisp.org>
38599
38600         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38601         * modules/sys_select (Makefile.am): Likewise.
38602         * modules/sys_socket (Makefile.am): Likewise.
38603         * modules/sys_time (Makefile.am): Likewise.
38604
38605 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38606
38607         * modules/gettimeofday (License): Change from GPL to LGPL, since
38608         gettimeofday is a library function.
38609
38610 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38611
38612         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38613
38614 2007-01-21  Bruno Haible  <bruno@clisp.org>
38615
38616         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38617
38618 2007-01-21  Bruno Haible  <bruno@clisp.org>
38619
38620         * modules/striconveha: New file.
38621         * lib/striconveha.h: New file.
38622         * lib/striconveha.c: New file.
38623         * MODULES.html.sh (Internationalization functions): Add striconveha.
38624         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38625         string.
38626         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38627
38628 2007-01-21  Bruno Haible  <bruno@clisp.org>
38629
38630         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38631         * lib/striconveh.c (str_iconveh): Likewise.
38632
38633 2007-01-21  Bruno Haible  <bruno@clisp.org>
38634
38635         * lib/striconveh.h (mem_iconveh): New declaration.
38636         * lib/striconveh.c (mem_iconveh): New function.
38637         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38638
38639 2007-01-21  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38642
38643         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38644         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38645         original result buffer.
38646         (str_cd_iconveh): Update.
38647         * tests/test-striconveh.c (main): Update.
38648
38649         * lib/striconv.h (mem_cd_iconv): Change specification.
38650         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38651         result buffer.
38652         (str_cd_iconv): Update.
38653         * tests/test-striconv.c (main): Update.
38654
38655 2007-01-21  Bruno Haible  <bruno@clisp.org>
38656
38657         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38658
38659 2007-01-20  Jim Meyering  <jim@meyering.net>
38660
38661         * lib/userspec.c (parse_with_separator): If a user or group string
38662         starts with "+", skip the corresponding name-to-ID look-up, since
38663         such a look-up must fail: user and group names may not include "+".
38664
38665 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38668         since we now assume the sys_time module.
38669         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38670         check for sys/time.h; no longer needed.
38671         * modules/poll (Depends-on): Depend on sys_time.
38672
38673 2007-01-18  Bruno Haible  <bruno@clisp.org>
38674
38675         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38676         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38677
38678         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38679         gettimeofday.
38680
38681         * tests/test-gettimeofday.c: Include <time.h>.
38682         (dummy): Remove variable.
38683
38684         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38685         gl_HEADER_SYS_TIME_H.
38686         (gl_HEADER_SYS_TIME_H): New macro.
38687
38688         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38689         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38691         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38692         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38694         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38695         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38696         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38697         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38698         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38699
38700         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38701         last change; it caused a compilation error when cross-compiling to
38702         Cygwin.
38703
38704 2007-01-18  Jim Meyering  <jim@meyering.net>
38705
38706         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38707         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38708         than the race-prone "test -d sys || mkdir sys".
38709         (configure.ac): Use AC_PROG_MKDIR_P.
38710         * modules/sys_select: Likewise.
38711         * modules/sys_socket: Likewise.
38712         * modules/sys_time: Likewise.
38713
38714 2007-01-18  Eric Blake  <ebb9@byu.net>
38715
38716         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38717         replace gettimeofday.
38718         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38719         name, to avoid infinite recursion.
38720
38721 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38722
38723         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38724         module sys_time.
38725         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38726         assume timespec.h defines struct timeval.
38727         * lib/settime.c: Likewise.
38728         * lib/utimens.c: Likewise.
38729         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38730         since we now assume the gettimeofday module.
38731         * lib/tempname.c (__gen_tempname): Likewise.
38732         * lib/gettimeofday.h: Remove.
38733         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38734         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38735         Include <time.h>, for 'time()'.
38736         (localtime_buffer_addr): Also use this workaround if
38737         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38738         to simplify the uses.  All uses changed.
38739         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38740         that #undef is inside {}, and 'const' follows type name consistently.
38741         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38742         (gettimeofday): Do not use the maximum possible value for
38743         tv->tv_usec, since that might break usages other than ls.c.
38744         Instead, we'll leave ls.c alone.  This undoes today's patch
38745         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38746         we've never observed the problem but might as well keep the
38747         canary.
38748         * lib/nanosleep.c: Include timespec.h first, for interface check.
38749         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38750         now assume the sys_time module.
38751         * lib/tempname.c: Likewise.
38752         * lib/timespec.h: Likewise.
38753         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38754         needed.
38755         * lib/strftime.c: Likewise.
38756         * lib/timespec.h: Likewise.
38757         * lib/posixtm.c: Include posixtm.h first, for interface check.
38758         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38759         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38760         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38761         * lib/sys_time_.h: New file.
38762         * lib/timespec.h (struct timespec): Use long int, not long.
38763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38764         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38765         Remove obsolescent call to AC_HEADER_TIME.
38766         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38768         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38769         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38770         Likewise.
38771         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38772         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38774         into the sys_time module.  Check for gettimeofday just once.
38775         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38776         for gettimeofday signature to just check the signature.  Merely
38777         compile it, since linking doesn't test signature.  Improve test for
38778         whether gettimeofday.o is actually needed.
38779         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38780         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38781         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38782         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38783         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38784         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38785         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38786         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38787         than worrying about sys/time.h.
38788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38789         Don't bother worrying about TIME_WITH_SYS_TIME.
38790         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38791         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38792         * m4/sys_time_h.m4: New file.
38793         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38794         Don't include sys/time.h.  Return from main rather than exiting.
38795         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38796         all uses changed.
38797         * modules/gethrxtime (Depends-on): Add sys_time.
38798         * modules/gettime (Depends-on): Likewise.
38799         * modules/gettimeofday (Depends-on): Likewise.
38800         * modules/nanosleep (Depends-on): Likewise.
38801         * modules/settime (Depends-on): Likewise.
38802         * modules/tempname (Depends-on): Likewise.
38803         * modules/utimens (Depends-on): Likewise.
38804         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38805         (Include:) Change back to <sys/time.h>.
38806         (Maintainer:) Add self.
38807         * modules/sys_time: New file.
38808         * modules/tempname (Depends-on): Add gettimeofday.
38809         * tests/test-gettimeofday.c: Include <sys/time.h>
38810         rather than gettimeofday.h.
38811
38812 2007-01-17  Bruno Haible  <bruno@clisp.org>
38813
38814         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38815         the license default to GPL.
38816         (func_create_testdir): Don't complain if a module is LGPL and its
38817         tests module depends on GPLed modules.
38818
38819 2007-01-17  Bruno Haible  <bruno@clisp.org>
38820
38821         * lib/gettimeofday.c (gettimeofday): Add code for the case
38822         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38823         maximum possible value for tv->tv_usec, rather than the minimum one.
38824
38825 2005-10-08  Martin Lambers  <marlam@marlam.de>
38826 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38827 2007-01-16  Bruno Haible  <bruno@clisp.org>
38828
38829         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38830         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38831         gl_FUNC_GETTIMEOFDAY.
38832         (Include): Add gettimeofday.h.
38833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38834         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38835         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38836         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38837         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38838         * lib/gettimeofday.h: New file.
38839         * lib/gettimeofday.c: Include <sys/timeb.h>.
38840         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38841         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38842         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38843         fall back on time().
38844
38845         * tests/test-gettimeofday.c: New file.
38846         * modules/gettimeofday-tests: New file.
38847
38848 2007-01-16  Eric Blake  <ebb9@byu.net>
38849
38850         * modules/fnmatch (Depends-on): Depend on wchar.
38851         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38852         * m4/fnmatch.m4: Likewise.
38853         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38854         * m4/mbchar.m4: Likewise.
38855         * modules/mbswidth (Depends-on): Depend on wchar.
38856         * lib/mbswidth.c: Assume <wchar.h>.
38857         * m4/mbswidth.m4: Likewise.
38858         * modules/quotearg (Depends-on): Depend on wchar.
38859         * lib/quotearg.c: Assume <wchar.h>.
38860         * m4/quotearg.m4: Likewise.
38861         * modules/regex (Depends-on): Depend on wchar.
38862         * lib/regex_internal.h: Assume <wchar.h>.
38863         * m4/regex.m4: Likewise.
38864         * modules/stdint (Depends-on): Depend on wchar.
38865         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38866         * m4/stdint.m4: Likewise.
38867         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38868         * modules/strftime (Depends-on): Depend on wchar.
38869         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38870         * modules/strtol (Depends-on): Depend on wchar.
38871         * lib/strtol.c: Assume <wchar.h>.
38872         * modules/wcwidth (Depends-on): Depend on wchar.
38873         * lib/wcwidth.h: Assume <wchar.h>.
38874         * m4/wcwidth.m4: Likewise.
38875
38876 2007-01-16  Bruno Haible  <bruno@clisp.org>
38877
38878         * modules/csharpexec-script: New, created from...
38879         * modules/csharpexec: ... this.
38880
38881 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38882
38883         * modules/javaexec-script: New, created from...
38884         * modules/javaexec: ... this.
38885
38886 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38887
38888         * modules/poll (Dependencies): Add sys_select.
38889
38890 2007-01-15  Jim Meyering  <jim@meyering.net>
38891
38892         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38893         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38894         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38895         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38896
38897 2007-01-15  Bruno Haible  <bruno@clisp.org>
38898
38899         * modules/striconveh: New file.
38900         * lib/striconveh.h: New file.
38901         * lib/striconveh.c: New file.
38902         * MODULES.html.sh (Internationalization functions): Add striconveh.
38903
38904         * modules/striconveh-tests: New file.
38905         * tests/test-striconveh.c: New file.
38906
38907 2007-01-15  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38910         not from GNU libiconv or GNU libc.
38911
38912 2007-01-15  Bruno Haible  <bruno@clisp.org>
38913
38914         * doc/gnulib-intro.texi (Copyright): Explain the different license
38915         terms for module descriptions, autoconf macros, tests, documentation.
38916
38917 2007-01-14  Bruno Haible  <bruno@clisp.org>
38918
38919         * modules/striconv-tests: New file.
38920         * tests/test-striconv.c: New file.
38921
38922 2007-01-14  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/iconv-tests: New file.
38925         * tests/test-iconv.c: New file.
38926
38927 2007-01-14  Bruno Haible  <bruno@clisp.org>
38928
38929         * gnulib-tool (func_get_license): For test modules, use the license of
38930         the main module.
38931
38932 2007-01-14  Bruno Haible  <bruno@clisp.org>
38933
38934         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38935         if iconv is found to exist.
38936
38937 2007-01-14  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/c-ctype-tests: New file.
38940         * tests/test-c-ctype.c: New file.
38941
38942 2007-01-14  Bruno Haible  <bruno@clisp.org>
38943
38944         * modules/binary-io-tests: New file.
38945         * tests/test-binary-io.sh: New file.
38946         * tests/test-binary-io.c: New file.
38947
38948 2007-01-14  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/array-oset-tests: New file.
38951         * tests/test-array_oset.c: New file.
38952
38953 2007-01-14  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/array-list-tests: New file.
38956         * tests/test-array_list.c: New file.
38957
38958 2007-01-14  Bruno Haible  <bruno@clisp.org>
38959
38960         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38961         and make.
38962         Reported by Simon Josefsson in
38963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38964
38965 2007-01-14  Bruno Haible  <bruno@clisp.org>
38966
38967         * modules/allocsa-tests: New file.
38968         * tests/test-allocsa.c: New file.
38969
38970 2007-01-14  Bruno Haible  <bruno@clisp.org>
38971
38972         * modules/fchdir (Depends-on): Add absolute-header.
38973         * modules/unistd (Depends-on): Likewise.
38974
38975 2006-12-30  Bruno Haible  <bruno@clisp.org>
38976
38977         * modules/fchdir: New file.
38978         * modules/unistd (Files): Add lib/unistd_.h.
38979         (Makefile.am): Generate unistd.h from unistd_.h.
38980         * lib/fchdir.c: New file.
38981         * lib/dirent_.h: New file.
38982         * lib/unistd_.h: New file.
38983         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38984         * m4/fchdir.m4: New file.
38985         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38986         (gl_HEADER_UNISTD): Invoke it.
38987         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38988         function.
38989         * lib/backupfile.c (opendir, closedir): Undefine.
38990         * lib/chown.c (open, close): Undefine.
38991         * lib/clean-temp.c (open, close): Undefine.
38992         * lib/copy-file.c (open, close): Undefine.
38993         * lib/execute.c (open, close): Undefine.
38994         * lib/fsusage.c (open, close): Undefine.
38995         * lib/gc-gnulib.c (open, close): Undefine.
38996         * lib/getcwd.c (opendir, closedir): Undefine.
38997         * lib/glob.c (opendir, closedir): Undefine.
38998         * lib/javacomp.c (open, close): Undefine.
38999         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39000         * lib/openat-proc.c (open, close): Undefine.
39001         * lib/pagealign_alloc.c (open, close): Undefine.
39002         * lib/pipe.c (open, close): Undefine.
39003         * lib/progreloc.c (open, close): Undefine.
39004         * lib/savedir.c (opendir, closedir): Undefine.
39005         * lib/utime.c (open, close): Undefine.
39006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39007
39008 2007-01-10  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39011
39012 2007-01-12  Eric Blake  <ebb9@byu.net>
39013
39014         Provide a robust <wchar.h>.  Further simplifications are now
39015         possible in other modules, but not included here.
39016         * modules/wchar: New module.
39017         * m4/wchar.m4: New file.
39018         * lib/wchar_.h: Likewise.
39019         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39020         of the new module.
39021         * MODULES.html.sh (Extended multibyte and wide character utilities):
39022         New section.
39023
39024 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39025
39026         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39027         to a reasonable default for memory allocation.
39028         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39029         file system that reports garbage st_size values for symlinks.
39030         Problem reported by Liyang Hu.
39031
39032 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39033
39034         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39035         Emacs .#* auto-save files).
39036
39037 2007-01-11  Bruno Haible  <bruno@clisp.org>
39038
39039         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39040         directory.
39041
39042 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39043
39044         Use @...@ consistently in lib/wctype_.h.
39045         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39046         on it being set to 1 or 0.
39047         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39048         go back to AC_SUBSTing it.
39049         * modules/wctype (Makefile.am): Undo previous change.
39050
39051 2007-01-10  Eric Blake  <ebb9@byu.net>
39052
39053         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39054         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39055         * modules/wctype (Makefile.am): Likewise.
39056         Reported by Chris McGuire.
39057
39058 2007-01-10  Jim Meyering  <jim@meyering.net>
39059
39060         fts.c: a small readability/maintainability improvement
39061         * lib/fts.c (fts_read): Make this code slightly more readable and
39062         maintainable by hoisting the "sp->fts_cur = p" assignments to
39063         immediately follow the statements that set P.  Derived from
39064         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39065
39066 2007-01-10  Eric Blake  <ebb9@byu.net>
39067
39068         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39069         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39071         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39072         Reported by Chris McGuire.
39073
39074 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39075
39076         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39077         in sed script.
39078
39079 2007-01-09  Bruno Haible  <bruno@clisp.org>
39080
39081         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39082         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39083         variables.
39084         (func_module): Use them.
39085
39086 2007-01-09  Bruno Haible  <bruno@clisp.org>
39087
39088         * modules/unistr/base: New file.
39089         * lib/unistr.h: New file.
39090
39091         * modules/unistr/u8-to-u16: New file.
39092         * lib/unistr/u8-to-u16.c: New file.
39093
39094         * modules/unistr/u8-to-u32: New file.
39095         * lib/unistr/u8-to-u32.c: New file.
39096
39097         * modules/unistr/u16-to-u8: New file.
39098         * lib/unistr/u16-to-u8.c: New file.
39099
39100         * modules/unistr/u16-to-u32: New file.
39101         * lib/unistr/u16-to-u32.c: New file.
39102
39103         * modules/unistr/u32-to-u8: New file.
39104         * lib/unistr/u32-to-u8.c: New file.
39105
39106         * modules/unistr/u32-to-u16: New file.
39107         * lib/unistr/u32-to-u16.c: New file.
39108
39109         * modules/unistr/u8-check: New file.
39110         * modules/unistr/u16-check: New file.
39111         * modules/unistr/u32-check: New file.
39112         * lib/unistr/u8-check.c: New file.
39113         * lib/unistr/u16-check.c: New file.
39114         * lib/unistr/u32-check.c: New file.
39115
39116         * modules/unistr/u8-chr: New file.
39117         * modules/unistr/u16-chr: New file.
39118         * modules/unistr/u32-chr: New file.
39119         * lib/unistr/u8-chr.c: New file.
39120         * lib/unistr/u16-chr.c: New file.
39121         * lib/unistr/u32-chr.c: New file.
39122
39123         * modules/unistr/u8-cmp: New file.
39124         * modules/unistr/u16-cmp: New file.
39125         * modules/unistr/u32-cmp: New file.
39126         * lib/unistr/u8-cmp.c: New file.
39127         * lib/unistr/u16-cmp.c: New file.
39128         * lib/unistr/u32-cmp.c: New file.
39129
39130         * modules/unistr/u8-cpy: New file.
39131         * modules/unistr/u16-cpy: New file.
39132         * modules/unistr/u32-cpy: New file.
39133         * lib/unistr/u8-cpy.c: New file.
39134         * lib/unistr/u16-cpy.c: New file.
39135         * lib/unistr/u32-cpy.c: New file.
39136         * lib/unistr/u-cpy.h: New file.
39137
39138         * modules/unistr/u8-cpy-alloc: New file.
39139         * modules/unistr/u16-cpy-alloc: New file.
39140         * modules/unistr/u32-cpy-alloc: New file.
39141         * lib/unistr/u8-cpy-alloc.c: New file.
39142         * lib/unistr/u16-cpy-alloc.c: New file.
39143         * lib/unistr/u32-cpy-alloc.c: New file.
39144         * lib/unistr/u-cpy-alloc.h: New file.
39145
39146         * modules/unistr/u8-endswith: New file.
39147         * modules/unistr/u16-endswith: New file.
39148         * modules/unistr/u32-endswith: New file.
39149         * lib/unistr/u8-endswith.c: New file.
39150         * lib/unistr/u16-endswith.c: New file.
39151         * lib/unistr/u32-endswith.c: New file.
39152         * lib/unistr/u-endswith.h: New file.
39153
39154         * modules/unistr/u8-mblen: New file.
39155         * modules/unistr/u16-mblen: New file.
39156         * modules/unistr/u32-mblen: New file.
39157         * lib/unistr/u8-mblen.c: New file.
39158         * lib/unistr/u16-mblen.c: New file.
39159         * lib/unistr/u32-mblen.c: New file.
39160
39161         * modules/unistr/u8-mbtouc: New file.
39162         * modules/unistr/u16-mbtouc: New file.
39163         * modules/unistr/u32-mbtouc: New file.
39164         * lib/unistr/u8-mbtouc.c: New file.
39165         * lib/unistr/u16-mbtouc.c: New file.
39166         * lib/unistr/u32-mbtouc.c: New file.
39167
39168         * modules/unistr/u8-mbtouc-safe: New file.
39169         * modules/unistr/u16-mbtouc-safe: New file.
39170         * modules/unistr/u32-mbtouc-safe: New file.
39171         * lib/unistr/u8-mbtouc-safe.c: New file.
39172         * lib/unistr/u16-mbtouc-safe.c: New file.
39173         * lib/unistr/u32-mbtouc-safe.c: New file.
39174
39175         * modules/unistr/u8-move: New file.
39176         * modules/unistr/u16-move: New file.
39177         * modules/unistr/u32-move: New file.
39178         * lib/unistr/u8-move.c: New file.
39179         * lib/unistr/u16-move.c: New file.
39180         * lib/unistr/u32-move.c: New file.
39181         * lib/unistr/u-move.h: New file.
39182
39183         * modules/unistr/u8-next: New file.
39184         * modules/unistr/u16-next: New file.
39185         * modules/unistr/u32-next: New file.
39186         * lib/unistr/u8-next.c: New file.
39187         * lib/unistr/u16-next.c: New file.
39188         * lib/unistr/u32-next.c: New file.
39189
39190         * modules/unistr/u8-prev: New file.
39191         * modules/unistr/u16-prev: New file.
39192         * modules/unistr/u32-prev: New file.
39193         * lib/unistr/u8-prev.c: New file.
39194         * lib/unistr/u16-prev.c: New file.
39195         * lib/unistr/u32-prev.c: New file.
39196
39197         * modules/unistr/u8-set: New file.
39198         * modules/unistr/u16-set: New file.
39199         * modules/unistr/u32-set: New file.
39200         * lib/unistr/u8-set.c: New file.
39201         * lib/unistr/u16-set.c: New file.
39202         * lib/unistr/u32-set.c: New file.
39203         * lib/unistr/u-set.h: New file.
39204
39205         * modules/unistr/u8-startswith: New file.
39206         * modules/unistr/u16-startswith: New file.
39207         * modules/unistr/u32-startswith: New file.
39208         * lib/unistr/u8-startswith.c: New file.
39209         * lib/unistr/u16-startswith.c: New file.
39210         * lib/unistr/u32-startswith.c: New file.
39211         * lib/unistr/u-startswith.h: New file.
39212
39213         * modules/unistr/u8-stpcpy: New file.
39214         * modules/unistr/u16-stpcpy: New file.
39215         * modules/unistr/u32-stpcpy: New file.
39216         * lib/unistr/u8-stpcpy.c: New file.
39217         * lib/unistr/u16-stpcpy.c: New file.
39218         * lib/unistr/u32-stpcpy.c: New file.
39219         * lib/unistr/u-stpcpy.h: New file.
39220
39221         * modules/unistr/u8-stpncpy: New file.
39222         * modules/unistr/u16-stpncpy: New file.
39223         * modules/unistr/u32-stpncpy: New file.
39224         * lib/unistr/u8-stpncpy.c: New file.
39225         * lib/unistr/u16-stpncpy.c: New file.
39226         * lib/unistr/u32-stpncpy.c: New file.
39227         * lib/unistr/u-stpncpy.h: New file.
39228
39229         * modules/unistr/u8-strcat: New file.
39230         * modules/unistr/u16-strcat: New file.
39231         * modules/unistr/u32-strcat: New file.
39232         * lib/unistr/u8-strcat.c: New file.
39233         * lib/unistr/u16-strcat.c: New file.
39234         * lib/unistr/u32-strcat.c: New file.
39235         * lib/unistr/u-strcat.h: New file.
39236
39237         * modules/unistr/u8-strchr: New file.
39238         * modules/unistr/u16-strchr: New file.
39239         * modules/unistr/u32-strchr: New file.
39240         * lib/unistr/u8-strchr.c: New file.
39241         * lib/unistr/u16-strchr.c: New file.
39242         * lib/unistr/u32-strchr.c: New file.
39243
39244         * modules/unistr/u8-strcmp: New file.
39245         * modules/unistr/u16-strcmp: New file.
39246         * modules/unistr/u32-strcmp: New file.
39247         * lib/unistr/u8-strcmp.c: New file.
39248         * lib/unistr/u16-strcmp.c: New file.
39249         * lib/unistr/u32-strcmp.c: New file.
39250
39251         * modules/unistr/u8-strcpy: New file.
39252         * modules/unistr/u16-strcpy: New file.
39253         * modules/unistr/u32-strcpy: New file.
39254         * lib/unistr/u8-strcpy.c: New file.
39255         * lib/unistr/u16-strcpy.c: New file.
39256         * lib/unistr/u32-strcpy.c: New file.
39257         * lib/unistr/u-strcpy.h: New file.
39258
39259         * modules/unistr/u8-strcspn: New file.
39260         * modules/unistr/u16-strcspn: New file.
39261         * modules/unistr/u32-strcspn: New file.
39262         * lib/unistr/u8-strcspn.c: New file.
39263         * lib/unistr/u16-strcspn.c: New file.
39264         * lib/unistr/u32-strcspn.c: New file.
39265         * lib/unistr/u-strcspn.h: New file.
39266
39267         * modules/unistr/u8-strdup: New file.
39268         * modules/unistr/u16-strdup: New file.
39269         * modules/unistr/u32-strdup: New file.
39270         * lib/unistr/u8-strdup.c: New file.
39271         * lib/unistr/u16-strdup.c: New file.
39272         * lib/unistr/u32-strdup.c: New file.
39273         * lib/unistr/u-strdup.h: New file.
39274
39275         * modules/unistr/u8-strlen: New file.
39276         * modules/unistr/u16-strlen: New file.
39277         * modules/unistr/u32-strlen: New file.
39278         * lib/unistr/u8-strlen.c: New file.
39279         * lib/unistr/u16-strlen.c: New file.
39280         * lib/unistr/u32-strlen.c: New file.
39281         * lib/unistr/u-strlen.h: New file.
39282
39283         * modules/unistr/u8-strmblen: New file.
39284         * modules/unistr/u16-strmblen: New file.
39285         * modules/unistr/u32-strmblen: New file.
39286         * lib/unistr/u8-strmblen.c: New file.
39287         * lib/unistr/u16-strmblen.c: New file.
39288         * lib/unistr/u32-strmblen.c: New file.
39289
39290         * modules/unistr/u8-strmbtouc: New file.
39291         * modules/unistr/u16-strmbtouc: New file.
39292         * modules/unistr/u32-strmbtouc: New file.
39293         * lib/unistr/u8-strmbtouc.c: New file.
39294         * lib/unistr/u16-strmbtouc.c: New file.
39295         * lib/unistr/u32-strmbtouc.c: New file.
39296
39297         * modules/unistr/u8-strncat: New file.
39298         * modules/unistr/u16-strncat: New file.
39299         * modules/unistr/u32-strncat: New file.
39300         * lib/unistr/u8-strncat.c: New file.
39301         * lib/unistr/u16-strncat.c: New file.
39302         * lib/unistr/u32-strncat.c: New file.
39303         * lib/unistr/u-strncat.h: New file.
39304
39305         * modules/unistr/u8-strncmp: New file.
39306         * modules/unistr/u16-strncmp: New file.
39307         * modules/unistr/u32-strncmp: New file.
39308         * lib/unistr/u8-strncmp.c: New file.
39309         * lib/unistr/u16-strncmp.c: New file.
39310         * lib/unistr/u32-strncmp.c: New file.
39311
39312         * modules/unistr/u8-strncpy: New file.
39313         * modules/unistr/u16-strncpy: New file.
39314         * modules/unistr/u32-strncpy: New file.
39315         * lib/unistr/u8-strncpy.c: New file.
39316         * lib/unistr/u16-strncpy.c: New file.
39317         * lib/unistr/u32-strncpy.c: New file.
39318         * lib/unistr/u-strncpy.h: New file.
39319
39320         * modules/unistr/u8-strnlen: New file.
39321         * modules/unistr/u16-strnlen: New file.
39322         * modules/unistr/u32-strnlen: New file.
39323         * lib/unistr/u8-strnlen.c: New file.
39324         * lib/unistr/u16-strnlen.c: New file.
39325         * lib/unistr/u32-strnlen.c: New file.
39326         * lib/unistr/u-strnlen.h: New file.
39327
39328         * modules/unistr/u8-strpbrk: New file.
39329         * modules/unistr/u16-strpbrk: New file.
39330         * modules/unistr/u32-strpbrk: New file.
39331         * lib/unistr/u8-strpbrk.c: New file.
39332         * lib/unistr/u16-strpbrk.c: New file.
39333         * lib/unistr/u32-strpbrk.c: New file.
39334         * lib/unistr/u-strpbrk.h: New file.
39335
39336         * modules/unistr/u8-strrchr: New file.
39337         * modules/unistr/u16-strrchr: New file.
39338         * modules/unistr/u32-strrchr: New file.
39339         * lib/unistr/u8-strrchr.c: New file.
39340         * lib/unistr/u16-strrchr.c: New file.
39341         * lib/unistr/u32-strrchr.c: New file.
39342
39343         * modules/unistr/u8-strspn: New file.
39344         * modules/unistr/u16-strspn: New file.
39345         * modules/unistr/u32-strspn: New file.
39346         * lib/unistr/u8-strspn.c: New file.
39347         * lib/unistr/u16-strspn.c: New file.
39348         * lib/unistr/u32-strspn.c: New file.
39349         * lib/unistr/u-strspn.h: New file.
39350
39351         * modules/unistr/u8-strstr: New file.
39352         * modules/unistr/u16-strstr: New file.
39353         * modules/unistr/u32-strstr: New file.
39354         * lib/unistr/u8-strstr.c: New file.
39355         * lib/unistr/u16-strstr.c: New file.
39356         * lib/unistr/u32-strstr.c: New file.
39357         * lib/unistr/u-strstr.h: New file.
39358
39359         * modules/unistr/u8-strtok: New file.
39360         * modules/unistr/u16-strtok: New file.
39361         * modules/unistr/u32-strtok: New file.
39362         * lib/unistr/u8-strtok.c: New file.
39363         * lib/unistr/u16-strtok.c: New file.
39364         * lib/unistr/u32-strtok.c: New file.
39365         * lib/unistr/u-strtok.h: New file.
39366
39367         * modules/unistr/u8-uctomb: New file.
39368         * modules/unistr/u16-uctomb: New file.
39369         * modules/unistr/u32-uctomb: New file.
39370         * lib/unistr/u8-uctomb.c: New file.
39371         * lib/unistr/u16-uctomb.c: New file.
39372         * lib/unistr/u32-uctomb.c: New file.
39373
39374         * MODULES.html.sh (Unicode string functions): Add the new modules.
39375
39376 2007-01-08  Bruno Haible  <bruno@clisp.org>
39377
39378         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39379         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39380         subdirectories.
39381
39382 2007-01-08  Karl Berry  <karl@gnu.org>
39383
39384         * doc/error.texi: mention that main() fns must set program_name
39385         when progname is used.
39386
39387 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39388
39389         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39390         WCTYPE_H is empty, for the benefit of builds from non-distclean
39391         directories.  Problem reported by Eric Blake in
39392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39393
39394 2007-01-08  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39397         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39398         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39399         PROVIDE_CANONICALIZE_FILENAME_MODE.
39400         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39401
39402 2007-01-08  Bruno Haible  <bruno@clisp.org>
39403
39404         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39405         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39406         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39407         * lib/fts.c: Likewise.
39408         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39409
39410 2006-12-25  Bruno Haible  <bruno@clisp.org>
39411
39412         * modules/utf8-ucs4-safe: New file.
39413         * lib/utf8-ucs4-safe.h: New file.
39414         * lib/unistr/utf8-ucs4-safe.c: New file.
39415
39416         * modules/utf16-ucs4-safe: New file.
39417         * lib/utf16-ucs4-safe.h: New file.
39418         * lib/unistr/utf16-ucs4-safe.c: New file.
39419
39420         * MODULES.html.sh (Unicode string functions): Add the new modules.
39421
39422 2007-01-08  Bruno Haible  <bruno@clisp.org>
39423
39424         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39425         (Depends-on): Add unitypes.
39426         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39427         (u8_mbtouc_aux): Move out to separate file.
39428         (u8_mbtouc): Use ucs4_t, uint8_t types.
39429         * lib/unistr/utf8-ucs4.c: New file.
39430
39431         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39432         (Depends-on): Add unitypes.
39433         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39434         (u16_mbtouc_aux): Move out to separate file.
39435         (u16_mbtouc): Use ucs4_t, uint16_t types.
39436         * lib/unistr/utf16-ucs4.c: New file.
39437
39438         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39439         (Depends-on): Add unitypes.
39440         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39441         (u8_uctomb_aux): Move out to separate file.
39442         (u8_uctomb): Use ucs4_t, uint8_t types.
39443         * lib/unistr/ucs4-utf8.c: New file.
39444
39445         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39446         (Depends-on): Add unitypes.
39447         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39448         (u16_uctomb_aux): Move out to separate file.
39449         (u16_uctomb): Use ucs4_t, uint16_t types.
39450         * lib/unistr/ucs4-utf16.c: New file.
39451
39452 2006-12-25  Bruno Haible  <bruno@clisp.org>
39453
39454         * modules/unitypes: New file.
39455         * lib/unitypes.h: New file.
39456         * MODULES.html.sh (func_all_modules): New section "Unicode string
39457         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39458         this section. Add unitypes.
39459
39460 2007-01-08  Bruno Haible  <bruno@clisp.org>
39461
39462         Avoid variable names that conflict with those from libtool.
39463         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39464         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39465         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39466         library_names_spec to acl_library_names_spec, hardcode_* to
39467         acl_hardcode_*.
39468         Reported by Ralf Wildenhues.
39469
39470 2007-01-08  Bruno Haible  <bruno@clisp.org>
39471
39472         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39473         definition.
39474         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39475         definition.
39476         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39477         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39478         definition.
39479         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39480         definition.
39481         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39482         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39483         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39484         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39485         definition.
39486         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39487         definition.
39488         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39489         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39490         GC_USE_<algorithm>.
39491         * lib/gc-libgcrypt.c: Likewise.
39492         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39493         * modules/gc-arctwo (configure.ac): Likewise.
39494         * modules/gc-des (configure.ac): Likewise.
39495         * modules/gc-hmac-md5 (configure.ac): Likewise.
39496         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39497         * modules/gc-md2 (configure.ac): Likewise.
39498         * modules/gc-md4 (configure.ac): Likewise.
39499         * modules/gc-md5 (configure.ac): Likewise.
39500         * modules/gc-random (configure.ac): Likewise.
39501         * modules/gc-rijndael (configure.ac): Likewise.
39502         * modules/gc-sha1 (configure.ac): Likewise.
39503
39504 2007-01-08  Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39507         macro definition.
39508         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39509         definition.
39510         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39511         definition.
39512         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39513         * modules/fcntl-safer (configure.ac): Likewise.
39514         * modules/fopen-safer (configure.ac): Likewise.
39515         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39516         GNULIB_FWRITEERROR macro definition.
39517
39518 2007-01-08  Bruno Haible  <bruno@clisp.org>
39519
39520         * m4/gnulib-common.m4: New file.
39521         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39522         (func_get_filelist): Add m4/gnulib-common.m4.
39523
39524 2007-01-08  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39527         command.
39528
39529 2007-01-08  Jim Meyering  <jim@meyering.net>
39530
39531         Use a more robust test for a "can't happen" condition.
39532         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39533         narrowed the st_size value.  Presuming the "can't happen" condition
39534         is true, that narrowing could conceivably convert an invalid st_size
39535         value into a valid one.  Instead, use a change based on Matthew
39536         Woehlke's original patch.
39537
39538         Slight readability improvement: use an assert-like macro
39539         in place of literal "abort ()" uses.
39540         * lib/fts.c (fts_assert): Define.
39541         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39542         Use this macro instead of a bare 'abort'.
39543
39544 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39545
39546         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39547         simply work around them.
39548         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39549         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39550         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39551         declaring.
39552         Don't bother to define as macros, since the standard doesn't require it.
39553         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39554         longer worry about IRIX 5.3.
39555         (HAVE_WCTYPE_CTMP_BUG): Remove.
39556
39557 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39560         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39561         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39562         Problems reported by Georg Schwarz for IRIX 5.3.
39563
39564         * gnulib-tool (autoconf_minversion): Take the maximum version number
39565         found, not the minimum.  Problem reported by James Youngman.
39566
39567 2007-01-03  Karl Berry  <karl@gnu.org>
39568
39569         * doc/error.texi: new file, explaining interaction with progname.
39570         * doc/gnulib.texi: include it.  Update copyright.
39571
39572 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39573
39574         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39575         AC_CANONICAL_HOST, to improve autobuild outputs.
39576
39577 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39578             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39579
39580         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39581         sockets, server sockets, and other file descriptors.  Count errors
39582         to compute the return value.  Reorder the code a bit to be easier
39583         to follow.  Don't set event bits that were not requested (except
39584         POLLERR and POLLHUP).
39585
39586 2007-01-01  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39589
39590 2007-01-03  Jim Meyering  <jim@meyering.net>
39591
39592         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39593
39594 2007-01-02  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/settime (Include): Require timespec.h.
39597         * modules/nanosleep (Include): Likewise.
39598
39599 2007-01-01  Bruno Haible  <bruno@clisp.org>
39600
39601         * gnulib-tool (func_emit_copyright_notice): Bump year.
39602         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39603
39604 2007-01-01  Bruno Haible  <bruno@clisp.org>
39605
39606         Improve support for OpenBSD.
39607         * build-aux/config.rpath (libname_spec): Export.
39608         (library_names_spec): New variable. Export.
39609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39610         library_names_spec from the config.rpath output. Locate shared library
39611         through the name pattern in library_names_spec.
39612
39613 2007-01-01  Eric Blake  <ebb9@byu.net>
39614
39615         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39616
39617 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39618
39619         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39620         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39621         assume the C locale, and avoid an "eval" that could cause trouble.
39622         Problem with SORT reported by Bob Proulx.
39623
39624         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39625         Define.  Trivial patch from Henning Nielsen Lund, originally
39626         sent to bug-grep@gnu.org today.
39627
39628 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39629
39630         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39631         struct stat.  Problem reported by Henning Nielsen Lund.
39632         * lib/acl.c: Include acl.h first, to check interface.  Don't
39633         bother to include sys/types.h and sys/stat.h again.
39634
39635 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39636
39637         Import the following change from libc; problem reported by
39638         Sven Verdoolaege.
39639
39640         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39641
39642         [BZ #1373]
39643         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39644
39645 2006-12-28  Jim Meyering  <jim@meyering.net>
39646
39647         * build-aux/announce-gen: Do not assume that the package
39648         builds any of tar.gz, tar.bz2, and .xdelta files.
39649         Suggestion from Simon Josefsson.
39650
39651 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39652
39653         * modules/announce-gen: New file.
39654
39655 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39656
39657         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39658         handles its gotchas now.
39659         * lib/mbswidth.c: Likewise.
39660         * lib/wcwidth.h: Likewise.
39661         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39662         and iswcntrl; the wctype module does this stuff now.
39663         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39665         * modules/mbchar (Depends-on): Add wctype.
39666         * modules/mbswidth (Depends-on): Likewise.
39667         * modules/wcwidth (Depends-on): Likewise.
39668
39669 2006-12-27  Eric Blake  <ebb9@byu.net>
39670
39671         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39672         module uses more than what <wctype.h> is required to provide.
39673
39674 2006-12-26  Eric Blake  <ebb9@byu.net>
39675
39676         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39677
39678 2006-12-26  Eric Blake  <ebb9@byu.net>
39679
39680         * modules/absolute-header: New module.
39681         * modules/fcntl (Depends-on): Depend on it.
39682         * modules/inttypes (Depends-on): Likewise.
39683         * modules/stdint (Depends-on): Likewise.
39684         * modules/sys_stat (Depends-on): Likewise.
39685         * modules/wctype (Depends-on): Likewise.
39686         * MODULES.html.sh (Support for building libraries and
39687         executables): Document it.
39688
39689 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39690
39691         * gnulib-tool (SED): Remove, undoing previous change.
39692         The problem was that it broke coreutils on Solaris, because
39693         "sed --posix" leaked into a makefile.
39694         (sed): New alias, if 'alias' and GNU sed.
39695
39696 2006-12-24  Jim Meyering  <jim@meyering.net>
39697
39698         Work around an fchownat bug in glibc-2.4:
39699         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39700         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39701         in spite of the -P option.
39702         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39703         New macros.
39704         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39705         * modules/openat (Files): Add lib/fchownat.c.
39706         * lib/openat.c (fchownat): Don't define here.  Move to...
39707         * lib/fchownat.c: ...this new file.
39708
39709 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39710
39711         Fix bug reported by Bruno Haible in
39712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39713         where quotearg.c didn't compile on Mac OS X 10.2 because it
39714         lacks <wchar.h> and wint_t.
39715         * lib/wctype_.h (__wctype_wint_t): New type.
39716         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39717         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39718         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39719         Arg is now of type __wctype_wint_t, not wint_t.
39720         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39721         substitute HAVE_WINT_T.
39722         * modules/wctype (Files): Add m4/wint_t.m4.
39723         (wctype.h): Substitute HAVE_WINT_T.
39724
39725 2006-12-23  Bruno Haible  <bruno@clisp.org>
39726
39727         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39728
39729 2006-12-23  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39732         S_ISLNK.
39733         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39734         mingw.
39735
39736 2006-12-22  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/copy-file.c: Include acl.h.
39739         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39740         Close the file descriptors only after being done with copy_acl.
39741         * modules/copy-file (Depends-on): Add acl.
39742
39743 2006-12-22  Bruno Haible  <bruno@clisp.org>
39744
39745         * gnulib-tool (SED): New variable.
39746         Use $SED instead of sed everywhere.
39747
39748 2006-12-22  Bruno Haible  <bruno@clisp.org>
39749
39750         * modules/no-c++: New file.
39751         * m4/no-c++.m4: New file.
39752         * MODULES.html.sh (Support for building libraries and executables):
39753         Add no-c++.
39754
39755 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39756
39757         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39758         Include <limits.h>, and use its INT_MAX to rewrite the
39759         j loop so that it does not overflow 'int'.  Problem reported by
39760         Ralf Wildenhues in
39761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39762         Play it safe by shifting left by 1 rather than multiplying by 2,
39763         as GCC is less likely to optimize this away when the value
39764         is signed (when it assumes overflow leads to undefined behavior).
39765         Also, don't assume time_t uses two's complement.
39766
39767 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39768
39769         * MODULES.html.sh: New module wctype.
39770         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39771         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39772         <wctype.h>, since the new wctype module should fix this.
39773         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39774         the wctype module should arrange for it.
39775         * lib/regex_internal.h: Likewise.
39776         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39777         since the wctype module should handle this now.
39778         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39779         * modules/fnmatch (Depends-on): Add wctype.
39780         * modules/quotearg (Depends-on): Likewise.
39781         * modules/regex (Depends-on): Likewise.
39782
39783 2006-12-19  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39786         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39787
39788 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39789
39790         * modules/savewd (Depends-on): Fix dependency on fcntl.
39791
39792 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39793
39794         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39795         conforms to C99, rather than relying on the user's environment
39796         setting of STDINT_H.
39797
39798 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39799         and Eric Blake  <ebb9@byu.net>
39800
39801         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39802         This is more consistent with the other defines here.
39803         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39804         Port to z/OS.  Problem reported by Paul Gilmartin.
39805         Change local vars to use gl_ prefix rather than ac_.
39806         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39807         with other defines.
39808         * modules/double-slash-root: New module.
39809         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39810         (Depends-on): Add double-slash-root.
39811         * MODULES.html.sh (File system functions): Mention new module.
39812
39813 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39816         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39817         This is for the benefit of gzip, which doesn't do i18n.
39818
39819 2006-12-12  Jim Meyering  <jim@meyering.net>
39820
39821         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39822         Reported by Andreas Schwab <schwab@suse.de>.
39823
39824 2006-12-12  Bruno Haible  <bruno@clisp.org>
39825
39826         Merge these changes.
39827         2006-09-05  Bruno Haible  <bruno@clisp.org>
39828         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39829         iconv_alloc succeeded.
39830         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39831         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39832         test for " && dest " at the end - dest is always != NULL there. Call
39833         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39834         with 2xNULL arguments, also to flush the state storage. Handle the
39835         IRIX iconv behaviour. Realloc the final result, to throw away unused
39836         memory.
39837
39838 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39839
39840         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39841         and fchmodat unconditionally, since glibc 2.4 has them.
39842         Problem reported by Arkadiusz Miskiewicz.
39843
39844 2006-12-10  Bruno Haible  <bruno@clisp.org>
39845
39846         * gnulib-tool (func_import): Show the include files only for those
39847         modules that are copied and specified.
39848         Reported by Karl Berry.
39849
39850 2006-12-08  Jim Meyering  <jim@meyering.net>
39851
39852         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39853         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39854
39855         * build-aux/announce-gen: Add two new options, both optional:
39856         --bootstrap-tools=TOOL_LIST
39857               a comma-separated list of tools, e.g.,
39858               autoconf,automake,bison,gnulib
39859         --gnulib-snapshot-date=DATE
39860               if gnulib is in the bootstrap tool list,
39861               then report this as the snapshot date.
39862               If not specified, use the current date/time.
39863               If you specify a date here, be sure it's UTC.
39864
39865 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39866
39867         * tests/test-argp-2.sh: Fix test to match actual output.
39868         (func_compare): Fix sed script to be portable.
39869
39870 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39871
39872         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39873         workaround for this case.  It is not autoconfigured now; offhand
39874         it's hard to see how to autoconfigure it.
39875
39876 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39877
39878         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39879         a directory that is about to be chowned.  Such a directory's
39880         initial file permissions should permit the owner only and this
39881         should not be changed until after the chown, since the group and
39882         other bits would be incorrect if they granted permission before
39883         the chown.
39884
39885         Fix porting problem for iswctype reported by Georg Schwarz in:
39886         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39887         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39888         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39891
39892 2006-12-03  Jim Meyering  <jim@meyering.net>
39893
39894         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39895         p->fts_statp may not yet be defined.
39896         (fts_read): Instead, set it in the caller, once p->fts_statp is
39897         sure to be defined, and corresponds to a top-level directory.
39898         This bug made du -x fail.  Here's the coreutils test case:
39899         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39900         Reported by Mike Frysinger.
39901
39902 2006-12-01  Jim Meyering  <jim@meyering.net>
39903
39904         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39905         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39906         Reported by Simon Josefsson.
39907
39908 2006-11-30  Jim Meyering  <jim@meyering.net>
39909
39910         * m4/warning.m4: Use the all-permissive copyright notice
39911         recommended by RMS (rather than LGPL).
39912         * m4/vararrays.m4: Likewise.
39913         * m4/flexmember.m4: Likewise.
39914
39915 2006-11-29  Bruno Haible  <bruno@clisp.org>
39916
39917         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39918         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39919         using +=.
39920         Reported by Simon Josefsson <simon@josefsson.org>.
39921
39922 2006-11-28  James Youngman <jay@gnu.org>
39923
39924         * README: Advise users that they might find the bug-gnulib@gnu.org
39925         and autotools-announce@gnu.org mailing lists useful.
39926
39927 2006-11-28  Bruno Haible  <bruno@clisp.org>
39928
39929         * m4/ptrdiff_max.m4: Remove file.
39930
39931 2006-11-21  Bruno Haible  <bruno@clisp.org>
39932
39933         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39934         _AC_COMPUTE_INT.
39935         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39936         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39937         _AC_COMPUTE_INT.
39938         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39939         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39940         _AC_COMPUTE_INT.
39941         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39942
39943 2006-11-28  Jim Meyering  <jim@meyering.net>
39944
39945         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39946         warning from "gcc -Wshadow" about shadowing the builtin.
39947
39948 2006-11-27  Bruno Haible  <bruno@clisp.org>
39949
39950         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39951         _AC_COMPUTE_INT.
39952         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39953
39954 2006-11-27  Bruno Haible  <bruno@clisp.org>
39955             Paul Eggert  <eggert@cs.ucla.edu>
39956
39957         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39958
39959 2006-11-26  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39962         noinst_LTLIBRARIES.
39963
39964 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39965             Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39968         if compiling with "gcc -ansi".
39969
39970 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         Fix some incompatibilities with gcc -ansi -pedantic.
39973         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39974         if compiling pedantically with GCC, unless it's C99 or later.
39975         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39976         it mishandles gcc -ansi -pedantic as well.
39977         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39978         if gcc -pedantic.
39979         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39980         initializers for struct if -pedantic, unless it's C99 or later.
39981
39982 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39983
39984         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39985         Don't close an fd more than once. Identical atimes indicate
39986         success, not failure.
39987
39988 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39989
39990         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39991
39992 2006-11-23  Jim Meyering  <jim@meyering.net>
39993
39994         * build-aux/announce-gen: New file.  From coreutils.
39995
39996 2006-11-22  Jim Meyering  <jim@meyering.net>
39997
39998         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39999         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40000         (fts_read): Use a temporary to narrow the overused st_size member
40001         before using it in a switch statement.  Reported by Matthew Woehlke.
40002
40003         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40004         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40005
40006 2006-11-20  Bruno Haible  <bruno@clisp.org>
40007
40008         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40009         changequote instead of pairs of brackets.
40010         Reported by Andreas Schwab <schwab@suse.de>.
40011
40012 2006-11-21  Jim Meyering  <jim@meyering.net>
40013
40014         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40015         so as to remain compatible with older compilers.
40016         Patch from Michael Deutschmann.
40017
40018 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40019
40020         * MODULES.html.sh (File system functions): Add openat.
40021
40022         * lib/openat.h (rpl_fstatat): New macro, if
40023         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40024         (fstatat): Define to rpl_fstatat under the same conditions,
40025         unless COMPILING_FSTATAT.
40026         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40027         seems to have the bug.
40028         * lib/fstatat.c: New file.
40029         * modules/openat (Files): Add it.
40030
40031 2006-11-20  Bruno Haible  <bruno@clisp.org>
40032
40033         * Makefile: New file.
40034
40035 2006-11-20  Jim Meyering  <jim@meyering.net>
40036
40037         The beginnings of syntax-related checks for gnulib.
40038         * lib/Makefile: New file.
40039         * lib/t-idcache: New script.  Ensure that the two halves of
40040         idcache.c stay in sync.
40041
40042         * lib/idcache.c: Adjust comments in user- and group- portions to
40043         be more accurate, and to be consistent with one another.
40044
40045 2006-11-20  Jim Meyering  <jim@meyering.net>
40046
40047         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40048         continue using the flexible array member (thus, this module performs
40049         half as many malloc calls), with the addition that...
40050         (getgroup, getuser): Consistently record a non-match via an empty
40051         "name" string, and map an empty string match to a NULL return value.
40052         * modules/idcache (Depends-on): Re-add flexmember.
40053
40054         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40055         (getuidbyname, getgroup, getgidbyname): Likewise.
40056
40057         Use cleaner syntax: NULL rather than 0.
40058         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40059
40060 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40061
40062         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40063         It mishandled the case where the group was missing.
40064         Problem reported by Greg Schafer.
40065         * modules/idcache: Likewise.
40066
40067 2006-11-18  Jim Meyering  <jim@meyering.net>
40068
40069         * check-module (%exempt_header): Add exception for some
40070         conditionally-included headers.
40071
40072         * modules/i-ring (Depends-on): Add verify.
40073         (License): Change to LGPL.
40074
40075 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40076
40077         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40078         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40079         and inttostr.h.  Use snprintf rather than uinttostr, so that
40080         LGPLed code doesn't depend on GPLed.
40081
40082 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40083
40084         * modules/inline (License): Change from GPL to LGPL.
40085
40086 2006-11-17  Jim Meyering  <jim@meyering.net>
40087
40088         * modules/d-type (License): Switch to LGPL.
40089
40090 2006-11-15  Bruno Haible  <bruno@clisp.org>
40091
40092         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40093
40094 2006-11-15  Eric Blake  <ebb9@byu.net>
40095
40096         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40097         the module dependency.
40098
40099 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40100             Bruno Haible  <bruno@clisp.org>
40101
40102         * gnulib-tool (func_create_testdir): Add license consistency check.
40103
40104 2006-11-15  Eric Blake  <ebb9@byu.net>
40105
40106         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40107         random "(cached)" in configure output.
40108
40109 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40110
40111         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40112         test for conforming inttypes.h is both announced and cached.
40113
40114         * MODULES.html.sh (seen_modules, seen_files): New variables.
40115         (func_module): Rewrite to use a few less gnulib-tool and sed
40116         invocations.  Avoid a couple of quadratic algorithms for ...
40117         (missed_modules, missed_files): ... these, with ...
40118         (func_append, func_tmpdir): ... these new functions, from
40119         gnulib-tool.  Analogously, install traps for cleanup.
40120
40121         * tests/test-gc.c (main): Remove unused variables.
40122         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40123
40124 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40125
40126         * modules/inttostr (License): Change to LGPL.
40127
40128 2006-11-14  Eric Blake  <ebb9@byu.net>
40129
40130         * modules/tempname (License): Change to LGPL.
40131
40132 2006-11-14  Eric Blake  <ebb9@byu.net>
40133
40134         * doc/functions.texi (Function Portability): *printf functions on
40135         Cygwin now understand all POSIX size specifiers.
40136
40137 2006-11-14  Bruno Haible  <bruno@clisp.org>
40138
40139         * modules/c-ctype (License): Change to LGPL.
40140
40141 2006-11-12  Bruno Haible  <bruno@clisp.org>
40142
40143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40144         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40145         for GNOME libraries, for which the include files are installed in
40146         subdirectories of $prefix/include.
40147
40148 2006-11-12  Bruno Haible  <bruno@clisp.org>
40149
40150         * m4/lib-link.m4: Require at least autoconf-2.54.
40151         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40152         name to underscores for the --with option.
40153
40154 2006-11-13  Bruno Haible  <bruno@clisp.org>
40155
40156         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40157         the tests directory.
40158         Reported by Ralf Wildenhues.
40159
40160 2006-11-13  Bruno Haible  <bruno@clisp.org>
40161
40162         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40163         (func_emit_initmacro_end): Undo the override here.
40164         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40165         Works around the famous automake error in coreutils.
40166
40167 2006-11-13  Eric Blake  <ebb9@byu.net>
40168
40169         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40170         element, not its node.
40171
40172 2006-11-12  Bruno Haible  <bruno@clisp.org>
40173
40174         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40175         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40176
40177 2006-11-12  Bruno Haible  <bruno@clisp.org>
40178
40179         * gnulib-tool: New option --local-symlink.
40180         (func_usage): Document it.
40181         (lsymbolic): New variable.
40182         (func_import, func_create_testdir): If --symlink was not specified,
40183         test whether --local-symlink was specified and the file comes from
40184         the local_gnulib_dir.
40185
40186 2006-11-12  Bruno Haible  <bruno@clisp.org>
40187
40188         * gnulib-tool (func_ln): New function.
40189         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40190
40191 2006-11-12  Bruno Haible  <bruno@clisp.org>
40192
40193         Finish support for source files in subdirectories.
40194         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40195         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40196         AUTOMAKE_OPTIONS.
40197         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40198
40199 2006-11-12  Bruno Haible  <bruno@clisp.org>
40200
40201         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40202         EXTRA_lib_SOURCES augmentation.
40203         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40204
40205 2006-11-12  Jim Meyering  <jim@meyering.net>
40206
40207         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40208         file descriptors.  This also averts a failure on systems with
40209         native openat support when a traversed directory lacks "x" access.
40210         * lib/fts_.h: Include "i-ring.h"
40211         (struct FTS) [fts_fd_ring]: New member.
40212         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40213         (FCHDIR): Add parentheses.
40214         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40215         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40216         When descending, rather than simply closing the previous
40217         fts_cwd_fd value, push that file descriptor onto the ring.
40218         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40219         (fts_open): Initialize the new fd_ring member.
40220         (fts_close): Clear the ring.
40221         (fts_safe_changedir): When possible, use our new fd_ring to skip
40222         the diropen and fstat and dev/ino comparison that would normally
40223         accompany a virtual `chdir ("..")'.
40224
40225         * modules/fts (Depends-on): Add i-ring.
40226         * modules/i-ring: New module.
40227         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40228         * m4/i-ring.m4: New file.
40229
40230 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40231
40232         * gnulib-tool (func_create_testdir): Fix replacement of
40233         `build-aux' in configure.ac.  Run autotools in gltests
40234         subdirectory.
40235         (func_create_testdir, func_create_megatestdir, test): There is
40236         no need for '--force' in most autotool invocations in a new
40237         tree.  Actually fail the whole test if any of the tools, or the
40238         configure or make stages fail.
40239
40240         Sync from Automake.
40241         * build-aux/gnupload: Revert last change.  Add pointer to upload
40242         instructions of the GNU Maintenance Instructions.
40243         Suggestion by Karl Berry.
40244
40245 2006-11-10  Jim Meyering  <jim@meyering.net>
40246
40247         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40248
40249 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40250
40251         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40252         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40253         (bind_textdomain_codeset) [! ENABLE_NLS]:
40254         Evaluate all the arguments.  That way, callers get compatible behavior
40255         if the arguments have side effects.  Also, it avoids some GCC
40256         diagnostics in some cases; Joel E. Denny reported problems when Bison
40257         was configured with --enable-gcc-warnigs.
40258
40259 2006-11-10  Jim Meyering  <jim@meyering.net>
40260
40261         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40262         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40263         account.
40264
40265 2006-11-10  Jim Meyering  <jim@meyering.net>
40266
40267         * modules/inline: New file/module.
40268         * modules/xalloc (Files): Remove m4/inline.m4.
40269         (Depends-on): Add inline, instead.
40270         * modules/oset: Likewise.
40271         * modules/list: Likewise.
40272
40273 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40274
40275         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40276         Problem reported by Matthew Woehlke.
40277
40278 2006-11-09  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/tempname.c (gen_tempname): Remove variant that invokes
40281         __gen_tempname.
40282         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40283         __gen_tempname.
40284
40285 2006-11-08  Bruno Haible  <bruno@clisp.org>
40286
40287         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40288         to 'yes' instead of 'cross-compiling'.
40289
40290 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40291
40292         * lib/quotearg.h (quotearg_free): New decl.
40293         * lib/quotearg.c (quotearg_free): New function.
40294         (slot0, nslots, slotvec0, slotvec):
40295         Now file-scope so that quotearg_free can get at them.
40296
40297 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40298
40299         Sync from Automake.
40300         * build-aux/gnupload: Add missing 'gnu' to example URL.
40301         Report by Karl Berry.
40302
40303 2006-11-08  Bruno Haible  <bruno@clisp.org>
40304
40305         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40306         Suggested by Paul Eggert.
40307
40308 2006-11-08  Jim Meyering  <jim@meyering.net>
40309
40310         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40311         It's already included if !_LIBC.
40312         (fts_safe_changedir): Add a comment.
40313
40314 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40315
40316         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40317         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40318         Matthew Woehlke.
40319
40320         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40321         definitions up, to avoid colliding with change below.
40322         (static_inline) [HAVE_INLINE]: New macro.
40323         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40324         Provide extern decls when !HAVE_INLINE.  Do not define unless
40325         static_inline is defined, either by us or by xmalloc.c.  Use
40326         static_inline rather than static inline.
40327         (XCALLOC): Optimize sizeof(T) = 1 case.
40328         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40329
40330 2006-11-07  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40333         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40334         AC_C_INLINE.
40335         * modules/xalloc (Files): Add m4/inline.m4.
40336
40337 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40338
40339         * README: Fix typo.
40340         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40341         (Miscellanous Notes): ...from this.
40342
40343 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40344
40345         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40346         Mention that offsetof should be used instead of sizeof.
40347         From Bruno Haible.
40348
40349 2006-11-07  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40352
40353 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40354
40355         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40356         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40357         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40358         (gl_tree_add_before, gl_tree_add_after):
40359         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40360         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40361         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40362         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40363         (gl_linked_add_after, gl_linked_add_at): Likewise.
40364         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40365         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40366         (gl_tree_add_before, gl_tree_add_after): Likewise.
40367         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40368         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40369         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40370
40371 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40372
40373         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40374
40375 2006-11-06  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/inline.m4: New file.
40378         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40379         * modules/list (Files): Add m4/inline.m4.
40380         * modules/oset (Files): Likewise.
40381
40382 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40383
40384         * lib/idcache.c: Include <stddef.h>, for offsetof.
40385         (struct userid.name): Change from char * to a flexible array member.
40386         All uses changed.
40387         * modules/idcache (Depends-on): Add flexmember.
40388
40389         * MODULES.html.sh (Core language properties): New module flexmember.
40390         * modules/flexmember, m4/flexmember.m4: New files.
40391
40392         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40393         inline functions that are identical with the old xnmalloc_inline,
40394         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40395         that we can avoid some unnecessary integer multiplications and
40396         divisions in the common case where the element size is known at
40397         compile time.
40398         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40399         needed.
40400         (xnboundedmalloc): Remove.
40401         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40402         arguments, for consistency with rest of this header.
40403         (xcharalloc): Rewrite using XNMALLOC.
40404         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40405         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40406         versions have been moved to lib/xalloc.h and renamed to be the
40407         non-*_inline versions.
40408         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40409         and xnrealloc functions, since those functions are now inline and
40410         now call us.
40411         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40412         renaming described above.
40413         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40414         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40415         captures the dependency in AC_C_INLINE.
40416
40417         New module canonicalize-lgpl, proposed by Charles Wilson in
40418         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40419         with a few small changes afterwards.
40420         * MODULES.html.sh (File system functions): New module
40421         canonicalize-lgpl.
40422         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40423         and canonicalize_file_name.
40424         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40425         * modules/canonicalize-lgpl: New files.
40426
40427 2006-11-05  Bruno Haible  <bruno@clisp.org>
40428
40429         * gnulib-tool (func_import, func_create_testdir): Create directories
40430         also for files in subdirectories of lib/.
40431
40432 2006-11-05  Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40435         ANSI C compliant.
40436
40437 2006-11-03  Bruno Haible  <bruno@clisp.org>
40438
40439         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40440         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40441         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40442         (xnboundedmalloc): New inline function.
40443         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40444         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40445         xmalloc.
40446         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40447         xmalloc.
40448         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40449         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40450         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40451         xmalloc.
40452         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40453         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40454         xmalloc.
40455         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40456         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40457         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40458         xmalloc.
40459         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40460         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40461         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40462         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40463         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40464         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40465         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40466
40467 2006-11-03  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/c-ctype.h [C++]: Define functions without name mangling.
40470         * lib/fwriteerror.h [C++]: Likewise.
40471         * lib/gcd.h [C++]: Likewise.
40472         * lib/linebreak.h [C++]: Likewise.
40473
40474 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40475
40476         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40477         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40478         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40479         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40480         Check for functions and headers just once.
40481         Check for declaration of canonicalize_file_name.
40482         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40483
40484 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40485
40486         * gnulib-tool (func_import): Fix typo in actioncmd.
40487
40488 2006-11-02  Bruno Haible  <bruno@clisp.org>
40489
40490         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40491         newline sequence in the Makefile.am snippet as a space, like "make"
40492         does.
40493         Reported by Roger Persson <perrog@gmail.com>.
40494
40495 2006-11-01  Bruno Haible  <bruno@clisp.org>
40496
40497         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40498         already declared in <string.h>.
40499         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40500
40501 2006-11-01  Bruno Haible  <bruno@clisp.org>
40502
40503         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40504         * lib/strcase.h: Include <string.h>.
40505         (strcasecmp): Define to rpl_strcasecmp here.
40506
40507 2006-11-01  Bruno Haible  <bruno@clisp.org>
40508
40509         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40510
40511 2006-11-01  Eric Blake  <ebb9@byu.net>
40512
40513         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40514
40515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40516
40517 2006-10-29  Bruno Haible  <bruno@clisp.org>
40518
40519         Make it compile in C++ mode.
40520         * lib/full-write.c (full_rw): Add a cast.
40521
40522 2006-11-01  Bruno Haible  <bruno@clisp.org>
40523
40524         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40525         be POSIX compliant.
40526         Reported by Roger Persson <perrog@gmail.com>.
40527
40528 2006-11-01  Eric Blake  <ebb9@byu.net>
40529
40530         * lib/getopt_.h: Fix comments.
40531
40532 2006-10-31  Eric Blake  <ebb9@byu.net>
40533
40534         * modules/tmpdir (Depends-on): Add sys_stat.
40535         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40536         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40537         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40538         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40539         tempname.
40540
40541 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40542
40543         Avoid some C++ diagnostics reported by Bruno Haible.
40544         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40545         xmalloc.
40546         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40547         (struct slotvec): Move to top level.
40548         (quotearg_n_options): Rewrite to avoid xmalloc.
40549         * lib/xalloc.h (xcharalloc): New function.
40550         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40551         [defined __cplusplus]: Add function template that provides result
40552         type propagation.  This part of the change is from Bruno Haible.
40553
40554 2006-10-29  Bruno Haible  <bruno@clisp.org>
40555
40556         Make it compile in C++ mode.
40557         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40558         * lib/strnlen1.c (strnlen1): Cast memchr result.
40559         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40560         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40561         (create_temp_dir): Rename local variable 'template'.
40562         (compile_csharp_using_sscli): Add cast.
40563         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40564         * lib/findprog.c (find_in_path): Likewise.
40565         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40566         * lib/wait-process.c (register_slave_subprocess): Likewise.
40567
40568 2006-10-22  Bruno Haible  <bruno@clisp.org>
40569
40570         * modules/tsearch: New file.
40571         * lib/tsearch.h: New file.
40572         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40573         * m4/tsearch.m4: New file.
40574         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40575
40576 2006-10-29  Eric Blake  <ebb9@byu.net>
40577
40578         * lib/arcfour.c: Assume config.h.
40579         * lib/arctwo.c: Likewise.
40580         * lib/base64.c: Likewise.
40581         * lib/check-version.c: Likewise.
40582         * lib/crc.c: Likewise.
40583         * lib/des.c: Likewise.
40584         * lib/gc-gnulib.c: Likewise.
40585         * lib/gc-libgcrypt.c: Likewise.
40586         * lib/gc-pbkdf2-sha1.c: Likewise.
40587         * lib/getaddrinfo.c: Likewise.
40588         * lib/getdelim.c: Likewise.
40589         * lib/getline.c: Likewise.
40590         * lib/hmac-md5.c: Likewise.
40591         * lib/hmac-sha1.c: Likewise.
40592         * lib/iconvme.c: Likewise.
40593         * lib/md2.c: Likewise.
40594         * lib/md4.c: Likewise.
40595         * lib/memxor.c: Likewise.
40596         * lib/read-file.c: Likewise.
40597         * lib/readline.c: Likewise.
40598         * lib/rijndael-alg-fst.c: Likewise.
40599         * lib/rijndael-api-fst.c: Likewise.
40600         * lib/xgetdomainname.c: Likewise.
40601
40602 2006-10-28  Eric Blake  <ebb9@byu.net>
40603
40604         * lib/xstrndup.c: Assume config.h.
40605
40606 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40607
40608         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40609         stat-macros.h is now for our own macros, whereas stat_h is for
40610         macros in the <sys/stat.h> name space.
40611         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40612         (STAT_MACROS_H): Remove.
40613         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40614         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40615         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40616         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40617         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40618         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40619         Move these macros to ...
40620         * lib/stat_.h: here.  Don't include stat-macros.h.
40621         * lib/canonicalize.c: Don't include stat-macros.h.
40622         * lib/chown.c: Likewise.
40623         * lib/euidaccess.c: Likewise.
40624         * lib/file-type.c: Likewise.
40625         * lib/filemode.c: Likewise.
40626         * lib/glob.c: Likewise.
40627         * lib/isapipe.c: Likewise.
40628         * lib/lchown.c: Likewise.
40629         * lib/lstat.c: Likewise.
40630         * lib/mkdir-p.c: Likewise.
40631         * lib/rmdir.c: Likewise.
40632         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40634         unless mkdir isn't declared, to speed up 'configure'.
40635         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40636         would define all the S_* symbols.
40637         * modules/canonicalize (Depends-on):
40638         Depend on sys_stat, not stat-macros.
40639         * modules/chown: Likewise.
40640         * modules/euidaccess: Likewise.
40641         * modules/filemode: Likewise.
40642         * modules/file-type: Likewise.
40643         * modules/glob: Likewise.
40644         * modules/isapipe: Likewise.
40645         * modules/lchown: Likewise.
40646         * modules/lstat: Likewise.
40647         * modules/mkancesdirs: Likewise.
40648         * modules/rmdir: Likewise.
40649         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40650         * modules/modechange: Likewise.
40651         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40652         (configure.ac): Remove gl_STAT_MACROS.
40653         * modules/sys_stat (Depends-on): Remove stat-macros.
40654
40655 2006-10-27  Bruno Haible  <bruno@clisp.org>
40656
40657         * m4/signed.m4: Remove file.
40658         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40659         invocation.
40660         * modules/vasnprintf (Files): Remove m4/signed.m4.
40661
40662 2006-10-27  Bruno Haible  <bruno@clisp.org>
40663
40664         Update to GNU gettext 0.16.
40665         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40666         m4/inttypes-h.m4, m4/signed.m4.
40667         * m4/gettext.m4: Update to GNU gettext 0.16.
40668         * m4/intl.m4: New file, from GNU gettext.
40669         * m4/intldir.m4: New file, from GNU gettext.
40670         * config/srclist.txt: Update
40671
40672 2006-10-27  Eric Blake  <ebb9@byu.net>
40673
40674         * MODULES.html.sh: Document tempname.
40675         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40676         dependencies.
40677         (Files): Move lib/tempname.c...
40678         * modules/tempname: ...to this new module.
40679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40680         (gl_PREREQ_TEMPNAME): Move...
40681         * m4/tempname.m4: ...to this new file.
40682         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40683         * modules/sys_stat (Depends-on): Add stat-macros.
40684         * lib/stat_.h (includes): Pick up stat macros.
40685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40686         if stat macros are broken.
40687         * lib/tempname.c (includes): No need to include "stat-macros.h".
40688         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40689         (direxists, __path_search) [!_LIBC]: Don't compile these in
40690         gnulib; the tmpdir module covers that.
40691         * lib/tempname.h: New file.
40692
40693 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40694
40695         * COPYING: Explain how gnulib-tool converts licence headers.
40696         Almost all wording by Eric Blake.
40697
40698 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40699
40700         * lib/mbchar.h (is_basic_table): Make read-only.
40701         * lib/mbchar.c (is_basic_table): Likewise.
40702         Reported by John Darrington.
40703
40704 2006-10-25  Bruno Haible  <bruno@clisp.org>
40705
40706         * lib/progname.h (set_program_name): Undefine before defining.
40707
40708 2006-10-25  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40711         false for non-gcc C++ compilers.
40712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40713
40714 2006-10-24  Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40717         iconv implementations like Irix iconv.
40718
40719 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40720
40721         * modules/vararrays: New file.
40722         * m4/vararrays.m4: New file, taken from diffutils.
40723         * MODULES.html.sh: New module vararrays.
40724
40725 2006-10-24  Karl Berry  <karl@gnu.org>
40726
40727         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40728         Don't call GNU Unix.
40729
40730 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40731
40732         * users.txt: Add Libtool.
40733
40734         Sync from Libtool:
40735
40736         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40737
40738         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40739         to gnulib's policy of including config.h unconditionally.
40740
40741 2006-10-24  Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/wcwidth (Files): Add m4/wint_t.m4.
40744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40745         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40746
40747 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40748
40749         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40750         to pacify GCC with some -W flags enabled.  Problem reported by
40751         Bruno Haible.
40752
40753 2006-10-24  Jim Meyering  <jim@meyering.net>
40754
40755         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40756         Reported by Karl Berry.
40757
40758 2006-10-23  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40761
40762 2006-10-24  Bruno Haible  <bruno@clisp.org>
40763
40764         * lib/gl_list.h: Use C comment style, not C++ comment style.
40765
40766 2006-10-23  Eric Blake  <ebb9@byu.net>
40767
40768         * lib/getaddrinfo.c (includes): Add missing include.
40769
40770 2006-10-23  Bruno Haible  <bruno@clisp.org>
40771             Paul Eggert  <eggert@cs.ucla.edu>
40772
40773         Ability to rename obstack_free.
40774         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40775         obstack_free.
40776         (obstack_free): Invoke the __obstack_free macro.
40777         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40778
40779 2006-10-23  Bruno Haible  <bruno@clisp.org>
40780             Paul Eggert  <eggert@cs.ucla.edu>
40781
40782         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40783         __argc, __argv from the declaration. (They are defined as macros on
40784         mingw.)
40785
40786 2006-10-22  Bruno Haible  <bruno@clisp.org>
40787
40788         * doc/gnulib-intro.texi: New file.
40789         * doc/gnulib.texi: Include it.
40790
40791 2006-10-21  Bruno Haible  <bruno@clisp.org>
40792
40793         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40794         "Introduction", "Miscellanous Notes", "Particular Modules".
40795
40796 2006-10-21  Bruno Haible  <bruno@clisp.org>
40797
40798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40799         Change mostlyclean-local rule to avoid sh syntax error from bash
40800         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40801
40802 2006-10-23  Jim Meyering  <jim@meyering.net>
40803
40804         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40805         in place of snprintf.
40806
40807         * modules/inttostr (Files): Add lib/uinttostr.c.
40808         * lib/uinttostr.c (inttostr): New file/function.
40809         * lib/inttostr.h (uinttostr): Declare.
40810         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40811         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40812         Add uinttostr.
40813         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40814
40815 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40816
40817         * lib/canonicalize.c (ELOOP): Define if not already defined.
40818         Problem reported by Bruno Haible in
40819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40820
40821 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40822
40823         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40824         Problem reported by Perry Smith and Ville Laurikari.
40825
40826         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40827         uses.
40828
40829 2006-10-19  Bruno Haible  <bruno@clisp.org>
40830
40831         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40832         for mingw.
40833
40834 2006-10-19  Bruno Haible  <bruno@clisp.org>
40835
40836         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40837         Needed for mingw.
40838
40839 2006-10-19  Bruno Haible  <bruno@clisp.org>
40840
40841         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40842
40843 2006-10-19  Bruno Haible  <bruno@clisp.org>
40844
40845         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40846         it.
40847
40848 2006-10-19  Bruno Haible  <bruno@clisp.org>
40849
40850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40851         invocation.
40852
40853 2006-10-19  Bruno Haible  <bruno@clisp.org>
40854
40855         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40856         mountlist by default.
40857
40858 2006-10-16  Bruno Haible  <bruno@clisp.org>
40859
40860         * lib/c-strstr.c: Include c-strstr.h.
40861
40862 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40863
40864         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40865         in a slash.
40866
40867 2006-10-18  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/lock.h [C++]: Wrap definitions in extern "C".
40870
40871 2006-10-18  Bruno Haible  <bruno@clisp.org>
40872
40873         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40874         gl_LIBOBJS list.
40875
40876 2006-10-18  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40879
40880 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40881
40882         * lib/xstrtol.h: Include gettext.h.
40883         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40884         Problem reported by Eric Blake.
40885         * modules/xstrtol (Depends-on): Add gettext-h.
40886
40887 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40888
40889         * lib/strftime.c (advance): New macro.
40890         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40891         incomplete type, so you can't add 0 to it.  Problem and patch
40892         reported by Eelco Dolstra for dietlibc.
40893
40894 2006-10-18  Jim Meyering  <jim@meyering.net>
40895
40896         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40897         type for a local, and rename it: s/up/user_proc/.
40898
40899 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40900
40901         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40902         READ_UTMP_USER_PROCESS.
40903         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40904
40905 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40906
40907         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40908         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40909
40910 2006-10-17  Eric Blake  <ebb9@byu.net>
40911
40912         * lib/sigprocmask.c (sigprocmask): Fix typo.
40913
40914         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40915
40916         * modules/clean-temp (Makefile.am): Don't add to make output...
40917         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40918         config.h.
40919
40920 2006-10-17  Bruno Haible  <bruno@clisp.org>
40921
40922         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40923         differently if DEFAULT_TEXT_DOMAIN is set.
40924
40925 2006-10-16  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/clean-temp.c: Include fwriteerror.h.
40928
40929 2006-10-16  Bruno Haible  <bruno@clisp.org>
40930
40931         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40932
40933 2006-10-16  Bruno Haible  <bruno@clisp.org>
40934
40935         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40936         * lib/sigprocmask.h: Include <sys/types.h>.
40937         (sigset_t): Use the system's definition if present.
40938
40939 2006-10-17  Eric Blake  <ebb9@byu.net>
40940
40941         * lib/xvasprintf.c (includes): Assume config.h.
40942         * lib/xasprintf.c (includes): Likewise.
40943
40944 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40945
40946         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40947         at least as wide as intmax_t.
40948
40949 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40950
40951         (Imported from Automake.)
40952         * build-aux/gnupload: Update to version 1.1 of directive file.
40953
40954 2006-10-16  Eric Blake  <ebb9@byu.net>
40955
40956         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40957         match Automake 1.10a.
40958
40959 2006-10-14  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/sigprocmask: New file.
40962         * lib/sigprocmask.h: New file.
40963         * lib/sigprocmask.c: New file.
40964         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40965         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40966         request sigprocmask.o.
40967         (gl_PREREQ_SIGPROCMASK): New macro.
40968         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40969         (Depends-on): Add sigprocmask.
40970         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40971         gt_SIGNALBLOCKING. Test for 'raise' only once.
40972         * lib/fatal-signal.c: Include sigprocmask.h.
40973         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40974         unblock_fatal_signals): Define always.
40975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40976         sigprocmask.
40977
40978 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40979
40980         Sync from Automake.
40981         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40982         which incorrectly sets the mode of an existing destination
40983         directory.  In some cases the unpatched install-sh could do the
40984         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40985         system.  We hope this is rare in practice, but it's clearly worth
40986         fixing.  Problem reported by Alex Unleashed in
40987         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40988         Also, don't bother to check for -m bugs unless we're using -m;
40989         suggested by Stepan Kasal.
40990
40991 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40992
40993         Sync from Automake.
40994         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40995         `-c' flag, so they appear at the same position as in %FASTDEP%
40996         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40997         which ignores unknown options only after the first non-option.
40998         Bug report against M4 by Nelson H. F. Beebe.
40999
41000 2006-10-13  Jim Meyering  <jim@meyering.net>
41001
41002         Fix a bug in yesterday's change.
41003         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41004         p->fts_statp->st_dev would be used uninitialized.
41005         Ensures that we always call fts_stat on the very first entry.
41006         Miklos Szeredi reported that find -xdev stopped working.
41007
41008 2006-10-12  Bruno Haible  <bruno@clisp.org>
41009
41010         * gnulib-tool (func_get_automake_snippet): Append an automatically
41011         computed EXTRA_DIST augmentation.
41012         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41013         * modules/alloca-opt (Makefile.am): Likewise.
41014         * modules/allocsa (Makefile.am): Likewise.
41015         * modules/arcfour (Makefile.am): Likewise.
41016         * modules/arctwo (Makefile.am): Likewise.
41017         * modules/argmatch (Makefile.am): Likewise.
41018         * modules/argz (Makefile.am): Likewise.
41019         * modules/atexit (Makefile.am): Likewise.
41020         * modules/backupfile (Makefile.am): Likewise.
41021         * modules/byteswap (Makefile.am): Likewise.
41022         * modules/c-strtod (Makefile.am): Likewise.
41023         * modules/c-strtold (Makefile.am): Likewise.
41024         * modules/calloc (Makefile.am): Likewise.
41025         * modules/canon-host (Makefile.am): Likewise.
41026         * modules/canonicalize (Makefile.am): Likewise.
41027         * modules/chdir-long (Makefile.am): Likewise.
41028         * modules/chdir-safer (Makefile.am): Likewise.
41029         * modules/check-version (Makefile.am): Likewise.
41030         * modules/chown (Makefile.am): Likewise.
41031         * modules/cloexec (Makefile.am): Likewise.
41032         * modules/close-stream (Makefile.am): Likewise.
41033         * modules/closeout (Makefile.am): Likewise.
41034         * modules/crc (Makefile.am): Likewise.
41035         * modules/csharpexec (Makefile.am): Likewise.
41036         * modules/cycle-check (Makefile.am): Likewise.
41037         * modules/des (Makefile.am): Likewise.
41038         * modules/dev-ino (Makefile.am): Likewise.
41039         * modules/dirfd (Makefile.am): Likewise.
41040         * modules/dirname (Makefile.am): Likewise.
41041         * modules/dup2 (Makefile.am): Likewise.
41042         * modules/eealloc (Makefile.am): Likewise.
41043         * modules/error (Makefile.am): Likewise.
41044         * modules/euidaccess (Makefile.am): Likewise.
41045         * modules/exclude (Makefile.am): Likewise.
41046         * modules/exitfail (Makefile.am): Likewise.
41047         * modules/fcntl-safer (Makefile.am): Likewise.
41048         * modules/fcntl (Makefile.am): Likewise.
41049         * modules/file-type (Makefile.am): Likewise.
41050         * modules/fileblocks (Makefile.am): Likewise.
41051         * modules/filemode (Makefile.am): Likewise.
41052         * modules/filenamecat (Makefile.am): Likewise.
41053         * modules/fnmatch (Makefile.am): Likewise.
41054         * modules/fopen-safer (Makefile.am): Likewise.
41055         * modules/fpending (Makefile.am): Likewise.
41056         * modules/fprintftime (Makefile.am): Likewise.
41057         * modules/free (Makefile.am): Likewise.
41058         * modules/fsusage (Makefile.am): Likewise.
41059         * modules/ftruncate (Makefile.am): Likewise.
41060         * modules/fts (Makefile.am): Likewise.
41061         * modules/gc-arcfour (Makefile.am): Likewise.
41062         * modules/gc-des (Makefile.am): Likewise.
41063         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41064         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41065         * modules/gc-md4 (Makefile.am): Likewise.
41066         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41067         * modules/gc-sha1 (Makefile.am): Likewise.
41068         * modules/gc (Makefile.am): Likewise.
41069         * modules/getaddrinfo (Makefile.am): Likewise.
41070         * modules/getcwd (Makefile.am): Likewise.
41071         * modules/getdelim (Makefile.am): Likewise.
41072         * modules/getdomainname (Makefile.am): Likewise.
41073         * modules/getgroups (Makefile.am): Likewise.
41074         * modules/gethostname (Makefile.am): Likewise.
41075         * modules/gethrxtime (Makefile.am): Likewise.
41076         * modules/getline (Makefile.am): Likewise.
41077         * modules/getloadavg (Makefile.am): Likewise.
41078         * modules/getlogin_r (Makefile.am): Likewise.
41079         * modules/getndelim2 (Makefile.am): Likewise.
41080         * modules/getopt (Makefile.am): Likewise.
41081         * modules/getpagesize (Makefile.am): Likewise.
41082         * modules/getpass-gnu (Makefile.am): Likewise.
41083         * modules/getpass (Makefile.am): Likewise.
41084         * modules/getsubopt (Makefile.am): Likewise.
41085         * modules/gettime (Makefile.am): Likewise.
41086         * modules/gettimeofday (Makefile.am): Likewise.
41087         * modules/getugroups (Makefile.am): Likewise.
41088         * modules/getusershell (Makefile.am): Likewise.
41089         * modules/glob (Makefile.am): Likewise.
41090         * modules/group-member (Makefile.am): Likewise.
41091         * modules/hard-locale (Makefile.am): Likewise.
41092         * modules/hash (Makefile.am): Likewise.
41093         * modules/hmac-md5 (Makefile.am): Likewise.
41094         * modules/hmac-sha1 (Makefile.am): Likewise.
41095         * modules/human (Makefile.am): Likewise.
41096         * modules/idcache (Makefile.am): Likewise.
41097         * modules/imaxabs (Makefile.am): Likewise.
41098         * modules/imaxdiv (Makefile.am): Likewise.
41099         * modules/inet_ntop (Makefile.am): Likewise.
41100         * modules/inet_pton (Makefile.am): Likewise.
41101         * modules/intprops (Makefile.am): Likewise.
41102         * modules/inttostr (Makefile.am): Likewise.
41103         * modules/inttypes (Makefile.am): Likewise.
41104         * modules/isapipe (Makefile.am): Likewise.
41105         * modules/javaversion (Makefile.am): Likewise.
41106         * modules/lchmod (Makefile.am): Likewise.
41107         * modules/lchown (Makefile.am): Likewise.
41108         * modules/localcharset (Makefile.am): Likewise.
41109         * modules/long-options (Makefile.am): Likewise.
41110         * modules/lstat (Makefile.am): Likewise.
41111         * modules/malloc (Makefile.am): Likewise.
41112         * modules/mathl (Makefile.am): Likewise.
41113         * modules/mbchar (Makefile.am): Likewise.
41114         * modules/md2 (Makefile.am): Likewise.
41115         * modules/md4 (Makefile.am): Likewise.
41116         * modules/md5 (Makefile.am): Likewise.
41117         * modules/memcasecmp (Makefile.am): Likewise.
41118         * modules/memchr (Makefile.am): Likewise.
41119         * modules/memcmp (Makefile.am): Likewise.
41120         * modules/memcoll (Makefile.am): Likewise.
41121         * modules/memcpy (Makefile.am): Likewise.
41122         * modules/memmem (Makefile.am): Likewise.
41123         * modules/memmove (Makefile.am): Likewise.
41124         * modules/mempcpy (Makefile.am): Likewise.
41125         * modules/memrchr (Makefile.am): Likewise.
41126         * modules/memset (Makefile.am): Likewise.
41127         * modules/memxor (Makefile.am): Likewise.
41128         * modules/mkancesdirs (Makefile.am): Likewise.
41129         * modules/mkdir-p (Makefile.am): Likewise.
41130         * modules/mkdir (Makefile.am): Likewise.
41131         * modules/mkdtemp (Makefile.am): Likewise.
41132         * modules/mkstemp (Makefile.am): Likewise.
41133         * modules/mktime (Makefile.am): Likewise.
41134         * modules/modechange (Makefile.am): Likewise.
41135         * modules/mountlist (Makefile.am): Likewise.
41136         * modules/nanosleep (Makefile.am): Likewise.
41137         * modules/obstack (Makefile.am): Likewise.
41138         * modules/openat (Makefile.am): Likewise.
41139         * modules/pagealign_alloc (Makefile.am): Likewise.
41140         * modules/pathmax (Makefile.am): Likewise.
41141         * modules/physmem (Makefile.am): Likewise.
41142         * modules/poll (Makefile.am): Likewise.
41143         * modules/posixtm (Makefile.am): Likewise.
41144         * modules/posixver (Makefile.am): Likewise.
41145         * modules/putenv (Makefile.am): Likewise.
41146         * modules/quote (Makefile.am): Likewise.
41147         * modules/quotearg (Makefile.am): Likewise.
41148         * modules/raise (Makefile.am): Likewise.
41149         * modules/read-file (Makefile.am): Likewise.
41150         * modules/readline (Makefile.am): Likewise.
41151         * modules/readlink (Makefile.am): Likewise.
41152         * modules/readtokens (Makefile.am): Likewise.
41153         * modules/readutmp (Makefile.am): Likewise.
41154         * modules/realloc (Makefile.am): Likewise.
41155         * modules/regex (Makefile.am): Likewise.
41156         * modules/rename-dest-slash (Makefile.am): Likewise.
41157         * modules/rename (Makefile.am): Likewise.
41158         * modules/rijndael (Makefile.am): Likewise.
41159         * modules/rmdir (Makefile.am): Likewise.
41160         * modules/rpmatch (Makefile.am): Likewise.
41161         * modules/safe-read (Makefile.am): Likewise.
41162         * modules/safe-write (Makefile.am): Likewise.
41163         * modules/same-inode (Makefile.am): Likewise.
41164         * modules/same (Makefile.am): Likewise.
41165         * modules/save-cwd (Makefile.am): Likewise.
41166         * modules/savedir (Makefile.am): Likewise.
41167         * modules/setenv (Makefile.am): Likewise.
41168         * modules/settime (Makefile.am): Likewise.
41169         * modules/sha1 (Makefile.am): Likewise.
41170         * modules/sig2str (Makefile.am): Likewise.
41171         * modules/snprintf (Makefile.am): Likewise.
41172         * modules/stat-macros (Makefile.am): Likewise.
41173         * modules/stat-time (Makefile.am): Likewise.
41174         * modules/stdbool (Makefile.am): Likewise.
41175         * modules/stdint (Makefile.am): Likewise.
41176         * modules/stdlib-safer (Makefile.am): Likewise.
41177         * modules/stpcpy (Makefile.am): Likewise.
41178         * modules/stpncpy (Makefile.am): Likewise.
41179         * modules/strcase (Makefile.am): Likewise.
41180         * modules/strcasestr (Makefile.am): Likewise.
41181         * modules/strchrnul (Makefile.am): Likewise.
41182         * modules/strcspn (Makefile.am): Likewise.
41183         * modules/strdup (Makefile.am): Likewise.
41184         * modules/strerror (Makefile.am): Likewise.
41185         * modules/strftime (Makefile.am): Likewise.
41186         * modules/strndup (Makefile.am): Likewise.
41187         * modules/strnlen (Makefile.am): Likewise.
41188         * modules/strpbrk (Makefile.am): Likewise.
41189         * modules/strsep (Makefile.am): Likewise.
41190         * modules/strstr (Makefile.am): Likewise.
41191         * modules/strtod (Makefile.am): Likewise.
41192         * modules/strtoimax (Makefile.am): Likewise.
41193         * modules/strtok_r (Makefile.am): Likewise.
41194         * modules/strtol (Makefile.am): Likewise.
41195         * modules/strtoll (Makefile.am): Likewise.
41196         * modules/strtoul (Makefile.am): Likewise.
41197         * modules/strtoull (Makefile.am): Likewise.
41198         * modules/strtoumax (Makefile.am): Likewise.
41199         * modules/strverscmp (Makefile.am): Likewise.
41200         * modules/sys_socket (Makefile.am): Likewise.
41201         * modules/sys_stat (Makefile.am): Likewise.
41202         * modules/sysexits (Makefile.am): Likewise.
41203         * modules/time_r (Makefile.am): Likewise.
41204         * modules/timegm (Makefile.am): Likewise.
41205         * modules/timespec (Makefile.am): Likewise.
41206         * modules/tmpfile-safer (Makefile.am): Likewise.
41207         * modules/trim (Makefile.am): Likewise.
41208         * modules/unistd-safer (Makefile.am): Likewise.
41209         * modules/unlinkdir (Makefile.am): Likewise.
41210         * modules/unlocked-io (Makefile.am): Likewise.
41211         * modules/userspec (Makefile.am): Likewise.
41212         * modules/utime (Makefile.am): Likewise.
41213         * modules/utimecmp (Makefile.am): Likewise.
41214         * modules/utimens (Makefile.am): Likewise.
41215         * modules/vasnprintf (Makefile.am): Likewise.
41216         * modules/vasprintf (Makefile.am): Likewise.
41217         * modules/vsnprintf (Makefile.am): Likewise.
41218         * modules/xalloc (Makefile.am): Likewise.
41219         * modules/xgetcwd (Makefile.am): Likewise.
41220         * modules/xnanosleep (Makefile.am): Likewise.
41221         * modules/xreadlink (Makefile.am): Likewise.
41222         * modules/xstrtod (Makefile.am): Likewise.
41223         * modules/xstrtol (Makefile.am): Likewise.
41224         * modules/xstrtold (Makefile.am): Likewise.
41225         * modules/yesno (Makefile.am): Likewise.
41226         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41227
41228 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41229
41230         * modules/error (Makefile.am): Distribute files through
41231         EXTRA_DIST, not lib_SOURCES.
41232
41233 2006-10-12  Eric Blake  <ebb9@byu.net>
41234
41235         * modules/error (Makefile.am): Distribute files in /lib.
41236         * modules/obstack (Makefile.am): Likewise.
41237
41238 2006-10-12  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/acl (Makefile.am): Distribute all files in lib/ through
41241         EXTRA_DIST.
41242         * modules/arcfour (Makefile.am): Likewise.
41243         * modules/arctwo (Makefile.am): Likewise.
41244         * modules/argmatch (Makefile.am): Likewise.
41245         * modules/argz (Makefile.am): Likewise.
41246         * modules/atexit (Makefile.am): Likewise.
41247         * modules/backupfile (Makefile.am): Likewise.
41248         * modules/c-strtod (Makefile.am): Likewise.
41249         * modules/c-strtold (Makefile.am): Likewise.
41250         * modules/calloc (Makefile.am): Likewise.
41251         * modules/canon-host (Makefile.am): Likewise.
41252         * modules/canonicalize (Makefile.am): Likewise.
41253         * modules/chdir-long (Makefile.am): Likewise.
41254         * modules/chdir-safer (Makefile.am): Likewise.
41255         * modules/check-version (Makefile.am): Likewise.
41256         * modules/chown (Makefile.am): Likewise.
41257         * modules/cloexec (Makefile.am): Likewise.
41258         * modules/close-stream (Makefile.am): Likewise.
41259         * modules/closeout (Makefile.am): Likewise.
41260         * modules/crc (Makefile.am): Likewise.
41261         * modules/cycle-check (Makefile.am): Likewise.
41262         * modules/des (Makefile.am): Likewise.
41263         * modules/dirfd (Makefile.am): Likewise.
41264         * modules/dirname (Makefile.am): Likewise.
41265         * modules/dup2 (Makefile.am): Likewise.
41266         * modules/euidaccess (Makefile.am): Likewise.
41267         * modules/exclude (Makefile.am): Likewise.
41268         * modules/exitfail (Makefile.am): Likewise.
41269         * modules/fcntl-safer (Makefile.am): Likewise.
41270         * modules/file-type (Makefile.am): Likewise.
41271         * modules/fileblocks (Makefile.am): Likewise.
41272         * modules/filemode (Makefile.am): Likewise.
41273         * modules/filenamecat (Makefile.am): Likewise.
41274         * modules/fnmatch (Makefile.am): Likewise.
41275         * modules/fopen-safer (Makefile.am): Likewise.
41276         * modules/fpending (Makefile.am): Likewise.
41277         * modules/fprintftime (Makefile.am): Likewise.
41278         * modules/free (Makefile.am): Likewise.
41279         * modules/fsusage (Makefile.am): Likewise.
41280         * modules/ftruncate (Makefile.am): Likewise.
41281         * modules/fts (Makefile.am): Likewise.
41282         * modules/gc (Makefile.am): Likewise.
41283         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41284         * modules/getaddrinfo (Makefile.am): Likewise.
41285         * modules/getcwd (Makefile.am): Likewise.
41286         * modules/getdelim (Makefile.am): Likewise.
41287         * modules/getdomainname (Makefile.am): Likewise.
41288         * modules/getgroups (Makefile.am): Likewise.
41289         * modules/gethostname (Makefile.am): Likewise.
41290         * modules/gethrxtime (Makefile.am): Likewise.
41291         * modules/getline (Makefile.am): Likewise.
41292         * modules/getloadavg (Makefile.am): Likewise.
41293         * modules/getlogin_r (Makefile.am): Likewise.
41294         * modules/getopt (Makefile.am): Likewise.
41295         * modules/getpass (Makefile.am): Likewise.
41296         * modules/getpass-gnu (Makefile.am): Likewise.
41297         * modules/getsubopt (Makefile.am): Likewise.
41298         * modules/gettime (Makefile.am): Likewise.
41299         * modules/gettimeofday (Makefile.am): Likewise.
41300         * modules/getugroups (Makefile.am): Likewise.
41301         * modules/getusershell (Makefile.am): Likewise.
41302         * modules/glob (Makefile.am): Likewise.
41303         * modules/group-member (Makefile.am): Likewise.
41304         * modules/hard-locale (Makefile.am): Likewise.
41305         * modules/hash (Makefile.am): Likewise.
41306         * modules/hmac-md5 (Makefile.am): Likewise.
41307         * modules/hmac-sha1 (Makefile.am): Likewise.
41308         * modules/human (Makefile.am): Likewise.
41309         * modules/idcache (Makefile.am): Likewise.
41310         * modules/imaxabs (Makefile.am): Likewise.
41311         * modules/imaxdiv (Makefile.am): Likewise.
41312         * modules/inet_ntop (Makefile.am): Likewise.
41313         * modules/inet_pton (Makefile.am): Likewise.
41314         * modules/inttostr (Makefile.am): Likewise.
41315         * modules/isapipe (Makefile.am): Likewise.
41316         * modules/lchown (Makefile.am): Likewise.
41317         * modules/long-options (Makefile.am): Likewise.
41318         * modules/lstat (Makefile.am): Likewise.
41319         * modules/malloc (Makefile.am): Likewise.
41320         * modules/mathl (Makefile.am): Likewise.
41321         * modules/mbchar (Makefile.am): Likewise.
41322         * modules/md2 (Makefile.am): Likewise.
41323         * modules/md4 (Makefile.am): Likewise.
41324         * modules/md5 (Makefile.am): Likewise.
41325         * modules/memcasecmp (Makefile.am): Likewise.
41326         * modules/memchr (Makefile.am): Likewise.
41327         * modules/memcmp (Makefile.am): Likewise.
41328         * modules/memcoll (Makefile.am): Likewise.
41329         * modules/memcpy (Makefile.am): Likewise.
41330         * modules/memmem (Makefile.am): Likewise.
41331         * modules/memmove (Makefile.am): Likewise.
41332         * modules/mempcpy (Makefile.am): Likewise.
41333         * modules/memrchr (Makefile.am): Likewise.
41334         * modules/memset (Makefile.am): Likewise.
41335         * modules/memxor (Makefile.am): Likewise.
41336         * modules/mkancesdirs (Makefile.am): Likewise.
41337         * modules/mkdir (Makefile.am): Likewise.
41338         * modules/mkdir-p (Makefile.am): Likewise.
41339         * modules/mkdtemp (Makefile.am): Likewise.
41340         * modules/mkstemp (Makefile.am): Likewise.
41341         * modules/mktime (Makefile.am): Likewise.
41342         * modules/modechange (Makefile.am): Likewise.
41343         * modules/mountlist (Makefile.am): Likewise.
41344         * modules/nanosleep (Makefile.am): Likewise.
41345         * modules/openat (Makefile.am): Likewise.
41346         * modules/pagealign_alloc (Makefile.am): Likewise.
41347         * modules/physmem (Makefile.am): Likewise.
41348         * modules/poll (Makefile.am): Likewise.
41349         * modules/posixtm (Makefile.am): Likewise.
41350         * modules/posixver (Makefile.am): Likewise.
41351         * modules/putenv (Makefile.am): Likewise.
41352         * modules/quote (Makefile.am): Likewise.
41353         * modules/quotearg (Makefile.am): Likewise.
41354         * modules/raise (Makefile.am): Likewise.
41355         * modules/read-file (Makefile.am): Likewise.
41356         * modules/readline (Makefile.am): Likewise.
41357         * modules/readlink (Makefile.am): Likewise.
41358         * modules/readtokens (Makefile.am): Likewise.
41359         * modules/readutmp (Makefile.am): Likewise.
41360         * modules/realloc (Makefile.am): Likewise.
41361         * modules/regex (Makefile.am): Likewise.
41362         * modules/rename (Makefile.am): Likewise.
41363         * modules/rename-dest-slash (Makefile.am): Likewise.
41364         * modules/rijndael (Makefile.am): Likewise.
41365         * modules/rmdir (Makefile.am): Likewise.
41366         * modules/rpmatch (Makefile.am): Likewise.
41367         * modules/safe-read (Makefile.am): Likewise.
41368         * modules/safe-write (Makefile.am): Likewise.
41369         * modules/same (Makefile.am): Likewise.
41370         * modules/save-cwd (Makefile.am): Likewise.
41371         * modules/savedir (Makefile.am): Likewise.
41372         * modules/setenv (Makefile.am): Likewise.
41373         * modules/settime (Makefile.am): Likewise.
41374         * modules/sha1 (Makefile.am): Likewise.
41375         * modules/sig2str (Makefile.am): Likewise.
41376         * modules/snprintf (Makefile.am): Likewise.
41377         * modules/stdlib-safer (Makefile.am): Likewise.
41378         * modules/stpcpy (Makefile.am): Likewise.
41379         * modules/stpncpy (Makefile.am): Likewise.
41380         * modules/strcase (Makefile.am): Likewise.
41381         * modules/strcasestr (Makefile.am): Likewise.
41382         * modules/strchrnul (Makefile.am): Likewise.
41383         * modules/strcspn (Makefile.am): Likewise.
41384         * modules/strdup (Makefile.am): Likewise.
41385         * modules/strerror (Makefile.am): Likewise.
41386         * modules/strftime (Makefile.am): Likewise.
41387         * modules/strndup (Makefile.am): Likewise.
41388         * modules/strnlen (Makefile.am): Likewise.
41389         * modules/strpbrk (Makefile.am): Likewise.
41390         * modules/strsep (Makefile.am): Likewise.
41391         * modules/strstr (Makefile.am): Likewise.
41392         * modules/strtod (Makefile.am): Likewise.
41393         * modules/strtoimax (Makefile.am): Likewise.
41394         * modules/strtok_r (Makefile.am): Likewise.
41395         * modules/strtol (Makefile.am): Likewise.
41396         * modules/strtoll (Makefile.am): Likewise.
41397         * modules/strtoul (Makefile.am): Likewise.
41398         * modules/strtoull (Makefile.am): Likewise.
41399         * modules/strtoumax (Makefile.am): Likewise.
41400         * modules/strverscmp (Makefile.am): Likewise.
41401         * modules/time_r (Makefile.am): Likewise.
41402         * modules/timegm (Makefile.am): Likewise.
41403         * modules/tmpfile-safer (Makefile.am): Likewise.
41404         * modules/unistd-safer (Makefile.am): Likewise.
41405         * modules/unlinkdir (Makefile.am): Likewise.
41406         * modules/userspec (Makefile.am): Likewise.
41407         * modules/utime (Makefile.am): Likewise.
41408         * modules/utimecmp (Makefile.am): Likewise.
41409         * modules/utimens (Makefile.am): Likewise.
41410         * modules/vasnprintf (Makefile.am): Likewise.
41411         * modules/vasprintf (Makefile.am): Likewise.
41412         * modules/vsnprintf (Makefile.am): Likewise.
41413         * modules/xalloc (Makefile.am): Likewise.
41414         * modules/xgetcwd (Makefile.am): Likewise.
41415         * modules/xnanosleep (Makefile.am): Likewise.
41416         * modules/xreadlink (Makefile.am): Likewise.
41417         * modules/xstrtod (Makefile.am): Likewise.
41418         * modules/xstrtol (Makefile.am): Likewise.
41419         * modules/xstrtold (Makefile.am): Likewise.
41420         * modules/yesno (Makefile.am): Likewise.
41421
41422 2006-10-12  Jim Meyering  <jim@meyering.net>
41423
41424         * m4/getloadavg.m4: Revert the change below.
41425
41426         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41427         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41428         fail with a symlink, which is what coreutils' ./bootstrap now
41429         creates by default.
41430
41431 2006-10-12  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41434         mingw.
41435         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41436         MSVC and mingw explicitly.
41437
41438 2006-10-11  Simon Josefsson  <jas@extundo.com>
41439             Bruno Haible  <bruno@clisp.org>
41440
41441         Add support for multiple gnulib-tool invocations in the scope of a
41442         single configure.ac file.
41443         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41444         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41445         with the same contents as the _LIBADD variable.
41446         (func_emit_initmacro_start, func_emit_initmacro_end,
41447         func_emit_initmacro_done): New functions.
41448         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41449         gl_LIBOBJS and gl_LTLIBOBJS.
41450
41451 2006-10-11  Bruno Haible  <bruno@clisp.org>
41452
41453         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41454         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41455         autoreconf. Instead, invoke autopoint explicitly but move back the
41456         *.m4 files from gnulib.
41457
41458 2006-10-11  Bruno Haible  <bruno@clisp.org>
41459
41460         * gnulib-tool (func_usage): Make module names after --create-testdir
41461         optional.
41462         (func_create_testdir): If no module was specified, use nearly all
41463         modules.
41464
41465 2006-10-12  Jim Meyering  <jim@meyering.net>
41466
41467         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41468         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41469         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41470         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41471         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41472         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41473         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41474         (fts_set_stat_required): New function.
41475         (fts_open): Defer the calls to fts_stat, if possible or requested.
41476         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41477         into fts_stat itself.
41478         (fts_read): Perform any required (deferred) fts_stat call.
41479         (fts_build): Likewise, for the directory we're about to open and read.
41480         In the readdir loop, carefully decide whether each entry will require
41481         an eventual call to fts_stat, using dirent.d_type info if available.
41482         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41483         a command line argument into this function.  Update all callers.
41484         Map a return value of FTS_DOT to FTS_D for a command line argument.
41485         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41486         Thanks to Miklos Szeredi for his tenacity and for the initial
41487         bug report about "find" failing on a FUSE-based file system.
41488
41489         * lib/fts.c (fts_open): Use consistent indentation.
41490
41491 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41492
41493         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41494         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41495         reported by Jim Meyering.  All uses of cache variables renamed
41496         to match Autoconf's.
41497         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41498         the other one.
41499
41500         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41501         Fix misspelling in diagnostic.
41502
41503 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41504
41505         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41506         defined.  Problem reported by Matthew Woehlke.
41507
41508         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41509         Add support for Tandem NonStop R series.
41510         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41511         Use new macro.
41512
41513         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41514         (has_trailing_slash): Omit size arg; all callers changed.
41515         Omit 'inline', since it doesn't help performance and we'd
41516         need to configure it.
41517         Don't count //, ///, etc. as having a trailing slash.
41518         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41519         (rpl_rename_dest_slash): On failure, use rename's errno rather
41520         than (in some cases) an incorrect or junk errno.
41521         Simplify code by removing need to compute length; this does
41522         cause it to make two passes instead of one over the file name,
41523         but it's worth it.
41524
41525         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41526         change, since Autoconf's version may no longer be appropriate now
41527         that we are using CVS Autoconf's version.  Add support for Tandem.
41528
41529 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41530             Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41533         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41534         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41535         gl_AC_TYPE_LONG_LONG.
41536
41537         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41538         instead of HAVE_LONG_LONG.
41539         * lib/printf-args.c (printf_fetchargs): Likewise.
41540         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41541         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41542         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41543         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41544         gl_AC_TYPE_LONG_LONG.
41545
41546 2006-10-11  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/longlong.m4: Add comments.
41549         * m4/ulonglong.m4: Likewise.
41550
41551 2006-10-10  Bruno Haible  <bruno@clisp.org>
41552
41553         Make it possible to #define stpcpy, strdup to aliases.
41554         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41555         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41556
41557 2006-10-10  Bruno Haible  <bruno@clisp.org>
41558
41559         Make it possible to #define gcd to an alias.
41560         * lib/gcd.c: Include config.h.
41561
41562 2006-10-10  Bruno Haible  <bruno@clisp.org>
41563
41564         Make it possible to #define c_isascii to an alias.
41565         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41566         defined. Undefine the macros before defining them, to avoid gcc
41567         warnings.
41568         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41569         define NO_C_CTYPE_MACROS early.
41570
41571 2006-10-10  Bruno Haible  <bruno@clisp.org>
41572
41573         Make it possible to #define set_program_name to an alias.
41574         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41575         ENABLE_RELOCATABLE early.
41576
41577 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41578
41579         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41580         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41581         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41582         More generally, don't assume that 64-bit signed int is available
41583         if unsigned int is, and vice versa.
41584         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41585         unsigned symbols, not on their signed counterparts.
41586         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41587         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41588         (UINT64_C, UINTMAX_C):
41589         Likewise.
41590         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41591         unsigned counterparts.
41592         (Have_long_long, Unsigned): New macros.
41593         (Int): Renamed from INT.
41594         (strtoimax): Use the new macros.
41595         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41596         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41597         * modules/inttypes (inttypes.h): Substitute
41598         HAVE_UNSIGNED_LONG_LONG_INT.
41599         * modules/stdint (stdint.h): Likewise.
41600         (Files): Add m4/ulonglong.m4.
41601
41602 2006-10-10  Bruno Haible  <bruno@clisp.org>
41603
41604         Fix a gcc -Wshadow warning.
41605         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41606         to 'bucket'.
41607         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41608         gl_linked_indexof_from_to): Likewise.
41609         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41610         Likewise.
41611         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41612         Likewise.
41613         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41614         Reported by Eric Blake.
41615
41616 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41617
41618         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41619         for NetBSD.  Problem reported by Bruno Haible.
41620
41621 2006-10-09  Jim Meyering  <jim@meyering.net>
41622
41623         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41624         Patch from Bruno Haible.
41625
41626 2006-10-09  Jim Meyering  <jim@meyering.net>
41627
41628         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41629         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41630         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41631
41632 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41633
41634         Don't include <config.h> twice; this doesn't work in some cases,
41635         e.g., when config.h has "#define intmax_t long long int" and
41636         we include <config.h>, <inttypes.h>, <config.h> in that order.
41637         Problem reported by Matthew Woehlke in:
41638         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41639         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41640         * lib/fts-cycle.c: Don't include config.h.
41641         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41642         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41643         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41644         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41645         inttypes.h.
41646         * lib/xstrtoumax.c: Likewise.
41647         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41648         __strtol and the like, so that this module is more like its siblings.
41649         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41650         Remove; no longer needed now that we assume gnulib inttypes.h.
41651
41652 2006-10-08  Bruno Haible  <bruno@clisp.org>
41653
41654         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41655         option.
41656
41657 2006-10-07  Jim Meyering  <jim@meyering.net>
41658
41659         * modules/inttypes (inttypes.h): Revert what seems to have been
41660         an inadvertent part of today's change: use "|", not "/" in the
41661         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41662
41663 2006-10-07  Bruno Haible  <bruno@clisp.org>
41664
41665         * modules/sublist: New file.
41666
41667 2006-10-07  Bruno Haible  <bruno@clisp.org>
41668
41669         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41670         * modules/argz (argz.h): Likewise.
41671         * modules/arpa_inet (arpa/inet.h): Likewise.
41672         * modules/byteswap (byteswap.h): Likewise.
41673         * modules/configmake (configmake.h): Likewise.
41674         * modules/fcntl (fcntl.h): Likewise.
41675         * modules/fnmatch (fnmatch.h): Likewise.
41676         * modules/getopt (getopt.h): Likewise.
41677         * modules/glob (glob.h): Likewise.
41678         * modules/inttypes (inttypes.h): Likewise.
41679         * modules/netinet_in (netinet/in.h): Likewise.
41680         * modules/poll (poll.h): Likewise.
41681         * modules/stdbool (stdbool.h): Likewise.
41682         * modules/stdint (stdint.h): Likewise.
41683         * modules/sys_select (sys/select.h): Likewise.
41684         * modules/sys_socket (sys/socket.h): Likewise.
41685         * modules/sys_stat (sys/stat.h): Likewise.
41686         * modules/sysexits (sysexits.h): Likewise.
41687         * modules/unistd (unistd.h): Likewise.
41688         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41689         Add a "DO NOT EDIT" comment to the generated file.
41690         (func_import): Likewise for gnulib-comp.m4.
41691
41692 2006-10-07  Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/gl_sublist.h: New file.
41695         * lib/gl_sublist.c: New file.
41696
41697 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41698
41699         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41700         name (relative to the original working directory) and the file
41701         name component (relative to the temporary working directory).  All
41702         callers changed.
41703         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41704         * lib/mkdir-p.c (make_dir_parents): Likewise.
41705         * lib/mkdir-p.h (make_dir_parents): Likewise.
41706
41707 2006-10-06  Eric Blake  <ebb9@byu.net>
41708
41709         Define several macros for use by the clean-temp module.
41710         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41711         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41712         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41713
41714         * lib/clean-temp.h (close_stream_temp): New declaration.
41715         * lib/clean-temp.c (includes): Pull in headers according to what
41716         other modules are in use.
41717         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41718
41719 2006-10-06  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41722         instead of fopen, fwriteerror.
41723
41724 2006-10-06  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41727         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41728         int.
41729         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41730         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41731         Return an error indicator.
41732         Suggested by Eric Blake.
41733
41734 2006-10-06  Bruno Haible  <bruno@clisp.org>
41735
41736         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41737         Reported by Eric Blake.
41738
41739 2006-10-06  Bruno Haible  <bruno@clisp.org>
41740
41741         * modules/closeout (Description): Mention stderr too.
41742
41743 2006-10-06  Bruno Haible  <bruno@clisp.org>
41744         and Paul Eggert  <eggert@cs.ucla.edu>
41745
41746         * lib/closeout.c (close_stdout): Also close stderr.
41747         * lib/closeout.h: Update comment.
41748
41749 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41750
41751         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41753         * lib/dirchownmod.c: Include lchown.h.
41754         * lib/lchown.c: Don't include files that lchown.h now includes.
41755         Don't declare chown, since lchown.h now does that.
41756         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41757         (lchown): Define to rpl_chown if lchown is declared but
41758         does not exist.  Declare using a prototype if lchown is not
41759         declared.  Add a copyright notice.
41760         * lib/mkstemp.h: Include <unistd.h>.
41761         * lib/openat.c: Include lchown.h.
41762
41763         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41764         we now test for that separately.
41765         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41766         rather than O_NOFOLLOW, when testing whether it's possible to
41767         avoid a race condition reliably.
41768         * lib/savewd.c (savewd_chdir): Likewise.
41769
41770         Remove macros that are no longer needed now that stdint.h is
41771         reliable.
41772         * lib/fsusage.c (UINTMAX_MAX): Remove.
41773         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41774         * lib/utimecmp.c (SIZE_MAX): Remove.
41775
41776         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41777
41778         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41779         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41780         O_NOATIME works.
41781
41782 2006-10-05  Bruno Haible  <bruno@clisp.org>
41783
41784         * lib/gl_list.h (gl_sortedlist_search_from_to,
41785         gl_sortedlist_indexof_from_to): New declarations.
41786         (gl_list_implementation): New fields sortedlist_search_from_to,
41787         sortedlist_indexof_from_to.
41788         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41789         inline functions.
41790         * lib/gl_list.c (gl_sortedlist_search_from_to,
41791         gl_sortedlist_indexof_from_to): New functions.
41792         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41793         function.
41794         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41795         (gl_array_sortedlist_search_from_to): New function.
41796         (gl_array_list_implementation): Update.
41797         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41798         function.
41799         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41800         (gl_carray_sortedlist_search_from_to): New function.
41801         (gl_carray_list_implementation): Update.
41802         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41803         gl_linked_sortedlist_indexof_from_to): New functions.
41804         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41805         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41806         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41807         gl_tree_sortedlist_indexof_from_to): New functions.
41808         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41809         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41810         Update.
41811         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41812         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41813         Update.
41814
41815 2006-10-05  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41818         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41819         (struct gl_list_implementation): Add fields search_from_to,
41820         indexof_from_to. Remove fields search, indexof.
41821         (gl_list_search): Use the search_from_to method.
41822         (gl_list_search_from, gl_list_search_from_to): New functions.
41823         (gl_list_indexof): Use the indexof_from_to method.
41824         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41825         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41826         (gl_list_search_from, gl_list_search_from_to): New functions.
41827         (gl_list_indexof): Use the indexof_from_to method.
41828         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41829         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41830         gl_array_indexof. Add start_index, end_index arguments.
41831         (gl_array_search_from_to): Renamed from gl_array_search. Add
41832         start_index, end_index arguments.
41833         (gl_array_remove, gl_array_list_implementation): Update.
41834         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41835         gl_carray_indexof. Add start_index, end_index arguments.
41836         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41837         start_index, end_index arguments.
41838         (gl_carray_remove, gl_carray_list_implementation): Update.
41839         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41840         gl_linked_search. Add start_index, end_index arguments.
41841         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41842         start_index, end_index arguments.
41843         (gl_linked_remove): Update.
41844         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41845         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41846         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41847         field to 'size_t'.
41848         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41849         gl_tree_search. Add start_index, end_index arguments.
41850         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41851         start_index, end_index arguments.
41852         (gl_tree_remove): Update.
41853         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41854         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41855         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41856         function.
41857         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41858         gl_tree_search. Add start_index, end_index arguments.
41859         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41860         start_index, end_index arguments.
41861         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41862         Update.
41863         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41864
41865 2006-10-05  Bruno Haible  <bruno@clisp.org>
41866
41867         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41868
41869         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41870         fwriteerror_temp): New declarations.
41871         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41872         (descriptors): New variable.
41873         (cleanup): First, close the descriptors.
41874         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41875         fclose_temp, fwriteerror_temp): New functions.
41876
41877 2006-10-04  Jim Meyering  <jim@meyering.net>
41878
41879         * lib/fts.c (fts_open): Tiny comment change.
41880
41881 2006-10-04  Bruno Haible  <bruno@clisp.org>
41882
41883         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41884         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41885         gl_LOCK_BODY.
41886         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41887         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41888         gl_LOCK_EARLY_BODY.
41889         (gl_LOCK): Require gl_LOCK_BODY.
41890
41891 2006-10-04  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41894         (gl_oset_search_atleast): New declaration.
41895         (struct gl_oset_implementation): Add field 'search_atleast'.
41896         (gl_oset_search_atleast): New inline function.
41897         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41898         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41899         (gl_array_oset_implementation): Update.
41900         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41901         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41902         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41903
41904 2006-10-04  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41907
41908 2006-10-03  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41911         from gl_avltreehash_list_implementation.
41912
41913 2006-10-03  Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/gl_oset.c (gl_oset_add): Fix return type.
41916
41917 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41918
41919         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41920
41921 2006-10-02  Eric Blake  <ebb9@byu.net>
41922
41923         * modules/strnlen (Depends-on): Add extensions.
41924
41925 2006-10-02  Eric Blake  <ebb9@byu.net>
41926
41927         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41928         definition in 2.60+.
41929
41930 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41931
41932         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41933         checks.
41934
41935 2006-10-02  Bruno Haible  <bruno@clisp.org>
41936
41937         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41938         to the AUTOMAKE_OPTIONS.
41939         Reported by Jim Meyering.
41940
41941 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41942
41943         Work around bug in Solaris 10 /proc file system:
41944         /proc/self/fd/NNN/.. isn't the parent directory of
41945         the directory whose file descriptor is NNN.  This needs to
41946         be worked around at run time, not compile time, since a
41947         program might be built on Solaris 8, where things work, and
41948         run on Solaris 10.
41949         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41950         to use the following interface instead:
41951         (OPENAT_BUFFER_SIZE): New macro.
41952         (openat_proc_name): New function.
41953         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41954         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41955         Likewise.
41956         * lib/openat-proc.c: New file.
41957         * modules/openat (Files): Add lib/openat-proc.c.
41958         (Depends-on): Add same-inode, stdbool.
41959         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41960
41961 2006-09-29  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41964         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41965         argument. Set stdout_closed before testing for ferror, not after.
41966         (fwriteerror, fwriteerror_no_ebadf): New functions.
41967
41968 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41969
41970         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41971
41972 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41973
41974         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41975         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41976
41977 2006-09-28  Jim Meyering  <jim@meyering.net>
41978
41979         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41980         Include <unistd.h>.
41981
41982 2006-09-28  Bruno Haible  <bruno@clisp.org>
41983
41984         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41985         * modules/linkedhash-list (Depends-on): Likewise.
41986         * modules/rbtreehash-list (Depends-on): Likewise.
41987
41988 2006-09-28  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/strndup.h: Simplify the redefinition of strndup.
41991         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41992         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41993
41994 2006-09-28  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41997         * lib/gl_linkedhash_list.c: Likewise.
41998         * lib/gl_rbtreehash_list.c: Likewise.
41999
42000 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42001
42002         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42003         getaddrinfo.
42004
42005         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42006         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42007         it causes <stdio_ext.h> to cause a compile-time error.
42008         Problem reported by Nelson H. F. Beebe.
42009         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42010         of HAVE_DECL___PENDING.
42011
42012         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42013         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42014         declaration.
42015
42016 2006-09-27  Jim Meyering  <jim@meyering.net>
42017
42018         This file could end up with a definition for a function
42019         named __strndup, rather than rpl_strndup on a system with
42020         incomplete weak_alias support.
42021         * lib/strndup.c (strndup): Rename from __strndup.
42022         Remove #defines that used to map __strndup to strndup.
42023         Don't use K&R prototypes.
42024         Remove LIBC-related code, since this file is not sync'd with glibc.
42025         * lib/strndup.h: Revamp, accordingly.
42026         * m4/strndup.m4: Modernize.
42027
42028 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         * modules/savewd (Depends-on): Add 'raise'.
42031         * lib/savewd.c: Include <signal.h>, for 'raise'.
42032
42033 2006-09-26  Jim Meyering  <jim@meyering.net>
42034
42035         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42036         when we detect Darwin 8.7.0's acl_get_file bug.
42037         Rearrange to perform the new (below) run-test while $LIBS
42038         contains any acl-related library.  Set USE_ACL at the end.
42039         (gl_ACL_GET_FILE): New function.
42040
42041 2006-09-26  Eric Blake  <ebb9@byu.net>
42042
42043         * lib/verror.c: Include <config.h> unconditionally.
42044
42045 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * modules/clock-time (Maintainer): Add self.
42048         * modules/getlogin_r (Depends-on): Add extensions.
42049
42050 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42051
42052         * modules/clock-time: New module.
42053         * modules/nanosleep (Depends-on): Add clock-time.
42054         * modules/gethrxtime (Depends-on): Likewise.
42055         * modules/gettime (Depends-on): Likewise.
42056         * modules/settime (Depends-on): Likewise.
42057
42058         * modules/fts-lgpl: Depend on openat.
42059         * modules/mkancesdirs: Depend on savewd.
42060         * modules/mkdir-p: Likewise.
42061
42062 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42063
42064         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42065
42066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42067         `gl_have_arbitrary_file_name_length_limit' to
42068         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42069         actually works between configure runs.
42070
42071 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42075
42076 2006-09-25  Jim Meyering  <jim@meyering.net>
42077
42078         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42079         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42080
42081 2006-09-25  Eric Blake  <ebb9@byu.net>
42082
42083         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42084         exec's in 2006-09-18 patch when shuffling fds.
42085
42086 2006-09-25  Bruno Haible  <bruno@clisp.org>
42087
42088         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42089         Reported by Jim Meyering.
42090
42091 2006-09-24  Jim Meyering  <jim@meyering.net>
42092
42093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42094         compare a pointer against a literal "0".  That caused failures with
42095         at least HP-UX's hpcc.
42096
42097 2006-09-22  Simon Josefsson  <jas@extundo.com>
42098
42099         * modules/gc-sha1:
42100         * modules/gc-md4:
42101         * modules/gc-hmac-sha1:
42102         * modules/gc-hmac-md5:
42103         * modules/gc-des:
42104         * modules/gc-arcfour: Distribute more files.
42105
42106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42107
42108         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42109         (gl_linked_iterator_from_to): Initialize struct completely.
42110         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42111         (gl_tree_iterator_from_to): Likewise
42112         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42113         * lib/gl_array_list.c [lint] (gl_array_iterator)
42114         (gl_array_iterator_from_to): Likewise.
42115         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42116         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42117         (gl_carray_iterator_from_to): Likewise.
42118
42119         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42120         * lib/md4.c (md4_process_block): Remove unused variable.
42121         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42122         parentheses for clarity.
42123
42124 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42125
42126         * modules/bison-i18n (Depends-on): Add gettext.
42127
42128 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42129
42130         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42131         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42132         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42133         also add missing comma that caused broken test.
42134         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42135         stdlib.h, for `abort'.
42136         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42137         variables.
42138         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42139         include unistd.h if present, for `rmdir'.
42140         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42141         variables.
42142         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42143         in the process include standard headers for prototypes.
42144         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42145         gets declared on GNU/Linux.
42146         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42147         unistd.h, for `rmdir'.
42148         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42149
42150         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42151         always true.
42152         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42153
42154         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42155
42156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42157
42158         * gnulib-tool (func_version): Create output all at once.  This
42159         may help avoid triggering unnecessary SIGPIPEs, and at any
42160         rate it doesn't hurt.
42161
42162 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42163             Bruno Haible  <bruno@clisp.org>
42164
42165         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42166         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42167         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42168
42169         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42170         (gl_FUNC_VASPRINTF): Invoke it.
42171
42172 2006-09-22  Bruno Haible  <bruno@clisp.org>
42173
42174         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42175         getloadavg.c as first argument.
42176
42177 2006-09-22  Bruno Haible  <bruno@clisp.org>
42178
42179         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42180         at the beginning of the gl_INIT macro.
42181         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42182         gl_GETLOADAVG.
42183
42184 2006-09-22  Bruno Haible  <bruno@clisp.org>
42185
42186         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42187         module.
42188         Suggested by Ralf Wildenhues.
42189
42190 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42191
42192         Import this patch from libc:
42193
42194         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42195
42196         * lib/regex_internal.c (re_string_reconstruct): Handle
42197         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42198         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42199         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42200         re_string_context_at.
42201
42202         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42203         now requires it.
42204         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42205         gl_REGEX now does it for us.
42206         (gl_REGEX): Add test taken from
42207         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42208
42209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42210         Check that large offsets work.  Modernize Autoconf usages.
42211         Prefer "yes" to mean a good thing rather than a bad.
42212         Don't put "#define mkstemp" in config.h, as this might interfere
42213         with standard system headers that "#define mkstemp mkstemp64".
42214
42215         * modules/mkstemp (Depends-on): Add extensions, so that
42216         mkstemp is visible on some platforms.
42217         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42218         (Include): Change to "mkstemp.h" from <stdlib.h>.
42219         (Files): Add mkstemp.h.
42220
42221         * lib/mkstemp.h: New file, since some standard headers
42222         #define mkstemp.
42223         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42224         Include "mkstemp.h".
42225         Make the _LIBC code resemble glibc original more,
42226         e.g., use K&R style.
42227         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42228         (mkstemp): Remove, since mkstemp.h does this for us.
42229         * lib/stdlib--.h: Include mkstemp.h.
42230
42231         Import this patch from libc:
42232
42233         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42234
42235         * lib/tempname.c (__gen_tempname): Change attempts_min
42236         into a macro.  Use preprocessor to decide how to initialize
42237         attempts [Coverity CID 67].
42238
42239 2006-09-20  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/mkdtemp.c: Import from libc.
42242         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42243                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42244                 attempts_min into a macro.  Use preprocessor to decide how to
42245                 initialize attempts [Coverity CID 67].
42246         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42247                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42248                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42249
42250 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42251
42252         * gnulib-tool (func_exit): New function, to allow to pass the
42253         exit status portably through the trap.  Use everywhere.
42254         (--help, --version): Signal a write error.
42255         (trap): catch SIGPIPE, for write errors.
42256         Exit at the end of the trap, with the correct exit status.
42257
42258 2006-09-19  Karl Berry  <karl@gnu.org>
42259
42260         * doc/gnulib.texi: note about the license texinfo files.
42261
42262 2006-09-19  Eric Blake  <ebb9@byu.net>
42263
42264         * gnulib-tool: Avoid space-tab.
42265
42266 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42267
42268         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42269         that prevented coreutils 6.1 from building.  Problem reported
42270         by Petter Reinholdtsen.
42271
42272 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42273
42274         * gnulib-tool (avoidlist): Fix typo that broke options like
42275         --avoid=lock that are used by coreutils bootstrap.
42276
42277 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42278
42279         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42280         more systematically.
42281
42282 2006-09-18  Jim Meyering  <jim@meyering.net>
42283
42284         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42285
42286 2006-09-18  Bruno Haible  <bruno@clisp.org>
42287
42288         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42289
42290 2006-09-18  Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42293         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42294         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42295         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42296         * m4/gettext.m4: Require autoconf >= 2.52.
42297         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42298         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42299         of gl_cv_header_inttypes_h.
42300
42301 2006-09-18  Bruno Haible  <bruno@clisp.org>
42302
42303         * lib/javaversion.c: Include configmake.h.
42304
42305 2006-09-18  Bruno Haible  <bruno@clisp.org>
42306
42307         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42308         avoid that the while loops be executed in a subshell.
42309
42310 2006-09-18  Bruno Haible  <bruno@clisp.org>
42311
42312         * MODULES.html.sh (func_module): Break long lines.
42313         Suggested by Bruce Korb <bkorb@gnu.org>.
42314
42315 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42316
42317         Speed up by a factor of 1.12.
42318         * gnulib-tool (nl): New variable.
42319         (func_import): Rewrite include directive extraction to only read each
42320         directive once.
42321
42322 2006-09-17  Bruno Haible  <bruno@clisp.org>
42323
42324         * modules/javaversion (Makefile.am): Remove DEFS setting.
42325         (Depends-on): Add configmake, for PKGDATADIR definition.
42326
42327 2006-09-17  Bruno Haible  <bruno@clisp.org>
42328
42329         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42330
42331 2006-09-17  Bruno Haible  <bruno@clisp.org>
42332
42333         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42334         (func_modules_transitive_closure, func_modules_add_dummy,
42335         func_modules_to_filelist, func_import, func_create_testdir,
42336         func_create_megatestdir, ...): Use it wherever possible.
42337         Suggested by Ralf Wildenhues.
42338
42339 2006-09-16  Karl Berry  <karl@gnu.org>
42340
42341         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42342         to avoid sectioning errors.
42343         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42344         [ifinfo]: blank line after @center-ed titles.
42345         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42346         Spell FSF address consistently with others.
42347         (These changes approved by rms.)
42348
42349 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42350
42351         Speed up by a factor of 1.61.
42352         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42353         already checked module names again.
42354
42355 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42356
42357         Speed up by a factor of 1.13.
42358         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42359         for new_files, and the input to func_add_or_update.
42360
42361 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42362
42363         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42364         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42365
42366 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42367
42368         * modules/mkancesdirs (Depends-on): Add fcntl.
42369         * modules/savewd: New file.
42370         * MODULES.html.sh (File system functions): Add savewd.
42371
42372         * modules/configmake (Makefile.am): Add support for the
42373         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42374
42375 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42376
42377         * m4/savewd.m4: New file.
42378
42379 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42380
42381         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42382         (dirchownmod): New arg FD.  All callers changed.
42383         Use FD rather than opening the directory ourself, as opening is
42384         now the caller's responsibility.
42385         * lib/dirchownmod.h: Likewise.
42386         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42387         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42388         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42389         (test_dir): Remove.
42390         (mkancesdirs): Return length of prefix of FILE that has already
42391         been made, or -2 if there is a child doing the work.  Redo
42392         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42393         ".", and treat ".." specially since it might stray back into
42394         already-created areas.  Use a subprocess if necessary.  New arg
42395         WD; all users changed.  MAKE_DIR function should now return 1
42396         if it creates a directory that is not readable.  Return -2 if
42397         a child process is spun off.
42398         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42399         Adjust signature to match code.
42400         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42401         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42402         all users changed.
42403         * lib/savewd.c, lib/savewd.h: New files.
42404
42405 2006-09-15  Jim Meyering  <jim@meyering.net>
42406
42407         * modules/rename-dest-slash: New module.
42408         * MODULES.html.sh (posix_compat): Add it here.
42409
42410         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42411
42412 2006-09-15  Jim Meyering  <jim@meyering.net>
42413
42414         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42415         file.
42416
42417         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42418
42419 2006-09-15  Jim Meyering  <jim@meyering.net>
42420
42421         * lib/rename-dest-slash.c (has_trailing_slash): Use
42422         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42423         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42424         test before testing whether SRC is a directory.
42425         Suggestions from Bruno Haible.
42426
42427         Avoid a warning about an unused variable.
42428         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42429         into the #ifdef block where it's used.
42430
42431         * lib/rename-dest-slash.c: New file.
42432
42433 2006-09-14  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/allocsa.c: Include <config.h> unconditionally.
42436         * lib/asnprintf.c: Likewise.
42437         * lib/asprintf.c: Likewise.
42438         * lib/c-strcasecmp.c: Likewise.
42439         * lib/c-strcasestr.c: Likewise.
42440         * lib/c-strncasecmp.c: Likewise.
42441         * lib/c-strstr.c: Likewise.
42442         * lib/classpath.c: Likewise.
42443         * lib/clean-temp.c: Likewise.
42444         * lib/concatpath.c: Likewise.
42445         * lib/copy-file.c: Likewise.
42446         * lib/csharpcomp.c: Likewise.
42447         * lib/csharpexec.c: Likewise.
42448         * lib/execute.c: Likewise.
42449         * lib/fatal-signal.c: Likewise.
42450         * lib/findprog.c: Likewise.
42451         * lib/fwriteerror.c: Likewise.
42452         * lib/gl_array_list.c: Likewise.
42453         * lib/gl_array_oset.c: Likewise.
42454         * lib/gl_avltree_list.c: Likewise.
42455         * lib/gl_avltree_oset.c: Likewise.
42456         * lib/gl_avltreehash_list.c: Likewise.
42457         * lib/gl_carray_list.c: Likewise.
42458         * lib/gl_linked_list.c: Likewise.
42459         * lib/gl_linkedhash_list.c: Likewise.
42460         * lib/gl_list.c: Likewise.
42461         * lib/gl_oset.c: Likewise.
42462         * lib/gl_rbtree_list.c: Likewise.
42463         * lib/gl_rbtree_oset.c: Likewise.
42464         * lib/gl_rbtreehash_list.c: Likewise.
42465         * lib/imaxabs.c: Likewise.
42466         * lib/imaxdiv.c: Likewise.
42467         * lib/javacomp.c: Likewise.
42468         * lib/javaexec.c: Likewise.
42469         * lib/javaversion.c: Likewise.
42470         * lib/linebreak.c: Likewise.
42471         * lib/localcharset.c: Likewise.
42472         * lib/lock.c: Likewise.
42473         * lib/mbchar.c: Likewise.
42474         * lib/mbswidth.c: Likewise.
42475         * lib/mkdtemp.c: Likewise.
42476         * lib/pipe.c: Likewise.
42477         * lib/printf-args.c: Likewise.
42478         * lib/printf-parse.c: Likewise.
42479         * lib/progname.c: Likewise.
42480         * lib/progreloc.c: Likewise.
42481         * lib/readlink.c: Likewise.
42482         * lib/sh-quote.c: Likewise.
42483         * lib/stpcpy.c: Likewise.
42484         * lib/stpncpy.c: Likewise.
42485         * lib/strcasecmp.c: Likewise.
42486         * lib/strcasestr.c: Likewise.
42487         * lib/strcspn.c: Likewise.
42488         * lib/striconv.c: Likewise.
42489         * lib/strncasecmp.c: Likewise.
42490         * lib/strnlen1.c: Likewise.
42491         * lib/strstr.c: Likewise.
42492         * lib/strtok_r.c: Likewise.
42493         * lib/tls.c: Likewise.
42494         * lib/tmpdir.c: Likewise.
42495         * lib/unicodeio.c: Likewise.
42496         * lib/unsetenv.c: Likewise.
42497         * lib/vasnprintf.c: Likewise.
42498         * lib/vasprintf.c: Likewise.
42499         * lib/wait-process.c: Likewise.
42500         * lib/xallocsa.c: Likewise.
42501         * lib/xsetenv.c: Likewise.
42502         * lib/xstriconv.c: Likewise.
42503
42504 2006-09-13  Simon Josefsson  <jas@extundo.com>
42505
42506         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42507         that internally, suggested by Ralf Wildenhues
42508         <Ralf.Wildenhues@gmx.de>.
42509
42510 2006-09-13  Simon Josefsson  <jas@extundo.com>
42511
42512         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42513         @LIBOBJS@.
42514         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42515
42516 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42517
42518         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42519         longer worry about uses that don't define HAVE_CONFIG_H.
42520         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42521         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42522         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42523         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42524         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42525         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42526         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42527         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42528         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42529         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42530         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42531         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42532         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42533         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42534         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42535         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42536         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42537         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42538         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42539         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42540         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42541         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42542         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42543         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42544         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42545         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42546         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42547         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42548         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42549         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42550         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42551         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42552         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42553         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42554         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42555         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42556         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42557         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42558         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42559         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42560         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42561         Likewise.
42562
42563 2006-09-13  Eric Blake  <ebb9@byu.net>
42564
42565         * lib/getopt.c: Fix typo in last commit.
42566
42567 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42568
42569         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42570         dgettext.
42571
42572 2006-09-12  Jim Meyering  <jim@meyering.net>
42573
42574         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42575         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42576         Reported by Nelson H. F. Beebe.
42577
42578 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42579
42580         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42581         program_invocation_name and program_invocation_short_name are
42582         initialized.
42583         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42584         and program_invocation_short_name to argp.h, so they are visible
42585         to user programs.
42586         * lib/argp.h: Likewise
42587
42588 2006-09-10  Bruno Haible  <bruno@clisp.org>
42589
42590         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42591         m4/inttypes_h.m4, m4/uintmax_t.m4.
42592
42593 2006-09-10  Bruno Haible  <bruno@clisp.org>
42594
42595         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42596         gl_AC_TYPE_UINTMAX_T.
42597
42598 2006-09-10  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42601
42602 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42603
42604         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42605         convention.  Text proposed by Bruno Haible.
42606         (struct argp_option): Document the use of N_() wrappers.
42607
42608         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42609         '\v', and translate the two parts separately, instead of feeding
42610         the whole string to gettext.  This allows to exclude
42611         '\v' from the strings visible to the translator by writing doc
42612         strings as N_("..") "\v" N_("..").
42613
42614 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42615
42616         * config/srclist.txt: Undo latest change; the bug was fixed.
42617
42618 2006-09-09  Bruno Haible  <bruno@clisp.org>
42619
42620         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42621         assignments if building a library without libtool.
42622         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42623         in func_emit_lib_Makefile_am.
42624         (func_import): When building a static library libfoo.a, arrange to
42625         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42626         (func_create_testdir): Likewise.
42627         * modules/gc (configure.ac, Makefile.am): If building statically,
42628         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42629         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42630         * modules/striconv (configure.ac, Makefile.am): Likewise.
42631         Based on a suggestion by Ralf Wildenhues.
42632
42633 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42634
42635         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42636         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42637         Also:
42638
42639         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42640         Add year_2050_test to catch glibc bug 2821
42641         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42642
42643         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42644         Prefer #ifdef to #if.
42645
42646         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42647         Return from 'main' instead of calling 'exit'.
42648
42649 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42652         returned the maximum time_t value rather than (time_t) -1.
42653         Problem originally reported by William Bardwell
42654         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42655
42656         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42657         Moved to here ...
42658         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42659         ... from here.
42660
42661 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42662
42663         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42664         2821 is fixed.
42665
42666 2006-09-08  Jim Meyering  <jim@meyering.net>
42667
42668         Don't make generated files read-only.  That would bother too many
42669         people.  However, do retain the ability to work when targets are
42670         read-only: remove the destination and temporary files before writing
42671         them (when generated via sed or echo), or by using the -f option for
42672         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
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-08  Jim Meyering  <jim@meyering.net>
42681
42682         Avoid new build failure on FreeBSD 6.0.
42683         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42684         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42685         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42686
42687 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42688
42689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42690
42691 2006-09-07  Jim Meyering  <jim@meyering.net>
42692
42693         Fix global typo in last change: use chmod u-w, not chmod u-x.
42694         Spotted by Paul Eggert and Bruce Korb.
42695         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42696         * modules/byteswap, modules/configmake, modules/fcntl:
42697         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42698         * modules/localcharset, modules/netinet_in, modules/poll:
42699         * modules/stdbool, modules/stdint, modules/sys_select:
42700         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42701
42702 2006-09-06  Jim Meyering  <jim@meyering.net>
42703
42704         Make generated files be read-only.
42705         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42706         Ensure that each generated file is now read-only.
42707         * modules/argz: Likewise.
42708         * modules/arpa_inet: Likewise.
42709         * modules/byteswap: Likewise.
42710         * modules/configmake: Likewise.
42711         * modules/fcntl: Likewise.
42712         * modules/fnmatch: Likewise.
42713         * modules/getopt: Likewise.
42714         * modules/glob: Likewise.
42715         * modules/inttypes: Likewise.
42716         * modules/netinet_in: Likewise.
42717         * modules/poll: Likewise.
42718         * modules/stdbool: Likewise.
42719         * modules/stdint: Likewise.
42720         * modules/sys_select: Likewise.
42721         * modules/sys_socket: Likewise.
42722         * modules/sys_stat: Likewise.
42723         * modules/sysexits: Likewise.
42724         * modules/localcharset: Same as above, but continue using temporary
42725         file named "t-$@" (why different?) rather than the "$@-t" used
42726         everywhere else.
42727
42728         * modules/sysexits (Makefile.am): Replace literal occurrences
42729         of "sysexit.h" more readable, and more consistent, "$@".
42730
42731 2006-09-06  Bruno Haible  <bruno@clisp.org>
42732
42733         * modules/striconv: New file.
42734         * modules/xstriconv: New file.
42735         * MODULES.html.sh (Internationalization functions): Add striconv,
42736         xstriconv.
42737
42738 2006-09-06  Bruno Haible  <bruno@clisp.org>
42739
42740         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42741         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42742         not using libtool correctly.
42743
42744 2006-09-06  Bruno Haible  <bruno@clisp.org>
42745
42746         * lib/striconv.h: New file.
42747         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42748         iconvstring.c.
42749         * lib/xstriconv.h: New file.
42750         * lib/xstriconv.c: New file.
42751
42752 2006-09-06  Bruno Haible  <bruno@clisp.org>
42753
42754         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42755         lib_..._LDFLAGS.
42756
42757 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42758
42759         * lib/argz_.h: Sync from Libtool.
42760
42761         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42762                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42763
42764         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42765
42766 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42767
42768         * modules/trim: New file.
42769
42770 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42771
42772         * lib/trim.h: New file.
42773         * lib/trim.c: New file.
42774
42775 2006-09-05  Bruno Haible  <bruno@clisp.org>
42776
42777         * MODULES.html.sh (String handling): Add trim.
42778
42779 2006-09-04  Karl Berry  <karl@gnu.org>
42780
42781         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42782         until next release.
42783
42784 2006-09-03  Bruno Haible  <bruno@clisp.org>
42785
42786         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42787         correctly.
42788
42789 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42790
42791         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42792         not gl_GETLOADAVG.  Omit unneeded semicolons.
42793         Problems reported by Ralf Wildenhues in
42794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42795         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42796         at the end, which is the usual gnulib style.
42797
42798         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42799         of doing all the work ourselves.
42800         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42801         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42802
42803 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42806         Problem reported by Ralf Wildenhues in
42807         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42808
42809         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42810         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42811
42812 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42813
42814         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42815         yesterday's patch by changing test -n to test -z.
42816
42817 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42820         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42821         the former is now obsolescent.
42822
42823         * modules/chdir-long (Depends-on): Add fcntl.
42824
42825 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42826
42827         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42828         obsolescent, and programs should use gnulib instead.
42829         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42830         but with prefixes changed.
42831
42832 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42833
42834         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42835         or stdbool.h, because they might not exist while configuring.
42836
42837         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42838         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42839         does that for us.
42840         (O_DIRECTORY): Remove.
42841
42842 2006-08-31  Eric Blake  <ebb9@byu.net>
42843
42844         * gnulib-tool: Don't let emacs change spaces to TAB.
42845
42846 2006-08-31  Bruno Haible  <bruno@clisp.org>
42847
42848         * gnulib-tool: When calling func_import more than once, do it in a
42849         subshell.
42850         Reported by Eric Blake <ebb9@byu.net>.
42851
42852 2006-08-31  Bruno Haible  <bruno@clisp.org>
42853
42854         * gnulib-tool (nl): Remove variable.
42855         (sed_transform_lib_file): Use more robust test for config-h module.
42856         (func_import): Fix typo in 2006-08-25 patch.
42857
42858 2006-08-31  Bruno Haible  <bruno@clisp.org>
42859
42860         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42861         specified, augment Makefile.am variables instead of assigning them.
42862
42863 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42864
42865         Work around a bug in both the Linux and SunOS 64-bit kernels:
42866         nanosleep mishandles sleeps for longer than 2**31 seconds.
42867         Problem reported by Frank v Waveren in
42868         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42870         Check for nanosleep bug.
42871         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42872
42873 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42874
42875         Work around a bug in both the Linux and SunOS 64-bit kernels:
42876         nanosleep mishandles sleeps for longer than 2**31 seconds.
42877         Problem reported by Frank v Waveren in
42878         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42879         * lib/nanosleep.c (BILLION): New constant.
42880         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42881         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42882         implementation.
42883
42884 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42885
42886         * modules/nanosleep (Depends-on): Add gettime.
42887
42888 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42889         and Simon Josefsson  <jas@extundo.com>
42890         and Oskar Liljeblad  <oskar@osk.mine.nu>
42891
42892         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42893         * gnulib-tool (func_import): New license type 'unmodifiable license
42894         text'.
42895         * modules/fdl: Use it.  Longer description.
42896         * module/gpl, module/lgpl: New files.
42897
42898 2006-08-30  Jim Meyering  <jim@meyering.net>
42899
42900         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42901         shadowing the parameter.
42902
42903 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42904
42905         Sync from Libtool:
42906
42907         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42908
42909         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42910         sharing with gnulib.  Report by Eric Blake.
42911
42912 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42913
42914         * modules/isapipe: New file.
42915         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42916
42917 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42918
42919         * modules/configmake (Makefile.am): Add a comment, and omit
42920         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42921         by Bruno Haible.
42922
42923 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         * m4/isapipe.m4: New file.
42926
42927 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42928
42929         * lib/isapipe.c, lib/isapipe.h: New files.
42930
42931 2006-08-29  Jim Meyering  <jim@meyering.net>
42932
42933         * modules/configmake (Makefile.am): Make configmake.h depend on
42934         Makefile.  Otherwise, a stale configmake.h could hang around.
42935
42936 2006-08-29  Eric Blake  <ebb9@byu.net>
42937
42938         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42939         resolution of upstream bug 3044.
42940
42941 2006-08-29  Bruno Haible  <bruno@clisp.org>
42942
42943         * modules/localcharset (Depends-on): Add configmake.
42944         (Makefile.am): Remove setting of LIBDIR through DEFS.
42945
42946 2006-08-29  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42949         defined.
42950
42951 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42952
42953         * modules/fcntl: New file.
42954         * modules/chdir-safer (Depends-on): Add fcntl.
42955         * modules/fts: Likewise.
42956         * modules/mkdir-p: Likewise.
42957
42958         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42959         This undoes the most recent change, since we're now addressing the
42960         problem in a different way.
42961
42962         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42963         into output, since the output might be called Makefile.am even
42964         if $makefile_name is something different.
42965         (func_import): Use $makefile_am rather than
42966         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42967         empty.
42968
42969         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42970
42971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42974         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42975         recent change to stdint.m4, since we're now addressing the problem in a
42976         different way.
42977
42978 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42979
42980         * m4/fcntl_h.m4: New file.
42981
42982 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42983
42984         * lib/fcntl_.h: New file.
42985         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42986         the fcntl module.
42987         * lib/dirchownmod.c: Likewise.
42988         * lib/fts.c: Likewise.
42989
42990         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42991         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42992         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42993         just before including <inttypes.h>, to avoid circular inclusion.
42994
42995 2006-08-28  Jim Meyering  <jim@meyering.net>
42996
42997         * doc/visibility.texi: Actually read and correct the grammar of the
42998         sentence affected by yesterday's change.
42999
43000 2006-08-28  Eric Blake  <ebb9@byu.net>
43001
43002         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43003         needs wrapper.
43004
43005 2006-08-28  Eric Blake  <ebb9@byu.net>
43006
43007         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43008
43009 2006-08-28  Eric Blake  <ebb9@byu.net>
43010
43011         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43012
43013 2006-08-28  Bruno Haible  <bruno@clisp.org>
43014
43015         * modules/c-strstr: New file, from GNU gettext.
43016         * MODULES.html.sh (String handling): Add c-strstr.
43017
43018 2006-08-28  Bruno Haible  <bruno@clisp.org>
43019
43020         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43021         macros.
43022         Reported by Eric Blake.
43023
43024 2006-08-28  Bruno Haible  <bruno@clisp.org>
43025
43026         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43027         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43028         * lib/vasprintf.c: Include errno.h, limits.h.
43029         (EOVERFLOW): New fallback definition.
43030         (vasprintf): Test here whether the string length is > INT_MAX.
43031         * lib/vsnprintf.c: Include errno.h, limits.h.
43032         (EOVERFLOW): New fallback definition.
43033         (vsnprintf): Fix bug when generated string was too long for the buffer.
43034         Test here whether the string length is > INT_MAX.
43035
43036 2006-08-28  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/inttypes_.h (SCNX*): Remove definitions.
43039         Reported by Eric Blake.
43040
43041 2006-08-28  Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/c-strstr.h: New file, from GNU gettext.
43044         * lib/c-strstr.c: New file, from GNU gettext.
43045
43046 2006-08-28  Bruno Haible  <bruno@clisp.org>
43047
43048         * gnulib-tool: Reorder some statements.
43049
43050 2006-08-28  Bruno Haible  <bruno@clisp.org>
43051
43052         * gnulib-tool: New option --makefile-name.
43053         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43054         $makefile_name.
43055         (func_import): Write $makefile_name to the cache file, and read it from
43056         there unless explicitly specified. Use $makefile_name as file name
43057         instead of Makefile.am. Adjust the recommendations accordingly.
43058
43059 2006-08-28  Bruno Haible  <bruno@clisp.org>
43060
43061         * gnulib-tool (func_verify_module): Check against misapplying patch.
43062
43063 2006-08-28  Bruno Haible  <bruno@clisp.org>
43064
43065         * gnulib-tool (func_relativize, func_relconcat): New functions.
43066         Give an error if --local-dir is given with --update.
43067         Remove trailing slashes from $local_gnulib_dir.
43068         (func_import): Store the relativized $local_gnulib_dir in
43069         gnulib-cache.m4, and read it from there if not specified explicitly.
43070
43071 2006-08-28  Bruno Haible  <bruno@clisp.org>
43072
43073         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43074         is the current directory. Respect also $local_gnulib_dir.
43075
43076 2006-08-28  Bruno Haible  <bruno@clisp.org>
43077             Simon Josefsson  <jas@extundo.com>
43078
43079         BeOS portability.
43080         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43081
43082 2006-08-27  Jim Meyering  <jim@meyering.net>
43083
43084         * doc/visibility.texi: Remove duplicate word: "pointer".
43085
43086 2006-08-26  Bruno Haible  <bruno@clisp.org>
43087
43088         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43089         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43090         (Makefile.am): Create inttypes.h from inttypes_.h.
43091         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43092
43093         * modules/imaxabs: New file.
43094
43095         * modules/imaxdiv: New file.
43096
43097 2006-08-26  Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/inttypes.m4: New file.
43100         * m4/_inttypes_h.m4: Remove file.
43101         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43102         PRI_MACROS_BROKEN.
43103         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43104
43105         * m4/imaxabs.m4: New file.
43106
43107         * m4/imaxdiv.m4: New file.
43108
43109 2006-08-26  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/inttypes_.h: New file.
43112         * lib/inttypes.h: Remove file.
43113         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43114
43115         * lib/imaxabs.c: New file.
43116
43117         * lib/imaxdiv.c: New file.
43118
43119 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43120
43121         New config-h module, so that "make" output needn't be cluttered
43122         by -DHAVE_CONFIG_H.
43123         * MODULES.html.sh (Support for building libraries and executables):
43124         Add config-h.
43125         * modules/config-h: New file.
43126         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43127         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43128         the config-h module is used.
43129
43130         New configmake module, so that "make" output needn't be cluttered
43131         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43132         * MODULES.html.sh (Support for building libraries and executables):
43133         Add configmake.
43134         * modules/configmake: New file.
43135
43136 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43137
43138         * m4/config-h.m4: New file.
43139
43140 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43141
43142         * config/srclist.txt: Add elisp-comp.
43143
43144 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43145
43146         * MODULES.html.sh (Support for building libraries and executables):
43147         Add elisp-comp.
43148         * build-aux/elisp-comp: New file.
43149         * modules/elisp-comp: New file.
43150
43151 2006-08-24  Bruno Haible  <bruno@clisp.org>
43152
43153         * gnulib-tool (func_create_testdir): Use non-default values of
43154         sourcebase and m4base.
43155
43156 2006-08-24  Bruno Haible  <bruno@clisp.org>
43157
43158         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43159         HTML structure.
43160
43161 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43162
43163         * modules/openat (Depends-on): Add lchown.
43164
43165 2006-08-23  Bruno Haible  <bruno@clisp.org>
43166
43167         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43168         of gl_LOCK_EARLY instead of gl_LOCK.
43169
43170 2006-08-23  Bruno Haible  <bruno@clisp.org>
43171
43172         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43173         on OSF/1 to no.
43174         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43175
43176 2006-08-23  Bruno Haible  <bruno@clisp.org>
43177
43178         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43179         as unusable.
43180
43181         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43182         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43183         (gl_LOCK): New macro.
43184
43185 2006-08-22  Simon Josefsson  <jas@extundo.com>
43186
43187         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43188         to md5 module.
43189
43190 2006-08-22  Simon Josefsson  <jas@extundo.com>
43191
43192         * MODULES.html.sh: Add "Support for maintaining and release
43193         projects".
43194
43195         * build-aux/gnupload: New file, from coreutils.
43196
43197 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43198
43199         Avoid the need for AC_LIBSOURCES in m4 macros.
43200         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43201         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43202         * modules/check-version (EXTRA_DIST): Add check-version.h.
43203         * modules/crc (EXTRA_DIST): Add crc.h.
43204         * modules/des (EXTRA_DIST): Add des.h.
43205         * modules/gc (EXTRA_DIST): Add gc.h.
43206         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43207         * modules/getline (EXTRA_DIST): Add getline.h.
43208         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43209         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43210         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43211         * modules/md2 (EXTRA_DIST): Add md2.h.
43212         * modules/md4 (EXTRA_DIST): Add md4.h.
43213         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43214         * modules/read-file (EXTRA_DIST): Add read-file.h.
43215         * modules/readline (EXTRA_DIST): Add readline.h.
43216         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43217         rijndael-api-fst.h.
43218
43219 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43220
43221         * m4/rijndael.m4 (gl_ARCFOUR):
43222         * m4/arctwo.m4 (gl_ARCTWO):
43223         * m4/check-version.m4 (gl_CHECK_VERSION):
43224         * m4/crc.m4 (gl_CRC):
43225         * m4/des.m4 (gl_DES):
43226         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43227         * m4/gc.m4 (gl_GC):
43228         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43229         * m4/getline.m4 (gl_FUNC_GETLINE):
43230         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43231         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43232         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43233         * m4/md2.m4 (gl_MD2):
43234         * m4/md4.m4 (gl_MD4):
43235         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43236         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43237         * m4/readline.m4 (gl_FUNC_READLINE):
43238         * m4/rijndael.m4 (gl_RIJNDAEL):
43239         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43240         to get the necessary .h files and whatnot.
43241
43242 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43243
43244         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43245         gnulib rather than the other way around.
43246         * config/srclistvars.sh (COREUTILS): Remove.
43247
43248 2006-08-22  Jim Meyering  <jim@meyering.net>
43249
43250         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43251
43252         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43253
43254 2006-08-22  Eric Blake  <ebb9@byu.net>
43255
43256         * modules/regexprops-generic: New file.
43257         * MODULES.html.sh (Support for building documentation): List it.
43258
43259 2006-08-22  Eric Blake  <ebb9@byu.net>
43260
43261         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43262         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43263         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43264         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43265
43266 2006-08-22  Bruno Haible  <bruno@clisp.org>
43267
43268         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43269         and lib_LTLIBRARIES like the other lib_* variables.
43270
43271 2006-08-22  Bruno Haible  <bruno@clisp.org>
43272
43273         * build-aux/x-to-1.in: New file, from GNU gettext.
43274
43275 2006-08-22  Bruno Haible  <bruno@clisp.org>
43276
43277         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43278         <utmpx.h> exists.
43279
43280 2006-08-22  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43283         <utmpx.h> exists.
43284
43285 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43286
43287         BeOS portability.
43288         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43289         exist.
43290         Problem reported by Bruno Haible.
43291
43292 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43293
43294         Avoid the need for AC_LIBSOURCES in m4 macros.
43295         * modules/acl (EXTRA_DIST): Add acl.h.
43296         * modules/argmatch (Files): Add m4/argmatch.m4.
43297         (configure.ac): Add gl_ARGMATCH.
43298         (EXTRA_DIST): Renamed from lib_SOURCES, for
43299         consistency with the other modules.  Remove argmatch.c.
43300         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43301         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43302         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43303         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43304         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43305         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43306         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43307         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43308         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43309         * modules/closeout (EXTRA_DIST): Add closeout.h.
43310         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43311         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43312         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43313         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43314         dirname.h; remove basename.c and stripslash.c.
43315         * modules/exclude (EXTRA_DIST): Add exclude.h.
43316         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43317         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43318         * modules/file-type (EXTRA_DIST): Add file-type.h.
43319         * modules/filemode (EXTRA_DIST): Add filemode.h.
43320         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43321         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43322         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43323         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43324         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43325         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43326         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43327         * modules/getdate (EXTRA_DIST): Add getdate.c.
43328         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43329         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43330         * modules/getpass (EXTRA_DIST): Add getpass.h.
43331         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43332         * modules/group-member (EXTRA_DIST): Add group-member.h.
43333         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43334         * modules/hash (EXTRA_DIST): Add hash.h.
43335         * modules/human (EXTRA_DIST): Add human.h.
43336         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43337         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43338         * modules/lchown (EXTRA_DIST): Add lchown.h.
43339         * modules/long-options (EXTRA_DIST): Add long-options.h.
43340         * modules/lstat (EXTRA_DIST): Add lstat.h.
43341         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43342         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43343         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43344         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43345         * modules/memxor (EXTRA_DIST): Add memxor.h.
43346         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43347         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43348         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43349         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43350         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43351         * modules/physmem (EXTRA_DIST): Add physmem.h.
43352         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43353         * modules/posixver (EXTRA_DIST): Add posixver.h.
43354         * modules/quote (EXTRA_DIST): Add quote.h.
43355         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43356         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43357         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43358         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43359         regex_internal.h regexec.c.
43360         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43361         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43362         * modules/same (EXTRA_DIST): Add same.h.
43363         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43364         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43365         * modules/savedir (EXTRA_DIST): Add savedir.h.
43366         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43367         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43368         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43369         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43370         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43371         * modules/strdup (EXTRA_DIST): Add strdup.h.
43372         * modules/strftime (EXTRA_DIST): Add strftime.h.
43373         * modules/strndup (EXTRA_DIST): Add strndup.h.
43374         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43375         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43376         * modules/time_r (EXTRA_DIST): Add time_r.h.
43377         * modules/timespec (EXTRA_DIST): Add timespec.h.
43378         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43379         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43380         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43381         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43382         * modules/userspec (EXTRA_DIST): Add userspec.h.
43383         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43384         * modules/utimens (EXTRA_DIST): Add utimens.h.
43385         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43386         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43387         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43388         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43389         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43390         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43391         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43392         * modules/yesno (EXTRA_DIST): Add yesno.h.
43393
43394 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43395
43396         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43397
43398         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43399         * m4/dev-ino.m4, same-inode.m4: Remove.
43400
43401         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43402         * m4/acl.m4 (AC_FUNC_ACL):
43403         * m4/backupfile.m4 (gl_BACKUPFILE):
43404         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43405         * m4/canon-host.m4 (gl_CANON_HOST):
43406         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43407         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43408         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43409         * m4/cloexec.m4 (gl_CLOEXEC):
43410         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43411         * m4/closeout.m4 (gl_CLOSEOUT):
43412         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43413         * m4/dirname.m4 (gl_DIRNAME):
43414         * m4/exclude.m4 (gl_EXCLUDE):
43415         * m4/exitfail.m4 (gl_EXITFAIL):
43416         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43417         * m4/file-type.m4 (gl_FILE_TYPE):
43418         * m4/filemode.m4 (gl_FILEMODE):
43419         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43420         * m4/fpending.m4 (gl_FUNC_FPENDING):
43421         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43422         * m4/fts.m4 (gl_FUNC_FTS):
43423         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43424         * m4/getdate.m4 (gl_GETDATE):
43425         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43426         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43427         * m4/getpass.m4 (gl_FUNC_GETPASS):
43428         * m4/gettime.m4 (gl_GETTIME):
43429         * m4/getugroups.m4 (gl_GETUGROUPS):
43430         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43431         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43432         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43433         * m4/hash.m4 (gl_HASH):
43434         * m4/idcache.m4 (gl_IDCACHE):
43435         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43436         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43437         * m4/long-options.m4 (gl_LONG_OPTIONS):
43438         * m4/lstat.m4 (gl_FUNC_LSTAT):
43439         * m4/md5.m4 (gl_MD5):
43440         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43441         * m4/memcoll.m4 (gl_MEMCOLL):
43442         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43443         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43444         * m4/memxor.m4 (gl_MEMXOR):
43445         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43446         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43447         * m4/modechange.m4 (gl_MODECHANGE):
43448         * m4/mountlist.m4 (gl_MOUNTLIST):
43449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43450         * m4/openat.m4 (gl_FUNC_OPENAT):
43451         * m4/pathmax.m4 (gl_PATHMAX):
43452         * m4/physmem.m4 (gl_PHYSMEM):
43453         * m4/posixtm.m4 (gl_POSIXTM):
43454         * m4/posixver.m4 (gl_POSIXVER):
43455         * m4/quote.m4 (gl_QUOTE):
43456         * m4/quotearg.m4 (gl_QUOTEARG):
43457         * m4/readtokens.m4 (gl_READTOKENS):
43458         * m4/readutmp.m4 (gl_READUTMP):
43459         * m4/regex.m4 (gl_REGEX):
43460         * m4/safe-read.m4 (gl_SAFE_READ):
43461         * m4/safe-write.m4 (gl_SAFE_WRITE):
43462         * m4/same.m4 (gl_SAME):
43463         * m4/save-cwd.m4 (gl_SAVE_CWD):
43464         * m4/savedir.m4 (gl_SAVEDIR):
43465         * m4/settime.m4 (gl_SETTIME):
43466         * m4/sha1.m4 (gl_SHA1):
43467         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43468         * m4/stat-macros.m4 (gl_STAT_MACROS):
43469         * m4/stat-time.m4 (gl_STAT_TIME):
43470         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43471         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43472         * m4/strdup.m4 (gl_FUNC_STRDUP):
43473         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43474         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43475         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43476         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43477         * m4/time_r.m4 (gl_TIME_R):
43478         * m4/timespec.m4 (gl_TIMESPEC):
43479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43480         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43481         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43482         * m4/userspec.m4 (gl_USERSPEC):
43483         * m4/utimecmp.m4 (gl_UTIMECMP):
43484         * m4/utimens.m4 (gl_UTIMENS):
43485         * m4/xalloc.m4 (gl_XALLOC):
43486         * m4/xgetcwd.m4 (gl_XGETCWD):
43487         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43488         * m4/xreadlink.m4 (gl_XREADLINK):
43489         * m4/xstrtod.m4 (gl_XSTRTOD):
43490         * m4/yesno.m4 (gl_YESNO):
43491         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43492         to get the necessary .h files and whatnot.
43493
43494 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43495             Bruno Haible  <bruno@clisp.org>
43496
43497         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43498         /bin/sh understanding of '!' conditional negation.
43499
43500 2006-08-21  Jim Meyering  <jim@meyering.net>
43501
43502         * modules/openat (Depends-on): Really alphabetize.
43503
43504         * modules/acl (Depends-on): Add error and quote.
43505
43506         * check-module (find_included_lib_files): Add at-func.c to the
43507         ok-to-include-more-than-once white list.
43508
43509         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43510
43511 2006-08-21  Bruno Haible  <bruno@clisp.org>
43512
43513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43514         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43515         Reported by Martin Lambers <marlam@marlam.de>.
43516
43517 2006-08-21  Bruno Haible  <bruno@clisp.org>
43518
43519         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43520         specify an installation location, don't emit a noinst_LIBRARIES or
43521         noinst_LTLIBRARIES assignment.
43522
43523 2006-08-21  Bruno Haible  <bruno@clisp.org>
43524
43525         BeOS portability.
43526         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43527         BeOS has mbrtowc() but no <wctype.h>.
43528
43529 2006-08-21  Bruno Haible  <bruno@clisp.org>
43530
43531         BeOS portability.
43532         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43533         exist.
43534
43535 2006-08-21  Bruno Haible  <bruno@clisp.org>
43536
43537         BeOS portability.
43538         * lib/mbchar.h: Include <wctype.h> only if it exists.
43539
43540 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43541
43542         Remove files that are no longer needed by their respective modules.
43543         * m4/obstack.m4: Remove.
43544         * m4/strerror_r.m4: Remove.
43545         * m4/uint32_t.m4: Remove.
43546         * m4/uintptr_t.m4: Remove.
43547         * m4/ullong_max.m4: Remove.
43548         * m4/xstrtoimax.m4: Remove.
43549         * m4/xstrtoumax.m4: Remove.
43550
43551         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43552         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43553         dependencies now capture this.
43554
43555         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43556         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43557         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43558         * m4/human.m4 (gl_HUMAN): Likewise.
43559         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43560         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43561
43562         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43563
43564         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43565         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43566         stdint.
43567         * m4/human.m4 (gl_HUMAN): Likewise.
43568         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43569         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43570         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43571         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43572         * m4/xstrtol (gl_XSTRTOL): Likewise.
43573
43574         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43575         AC_TYPE_LONG_LONG_INT.
43576         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43577         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43578         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43579         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43580
43581         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43582         on stdbool.
43583
43584         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43585         (gl_PREREQ_XSTRTOUL): Remove.
43586
43587         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43588
43589         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43590         mode.
43591
43592 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43593
43594         Add and change modules to make it easier for coreutils to use
43595         gnulib-tool.
43596         * modules/backupfile (Files): Remove m4/d-ino.m4.
43597         (Depends-on): Add d-ino.
43598         * modules/cycle-check (Depends-on): Add stdint.
43599         (lib_SOURCES): Add cycle-check.h.
43600         * modules/d-ino: New module.
43601         * modules/d-type: New module.
43602         * modules/error (Files): Remove m4/strerror_r.m4.
43603         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43604         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43605         m4/inttypes_h.m4, m4/uintmax_t.m4.
43606         (Depends-on): Add stdint.
43607         (lib_SOURCES): Add fsusage.h.
43608         * modules/getcwd (Files): Remove d-ino.m4.
43609         (Depends-on): Add d-ino.
43610         * modules/getndelim2 (Depends-on): Add stdint.
43611         * modules/glob (Files): Remove m4/d-type.m4.
43612         (Depends-on): Add d-type.
43613         * modules/host-os: New module.
43614         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43615         m4/inttypes_h.m4, m4/uintmax_t.m4.
43616         * Depends-on: Add stdint.
43617         (lib_SOURCES): Add human.h.
43618         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43619         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43620         m4/uintmax_t.m4, m4/ulonglong.m4.
43621         (Depends-on): Add stdint.
43622         (EXTRA_DIST): Add inttostr.h.
43623         * modules/lchmod: New module.
43624         * modules/link-follow: New module.
43625         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43626         (Depends-on): Add lchmod.
43627         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43628         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43629         (Depends-on): Add stdint.
43630         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43631         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43632         (Depends-on): Add stdint.
43633         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43634         * modules/perl: New module.
43635         * modules/regex (Depends-on): Add stdint.
43636         * modules/rmdir-errno: New module.
43637         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43638         m4/intmax_t.m4.
43639         (Depends-on): Add stdint.
43640         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43641         m4/uintmax_t.m4.
43642         (Depends-on): Add stdint.
43643         * modules/unlink-busy: New module.
43644         * modules/utimecmp (Depends-on): Add stdint.
43645         * modules/uptime: New module.
43646         * modules/winsz-ioctl: New module.
43647         * modules/winsz-termios: New module.
43648         * modules/xnanosleep (Depends-on): Add nanosleep.
43649         * modules/ullong_max: Remove.
43650         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43651         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43652         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43653         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43654         (Depends-on): Add inttypes.
43655         (lib_SOURCES): Add xstrtol.h.
43656         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43657         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43658         * MODULES.html.sh: Move 'assert' into the assert section.
43659         Move 'dummy' into the linking section.
43660         Remove ullong_max.
43661         Add section for compatibility checks for POSIX:2001 functions,
43662         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43663         winsz-ioctl, and winsz-termios into it.
43664         Add lchmod.
43665         Add top-level Misc section and put host-os, perl, and uptime
43666         into it.
43667
43668 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43669
43670         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43671         now assume the stdint module.  Do not include inttypes.h.
43672         * lib/fsusage.h: Likewise.
43673         * lib/getndelim2.c: Likewise.
43674         * lib/human.h: Likewise.
43675         * lib/inttostr.h: Likewise.
43676         * lib/obstack.c: Likewise.
43677         * lib/regex_internal.h: Likewise.
43678         * lib/tempname.c: Likewise.
43679         * lib/utimecmp.c: Likewise.
43680         * lib/xstrtol.h: Likewise.
43681
43682         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43683
43684         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43685         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43686         * lib/xtime.h: Likewise.
43687
43688 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * modules/openat (Files): Add lib/fchmodat.c.
43691         Fixes problem reported by Jay Youngman.
43692
43693 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43696         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43697
43698 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43699             Bruno Haible  <bruno@clisp.org>
43700
43701         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43702         and is a script that invokes bison. Tighten the code. Add comments.
43703
43704 2006-08-18  Jim Meyering  <jim@meyering.net>
43705
43706         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43707         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43708         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43709         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43710
43711 2006-08-18  Bruno Haible  <bruno@clisp.org>
43712
43713         * modules/bison-i18n: New file.
43714         * MODULES.html.sh (Internationalization functions): Add it.
43715
43716 2006-08-18  Bruno Haible  <bruno@clisp.org>
43717
43718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43719         sys/statvfs.h. When getmntinfo was found, check its declaration and
43720         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43721
43722 2006-08-18  Bruno Haible  <bruno@clisp.org>
43723
43724         * m4/bison-i18n.m4: New file, from bison.
43725
43726 2006-08-18  Bruno Haible  <bruno@clisp.org>
43727
43728         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43729         (ME_DUMMY): Treat "kernfs" as a dummy.
43730         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43731
43732 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43733
43734         Update from coreutils.
43735
43736         2006-08-15  Jim Meyering  <jim@meyering.net>
43737
43738         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43739
43740         2006-01-17  Jim Meyering  <jim@meyering.net>
43741
43742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43743
43744         2006-01-11  Jim Meyering  <jim@meyering.net>
43745
43746         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43747         Check for the lchmod function.
43748
43749 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43750
43751         Update from coreutils.
43752
43753         * lib/__fpending.h: Add copyright notice.
43754         * lib/fprintftime.h: Likewise.
43755         * lib/savedir.c: Use (C) in copyright notice.
43756         * lib/savedir.h: Likewise.
43757
43758         2006-08-15  Jim Meyering  <jim@meyering.net>
43759
43760         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43761         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43762         in support of the EXPECTED_ERRNO macro.
43763         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43764         definitions.  Instead, define the appropriate symbols and include
43765         "at-func.c".
43766         * lib/mkdirat.c (mkdirat): Likewise.
43767         * lib/fchmodat.c (fchmodat): Likewise.
43768         (ENOSYS): Remove definition.
43769         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43770         it.  Don't include "unistd--.h" -- it wasn't ever used.
43771
43772         2006-01-17  Jim Meyering  <jim@meyering.net>
43773
43774         Rewrite fts.c not to change the current working directory,
43775         by using openat, fstatat, fdopendir, etc..
43776
43777         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43778         (HAVE_OPENAT_SUPPORT): Define.
43779         [_LIBC] (fchdir): Don't undef or define; no longer used.
43780         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43781         Now, this `function' always succeeds, and consumes its file descriptor
43782         parameter -- so callers must not close such FDs.  Update callers.
43783         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43784         (diropen): Add parameter, SP.  Adjust all callers.
43785         Implement using diropen_fd, rather than open.
43786         (fts_open): Initialize new member, fts_cwd_fd.
43787         Remove fts_rft-setting code.
43788         (fts_close): Close fts_cwd_fd, if necessary.
43789         (__opendir2): Define in terms of opendir or opendirat,
43790         depending on whether the FST_NOCHDIR flag is set.
43791         (fts_build): Since fts_safe_changedir consumes its FD, and since
43792         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43793         and close the dup'd file descriptor upon failure.
43794         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43795         (fts_safe_changedir): Tweak semantics to reflect that this function
43796         now calls cwd_advance_fd and hence consumes its FD argument.
43797         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43798         [struct FTS] (fts_rft): Remove now-unused member.
43799         [struct FTS] (fts_cycle.state): Improve comment.
43800
43801         * lib/openat.c (openat_needs_fchdir): New function.
43802         * lib/openat.h (openat_needs_fchdir): Declare it.
43803
43804 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43805
43806         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43807         Problem and fix reported by Pádraig Brady in
43808         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43809
43810 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43811
43812         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43813
43814 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43815
43816         * lib/memcoll.c (memcoll): Optimize for the common case where the
43817         arguments are bytewise equal.
43818
43819 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43820
43821         * doc/regexprops-generic.texi: Add a copyright notice.
43822
43823 2006-08-15  Bruno Haible  <bruno@clisp.org>
43824
43825         * modules/tmpdir (License): Change to LGPL.
43826
43827 2006-08-15  Bruno Haible  <bruno@clisp.org>
43828
43829         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43830         module.
43831
43832 2006-08-14  Simon Josefsson  <jas@extundo.com>
43833
43834         * config/srclist.txt: Add gnupload.
43835
43836 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43837
43838         Change copyright notice from LGPL 2 to GPL 2, since that's the
43839         standard form used in the gnulib repository.
43840         * tests/test-lock.c: Likewise.
43841         * tests/test-stdint.c: Likewise.
43842         * tests/test-tls.c: Likewise.
43843
43844         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43845         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43846         Add copyright notice.
43847
43848         * check-module: Add copyright notice.  Output a copyright
43849         notice if "--version" is specified.
43850         * modules/COPYING: New file.
43851         * tests/test-getaddrinfo.c: Add copyright notice.
43852         * tests/test-verify.c: Likewise.
43853
43854 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43855
43856         Change copyright notice from LGPL 2 to GPL 2, since that's the
43857         standard form used in the gnulib repository.
43858         * lib/lock.c: LGPL -> GPL.
43859         * lib/lock.h: Likewise.
43860         * lib/strnlen1.c: Likewise.
43861         * lib/strnlen1.h: Likewise.
43862         * lib/tls.c: Likewise.
43863         * lib/tls.h: Likewise.
43864         * lib/tmpdir.c: Likewise.
43865
43866         * lib/TODO: Remove; this belongs only in coreutils.
43867
43868 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43869
43870         Add copyright notices to long-enough files that lack them, since
43871         otherwise the files aren't clearly free.  Use the same notice that
43872         getdate.texi already uses.
43873         * doc/alloca-opt.texi: Add copyright notice.
43874         * doc/alloca.texi: Likewise.
43875         * doc/ctime.texi: Likewise.
43876         * doc/functions.texi: Likewise.
43877         * doc/gcd.texi: Likewise.
43878         * doc/gnulib-tool.texi: Likewise.
43879         * doc/inet_ntoa.texi: Likewise.
43880         * doc/visibility.texi: Likewise.
43881
43882         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43883         * doc/quote.texi: Add copyright notice.
43884
43885         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43886         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43887         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43888         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43889         is now obsolete, and give a pointer to the Sun list.
43890         Add copyright notice.
43891
43892 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43893
43894         * config/srclistvars.sh: Add copyright notice.
43895
43896 2006-08-14  Eric Blake  <ebb9@byu.net>
43897
43898         Import the following change from libc:
43899
43900         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43901
43902         Upstream bug 2997.
43903         * lib/misc/error.c: Add space between program name and message if file
43904         name is missing.
43905
43906 2006-08-12  Karl Berry  <karl@gnu.org>
43907
43908         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43909         remove, these originate in gnulib now.
43910
43911 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43912
43913         * doc/Makefile (standards.info standards.html standards.dvi):
43914         Also depend on make-stds.texi.
43915
43916 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43917
43918         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43919         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43920
43921         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43922         in wchar_t.  Problem reported by Eric Blake.
43923
43924         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43925         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43926         Also, help the compiler to keep LEN in a register.
43927
43928 2006-08-11  Eric Blake  <ebb9@byu.net>
43929
43930         * users.txt: Sort.  Add tar.
43931
43932 2006-08-11  Bruno Haible  <bruno@clisp.org>
43933
43934         * users.txt: New file.
43935
43936 2006-08-11  Bruno Haible  <bruno@clisp.org>
43937
43938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43939         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43940
43941 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43942
43943         * modules/snprintf (Depends-on): Remove minmax.
43944         (Maintainer): Add self and Bruno.
43945
43946 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43947
43948         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43949         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43950         (EOVERFLOW): Define if the system does not.
43951         Do not include "minmax.h"; it wasn't used.
43952         (snprintf): Don't assume size_t promotes to an unsigned type.
43953         Fix bug when generated string was too long for the buffer: the
43954         buffer's contents are supposed to be the initial prefix of the
43955         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43956         exceeds INT_MAX; do the check ourselves.
43957
43958         Import the following changes from libc:
43959
43960         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43961
43962         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43963         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43964         set wc to the byte which couldn't be converted.
43965         (re_string_reconstruct): Don't clear valid_raw_len before calling
43966         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43967         tip_context using re_string_context_at.
43968
43969         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43970
43971         * lib/posix/regex.h: g++ still cannot handled [restrict].
43972
43973         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43974
43975         * lib/posix/regex.h: Remove special handling for VMS.
43976
43977 2006-08-10  Jim Meyering  <jim@meyering.net>
43978
43979         * modules/same-inode: New module.
43980         * modules/dev-ino: New module.
43981         * modules/cycle-check: Depend on these modules, rather than simply
43982         including their .h files.
43983         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43984         required via m4/cycle-check.m4.
43985         * modules/same: Depend on new same-inode module, rather than
43986         including same-inode.h.
43987         * modules/chdir-safer: New file.
43988
43989         * modules/chown (Depends-on): Add stat-macros.
43990
43991 2006-08-10  Jim Meyering  <jim@meyering.net>
43992
43993         * m4/cycle-check.m4: New file.
43994         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43995         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43996
43997 2006-08-10  Eric Blake  <ebb9@byu.net>
43998
43999         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44000         in from original proposal.
44001
44002 2006-08-10  Eric Blake  <ebb9@byu.net>
44003         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44004
44005         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44006         namespace.
44007
44008 2006-08-10  Bruno Haible  <bruno@clisp.org>
44009
44010         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44011         as well.
44012
44013 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44014
44015         Sync from coreutils.
44016
44017         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44018
44019         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44020         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44021
44022 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44023
44024         * modules/restrict: Remove; no longer needed now that we assume
44025         Autoconf 2.59 or later.
44026         * MODULES.html.sh: Remove 'restrict'.
44027         * modules/argp (Depends-on): Remove 'restrict'.
44028         * modules/base64 (Depends-on): Likewise.
44029         * modules/gc (Depends-on): Likewise.
44030         * modules/getaddrinfo (Depends-on): Likewise.
44031         * modules/glob (Depends-on): Likewise.
44032         * modules/inet_ntop (Depends-on): Likewise.
44033         * modules/inet_pton (Depends-on): Likewise.
44034         * modules/memxor (Depends-on): Likewise.
44035         * modules/regex (Depends-on): Likewise.
44036         * modules/strtok_r (Depends-on): Likewise.
44037         * modules/time_r (Depends-on): Likewise.
44038
44039 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44042         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44043         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44044         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44045         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44046         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44047         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44048         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44049
44050         Merge from coreutils.
44051         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44052         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44053         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44054         * m4/time_r.m4 (gl_TIME_R): Likewise.
44055
44056 2006-08-09  Karl Berry  <karl@gnu.org>
44057
44058         * config/srclist.txt: no more gettext-tools, per Bruno.
44059
44060 2006-08-08  Eric Blake  <ebb9@byu.net>
44061
44062         * modules/verror: New module.
44063         * MODULES.html.sh: Document it.
44064
44065 2006-08-08  Eric Blake  <ebb9@byu.net>
44066
44067         * lib/verror.h, lib/verror.c: New files.
44068
44069 2006-08-08  Eric Blake  <ebb9@byu.net>
44070
44071         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44072         verror_at_line output complies with GNU Coding Standards even when
44073         file is NULL.
44074
44075 2006-08-07  Bruno Haible  <bruno@clisp.org>
44076
44077         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44078         versions of AIX.
44079         Reported by Ralf Wildenhues.
44080
44081 2006-08-07  Bruno Haible  <bruno@clisp.org>
44082
44083         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44084         in an AC_DEFUN. Needed so that the autoconf snippets can use
44085         AC_REQUIRE.
44086
44087 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44088
44089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44090         Initialize pkgdata_DATA.
44091         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44092         overriding it.
44093
44094 2006-08-06  Eric Blake  <ebb9@byu.net>
44095
44096         * lib/error.h: Fold in some upstream changes from glibc.
44097         * lib/error.c: Likewise.
44098
44099 2006-08-04  Bruno Haible  <bruno@clisp.org>
44100
44101         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44102         Make the mostlyclean-local rule depend on mostlyclean-generic.
44103         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44104
44105 2006-07-31  Bruno Haible  <bruno@clisp.org>
44106
44107         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44108         <stdlib.h>, <string.h>.
44109
44110 2006-07-30  Bruno Haible  <bruno@clisp.org>
44111
44112         * modules/readlink (License): Change to LGPL.
44113
44114 2006-07-30  Bruno Haible  <bruno@clisp.org>
44115
44116         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44117         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44118         set PKGDATADIR to point to it.
44119
44120 2006-07-30  Bruno Haible  <bruno@clisp.org>
44121
44122         * modules/csharpexec (configure.ac): Comment out macro invocation.
44123         * modules/javaexec (configure.ac): Likewise.
44124         * modules/javacomp-script (configure.ac): Likewise.
44125
44126         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44127
44128 2006-07-30  Bruno Haible  <bruno@clisp.org>
44129
44130         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44131         linked-list.
44132
44133 2006-07-30  Bruno Haible  <bruno@clisp.org>
44134
44135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44136
44137 2006-07-30  Bruno Haible  <bruno@clisp.org>
44138
44139         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44140         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44141         get removed.
44142
44143 2006-07-29  Bruno Haible  <bruno@clisp.org>
44144
44145         Make it possible for gnulib-tool to work with locally modified or
44146         augmented gnulib repositories.
44147         * gnulib-tool (func_usage): Document --local-dir option.
44148         (local_gnulib_dir): New variable.
44149         Handle --local-dir option.
44150         (func_lookup_file): New function.
44151         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44152         (func_get_description, func_get_filelist, func_get_description,
44153         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44154         func_get_automake_snippet, func_get_include_directive,
44155         func_get_license, func_get_maintainer): Use func_lookup_file.
44156         (func_import, func_create_testdir): Use func_lookup_file.
44157
44158 2006-07-29  Bruno Haible  <bruno@clisp.org>
44159
44160         * modules/setenv (Depends-on): Add unistd.
44161
44162 2006-07-29  Bruno Haible  <bruno@clisp.org>
44163
44164         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44165
44166 2006-07-29  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44169
44170 2006-07-29  Bruno Haible  <bruno@clisp.org>
44171
44172         * gnulib-tool (import, update): If there is no Makefile.am, look at
44173         aclocal.m4, instead of bailing out.
44174
44175 2006-07-29  Bruno Haible  <bruno@clisp.org>
44176
44177         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44178         Categorize the options by when they are useful.
44179
44180 2006-07-29  Bruno Haible  <bruno@clisp.org>
44181
44182         * gnulib-tool (func_usage): Document option --no-libtool.
44183         Handle option --no-libtool.
44184         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44185         for changed semantics of $libtool variable.
44186         (func_import): Likewise. If libtool is not used, show this through
44187         an option --no-libtool.
44188         (func_create_testdir): Update.
44189
44190 2006-07-29  Bruno Haible  <bruno@clisp.org>
44191
44192         * gnulib-tool (func_import): Extend error message about missing
44193         --doc-base.
44194
44195 2006-07-29  Bruno Haible  <bruno@clisp.org>
44196
44197         * gnulib-tool (func_import): Don't create the $docbase directory if
44198         there is no file to store there.
44199
44200 2006-07-29  Bruno Haible  <bruno@clisp.org>
44201
44202         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44203         relevant, look for configure.ac there, not in the current directory.
44204         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44205
44206 2006-07-29  Bruno Haible  <bruno@clisp.org>
44207
44208         * gnulib-tool (SORT): New variable.
44209         (func_usage): Undocument --assume-autoconf option.
44210         Remove --assume-autoconf option handling.
44211         (autoconf_minversion): Determine from the contents of configure.ac.
44212         (func_import): Remove autoconf_minversion handling.
44213         Suggested by Eric Blake.
44214
44215 2006-07-29  Bruno Haible  <bruno@clisp.org>
44216
44217         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44218
44219 2006-07-29  Bruno Haible  <bruno@clisp.org>
44220
44221         * config/srclist.txt (*setenv.[ch]): Remove rules.
44222
44223 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44224
44225         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44226
44227 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44228
44229         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44230         arpa/inet.h.
44231
44232 2006-07-28  Simon Josefsson  <jas@extundo.com>
44233
44234         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44235         * modules/inet_pton (Depends-on): Likewise.
44236
44237 2006-07-28  Simon Josefsson  <jas@extundo.com>
44238
44239         * m4/netinet_in_h.m4: New file.
44240
44241 2006-07-28  Simon Josefsson  <jas@extundo.com>
44242
44243         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44244         #include's.
44245
44246 2006-07-28  Simon Josefsson  <jas@extundo.com>
44247
44248         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44249         #include's.
44250
44251 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44252
44253         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44254         setgid on directories only if they set these bits.
44255         * lib/modechange.h: Remove obsolete comment about masks.
44256
44257 2006-07-28  Eric Blake  <ebb9@byu.net>
44258
44259         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44260         macro expansion.
44261
44262 2006-07-28  Bruno Haible  <bruno@clisp.org>
44263
44264         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44265
44266 2006-07-28  Bruno Haible  <bruno@clisp.org>
44267
44268         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44269
44270 2006-07-28  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44273         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44274         Define fallbacks.
44275         Avoids link error on FreeBSD 4.x.
44276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44277
44278         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44279         encoding.
44280         * lib/mbswidth.c (iswcntrl): Likewise.
44281
44282 2006-07-27  Bruno Haible  <bruno@clisp.org>
44283
44284         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44285         test.
44286
44287 2006-07-27  Bruno Haible  <bruno@clisp.org>
44288
44289         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44290         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44291         defined.
44292
44293 2006-07-26  Eric Blake  <ebb9@byu.net>
44294
44295         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44296
44297 2006-07-26  Eric Blake  <ebb9@byu.net>
44298
44299         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44300         like mingw that lack mkstemp.
44301         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44302         avoid compilation warning on mingw.
44303
44304 2006-07-26  Bruno Haible  <bruno@clisp.org>
44305
44306         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44307         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44308         INT_FAST*_MIN, INTPTR_MIN.
44309
44310 2006-07-25  Bruno Haible  <bruno@clisp.org>
44311
44312         * modules/version-etc (Depends-on): Add stdarg.
44313
44314 2006-07-25  Bruno Haible  <bruno@clisp.org>
44315
44316         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44317         complex commands.
44318
44319 2006-07-25  Bruno Haible  <bruno@clisp.org>
44320
44321         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44322         defined in <stdarg.h> or config.h.
44323
44324 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44327         (gl_STDIO_SAFER): Remove.
44328
44329 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44330
44331         * MODULES.html.sh (File stream based Input/Output):
44332         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44333         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44334         * modules/fopen-safer, modules/tmpfile-safer: New files.
44335         * modules/stdio-safer: Remove.
44336
44337 2006-07-24  Bruno Haible  <bruno@clisp.org>
44338
44339         * modules/tmpdir: New file.
44340         * MODULES.html.sh (File system functions): Add it.
44341
44342 2006-07-24  Bruno Haible  <bruno@clisp.org>
44343
44344         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44345         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44346
44347 2006-07-24  Bruno Haible  <bruno@clisp.org>
44348
44349         * modules/clean-temp: New file.
44350
44351 2006-07-24  Bruno Haible  <bruno@clisp.org>
44352
44353         * m4/tmpdir.m4: New file, from GNU gettext.
44354
44355 2006-07-24  Bruno Haible  <bruno@clisp.org>
44356
44357         * lib/tmpdir.h: New file, from GNU gettext.
44358         * lib/tmpdir.c: New file, from GNU gettext.
44359
44360 2006-07-24  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/clean-temp.h: New file, from GNU gettext.
44363         * lib/clean-temp.c: New file, from GNU gettext.
44364
44365 2006-07-23  Eric Blake  <ebb9@byu.net>
44366
44367         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44368         (Depends-on): Add binary-io.
44369
44370 2006-07-23  Eric Blake  <ebb9@byu.net>
44371
44372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44373
44374 2006-07-23  Eric Blake  <ebb9@byu.net>
44375
44376         * lib/tmpfile-safer.c: New file.
44377         * lib/stdio-safer.h (fopen_safer): Add prototype.
44378         * lib/stdio--.h (tmpfile): Make safer.
44379
44380 2006-07-23  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44383         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44384         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44385         gl_linked_remove_at): Use it.
44386
44387 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44388         and Simon Josefsson <jas@extundo.com>
44389
44390         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44391
44392         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44393
44394 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44395
44396         * modules/close-stream: New file.
44397         * modules/closeout (Description): Make it clear that it exits
44398         with a diagnostic on error.
44399         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44400         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44401
44402 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44403
44404         * m4/close-stream.m4: New file.
44405
44406 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44407
44408         * lib/close-stream.c, lib/close-stream.h: New files.
44409
44410 2006-07-22  Bruno Haible  <bruno@clisp.org>
44411
44412         Merge from GNU gettext 0.15.
44413
44414         2006-05-01  Bruno Haible  <bruno@clisp.org>
44415
44416                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44417
44418         2006-07-22  Bruno Haible  <bruno@clisp.org>
44419
44420                 * modules/javaversion: New file.
44421                 * MODULES.html.sh (Java): Add javaversion.
44422
44423         2006-03-12  Bruno Haible  <bruno@clisp.org>
44424
44425                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44426
44427         2005-12-04  Bruno Haible  <bruno@clisp.org>
44428
44429                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44430                 (untested).
44431
44432         2006-06-21  Bruno Haible  <bruno@clisp.org>
44433
44434                 Avoid warnings from recent versions of mcs.
44435                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44436                 -o, -L, -r any more. Use options documented since mcs-1.0
44437                 instead. Similarly for -g.
44438
44439         2005-12-04  Bruno Haible  <bruno@clisp.org>
44440
44441                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44442                 .resources, not .resource.
44443
44444         2005-07-09  Bruno Haible  <bruno@clisp.org>
44445
44446                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44447                 add a .dll suffix.
44448                 Reported by Mark Junker <mjscod@gmx.de>.
44449
44450         2006-07-22  Bruno Haible  <bruno@clisp.org>
44451
44452                 * modules/gettext: Upgrade to gettext-0.15.
44453                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44454                 m4/visibility.m4.
44455                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44456
44457 2006-07-22  Bruno Haible  <bruno@clisp.org>
44458
44459         Merge from GNU gettext 0.15.
44460
44461         2006-03-25  Bruno Haible  <bruno@clisp.org>
44462
44463                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44464
44465         2006-07-21  Bruno Haible  <bruno@clisp.org>
44466
44467                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44468                 "1.1".
44469
44470         2006-05-09  Bruno Haible  <bruno@clisp.org>
44471
44472                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44473                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44474                 for the conftestver execution.
44475
44476         2006-05-01  Bruno Haible  <bruno@clisp.org>
44477
44478                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44479                 optional target-version argument. Verify that the compiler
44480                 groks source of the specified source-version, or add -source
44481                 option as necessary. Verify that the compiler produces
44482                 bytecode in the specified target-version, or add -target and
44483                 -source options as necessary. Make the result of the test
44484                 available as variable CONF_JAVAC. Also log error output in
44485                 config.log.
44486
44487         2006-03-11  Bruno Haible  <bruno@clisp.org>
44488
44489                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44490
44491         2006-05-09  Bruno Haible  <bruno@clisp.org>
44492
44493                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44494                 CLASSPATH_SEPARATOR to a semicolon.
44495
44496         2006-03-12  Bruno Haible  <bruno@clisp.org>
44497
44498                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44499                 available as variable CONF_JAVA, for subsequent autoconf
44500                 tests. Also log error output in config.log.
44501
44502         2006-07-19  Bruno Haible  <bruno@clisp.org>
44503
44504                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44505                 that getline works on glibc2 systems. Needed to avoid trouble
44506                 in relocatable.c.
44507                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44508
44509         2005-12-04  Bruno Haible  <bruno@clisp.org>
44510
44511                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44512                 launcher (untested).
44513
44514         2005-12-04  Bruno Haible  <bruno@clisp.org>
44515
44516                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44517
44518         2006-07-22  Bruno Haible  <bruno@clisp.org>
44519
44520                 * gettext.m4: Update from GNU gettext-0.15.
44521                 * nls.m4: Likewise.
44522                 * po.m4: Likewise.
44523                 * inttypes-pri.m4: Likewise.
44524                 * inttypes-h.m4: Renamed from inttypes.m4.
44525                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44526
44527 2006-07-22  Bruno Haible  <bruno@clisp.org>
44528
44529         Merge from GNU gettext 0.15.
44530
44531         2005-07-05  Bruno Haible  <bruno@clisp.org>
44532
44533                 * printf-args.c (printf_fetchargs): Work around broken
44534                 definition of wint_t on mingw.
44535
44536         2005-02-12  Bruno Haible  <bruno@clisp.org>
44537
44538                 * xallocsa.h: Add extern "C" for C++.
44539
44540         2006-05-17  Bruno Haible  <bruno@clisp.org>
44541
44542                 Cygwin portability.
44543                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44544
44545         2006-04-30  Bruno Haible  <bruno@clisp.org>
44546
44547                 * progreloc.c: Include <mach-o/dyld.h> if available.
44548                 (find_executable): Use _NSGetExecutablePath when possible.
44549
44550         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44551
44552                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44553                 function.
44554
44555         2005-12-29  Bruno Haible  <bruno@clisp.org>
44556
44557                 * progreloc.c (set_program_name_and_installdir): Fix
44558                 compilation error.
44559
44560         2005-12-04  Bruno Haible  <bruno@clisp.org>
44561
44562                 Cygwin portability.
44563                 * progreloc.c: Include <windows.h> also on Cygwin.
44564                 (find_executable): Add support for Cygwin.
44565                 (set_program_name_and_installdir): Handle also platforms with
44566                 nonempty EXEEXT.
44567
44568         2006-07-11  Bruno Haible  <bruno@clisp.org>
44569
44570                 * javacomp.c: Fix a comment.
44571                 Reported by Jim Meyering.
44572
44573         2006-04-30  Bruno Haible  <bruno@clisp.org>
44574
44575                 * javacomp.h (compile_java_class): Add source_version,
44576                 target_version arguments.
44577                 * javacomp.c: Rewritten to choose only a compiler that
44578                 respects the specified source_version and target_version.
44579
44580         2006-06-27  Bruno Haible  <bruno@clisp.org>
44581
44582                 Assume correct S_ISDIR macro.
44583                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44584
44585         2006-07-22  Bruno Haible  <bruno@clisp.org>
44586
44587                 * javaversion.h: New file, from GNU gettext.
44588                 * javaversion.c: New file, from GNU gettext.
44589                 * javaversion.java: New file, from GNU gettext.
44590                 * javaversion.class: New file, from GNU gettext.
44591
44592         2006-05-17  Bruno Haible  <bruno@clisp.org>
44593
44594                 Cygwin portability.
44595                 * javaexec.c (execute_java_class): Test for jview program
44596                 also on Cygwin.
44597
44598         2006-04-09  Bruno Haible  <bruno@clisp.org>
44599
44600                 * fatal-signal.c: Don't include string.h.
44601                 (at_fatal_signal): Use a copying loop instead of memcpy.
44602
44603         2005-12-04  Bruno Haible  <bruno@clisp.org>
44604
44605                 * csharpexec.c: Add support for 'clix' launcher (untested).
44606                 (execute_csharp_using_sscli): New function.
44607                 (execute_csharp_program): Call it.
44608
44609         2006-06-21  Bruno Haible  <bruno@clisp.org>
44610
44611                 Avoid warnings from recent versions of mcs.
44612                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44613                 -o, -L, -r any more. Use options documented since mcs-1.0
44614                 instead. Similarly for -g.
44615
44616         2005-07-09  Bruno Haible  <bruno@clisp.org>
44617
44618                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44619                 add a .dll suffix.
44620                 Reported by Mark Junker <mjscod@gmx.de>.
44621
44622         2006-06-17  Bruno Haible  <bruno@clisp.org>
44623
44624                 * config.charset: Update for NetBSD 3.0.
44625
44626         2006-05-17  Bruno Haible  <bruno@clisp.org>
44627
44628                 Cygwin portability.
44629                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44630
44631         2006-05-16  Bruno Haible  <bruno@clisp.org>
44632
44633                 * localcharset.c [CYGWIN]: Include <windows.h>.
44634                 (get_charset_aliases): For Cygwin, return the same CPxxx
44635                 aliases list as under WIN32.
44636                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44637                 the environment variables. Fall back to GetACP().
44638
44639         2006-04-05  Bruno Haible  <bruno@clisp.org>
44640
44641                 * config.charset: Update Juan Manuel Guerrero's address.
44642
44643         2005-02-12  Bruno Haible  <bruno@clisp.org>
44644
44645                 * allocsa.h: Add extern "C" for C++.
44646
44647         2005-02-10  Bruno Haible  <bruno@clisp.org>
44648
44649                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44650                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44651
44652         2006-07-22  Bruno Haible  <bruno@clisp.org>
44653
44654                 * gettext.h: Update to GNU gettext-0.15.
44655
44656 2006-07-22  Bruno Haible  <bruno@clisp.org>
44657
44658         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44659         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44660         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44661
44662 2006-07-21  Eric Blake  <ebb9@byu.net>
44663
44664         * modules/stdlib-safer: New file.
44665         * MODULES.html.sh (File stream based Input/Output): Add
44666         stdlib-safer.
44667
44668 2006-07-21  Eric Blake  <ebb9@byu.net>
44669
44670         * lib/stdlib-safer.h: New file from coreutils, required by
44671         stdlib--.h.
44672
44673 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44674
44675         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44676
44677 2006-07-20  Bruno Haible  <bruno@clisp.org>
44678
44679         * gnulib-tool: Recognize new option --assume-autoconf.
44680         (autoconf_minversion): New variable.
44681         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44682
44683 2006-07-20  Bruno Haible  <bruno@clisp.org>
44684
44685         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44686
44687 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44688
44689         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44690         Reindent and repaginate.
44691
44692 2006-07-19  Derek Price  <derek@ximbiot.com>
44693
44694         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44695         Correct grammar.
44696
44697 2006-07-17  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/list: New file.
44700         * modules/array-list: New file.
44701         * modules/carray-list, modules/carray-list-tests: New files.
44702         * modules/linked-list, modules/linked-list-tests: New files.
44703         * modules/avltree-list, modules/avltree-list-tests: New files.
44704         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44705         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44706         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44707         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44708         * modules/oset: New file.
44709         * modules/array-oset: New file.
44710         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44711         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44712         * tests/test-carray_list.c: New file.
44713         * tests/test-linked_list.c: New file.
44714         * tests/test-avltree_list.c: New file.
44715         * tests/test-rbtree_list.c: New file.
44716         * tests/test-linkedhash_list.c: New file.
44717         * tests/test-avltreehash_list.c: New file.
44718         * tests/test-rbtreehash_list.c: New file.
44719         * tests/test-avltree_oset.c: New file.
44720         * tests/test-rbtree_oset.c: New file.
44721         * MODULES.html.sh (Container data structures): New section.
44722
44723 2006-07-17  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/gl_list.m4: New file.
44726
44727 2006-07-17  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/gl_list.h: New file.
44730         * lib/gl_list.c: New file.
44731         * lib/gl_array_list.h: New file.
44732         * lib/gl_array_list.c: New file.
44733         * lib/gl_carray_list.h: New file.
44734         * lib/gl_carray_list.c: New file.
44735         * lib/gl_linked_list.h: New file.
44736         * lib/gl_linked_list.c: New file.
44737         * lib/gl_anylinked_list1.h: New file.
44738         * lib/gl_anylinked_list2.h: New file.
44739         * lib/gl_avltree_list.h: New file.
44740         * lib/gl_avltree_list.c: New file.
44741         * lib/gl_anyavltree_list1.h: New file.
44742         * lib/gl_anyavltree_list2.h: New file.
44743         * lib/gl_rbtree_list.h: New file.
44744         * lib/gl_rbtree_list.c: New file.
44745         * lib/gl_anyrbtree_list1.h: New file.
44746         * lib/gl_anyrbtree_list2.h: New file.
44747         * lib/gl_anytree_list1.h: New file.
44748         * lib/gl_anytree_list2.h: New file.
44749         * lib/gl_linkedhash_list.h: New file.
44750         * lib/gl_linkedhash_list.c: New file.
44751         * lib/gl_anyhash_list1.h: New file.
44752         * lib/gl_anyhash_list2.h: New file.
44753         * lib/gl_avltreehash_list.h: New file.
44754         * lib/gl_avltreehash_list.c: New file.
44755         * lib/gl_rbtreehash_list.h: New file.
44756         * lib/gl_rbtreehash_list.c: New file.
44757         * lib/gl_anytreehash_list1.h: New file.
44758         * lib/gl_anytreehash_list2.h: New file.
44759
44760         * lib/gl_oset.h: New file.
44761         * lib/gl_oset.c: New file.
44762         * lib/gl_array_oset.h: New file.
44763         * lib/gl_array_oset.c: New file.
44764         * lib/gl_avltree_oset.h: New file.
44765         * lib/gl_avltree_oset.c: New file.
44766         * lib/gl_rbtree_oset.h: New file.
44767         * lib/gl_rbtree_oset.c: New file.
44768         * lib/gl_anytree_oset.h: New file.
44769
44770 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44771
44772         * m4/mkancesdirs.m4: New file.
44773         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44774         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44775         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44776         it.
44777
44778 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44779
44780         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44781         * lib/mkancesdirs.h: New files.
44782         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44783         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44784         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44785         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44786         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44787         callers changed.  Revamp internals significantly, by not
44788         attempting to create directories that are temporarily more
44789         permissive than the final results.  Do not attempt to use
44790         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44791         This removes some race conditions, fixes some bugs, and simplifies
44792         things.  Use new dirchownmod function to do owner and mode changes.
44793         * lib/mkdir-p.h: Likewise.
44794         * lib/modechange.c (octal_to_mode): New function.
44795         (struct mode_change): New member mentioned.
44796         (make_node_op_equals): New arg mentioned.  All callers changed.
44797         (mode_compile): Keep track of which mode bits the user has explicitly
44798         mentioned.
44799         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44800         New arg PMODE_BITS, to keep track of which mode bits the user
44801         mentioned; it treats S_ISUID and S_ISGID speciall.
44802         All callers changed.
44803         * lib/modechange.h: Likewise.
44804
44805 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44806
44807         * MODULES.html.sh: Add mkancestors.
44808         * modules/mkancesdirs: New module.
44809         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44810         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44811         The chdir-safer and afs files are now orphans; I'll remove them
44812         unless someone speaks up.
44813         Add lib/dirchownmod.c, lib/dirchownmod.h.
44814         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44815         Add lchown, mkancesdirs.
44816         (Maintainer): Add self.
44817
44818 2006-07-15  Karl Berry  <karl@gnu.org>
44819
44820         * gnulib-tool: help message wording/arrangement.
44821
44822 2006-07-14  Simon Josefsson  <jas@extundo.com>
44823
44824         * doc/gnulib.texi (Libtool and Windows): New section.
44825
44826 2006-07-12  Simon Josefsson  <jas@extundo.com>
44827
44828         * modules/gendocs (License): Fix license, approved by Karl.
44829
44830 2006-07-12  Eric Blake  <ebb9@byu.net>
44831
44832         * MODULES.html.sh: Add gendocs.
44833
44834 2006-07-11  Eric Blake  <ebb9@byu.net>
44835
44836         * modules/fdl: New module, to install doc/fdl.texi.
44837         * MODULES.html.sh: Add new section for documentation modules.
44838         * gnulib-tool: Avoid space-tab.
44839         (--doc-base): New option, to manage files from doc.
44840
44841 2006-07-11  Eric Blake  <ebb9@byu.net>
44842
44843         * m4/absolute-header.m4: Fix comments to match recent change.
44844
44845 2006-07-11  Eric Blake  <ebb9@byu.net>
44846
44847         * gnulib-tool: List --doc-base before --tests-base.
44848
44849 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44850
44851         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44852
44853 2006-07-11  Bruno Haible  <bruno@clisp.org>
44854
44855         * README: Mention where to put documentation.
44856
44857 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44858
44859         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44860
44861 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44862
44863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44864         to stdint.m4.
44865
44866 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44867
44868         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44869         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44870         "no/such/file/stdint.h" when there is no such file, so that
44871         the resulting C code can be parsed by dodgy compilers.
44872         Problems reported by Bob Proulx.
44873
44874 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44875
44876         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44877         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44878         macros into the GNU _D_EXACT_NAMLEN.
44879         * lib/savedir.c:  Likewise.
44880         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44881
44882 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44883         and Paul Eggert  <eggert@cs.ucla.edu>
44884
44885         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44886         * m4/savedir.m4:
44887         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44888         macros into the GNU _D_EXACT_NAMLEN.
44889
44890 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44891
44892         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44893         around the absolute name, to work around a problem with the HP-UX
44894         11.23 native C compiler, reported by Bob Proulx.
44895
44896 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44897
44898         * doc/maintain.texi, make-stds.texi: Sync from
44899         <http://savannah.gnu.org/projects/gnustandards>.
44900
44901 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44902
44903         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44904
44905 2006-07-09  Jim Meyering  <jim@meyering.net>
44906
44907         * m4/glob.m4: Remove a doubled word in a comment.
44908
44909 2006-07-09  Jim Meyering  <jim@meyering.net>
44910
44911         * lib/argp-pv.c: Remove a doubled word in a comment.
44912         * lib/check-version.c (check_version): Likewise.
44913         * lib/javacomp.c (compile_java_class): Likewise.
44914
44915 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44916
44917         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44918         for the benefit of people using Autoconf 2.60.  If you want to
44919         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44920         (or m4/onceonly.m4, if pre-2.57) manually.
44921
44922 2006-07-08  Jim Meyering  <jim@meyering.net>
44923
44924         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44925         comment.
44926         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44927         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44928         comment.
44929
44930 2006-07-08  Jim Meyering  <jim@meyering.net>
44931
44932         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44933
44934 2006-07-07  Simon Josefsson  <jas@extundo.com>
44935
44936         * tests/test-crc.c: Change expected crc value, the test vector
44937         were probably computed using the old broken crc.c?
44938
44939 2006-07-06  Simon Josefsson  <jas@extundo.com>
44940
44941         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44942         now the canonical place for the M4 file).
44943
44944         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44945         from the sys_socket dependency now.
44946
44947         * modules/inet_pton (Files): Ditto.
44948
44949         * modules/inet_ntop (Files): Ditto.
44950
44951 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44952
44953         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44954         not gl_PREREQ_GETUSERSHELL.
44955
44956 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44957
44958         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44959         with only one argument, for Autoconf 2.60.
44960         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44961         expand to nothing, so add a shell command to avoid syntax error.
44962         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44963
44964 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44965
44966         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44967
44968 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44969
44970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44971         no longer needed.  Check for isblank decl.
44972         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44973         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44974         of existence.
44975
44976 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44977
44978         * lib/getloadavg.c: Use __VMS, not VMS.
44979         * lib/getopt.c: Likewise.
44980         * lib/getpagesize.h: Likewise.
44981         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44982         and probably does not work.
44983
44984 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44985
44986         * lib/.cppi-disable: Add wcwidth.
44987         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44988         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44989         (ISGRAPH): Remove.  All uses changed to isgraph.
44990         (FOLD) [!defined _LIBC]: Remove special case.
44991         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44992         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44993         HAVE_ISBLANK.
44994         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44995         case.
44996
44997 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44998
44999         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45000         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45001         brackets.  Other minor changes to suppress some compiler
45002         warnings.
45003
45004 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45005         and Paul Eggert  <eggert@cs.ucla.edu>
45006
45007         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45008         of invoking obsolescent AC_HEADER_DIRENT macro.
45009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45010         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45012         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45013         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45014         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45015         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45016         * m4/readdir.m4: Remove; no longer needed.
45017
45018 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45019         and Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45022         Don't worry about this obsolete case any more.
45023         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45024         directories.
45025         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45026         worry about this obsolete case any more.
45027         * lib/fts.c: Likewise.
45028         * lib/getcwd.c: Likewise.
45029         * lib/glob.h: Likewise.
45030         * lib/savedir.c: Likewise.
45031
45032 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45033
45034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45035         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45036         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45037         needed.
45038         All uses removed.
45039         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45040         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45041         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45042         needed.
45043         * m4/getdate.m4 (gl_GETDATE): Likewise.
45044         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45045         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45046         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45047         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45048         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45050         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45051         needed.
45052
45053 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45054
45055         * lib/memcasecmp.c: Include <limits.h>.
45056         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45057         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45058         Don't assume isdigit succeeds only on '0' through '9'.
45059
45060 2006-07-05  Eric Blake  <ebb9@byu.net>
45061
45062         * modules/getaddrinfo (Depends-on): Add snprintf.
45063
45064 2006-07-05  Eric Blake  <ebb9@byu.net>
45065
45066         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45067         to avoid 'header present but could not be compiled' on cygwin.
45068
45069 2006-07-05  Eric Blake  <ebb9@byu.net>
45070
45071         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45072         missing from netdb.h.
45073         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45074
45075 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45076
45077         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45078         no longer needed.
45079         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45080         * m4/getdate.m4 (gl_GETDATE): Likewise.
45081         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45082         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45083         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45084         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45086
45087 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45088
45089         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45090         All uses of is_space replaced by isspace.
45091         * lib/exit.h: Don't talk about STDC_HEADERS.
45092         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45093         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45094         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45095         replaced by isprint etc.
45096         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45097         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45098         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45099         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45100         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45101         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45102
45103 2006-07-05  Bruno Haible  <bruno@clisp.org>
45104
45105         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45106         the function exists, before testing against AIX.
45107         Reported by Martin Lambers <marlam@marlam.de>.
45108
45109 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45110
45111         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45112         From Mark D. Baushke.
45113
45114 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45115
45116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45117         to the absolute name, not just one, to bypass Sun C 5.8's
45118         "warning: #include of /usr/include/... may be non-portable".
45119
45120 2006-07-04  Eric Blake  <ebb9@byu.net>
45121
45122         * modules/dirname-tests: New test module.
45123         * tests/test-dirname.c: New file, replacing dirname.c
45124         TEST_DIRNAME section that was recently deleted.
45125
45126 2006-07-04  Bruno Haible  <bruno@clisp.org>
45127
45128         Assume ANSI C header files and <ctype.h> functions.
45129         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45130         (mbsnwidth): Use isprint, iscntrl instead.
45131
45132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45133
45134         Merge from coreutils.
45135         * MODULES.html.sh: Add xstrtold.
45136         * modules/xstrtold: New file.
45137         * modules/cycle-check (Files): Add lib/same-inode.h.
45138         * modules/dirname (Files): Add m4/double-slash-root.m4.
45139         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45140         * modules/mkdir-p (Files): Add lib/same-inode.h.
45141         * modules/same (Files): Add lib/same-inode.h.
45142
45143 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45144
45145         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45146         This is to keep the terminology clean; POSIX talks about
45147         "absolute pathnames", not "full pathnames", but the GNU
45148         Coding Standards say to use "path" for something else;
45149         so use "absolute" to keep both sides happy.
45150         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45151         Set gl_absolute_header, not gl_full_header_path.
45152         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45153         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45154         All uses changed.
45155
45156         Merge from coreutils.
45157
45158         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45159
45160         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45161         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45162         want to require the building of c-strtod.o.
45163         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45164         needs -lm directly.
45165         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45166
45167         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45168
45169         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45170         --as-needed option if available.  Problem reported by Albert Chin in
45171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45172         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45173         cc merely issues a bunch of annoying warnings for --as-needed
45174         (this problem was reported by Bob Proulx).  Also, try linking with
45175         -lm to detect a bug in binutils 2.16 (this problem was reported
45176         by Ralf Wildenhues).
45177
45178         2006-06-18  Jim Meyering  <jim@meyering.net>
45179
45180         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45181         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45182         macro.
45183         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45184         also check for glibc-2.4's abort-inducing bug.
45185
45186         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45187         Low-probability clean-up should be to use rmdir to get rid of
45188         the just-created directory, not unlink.
45189
45190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45191         configure fail, and request a bug report to inform us about it.
45192         Add a comment that, barring reports to the contrary, in 2007 we'll
45193         assume ftruncate is universally available.
45194
45195         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45196
45197         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45198
45199         2006-03-12  Jim Meyering  <jim@meyering.net>
45200
45201         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45202         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45203         * m4/same.m4 (gl_SAME): Likewise.
45204         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45205
45206         2006-03-11  Eric Blake  <ebb9@byu.net>
45207
45208         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45209         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45210         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45211         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45212
45213 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45214
45215         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45216         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45217         reported by Mark D. Baushke, one in
45218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45219
45220         Merge from coreutils.
45221
45222         * lib/.cppi-disable: Add stdint_.h.
45223         * lib/.cvsignore: Add stdint.h.
45224
45225         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45226
45227         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45228         both double and long double versions.
45229         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45230         * lib/xstrtold.c: New file.
45231         * lib/xstrtod.h (xstrtold): New decl.
45232
45233         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45234
45235         * lib/filemode.c (setst): Remove.
45236         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45237         (arguably) clearer, and the generated code is a bit smaller on my
45238         Debian GNU/Linux stable x86 host.
45239
45240         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45241
45242         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45243         Assume that filemode.h includes sys/types.h and sys/stat.h.
45244         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45245         (ftypelet): Reorder to put common cases first, for efficiency.
45246         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45247         to do 'M'.
45248         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45249         of 10, for compatibility with FreeBSD.  All callers changed.
45250         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45251         types that can't be deduced solely from st_mode.  First arg is now a
45252         const pointer.
45253         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45254         (strmode): Renamed from mode_string.
45255         (filemodestring): New decl.
45256         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45257         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45258         needed.
45259         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45260
45261         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45262
45263         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45264         fsusage.h now does that.  Include fsusage.h first, to test interface.
45265         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45266         at most one method (the old code could have generated decls that
45267         didn't conform to C89, not that this was ever exercised).
45268         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45269
45270         2006-03-19  Jim Meyering  <jim@meyering.net>
45271
45272         Work even in a chroot where d_ino values for entries in "/"
45273         don't match the stat.st_ino values for the same names.
45274         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45275         number, iterate through all entries again, using lstat instead.
45276         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45277         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45278
45279         * lib/getcwd.c (__getcwd): Clarify a comment.
45280         Use memcpy in place of a call to strcpy.
45281
45282         2006-03-12  Jim Meyering  <jim@meyering.net>
45283
45284         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45285         matches that of the current directory (which we're about to chdir ".."
45286         out of), then save the dev-ino of the parent, instead.
45287
45288         * lib/same-inode.h (SAME_INODE): New file/macro.
45289         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45290         Include "same-inode.h", instead.
45291         * lib/same.c: Likewise.
45292         * lib/cycle-check.h: Include "same-inode.h".
45293         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45294         * lib/cycle-check.c (SAME_INODE): Remove definition.
45295         * lib/root-dev-ino.h: Include "same-inode.h".
45296
45297         2006-03-11  Eric Blake  <ebb9@byu.net>
45298
45299         * lib/same.c (same_name): s/base_name/last_component/
45300         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45301         * lib/filenamecat.c (file_name_concat): Likewise.
45302
45303         2006-03-11  Eric Blake  <ebb9@byu.net>,
45304                     Paul Eggert  <eggert@cs.ucla.edu>
45305
45306         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45307         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45308         drive prefix.
45309         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45310         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45311         (last_component): New method.
45312         * lib/dirname.c (dir_len): Determine when drive letters need a
45313         subsequent slash.  Preserve // when it is special.
45314         (dir_name): Don't append dot when drive letter is absolute.
45315         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45316         * lib/basename.c (base_name): New semantics - malloc the result.
45317         Preserve // when it is special.  Preserve relative files that look
45318         like drive letters.
45319         (base_len): Preserve // when it is special.
45320         (last_component): New method, similar to old base_name semantics.
45321         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45322         base_name.  Strip redundant slashes from ///.
45323
45324 2006-07-03  Jim Meyering  <jim@meyering.net>
45325
45326         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45327         macro is used before the first cycle_check call.
45328
45329 2006-07-03  Eric Blake  <ebb9@byu.net>
45330
45331         * modules/dirname (Depends-on): Add xstrndup.
45332
45333 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45334
45335         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45336         test cases, so that config.log is a bit easier to follow.
45337
45338 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45339
45340         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45341         both are 64 bits, since this seems to be the tradition, and this
45342         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45343         we ever run into a host that prefers long long to long in this
45344         case, we'll need another configure-time test.  Problem reported by
45345         Jim Meyering.
45346
45347 2006-07-02  Eric Blake  <ebb9@byu.net>
45348
45349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45350
45351 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45352
45353         * modules/inttypes (Depends-on): No longer depends on stdint.
45354         * modules/stdint (Description): Say more about assumptions.
45355         Say that the fast types might differ.  Say macros are used.
45356         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45357         (Makefile.am): Revise list of substituted symbols to match
45358         new stdint.m4.
45359         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45360         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45361         * tests/test-stdint.c (verify_same_types)
45362         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45363         the code conforms to C99/C89.
45364         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45365         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45366
45367 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45368
45369         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45370         but fix a bug, by requiring at least 64 bits.
45371         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45372         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45373         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45374         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45375
45376         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45377         changes.  Make 2.59 a prerequisite.  Check and substitute for
45378         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45379         inttypes.h.  Do not use special include files; just use the
45380         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45381         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45382         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45383         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45384         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45385         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45386         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45387         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45388         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45389         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45390         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45391         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45392         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45393         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45394         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45395         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45396         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45397         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45398         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45399         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45400         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45401         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45402         not check for things that C99 does not require, e.g., int8_t.  If
45403         a test isn't needed unless <stdint.h> isn't working, and is
45404         unlikely to be needed for any other reason, then don't do it
45405         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45406         size_t, since we assume C89 freestanding at least.  Do not check
45407         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45408         the right thing even if the types are not defined.  Instead use:
45409         (gl_STDINT_TYPE_PROPERTIES): New macro.
45410         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45411         testing whether <sys/types.h> clashes, as Autoconf does this for
45412         us now.  All uses removed.
45413         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45414         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45415         (gl_CHECK_TYPE_SAME):
45416         Remove; no longer needed.
45417         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45418         exists, since we'll return 0 anyway in that case.
45419         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45420
45421 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45422
45423         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45424         possible collision with system files.
45425         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45426         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45427         WCHAR_MIN and WCHAR_MAX in this case.
45428         (<stddef.h>): Do not include; no longer needed.
45429         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45430         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45431         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45432         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45433         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45434         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45435         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45436         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45437         !defined(__c99))]: Include in this case too, since it's harmless
45438         now.
45439         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45440         dangerous to do so.
45441         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45442         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45443         (_STDINT_MIN, _STDINT_MAX): New macros.
45444         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45445         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45446         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45447         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45448         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45449         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45450         macros, not typedefs; this simplifies things quite a bit.
45451         Use long int for all types narrower than int64_t.
45452         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45453         Define in terms of long long int or int64_t or long int,
45454         not int64_t or int32_t.  This saves some compile-time testing.
45455         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45456         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45457         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45458         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45459         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45460         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45461         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45462         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45463         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45464         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45465         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45466         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45467         undef any previous version and define our own version, for
45468         simplicity and consistency with the new macros for types.
45469         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45470         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45471         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45472         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45473         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45474         @WINT_T_SUFFIX@ to keep things simple here.
45475         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45476         Simplify by assuming typical 8/16/32/64 host, since we're
45477         already doing that elsewhere anyway.
45478         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45479         and assume long long int is 64 bits if available.  This
45480         speeds up 'configure'.
45481
45482 2006-07-01  Eric Blake  <ebb9@byu.net>
45483
45484         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45485         Reported by Andreas Buening.
45486
45487 2006-07-01  Eric Blake  <ebb9@byu.net>
45488
45489         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45490
45491 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45492
45493         * lib/getaddrinfo.c: fixed typo
45494
45495 2006-06-29  Jim Meyering  <jim@meyering.net>
45496
45497         * modules/strftime (Maintainer): Add my name, since with the
45498         FPRINTFTIME changes strftime.c has forked from glibc.
45499
45500 2006-06-29  Eric Blake  <ebb9@byu.net>
45501
45502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45503
45504 2006-06-29  Eric Blake  <ebb9@byu.net>
45505
45506         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45507
45508 2006-06-29  Eric Blake  <ebb9@byu.net>
45509
45510         * lib/stat_.h: New file.
45511
45512 2006-06-29  Eric Blake  <ebb9@byu.net>
45513
45514         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45515         unused static function.
45516
45517 2006-06-29  Eric Blake  <ebb9@byu.net>
45518
45519         * doc/functions.texi (Function Portability): Document missing lstat
45520         on mingw.
45521
45522 2006-06-29  Eric Blake  <ebb9@byu.net>
45523
45524         * MODULES.html.sh: Add sys_stat.
45525         * modules/sys_stat: New module.
45526         * modules/mkstemp (Depends-on): Add sys_stat.
45527
45528 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45529
45530         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45531
45532 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45533
45534         * m4/c-bs-a.m4: Removed.
45535
45536 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45537
45538         * lib/strftime.c: Assume strftime() exists.
45539
45540 2006-06-29  Derek Price  <derek@ximbiot.com>
45541
45542         * modules/c-bs-a: Removed - \a is C89.
45543         * MODULES.html.sh: Remove c-bs-a.
45544
45545 2006-06-29  Bruno Haible  <bruno@clisp.org>
45546
45547         * modules/wcwidth (License): Change to LGPL.
45548
45549 2006-06-28  Simon Josefsson  <jas@extundo.com>
45550
45551         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45552         on _WIN32.
45553
45554         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45555         getnameinfo.
45556
45557 2006-06-28  Simon Josefsson  <jas@extundo.com>
45558
45559         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45560
45561 2006-06-28  Simon Josefsson  <jas@extundo.com>
45562
45563         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45564         functions there.  It will succeed on Windows XP, but on Windows
45565         2000 and (presumably) earlier, it will fail, and use the internal
45566         re-implementation.
45567         (use_win32_p): New function.
45568         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45569         Support AI_NUMERICSERV to disable getservbyname.
45570         (getnameinfo): New function, only supports
45571         NI_NUMERICHOST|NI_NUMERICSERV for now.
45572
45573         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45574         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45575         getnameinfo.
45576
45577 2006-06-28  Eric Blake  <ebb9@byu.net>
45578
45579         * modules/wcwidth: New file.
45580         * modules/mbchar (Depends-on): Add wcwidth.
45581         * modules/mbswidth (Depends-on): Add wcwidth.
45582         * MODULES.html.sh: Add wcwidth.
45583
45584 2006-06-28  Eric Blake  <ebb9@byu.net>
45585
45586         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45588
45589 2006-06-28  Eric Blake  <ebb9@byu.net>
45590
45591         * lib/xvasprintf.h: Fix comments.
45592
45593 2006-06-28  Eric Blake  <ebb9@byu.net>
45594
45595         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45596         * lib/mbswidth.c (wcwidth): Move from here...
45597         * lib/wcwidth.h: ...to this new file.
45598
45599 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45600
45601         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45602
45603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45604         it's obsolete.
45605         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45606
45607 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45608
45609         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45610         Autoconf 2.60 says this stuff was obsolete.
45611
45612 2006-06-28  Bruno Haible  <bruno@clisp.org>
45613
45614         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45615
45616 2006-06-28  Bruno Haible  <bruno@clisp.org>
45617
45618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45619         gt_TYPE_WCHAR_T.
45620
45621 2006-06-28  Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45624         declaration for wcwidth.
45625         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45626
45627 2006-06-28  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45630         (mkdir): Define using _mkdir.
45631
45632 2006-06-28  Bruno Haible  <bruno@clisp.org>
45633
45634         * lib/getaddrinfo.h: Fix POSIX URL.
45635         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45636         _WIN32.
45637         (use_win32_p): Make static.
45638         (getaddrinfo): Reject service name if it is empty or does not consist
45639         solely of decimal digits, or if its value is > 65535.
45640         (getnameinfo): Remove useless casts.
45641
45642 2006-06-27  Simon Josefsson  <jas@extundo.com>
45643
45644         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45645         Eggert and Martin Lambers.
45646
45647 2006-06-27  Simon Josefsson  <jas@extundo.com>
45648
45649         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45650         Eggert and Martin Lambers.
45651
45652 2006-06-27  Bruno Haible  <bruno@clisp.org>
45653
45654         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45655         result to 0, not to empty.
45656         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45657
45658 2006-06-27  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45661
45662 2006-06-26  Simon Josefsson  <jas@extundo.com>
45663
45664         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45665         present.
45666
45667 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45668
45669         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45670         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45672
45673 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45674
45675         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45676
45677 2006-06-26  Bruno Haible  <bruno@clisp.org>
45678
45679         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45680
45681 2006-06-26  Bruno Haible  <bruno@clisp.org>
45682
45683         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45684
45685 2006-06-26  Bruno Haible  <bruno@clisp.org>
45686
45687         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45688         SGI C compiler in pre-C99 mode.
45689         Suggested by Mark D. Baushke and Larry Jones.
45690
45691 2006-06-26  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45694         WCHAR_MAX.
45695         Reported by Mark D. Baushke and Larry Jones.
45696
45697 2006-06-26  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45700         in pre-C99 mode.
45701         Suggested by Mark D. Baushke and Larry Jones.
45702
45703 2006-06-23  Simon Josefsson  <jas@extundo.com>
45704             Bruno Haible  <bruno@clisp.org>
45705
45706         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45707         Emit mostlyclean-local rule.
45708         (func_emit_tests_Makefile_am): Likewise.
45709         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45710
45711 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45712
45713         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45714
45715 2006-06-23  Bruno Haible  <bruno@clisp.org>
45716
45717         * tests/test-stdint.c: Update to match ISO C 99 Technical
45718         Corrigendum 1.
45719
45720 2006-06-23  Bruno Haible  <bruno@clisp.org>
45721
45722         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45723
45724 2006-06-23  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/stdint_.h: Treat IRIX like OpenBSD.
45727
45728 2006-06-23  Bruno Haible  <bruno@clisp.org>
45729
45730         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45731         ISO C 99 Technical Corrigendum 1.
45732
45733 2006-06-22  Simon Josefsson  <jas@extundo.com>
45734
45735         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45736         MinGW.
45737
45738 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45741         needed.  Some compiler complained about some of them.  Problem reported
45742         by Larry Jones in
45743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45744
45745 2006-06-21  Simon Josefsson  <jas@extundo.com>
45746
45747         * tests/test-getaddrinfo.c: New file.
45748
45749         * modules/getaddrinfo-tests: New file.
45750
45751         * MODULES.html.sh: Add inet_pton.
45752
45753         * modules/inet_pton: New file.
45754
45755 2006-06-21  Simon Josefsson  <jas@extundo.com>
45756
45757         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45758         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45759         of using the (limited) gnulib implementation on Windows XP.
45760
45761         * m4/inet_pton.m4: New file.
45762
45763 2006-06-21  Simon Josefsson  <jas@extundo.com>
45764
45765         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45766         variable.
45767
45768         * lib/socket_.h: Don't define WINVER.
45769
45770         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45771         slightly modified to work in gnulib.
45772
45773 2006-06-21  Simon Josefsson  <jas@extundo.com>
45774
45775         * doc/gnulib.texi (Windows sockets): Add.
45776
45777 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45778
45779         * lib/read-file.c (fread_file): Start with buffer allocation of
45780         0 bytes rather than 1 byte; this simplifies the code.
45781         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45782         code to free buffer and save/restore errno.
45783         (internal_read_file): Remove unused local.
45784
45785 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45786
45787         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45788         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45789         Problem reported by Denis Excoffier in
45790         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45791
45792 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45793
45794         * modules/sys_socket, modules/socklen: Include sys/types since
45795         FreeBSD 4.x's sys/socket.h needs it.
45796
45797 2006-06-19  Simon Josefsson  <jas@extundo.com>
45798
45799         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45800
45801 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45802
45803         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45804
45805 2006-06-19  Bruno Haible  <bruno@clisp.org>
45806
45807         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45808         and FULL_PATH_INTTYPES_H in angle brackets.
45809         Reported by Mark D. Baushke <mdb@gnu.org>.
45810
45811 2006-06-17  Eric Blake  <ebb9@byu.net>
45812
45813         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45814         errno.
45815
45816 2006-06-17  Bruno Haible  <bruno@clisp.org>
45817
45818         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45819         <sys/inttypes.h>.
45820
45821 2006-06-17  Bruno Haible  <bruno@clisp.org>
45822
45823         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45824         whether errno is declared. Assume <errno.h> declares errno.
45825
45826 2006-06-17  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45829
45830 2006-06-17  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45833         problem on Solaris 2.5.1.
45834
45835 2006-06-16  Eric Blake  <ebb9@byu.net>
45836
45837         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45838         * lib/unicodeio.c [!defined errno]: Likewise.
45839         * lib/strtol.c [!defined errno]: Likewise.
45840         * lib/strtod.c [!defined errno]: Likewise.
45841
45842 2006-06-15  Eric Blake  <ebb9@byu.net>
45843
45844         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45845
45846 2006-06-15  Eric Blake  <ebb9@byu.net>
45847
45848         * config/srclist.txt (ssize_t.m4): Lose sync.
45849
45850 2006-06-15  Bruno Haible  <bruno@clisp.org>
45851
45852         * modules/stdint (Files): Include m4/full-header-path.m4,
45853         m4/size_max.m4, m4/wchar_t.m4.
45854         (Makefile.am): Many more substitutions.
45855         * modules/stdint-tests: New file.
45856         * tests/test-stdint.c: New file.
45857
45858 2006-06-15  Bruno Haible  <bruno@clisp.org>
45859
45860         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45861         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45862         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45863         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45864         gl_CHECK_TYPE_SAME): New macros.
45865
45866 2006-06-15  Bruno Haible  <bruno@clisp.org>
45867
45868         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45869
45870 2006-06-15  Bruno Haible  <bruno@clisp.org>
45871
45872         * lib/stdint_.h: Rewritten to be fully auto-configured.
45873         Fixes bug on HP-UX/IA64.
45874
45875 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45876
45877         * lib/getdate.y (__attribute__): Don't define if already defined.
45878         Problem reported by Larry Jones.
45879         * lib/utimens.c (__attribute__): Likewise.
45880
45881 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45884         reported by Andreas Schwab.
45885
45886 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45887             Bruno Haible  <bruno@clisp.org>
45888
45889         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45890         check for the declaration of strnlen and a run test that exposes the
45891         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45892         rpl_strndup.
45893
45894 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45895             Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45898
45899 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45900
45901         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45902         compile test, for Tru64 4.0D.
45903
45904 2006-05-28  Karl Berry  <karl@gnu.org>
45905
45906         * config/srclist.txt (printf-args.c): lose sync.
45907
45908 2006-05-26  Martin Lambers  <marlam@marlam.de>
45909
45910         * lib/getpass.c: Updates the test for the native W32 API, and adds
45911         missing includes, thus fixing compilation warnings.
45912
45913 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45914
45915         * lib/exclude.c (exclude_fnmatch): New function.
45916         (excluded_file_name): Call exclude_fnmatch.
45917         * lib/exclude.h (excluded_file_name): New prototype
45918
45919 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45920
45921         * lib/tempname.c (small_open, large_open): New macros.
45922         (__open, __open64) [!_LIBC]: Remove.
45923         (__gen_tempname): Use small_open and large_open instead of __open
45924         and __open64.  This fixes a portability bug on HP-UX 11.11i
45925         reported by Simon Wing-Tang in
45926         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45927
45928 2006-05-24  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45931         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45932         Reported by Thorsten Maerz <torte@netztorte.de> via
45933         Aaron Stone <aaron@serendipity.cx>.
45934
45935 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45936
45937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45938         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45939         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45940         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45941         not really conditional on the cache.
45942         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45943
45944 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45947         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45948         (my_usleep): Don't mishandle maximum value.
45949
45950 2006-05-19  Jim Meyering  <jim@meyering.net>
45951
45952         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45953
45954 2006-05-17  Bruno Haible  <bruno@clisp.org>
45955
45956         Cygwin portability.
45957         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45958
45959 2006-05-17  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/stdint_.h: Fix recognition of Cygwin.
45962
45963 2006-05-15  Bruno Haible  <bruno@clisp.org>
45964
45965         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45966         on libtool patch by Ralf Wildenhues.
45967
45968 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45969
45970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45971         test for C99 conformance; (bool) 0.5 is an integer constant
45972         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45973         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45974
45975 2006-05-11  Simon Josefsson  <jas@extundo.com>
45976
45977         * m4/xvasprintf.m4: Fix obvious typo.
45978
45979 2006-05-11  Jim Meyering  <jim@meyering.net>
45980
45981         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45982         James Lemley.
45983
45984 2006-05-10  Simon Josefsson  <jas@extundo.com>
45985
45986         * lib/md4.c: Typo fix, update copyright years.
45987         (K1, K2): Don't use L because it turn computations into 64-bit on
45988         64-bit platforms.
45989
45990 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45991
45992         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45993         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45994         unwanted sign propagation, e.g., on hosts with 64-bit int.
45995         There still are some problems with reeelly weird theoretical hosts
45996         (e.g., 33-bit int) but it's not worth worrying about now.
45997         * lib/sha1.c (rol): Likewise.
45998         (K1, K2, K3, K4): Remove unnecessary L suffix.
45999
46000 2006-05-10  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/des.c: Cast to avoid warnings.
46003
46004 2006-05-09  Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46007         (Depends-on): Depend also on xsize, stdarg.
46008         (configure.ac): Add gl_XVASPRINTF.
46009
46010 2006-05-09  Bruno Haible  <bruno@clisp.org>
46011
46012         * m4/xvasprintf.m4: New file.
46013
46014 2006-05-09  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46017         (EOVERFLOW): Define fallback value.
46018         (xstrcat): New function.
46019         (xvasprintf): Recognize the special case of a string concatenation.
46020
46021 2006-05-08  Eric Blake  <ebb9@byu.net>
46022
46023         * gnulib-tool (func_version): Base copyright year on CVS date.
46024         (func_emit_copyright_notice): New function.
46025         (func_emit_lib_Makefile_am): Use it.
46026         (func_emit_tests_Makefile_am): Likewise.
46027         (func_import): Likewise.
46028
46029 2006-05-08  Bruno Haible  <bruno@clisp.org>
46030
46031         * modules/stdarg: New file.
46032         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46033
46034 2006-05-08  Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/stdarg.m4: New file, from GNU gettext.
46037
46038 2006-05-08  Bruno Haible  <bruno@clisp.org>
46039
46040         * config/srclist.txt (build-aux/config.rpath): different from latest
46041         release.
46042
46043 2006-05-08  Bruno Haible  <bruno@clisp.org>
46044
46045         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46046
46047 2006-05-05  Jim Meyering  <jim@meyering.net>
46048
46049         * m4/warning.m4: New file, derived from bison's file by the same name.
46050
46051 2006-05-03  Bruno Haible  <bruno@clisp.org>
46052
46053         * lib/stdint_.h: Shorter URL.
46054         * lib/inttypes.h: Likewise.
46055
46056 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46057
46058         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46059
46060 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46061
46062         * lib/verify.h: Document the internals better.  Most of this change
46063         was written by Bruno Haible.
46064
46065 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         * doc/verify.texi: New file, partly based on a proposal by
46068         Bruno Haible.
46069
46070 2006-05-02  Bruno Haible  <bruno@clisp.org>
46071
46072         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46073         test from here...
46074         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46075
46076 2006-04-29  Bruno Haible  <bruno@clisp.org>
46077
46078         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46079         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46080
46081 2006-04-29  Bruno Haible  <bruno@clisp.org>
46082
46083         * gnulib-tool: Make --update option actually work.
46084
46085 2006-04-29  Bruno Haible  <bruno@clisp.org>
46086
46087         * doc/gcd.texi: New file.
46088         * doc/gnulib.texi: Include it.
46089
46090 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46091
46092         * lib/getdate.y (get_date): When adding relative date, start with the
46093         initial time, not with the result of the first mktime call.
46094
46095 2006-04-25  Bruno Haible  <bruno@clisp.org>
46096
46097         * gnulib-tool (func_import): Output the include directives in three
46098         blocks, sorted separately.
46099         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46100
46101 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46102
46103         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46104         to define main with arguments, for C++.  Reported by Eric Blake.
46105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46106         Prefer 'int main ()' to 'int main (void)', for C++.
46107         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46108         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46109         for 'main', for C99 and C++.
46110
46111 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46112
46113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46114         Don't assume that exit status -1 is valid.
46115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46116         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46117         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46118         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46119         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46120         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46121         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46122         functions can be used without declaring them, or that you can
46123         exit with status -1.
46124         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46125
46126 2006-04-24  Karl Berry  <karl@gnu.org>
46127
46128         * config/srclist.txt (longdouble.m4): sync lost.
46129
46130 2006-04-24  Eric Blake  <ebb9@byu.net>
46131
46132         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46133
46134 2006-04-24  Bruno Haible  <bruno@clisp.org>
46135
46136         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46137         poll() implementation in AIX.
46138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46139
46140 2006-04-24  Bruno Haible  <bruno@clisp.org>
46141
46142         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46143         assigned exactly once.
46144
46145 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46146             Bruno Haible  <bruno@clisp.org>
46147
46148         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46149         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46150         for AM_CPPFLAGS.
46151
46152 2006-04-23  Bruno Haible  <bruno@clisp.org>
46153
46154         * modules/copy-file: Depend on unistd.
46155         * modules/execute: Likewise.
46156         * modules/fatal-signal: Likewise.
46157         * modules/findprog: Likewise.
46158         * modules/mkdtemp : Likewise.
46159         * modules/pipe: Likewise.
46160         * modules/wait-process: Likewise.
46161
46162 2006-04-23  Bruno Haible  <bruno@clisp.org>
46163
46164         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46165         condition was already detected.
46166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46167
46168 2006-04-23  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/copy-file.c: Include <unistd.h> unconditionally.
46171         * lib/execute.c: Likewise.
46172         * lib/fatal-signal.c: Likewise.
46173         * lib/findprog.c: Likewise.
46174         * lib/mkdtemp.c: Likewise.
46175         * lib/pipe.h: Likewise.
46176         * lib/pipe.c: Likewise.
46177         * lib/wait-process.h: Likewise.
46178
46179 2006-04-23  Bruno Haible  <bruno@clisp.org>
46180
46181         * gnulib-tool (func_usage): Fix --import description. Document
46182         --update.
46183         (func_import): Create temporary file in a temporary directory, if
46184         --dry-run is specified. Silence errors from 'grep' when there are no
46185         m4 files in $m4dir.
46186         (func_create_testdir): Silence errors from 'grep' when there are no
46187         m4 files in $m4dir.
46188         Reported by Karl Berry <karl@freefriends.org>.
46189
46190 2006-04-20  Bruno Haible  <bruno@clisp.org>
46191
46192         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46193         one argument, so that the code will be portable to Autoconf 2.60.
46194         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46196         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46197
46198 2006-04-19  Derek Price  <derek@ximbiot.com>
46199             Eric Blake  <ebb9@byu.net>
46200
46201         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46202         rather than "/full/path.h".  Update comment to match.  Shorten &
46203         generalize m4_translit call via AS_TR_CPP.
46204
46205 2006-04-19  Derek Price  <derek@ximbiot.com>
46206             Eric Blake  <ebb9@byu.net>
46207
46208         * lib/inttypes.h: Correct grammar in comment.
46209
46210 2006-04-18  Derek Price  <derek@ximbiot.com>
46211             Paul Eggert  <eggert@cs.ucla.edu>
46212
46213         * modules/inttypes: New file.
46214         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46215
46216 2006-04-18  Derek Price  <derek@ximbiot.com>
46217             Paul Eggert  <eggert@cs.ucla.edu>
46218
46219         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46220         New files.
46221
46222 2006-04-18  Derek Price  <derek@ximbiot.com>
46223             Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         * lib/inttypes.h: New file.
46226         * lib/strtoimax.c: Assume <inttypes.h>.
46227
46228 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46229
46230         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46231         isn't mounted.  Problem reported by Kir Kolyshkin.
46232
46233 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46234
46235         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46236         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46237         Derek R. Price.
46238         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46239         implementation.
46240
46241 2006-04-12  Eric Blake  <ebb9@byu.net>
46242
46243         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46244         is now done automatically by the corresponding Autoconf macro.
46245
46246 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46249         time_r.h.
46250
46251 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46252
46253         Merge regex changes from libc, removing some of our
46254         POSIX-conformance changes that were rejected and redoing them in a
46255         less-intrusive way.
46256
46257         * lib/regcomp.c (re_compile_internal, init_dfa):
46258         Length arg is now size_t, not Idx.  All uses changed.
46259         (peek_token): Forward decl now says internal_function.
46260         (__re_error_msgid, __re_error_msgid_idx):
46261         Now static rather than extern with attribute_hidden.
46262         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46263         For some reason libc prefers K&R style defns for external functions.
46264         (regerror) [!defined _LIBC]: Likewise.
46265         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46266         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46267         (build_range_exp, build_collating_symbol):
46268         Use K&R-style defn.
46269         (re_compile_fastmap): Use '\0' to memset, not 0.
46270         (utf8_sb_map): Make the calculations more obvious.
46271         (init_dfa, parse_bracket_exp, build_charclass_op):
46272         Call calloc and cast result, as glibc does.
46273         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46274         (build_range_exp, build_collating_symbol):
46275         Now internal functions.
46276
46277         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46278
46279         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46280         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46281         Don't depend on VMS; depend on __VMS instead, for POSIX
46282         namespace cleanness.
46283         (regoff_t): Define to ssize_t, not long int.
46284
46285         Remove the REG_ macros named below.  Instead, make the old names
46286         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46287         __USE_GNU_REGEX.
46288         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46289         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46290         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46291         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46292         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46293         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46294         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46295         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46296         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46297         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46298         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46299         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46300         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46301         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46302         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46303         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46304         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46305         (REG_NREGS):
46306         Remove.  All uses replaced by the old RE_* names.
46307         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46308         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46309         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46310         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46311         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46312         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46313         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46314         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46315         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46316         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46317         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46318         Don't bother having these macros be independent of each others'
46319         values, since they no longer exist in the POSIX name space.
46320
46321         Rename the following member names back to their old names,
46322         unless !__USE_GNU_REGEX.  All uses changed back.
46323         (buffer): Renamed from re_buffer.
46324         (allocated): Renamed from re_allocated.
46325         (used): Renamed from re_used.
46326         (syntax): Renamed from re_syntax.
46327         (fastmap): Renamed from re_fastmap.
46328         (translate): Renamed from re_translate.
46329         (can_be_null): Renamed from re_can_be_null.
46330         (regs_allocated): Renamed from re_regs_allocated.
46331         (fastmap_accurate): Renamed from re_fastmap_accurate.
46332         (no_sub): Renamed from re_no_sub.
46333         (not_bol): Renamed from re_not_bol.
46334         (not_eol): Renamed from re_not_eol.
46335         (newline_anchor): Renamed from re_newline_anchor.
46336         (num_regs): Renamed from rm_num_regs.
46337         (start): Renamed from rm_start.
46338         (end): Renamed from rm_end.
46339
46340         (free_state): Move up a bit.
46341
46342         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46343         #define to be empty.
46344         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46345         when that is what is intended.
46346         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46347         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46348         (MAX): New macro.
46349         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46350         All uses changed back to re_malloc, etc.  It's now the caller's
46351         responsibility to check for overflow; all callers changed.
46352         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46353         (re_x2nrealloc): Remove.
46354         (free_state): Remove decl.
46355
46356         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46357         (re_set_registers, re_exec):
46358         Use K&R-style defn.
46359
46360         2006-01-31  Roland McGrath  <roland@redhat.com>
46361
46362         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46363         Reported by Mike Frysinger <vapier@gentoo.org>.
46364
46365         2006-01-15  Andreas Jaeger  <aj@suse.de>
46366
46367         [BZ #1950]
46368         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46369         build_wcs_upper_buffer change.
46370         (build_wcs_upper_buffer): Change return type.
46371
46372         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46373
46374         * lib/regex_internal.h: Include <stdint.h> if available.
46375
46376         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46377
46378         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46379
46380         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46381
46382         * lib/regcomp.c: Adjust for changed secondary hash function.
46383
46384         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46385
46386         * lib/regex.h: Pretty printing.
46387         Clean up namespace a bit.
46388
46389         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46390
46391         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46392         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46393
46394         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46395                     Ulrich Drepper  <drepper@redhat.com>
46396
46397         [BZ #1302]
46398         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46399         changed.
46400         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46401
46402         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46403
46404         [BZ #281]
46405         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46406         * lib/regcomp.c: Remove unnecessary uses of
46407         unsigned RE_TRANSLATE_TYPE.
46408         * lib/regex_internal.h: Likewise.
46409         * lib/regex_internal.c: Likewise.
46410         * lib/regexec.c: Likewise.
46411         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46412
46413         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46414
46415         * lib/regexec.c (find_recover_state): Remove unnecessary
46416         initialization.
46417         (transit_state_bkref): Make DFA a const pointer.
46418         (get_subexp): Likewise.
46419         (check_arrival): Likewise.
46420         (update_cur_sifted_state): Likewise.
46421         (re_search_internal): Likewise.
46422         (prune_impossible_nodes): Likewise.
46423         (acquire_init_state_context): Likewise.
46424         (proceed_next_node): Likewise.
46425         (set_regs): Likewise.
46426         (free_fail_stack_return): Likewise.
46427         (check_arrival_expand_ecl): Mark DFA parameter as const.
46428         (check_arrival_expand_ecl_sub): Likewise.
46429         (check_subexp_limits): Likewise.
46430         (sub_epsilon_src_nodes):  Likewise.
46431         (add_epsilon_src_nodes):  Likewise.
46432         (merge_state_array): Likewise.
46433         (update_regs): Likewise.
46434         (build_trtable): Likewise.
46435         (sift_states_backward): Mark MCTX parameter as const.
46436         (build_sifted_states): Likewise.
46437         (update_cur_sifted_state): Likewise.
46438         (sift_states_mkref): Likewise.
46439         (check_arrival_expand_ecl): Mark eclosure as const.
46440         (check_dst_limits_calc_pos_1): Likewise.
46441         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46442         pointer.
46443
46444         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46445
46446         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46447         (transit_state_sb): Likewise.
46448         (transit_state_mb): Likewise.
46449         (sift_states_iter_mb): Likewise.
46450         (check_arrival_add_next_nodes): Likewise.
46451         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46452         [_LIBC] (re_search_2_stub): Use mempcpy.
46453
46454         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46455         mbrtowc for very simple UTF-8 case.
46456
46457         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46458         a pointer-to-const.
46459         (re_acquire_state_context): Likewise.
46460         * lib/regex_internal.h: Adjust prototypes.
46461
46462         * lib/regex.c: Prevent using C++ compilers.
46463
46464         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46465         (re_acquire_state_context): Likewise.
46466
46467 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * modules/regex (Depends-on): Add ssize_t.
46470
46471 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46472
46473         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46474         translation table.
46475
46476 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46477
46478         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46479
46480 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46481             Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46484         <sys/types.h> and <inttypes.h>.
46485
46486 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46487
46488         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46489         `__error_t_defined', so argp.h will not typedef the former.
46490
46491 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46494         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46495         glibc names.  Even if glibc is changed to conform to POSIX, the
46496         traditional names will be available anyway, since regex depends on
46497         the extensions module.  Also, fix a longstanding typo in the
46498         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46499         reported by Emanuele Giaquinta.  Also, change sense of cached
46500         variable, so that the message makes sense.
46501
46502 2006-03-24  Simon Josefsson  <jas@extundo.com>
46503
46504         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46505         including some doc fixes.
46506         (base64_encode_alloc): Fix +1 bug on allocation failures.
46507
46508 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46509
46510         * lib/base64.c (base64_encode): Do not read past end of array with
46511         unsanitized input on systems with CHAR_BIT > 8.
46512
46513 2006-03-24  Eric Blake  <ebb9@byu.net>
46514
46515         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46516
46517 2006-03-22  Karl Berry  <karl@gnu.org>
46518
46519         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46520         * config/srclistvars.sh (COREUTILS): new var.
46521
46522 2006-03-17  Jim Meyering  <jim@meyering.net>
46523
46524         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46525         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46526
46527 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46528
46529         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46530         no longer needs it.  Instead, check that regoff_t is as least
46531         as wide as ptrdiff_t.
46532
46533         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46534         so that our regex.h stays compatible with the installed regex.
46535         This is helpful for installers who configure --without-included-regex.
46536         Problem reported by Emanuele Giaquinta.
46537
46538 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46541         Typedef to long int, not to off_, as POSIX will likely change
46542         in that direction.
46543
46544 2006-03-15  Eric Blake  <ebb9@byu.net>
46545
46546         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46547
46548 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46549
46550         * lib/argp-help.c (validate_uparams): Fix typo
46551         * lib/argp-parse.c (argp_default_options): Consistently begin help
46552         messages with a lowercase letter.
46553
46554 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46557         overrun buffers and shouldn't be used (much as gets shouldn't be
46558         used).
46559         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46560
46561 2006-03-08  Simon Josefsson  <jas@extundo.com>
46562
46563         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46564         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46565
46566 2006-03-08  Simon Josefsson  <jas@extundo.com>
46567
46568         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46569         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46570
46571 2006-03-08  Simon Josefsson  <jas@extundo.com>
46572
46573         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46574         signal that configure disabled the device.
46575
46576 2006-03-08  Simon Josefsson  <jas@extundo.com>
46577
46578         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46579         languages.
46580
46581 2006-03-07  Simon Josefsson  <jas@extundo.com>
46582
46583         * modules/getopt (Depends-on): Add unistd.
46584
46585         * modules/unistd: New file.
46586
46587 2006-03-07  Simon Josefsson  <jas@extundo.com>
46588
46589         * modules/gc-random: New file.
46590
46591 2006-03-07  Simon Josefsson  <jas@extundo.com>
46592
46593         * m4/unistd_h.m4: New file.
46594
46595 2006-03-07  Simon Josefsson  <jas@extundo.com>
46596
46597         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46598         test to be side-effect free by storing the result in the cache
46599         variable gl_cv_lib_readline, and moving the assignment of
46600         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46601         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46602
46603 2006-03-07  Simon Josefsson  <jas@extundo.com>
46604
46605         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46606         error on missing devices (the functions will return an error).
46607
46608         * m4/gc.m4: Move random stuff to gc-random.m4
46609
46610 2006-03-07  Simon Josefsson  <jas@extundo.com>
46611
46612         * lib/unistd_.h: New file.
46613
46614 2006-03-07  Simon Josefsson  <jas@extundo.com>
46615
46616         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46617
46618 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46619
46620         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46621         Problem reported by Juan Manuel Guerrero.
46622
46623 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46624
46625         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46626         the unistd module.
46627         * lib/getlogin_r.c: Likewise.
46628         * lib/getlogin_r.h: Likewise.
46629         * lib/glob.c: Likewise.
46630         * lib/pagealign_alloc.c: Likewise.
46631         * lib/unistd_.h: Remove; no longer needed.
46632
46633 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46634
46635         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46636         Add unistd.
46637         * modules/c-stack (Depends-on): Add unistd.
46638         * modules/getlogin_r: Likewise.
46639         * modules/glob: Likewise.
46640         * modules/pagealign_alloc: Likewise.
46641         * modules/unistd (Files): Remove lib/unistd_.h.
46642         (EXTRA_DIST): Remove.
46643         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46644         need unistd_.h.
46645         (MOSTLYCLEANFILES): Remove unistd.h-t.
46646
46647 2006-03-03  Simon Josefsson  <jas@extundo.com>
46648
46649         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46650
46651 2006-03-03  Simon Josefsson  <jas@extundo.com>
46652
46653         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46654         libidn and bison.
46655
46656 2006-03-03  Simon Josefsson  <jas@extundo.com>
46657
46658         * build-aux/maint.mk: Add indent target.
46659
46660 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46661
46662         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46663         our replacement poll.h in any case, to avoid a differing
46664         declaration from a system header.  Seen on AIX.
46665
46666 2006-03-01  Simon Josefsson  <jas@extundo.com>
46667
46668         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46669         <kasal@ucw.cz>.
46670
46671 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46672
46673         * modules/gettime (Depends-on): Add extensions module.
46674         * modules/nanosleep (Depends-on): Likewise.
46675         * modules/settime (Depends-on): Likewise.
46676
46677 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46680         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46681         pedantically.
46682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46683         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46684
46685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46686         not "==".  Reported by Ralf Wildenhues.
46687
46688 2006-03-01  Karl Berry  <karl@gnu.org>
46689
46690         * doc/Copyright/request-*: new files, synced from gnuorg.
46691
46692 2006-03-01  Karl Berry  <karl@gnu.org>
46693
46694         * config/srclist.txt (Copyright/*): new entries.
46695
46696 2006-02-28  Simon Josefsson  <jas@extundo.com>
46697
46698         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46699
46700 2006-02-27  Simon Josefsson  <jas@extundo.com>
46701
46702         * lib/base64.h: Indent #define's.  From Jim Meyering
46703         <jim@meyering.net>.
46704
46705 2006-02-27  Jim Meyering  <jim@meyering.net>
46706
46707         Revert the change of 2006-02-24, so these files can continue
46708         to be sync'd from gettext.
46709         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46710         of `config.h'.
46711
46712 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46713
46714         * modules/intprops: New file.
46715         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46716         Add intprops.
46717         * modules/getloadavg (Files): Remove lib/intprops.h.
46718         (Depends-on): Add intprops.
46719         * modules/human: Likewise.
46720         * modules/inttostr: Likewise.
46721         * modules/openat: Likewise.
46722         * modules/sig2str: Likewise.
46723         * modules/userspec: Likewise.
46724         * modules/utimecmp: Likewise.
46725         * modules/xnanosleep: Likewise.
46726         * modules/xstrtol: Likewise.
46727
46728 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46729
46730         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46731         * modules/lock-tests (TESTS): Use $(EXEEXT).
46732         * modules/tls-tests: Likewise.
46733         * modules/argp-tests: Likewise.
46734         (check_PROGRAMS): New var, replacing...
46735         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46736
46737 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46738
46739         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46740         `config.h'.
46741
46742 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46743
46744         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46745
46746 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46747
46748         Sync from coreutils.
46749         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46750         gl_CHDIR_SAFER.
46751
46752 2006-02-22  Jim Meyering  <jim@meyering.net>
46753
46754         Sync from coreutils.
46755         * m4/chdir-safer.m4: New file.
46756
46757 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46758
46759         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46760         AT_FDCWD exceeds INT_MAX.
46761         * lib/openat.h (AT_FDCWD): Likewise.
46762
46763 2006-02-17  Eric Blake  <address@hidden>
46764
46765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46766
46767 2006-02-16  Simon Josefsson  <jas@extundo.com>
46768
46769         * modules/getaddrinfo (Depends-on): Add sys_socket.
46770
46771 2006-02-15  Simon Josefsson  <jas@extundo.com>
46772
46773         * build-aux/maint.mk: Add dsyntax-check rule.
46774
46775 2006-02-15  Eric Blake  <ebb9@byu.net>
46776
46777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46778         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46779         'present but cannot compile' warnings on cygwin.
46780         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46781         use ws2tcpip.h if sys/socket.h works.
46782         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46783         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46784
46785 2006-02-14  Simon Josefsson  <jas@extundo.com>
46786
46787         * modules/maintainer-makefile (Files): Rename.
46788
46789         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46790         and (the local) Makefile.cfg to maint-cfg.mk.
46791
46792         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46793         to the latter.
46794
46795         * modules/maintainer-makefile: New module.
46796
46797         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46798         severaly stripped to make it possible to build it up from scratch
46799         with reliable tests.
46800
46801         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46802         fixes to permit overriding the default actions when configure and
46803         makefile are not available.
46804
46805 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46806
46807         Sync from coreutils.
46808         * modules/lstat (Depends-on): Don't depend on xalloc.
46809         (License): Change from GPL to LGPL, since this is now simply a
46810         replacement for a libc function.
46811
46812 2006-02-14  Jim Meyering  <jim@meyering.net>
46813
46814         Sync from coreutils.
46815
46816         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46817         failure on deficient systems, and simplify gnulib lgpl dependencies.
46818         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46819         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46820
46821         * lib/xalloc-die.c: Remove unused definition of N_.
46822
46823 2006-02-14  Jim Meyering  <jim@meyering.net>
46824
46825         Sync from coreutils.
46826         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46827         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46828         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46829         double-quote uses of that variable, to accommodate the rare case in
46830         which getmntent is available in none of the libraries checked.  This
46831         happens at least on FreeBSD 5.0.
46832
46833 2006-02-13  Simon Josefsson  <jas@extundo.com>
46834
46835         * gnulib-tool (Usage): Fix --import, from
46836         karl@freefriends.org (Karl Berry).
46837
46838 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46839
46840         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46841
46842 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46843
46844         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46845         "autoupdate" on 2005-12-12.
46846
46847 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46848
46849         * modules/closeout (Depends-on): Remove atexit.
46850
46851 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46852
46853         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46854         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46855
46856 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46857
46858         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46859         __EXTENSIONS__ if this causes compilation to fail.  Problem
46860         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46861         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46862
46863 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46866         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46867         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46868         All uses changed.
46869
46870 2006-01-26  Simon Josefsson  <jas@extundo.com>
46871
46872         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46873         prototype is visible on mingw32.
46874
46875         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46876         for mingw32.
46877
46878         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46879         mingw32).
46880
46881 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46882
46883         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46884         attempt to open for write; this always fails, at least on POSIX
46885         hosts.  This reinstates the 2006-01-09 change, which was
46886         inadvertently removed.
46887
46888 2006-01-26  Bruno Haible  <bruno@clisp.org>
46889
46890         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46891         Reported by Paul Eggert.
46892
46893 2006-01-26  Bruno Haible  <bruno@clisp.org>
46894             Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/stdbool_.h (_Bool)
46897         [(! (defined __cplusplus || defined __BEOS__)
46898           && !defined __GNUC__
46899           && !(defined __HP_cc || defined __xlc__
46900                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46901                || defined __sgi))]:
46902         #define to signed char in these cases too; this simplifies
46903         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46904         etc., separately) and makes it more conservative.
46905
46906 2006-01-25  Simon Josefsson  <jas@extundo.com>
46907
46908         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46909         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46910         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46911
46912 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46913
46914         * lib/argp-namefrob.h: Bugfix. Remove stray #
46915
46916 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46917
46918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46919         so that we test the test.
46920         Check for yet another HP-UX cc bug involving *bool |= bool.
46921
46922 2006-01-25  Karl Berry  <karl@gnu.org>
46923
46924         * config/srclist.txt (vasnprintf.c): sync lost.
46925
46926 2006-01-25  Jim Meyering  <jim@meyering.net>
46927
46928         Sync from the stable (b5) branch of coreutils:
46929
46930         * lib/fts.c (fts_children): Don't let close() clobber errno from
46931         failed fchdir().
46932
46933         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46934         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46935         a dangling symlink.  That can also happen at least for ELOOP.
46936         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46937         FYI, this bug predates the inclusion of fts.c in coreutils.
46938
46939         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46940         in their own block, so pre-c99 compilers don't object.
46941
46942         Avoid the double-free (first in fts_read, second in fts_close) that
46943         would occur when an `active' directory is made inaccessible (e.g.,
46944         via chmod a-x) during a traversal.
46945         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46946         before returning.  Reproduce this failure by
46947         mkdir -p a/b; cd a; chmod a-x . b
46948         Reported by Stavros Passas.
46949
46950 2006-01-25  Jim Meyering  <jim@meyering.net>
46951
46952         * lib/fileblocks.c: Remove more useless parentheses.
46953         * lib/readutmp.h: Likewise.
46954
46955 2006-01-25  Bruno Haible  <bruno@clisp.org>
46956
46957         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46958         warnings.
46959         Reported by Paul Eggert.
46960
46961 2006-01-25  Bruno Haible  <bruno@clisp.org>
46962
46963         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46964         rid of a trap command. For Solaris sh.
46965         Reported by Mark D. Baushke <mdb@gnu.org>.
46966
46967 2006-01-24  Simon Josefsson  <jas@extundo.com>
46968
46969         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46970         Bruno.
46971
46972 2006-01-24  Karl Berry  <karl@gnu.org>
46973
46974         * config/srclist.txt (argp-namefrob.h): sync lost.
46975
46976 2006-01-24  Jim Meyering  <jim@meyering.net>
46977
46978         * modules/openat (Files): Add lib/intprops.h.
46979         From Mark D. Baushke.
46980
46981 2006-01-24  Jim Meyering  <jim@meyering.net>
46982
46983         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46984         Reported by Mark D. Baushke.
46985
46986 2006-01-24  Jim Meyering  <jim@meyering.net>
46987
46988         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46989
46990 2006-01-24  Bruno Haible  <bruno@clisp.org>
46991
46992         * modules/strnlen (Maintainer): Change from glibc to all.
46993
46994 2006-01-24  Bruno Haible  <bruno@clisp.org>
46995
46996         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46997         Patch by Paul Eggert.
46998
46999 2006-01-24  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47002         already has it.
47003         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47004         2005-11-26.
47005
47006         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47007         'signed char' to avoid problems with the built-in _Bool type.
47008         Reported by Paul Eggert on 2005-11-26.
47009
47010 2006-01-24  Bruno Haible  <bruno@clisp.org>
47011
47012         * gnulib-tool (func_import): Avoid constructing complicated sed
47013         expressions inside backquote.
47014         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47015
47016 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47017
47018         These changes imported from libc.
47019         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47020         test and two separate function calls.
47021         * lib/strndup.c (__strndup): Add libc_hidden_def.
47022
47023 2006-01-23  Simon Josefsson  <jas@extundo.com>
47024
47025         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47026         Remove the test_*_SOURCES variable: automake infers it by default.
47027         * modules/tls-tests: Likewise.
47028
47029 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47030
47031         Work around porting bugs reported by Dieter in
47032         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47033         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47034         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47035         Include "getopt.h" first, to check interface.
47036         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47037         !HAVE_DECL_GETENV.
47038         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47039         (__strndup): Revert to K&R-style function dfns, the glibc style.
47040         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47041         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47042         Include strnlen.h first, to get prototype properly.
47043         (strnlen): Renamed from __strnlen.
47044         Remove weak alias.
47045
47046 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47047
47048         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47049
47050 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47051
47052         * config/srclist.txt: Adjust to reflect glibc reorganization.
47053         This affects only comments.
47054
47055 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47056
47057          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47058          Reported by Bruce Korb <bkorb@gnu.org>.
47059
47060 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47061
47062         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47063         to pacify gcc -Wswitch-default.
47064
47065 2006-01-22  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47068         temporary buffer for sprintf, take into account the precision also
47069         for 'd', 'i', 'u', 'o', 'x', 'X'.
47070
47071 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47072
47073         * modules/argp-tests: New module
47074         * tests/test-argp.c: New file
47075         * tests/test-argp-2.sh: New file
47076
47077 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47078
47079         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47080         (__argp_base_name): Removed
47081         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47082         typo.
47083         (__argp_base_name): Provide macro definition or extern declaration
47084         depending on the configuration
47085
47086 2006-01-20  Simon Josefsson  <jas@extundo.com>
47087
47088         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47089
47090 2006-01-20  Simon Josefsson  <jas@extundo.com>
47091
47092         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47093
47094 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47095
47096         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47097         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47098         Suggested by Bruno Haible.
47099
47100 2006-01-20  Karl Berry  <karl@gnu.org>
47101
47102         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47103         until changes propagate, I guess.
47104
47105 2006-01-19  Simon Josefsson  <jas@extundo.com>
47106
47107         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47108
47109 2006-01-19  Simon Josefsson  <jas@extundo.com>
47110
47111         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47112
47113 2006-01-19  Simon Josefsson  <jas@extundo.com>
47114
47115         * gnulib-tool: Set check_PROGRAMS.
47116
47117         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47118         modules/des-tests, modules/gc-arcfour-tests,
47119         modules/gc-arctwo-tests, modules/gc-des-tests,
47120         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47121         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47122         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47123         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47124         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47125         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47126         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47127         test_*_SOURCES.
47128
47129 2006-01-18  Simon Josefsson  <jas@extundo.com>
47130
47131         * modules/socklen (Depends-on): Depend on sys_socket.
47132
47133 2006-01-18  Simon Josefsson  <jas@extundo.com>
47134
47135         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47136         modules/des-tests, modules/gc-arcfour-tests,
47137         modules/gc-arctwo-tests, modules/gc-des-tests,
47138         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47139         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47140         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47141         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47142         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47143         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47144         $(EXEEXT) to automake TESTS variable, for mingw32.
47145
47146 2006-01-17  Simon Josefsson  <jas@extundo.com>
47147
47148         * modules/socklen (Include): Need sys/socket.h.
47149
47150 2006-01-17  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/ssize_t (Include): Add <sys/types.h>.
47153
47154 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47155
47156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47157         it's not portable and it doesn't work with cross-compiles.
47158         Problem reported by Bruno Haible.  Fix missing-$ typo in
47159         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47160         -zignore from being used with Sun's C compiler.
47161
47162 2006-01-12  Simon Josefsson  <jas@extundo.com>
47163
47164         * lib/base64.c: Fix warning, reported by Bruno Haible
47165         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47166
47167 2006-01-12  Bruno Haible  <bruno@clisp.org>
47168
47169         * modules/ldd: New file.
47170         * build-aux/ldd.sh.in: New file.
47171         * MODULES.html.sh (Support for building libraries and executables): Add
47172         ldd.
47173
47174 2006-01-12  Bruno Haible  <bruno@clisp.org>
47175
47176         * m4/ldd.m4: New file.
47177
47178 2006-01-12  Bruno Haible  <bruno@clisp.org>
47179
47180         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47181         endless loop while replacing $auxdir with build-aux.
47182
47183 2006-01-11  Simon Josefsson  <jas@extundo.com>
47184
47185         * lib/stdint_.h (SIZE_MAX): Add missing (.
47186
47187 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47188
47189         Sync from coreutils.
47190         * lib/md5.c: Fix commentary typos.
47191         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47192         * lib/md5.h (__attribute__): Remove; unused.
47193         * lib/sha1.c: Fix commentary to match md5 better.
47194         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47195         so that we don't need to worry about alignment.  All uses changed.
47196         This merges the 2005-10-28 md5 change into sha1.
47197
47198 2006-01-11  Jim Meyering  <jim@meyering.net>
47199
47200         Sync from coreutils.
47201         * lib/md5.c (OP): Fix spacing.
47202
47203 2006-01-11  Bruno Haible  <bruno@clisp.org>
47204
47205         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47206         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47207         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47208
47209 2006-01-11  Bruno Haible  <bruno@clisp.org>
47210
47211         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47212         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47213         the "early" section as well.
47214
47215 2006-01-11  Bruno Haible  <bruno@clisp.org>
47216
47217         Avoid "ar: no archive members specified" error on MacOS X.
47218         * gnulib-tool (func_modules_add_dummy): New function.
47219         (func_import, func_create_testdir): Invoke it.
47220
47221 2006-01-11  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47224         with $auxdir in AC_CONFIG_FILES statements.
47225
47226 2006-01-11  Bruno Haible  <bruno@clisp.org>
47227
47228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47229         Initialize also noinst_HEADERS to empty.
47230
47231 2006-01-11  Bruno Haible  <bruno@clisp.org>
47232
47233         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47234         variables.
47235         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47236         autoreconf.
47237
47238 2006-01-11  Bruno Haible  <bruno@clisp.org>
47239
47240         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47241         overridable by the user.
47242         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47243
47244 2006-01-10  Simon Josefsson  <jas@extundo.com>
47245
47246         * modules/sys_socket: New file.
47247
47248 2006-01-10  Simon Josefsson  <jas@extundo.com>
47249
47250         * m4/sys_socket_h.m4: New file.
47251
47252 2006-01-10  Simon Josefsson  <jas@extundo.com>
47253
47254         * lib/socket_.h: New file.
47255
47256 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47257
47258         * modules/readutmp (Maintainer): Add myself.
47259
47260 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47261
47262         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47263         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47264         People who are still concerned with buggy memcmp implementations
47265         can invoke gl_FUNC_MEMCMP themselves.
47266
47267 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47268
47269         * lib/regex_internal.h (BITSET_WORD_BITS):
47270         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47271         preprocessor mishandles large unsigned values as if they were signed.
47272         Problem reported by Claudio Fontana in
47273         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47274
47275 2006-01-10  Jim Meyering  <jim@meyering.net>
47276
47277         Avoid the double-free (first in fts_read, second in fts_close) that
47278         would occur when an `active' directory is made inaccessible (e.g.,
47279         via chmod a-x) during a traversal.
47280         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47281         before returning.  Reproduce this failure by
47282         mkdir -p a/b; cd a; chmod a-x . b
47283         Reported by Stavros Passas.
47284
47285         Sync from coreutils.
47286         * lib/sha1.c: Tweak grammar in a comment.
47287
47288 2006-01-10  Jim Meyering  <jim@meyering.net>
47289
47290         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47291         Patch by Joerg Sonnenberger.
47292
47293 2006-01-10  Bruno Haible  <bruno@clisp.org>
47294
47295         * modules/readutmp: Depend on module free.
47296         * modules/strtok_r: Depend on module restrict.
47297
47298 2006-01-10  Bruno Haible  <bruno@clisp.org>
47299
47300         * modules/gettext (configure.ac): Add an invocation of
47301         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47302
47303 2006-01-10  Bruno Haible  <bruno@clisp.org>
47304
47305         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47306         Reported by Werner Lemberg <wl@gnu.org>.
47307
47308 2006-01-10  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/localcharset.c: Update from GNU gettext.
47311
47312 2006-01-10  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/argp.h (__const): Remove macro. Use const instead.
47315         * lib/argp-fmtstream.h (__const): Likewise.
47316         * lib/glob_.h (__const): Remove macro.
47317         * lib/glob-libc.h: Use const instead of __const.
47318
47319 2006-01-10  Bruno Haible  <bruno@clisp.org>
47320
47321         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47322         variable.
47323         Needed to avoid an automake error regarding the 'gettext' module.
47324
47325 2006-01-09  Simon Josefsson  <jas@extundo.com>
47326
47327         * modules/inet_ntop (Depends-on): Add restrict.
47328
47329 2006-01-09  Simon Josefsson  <jas@extundo.com>
47330
47331         * modules/gc-rijndael-tests (License): Put under LGPL.
47332
47333         * modules/gc-des-tests (License): Likewise.
47334
47335         * modules/gc-arcfour-tests (License): Likewise.
47336
47337         * modules/gc-arctwo-tests (License): Likewise.
47338
47339         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47340
47341         * modules/gc-hmac-sha1-tests (Files): Likewise.
47342
47343         * modules/gc-hmac-md5-tests (License): Likewise.
47344
47345         * modules/gc-sha1-tests (License): Likewise.
47346
47347         * modules/gc-md5-tests (License): Likewise.
47348
47349         * modules/gc-md4-tests (License): Likewise.
47350
47351         * modules/gc-md2-tests (License): Likewise.
47352
47353         * modules/gc-tests (License): Likewise.
47354
47355         * modules/des-tests (License): Likewise.
47356
47357         * modules/md4-tests (License): Likewise.
47358
47359         * modules/md2-tests (License): Likewise.
47360
47361 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         Sync from coreutils:
47364
47365         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47366         * modules/lib-ignore: New file.
47367         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47368         chdir-safer.m4, lchmod.m4.
47369         * modules/openat: Add mkdirat.c, openat-priv.h.
47370
47371 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47372
47373         Sync from coreutils.
47374         * m4/lib-ignore.m4: New file.
47375         * m4/lchmod.m4: New file.
47376
47377 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47378
47379         Sync from coreutils.
47380         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47381         for write access: POSIX says that must fail.
47382         * lib/fts.c (diropen): Likewise.
47383         * lib/save-cwd.c (save_cwd): Likewise.
47384         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47385         well, for minor improvements on hosts that lack O_DIRECTORY.
47386         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47387         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47388         Fall back on chown if open failed with EACCES.
47389
47390         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47391         Report an error at compile-time if only a 1-second nominal clock
47392         resolution is found.
47393
47394         * lib/lchmod.h: New file.
47395         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47396         (make_dir_parents): Use lchown rather than chown, and
47397         lchmod rather than chmod.
47398
47399         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47400         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47401         "proc" reported by n0dalus.
47402
47403         * lib/mountlist.c: Include <limits.h>.
47404         (dev_from_mount_options)
47405         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47406         New function.  It no longer assumes "dev=" has the System V meaning
47407         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47408         (read_file_system_list)
47409         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47410         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47411         dev= in that case.
47412
47413         * lib/posixtm.h (PDS_PRE_2000): New macro.
47414         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47415         allow_century.  All usages changed.  Reject dates outside the range
47416         1969-1999 if PDS_PRE_2000 is used.
47417
47418 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         Sync from coreutils.
47421         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47422         (Time of day items): Mention the possibility of leap seconds.
47423         Problem reported by Dr. David Alan Gilbert.
47424
47425 2006-01-09  Jim Meyering  <jim@meyering.net>
47426
47427         Sync from coreutils.
47428
47429         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47430
47431         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47432
47433         * lib/modechange.c (mode_compile): Reject an invalid mode string
47434         that starts with an octal digit.  From Andreas Gruenbacher.
47435
47436         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47437         and dup to open_safer and dup_safer, respectively.
47438         (openat_permissive): Fix typo in comment.
47439
47440         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47441         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47442         (_): Remove; no longer needed.
47443         (openat): Renamed from rpl_openat; no need for rpl_openat
47444         since openat.h renames openat for us.
47445         Replace most of the body with a call to openat_permissive,
47446         to avoid duplicate code.
47447         Port to (probably hypothetical) environments were mode_t is
47448         wider than int.
47449         (openat_permissive): Require mode arg, so that we can check
47450         types better.  Put it just after flags.  Change cwd failure
47451         indicator from pointer-to-bool to pointer-to-errno-value.
47452         All callers changed.
47453         Invoke openat_save_fail and/or openat_restore_fail if
47454         cwd_errno is null, so that openat can call us.
47455         (openat_permissive, fdopendir, fstatat, unlinkat):
47456         Simplify errno handling to avoid some duplicate code,
47457         as it's OK to set errno on success.
47458         * lib/openat.h: Revamp code so that function macros depend on
47459         __OPENAT_PREFIX only, not also on AT_FDCWD.
47460         (openat_ro): Remove.  Caller changed to use openat_permissive.
47461         (openat_permissive): Now a macro, if not a function.
47462         (openat_restore_fail, openat_save_fail): Now always functions,
47463         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47464
47465         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47466         and openat.c.
47467         * lib/mkdirat.c: Include openat-priv.h.
47468         Remove definitions of macros defined therein.
47469         * lib/openat.c: Likewise.
47470
47471         * lib/mkdirat.c (mkdirat): New file and function.
47472         * lib/openat.h (mkdirat): Declare.
47473
47474         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47475
47476         * lib/openat.h (openat_permissive): Declare.
47477         (openat_ro): Define.
47478
47479         * lib/openat.c (EXPECTED_ERRNO): New macro.
47480         (openat_permissive): New function -- used in remove.c rewrite.
47481         (all functions): Set errno just before returning, only if there
47482         was an actual failure.
47483         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47484
47485         Emulate openat-family functions using Linux's procfs, if possible.
47486         Idea and some code based on Ulrich Drepper's glibc changes.
47487
47488         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47489         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47490         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47491         before falling back on save_cwd and restore_cwd.
47492         (fdopendir, fstatat, unlinkat): Likewise.
47493
47494         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47495         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47496
47497         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47498         as second argument to va_arg.  Otherwise, some versions of gcc
47499         warn that `if this code is reached, the program will abort'.
47500
47501 2006-01-09  Jim Meyering  <jim@meyering.net>
47502
47503         Sync from coreutils.
47504         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47505         Require openat-priv.h.
47506
47507 2006-01-09  Bruno Haible  <bruno@clisp.org>
47508
47509         * modules/strnlen (Include): Use strnlen.h.
47510
47511 2006-01-09  Bruno Haible  <bruno@clisp.org>
47512
47513         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47514
47515 2006-01-09  Bruno Haible  <bruno@clisp.org>
47516
47517         * lib/sysexit_.h (EX_OK): New macro.
47518         Suggested by Martin Lambers <marlam@marlam.de>.
47519
47520 2006-01-09  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47523         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47524
47525 2006-01-09  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47528         numbers.
47529
47530 2006-01-09  Bruno Haible  <bruno@clisp.org>
47531
47532         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47533         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47534         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47535         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47536
47537 2006-01-09  Bruno Haible  <bruno@clisp.org>
47538
47539         * build-aux/javacomp.sh.in: New file, moved from lib/.
47540         * modules/javacomp-script (Files): Update.
47541         (configure.ac): Add AC_CONFIG_FILES invocation.
47542         (EXTRA_DIST): Remove variable.
47543
47544         * build-aux/javaexec.sh.in: New file, moved from lib/.
47545         * modules/javaexec (Files): Update.
47546         (configure.ac): Add AC_CONFIG_FILES invocation.
47547         (EXTRA_DIST): Remove javaexec.sh.in.
47548
47549         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47550         * modules/csharpcomp-script (Files): Update.
47551         (configure.ac): Add AC_CONFIG_FILES invocation.
47552         (EXTRA_DIST): Remove variable.
47553
47554         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47555         * modules/csharpexec (Files): Update.
47556         (configure.ac): Add AC_CONFIG_FILES invocation.
47557         (EXTRA_DIST): Remove csharpexec.sh.in.
47558
47559 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47560
47561         Sync from coreutils.
47562
47563         Add POSIX ACL support
47564         * lib/acl.h (copy_acl, set_acl): Add declarations.
47565         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47566         systems other than Linux.
47567         (chmod_or_fchmod): New function: use fchmod when possible,
47568         and chmod otherwise.
47569         (file_has_acl): Add a POSIX ACL implementation, with a
47570         Linux-specific subcase.
47571         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47572         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47573         acls are unsupported.
47574         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47575         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47576         are unsupported.
47577
47578 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47579
47580         Sync from coreutils.
47581         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47582
47583 2006-01-07  Bruno Haible  <bruno@clisp.org>
47584
47585         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47586         gl_EARLY.
47587
47588 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47591         Problem reported for Mingw by Mark Junker.
47592
47593 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         * README: Gnulib normally doesn't generate a tarball.
47596
47597 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47598
47599         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47600         long int, not int, for nanosecond counts, so that people who are
47601         used to POSIX struct timespec won't be surprised.  Reported by Jim
47602         Meyering.
47603
47604 2005-12-28  Bruno Haible  <bruno@clisp.org>
47605
47606         * build-aux/config.rpath: Update from GNU gettext.
47607
47608 2005-12-16  Jim Meyering  <jim@meyering.net>
47609
47610         * modules/fprintftime: New module.
47611         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47612
47613 2005-12-16  Jim Meyering  <jim@meyering.net>
47614
47615         * m4/fprintftime.m4: New file.
47616
47617 2005-12-16  Jim Meyering  <jim@meyering.net>
47618
47619         * lib/fprintftime.c, lib/fprintftime.h: New files.
47620
47621 2005-12-15  Simon Josefsson  <jas@extundo.com>
47622
47623         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47624         new m4/socklen.m4.
47625
47626 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47627
47628         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47629         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47630
47631 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47632
47633         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47634         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47635         struct uparams is valid. Fall back to the default values if it is
47636         not.
47637
47638 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47639
47640         * modules/argp (Files): Add argp-pin.c
47641         (Depends-on): dirname
47642         (lib_SOURCES): Add argp-pin.c
47643
47644 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47645
47646         * m4/argp.m4:  Check if program_invocation_name and
47647         program_invocation_short_name are declared and define appropriate
47648         macros if they are not.
47649
47650 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47651
47652         * lib/argp-help.c (__argp_base_name): New function
47653         (__argp_short_program_name): Rewrite using __argp_base_name
47654         * lib/argp-namefrob.h: Define program_invocation_name and
47655         program_invocation_short_name if requested
47656         (__argp_base_name): Add prototype
47657         * lib/argp-parse.c (argp_def): Use gettext wrappers
47658         (argp_default_parser): Use __argp_base_name
47659         * lib/argp-pin.c: New file. Defines program_invocation_name and
47660         program_invocation_short_name on systems that lack them.
47661
47662 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47663
47664         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47665         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47666         porting problem reported by Georg Schwarz in
47667         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47668
47669 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47670
47671         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47672         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47673         porting problem reported by Georg Schwarz in
47674         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47675
47676 2005-12-05  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47679         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47680         Reported by Mark Junker <mjscod@gmx.de>.
47681
47682 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47685         Use implementation from Albert Chin, with some
47686         comments/corrections by Stepan Kasal and myself.
47687
47688 2005-12-02  Bruno Haible  <bruno@clisp.org>
47689
47690         * gnulib-tool (func_import): Accept GPLed build tool modules when
47691         --lgpl is given.
47692         * modules/csharpcomp-script: New file.
47693         * modules/csharpcomp: Depend on it.
47694         * modules/javacomp-script: New file.
47695         * modules/javacomp: Depend on it.
47696         Suggested by Simon Josefsson.
47697
47698 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47701         statement, to work around an HP-UX 10.20 compiler bug reported by
47702         Peter O'Gorman.
47703
47704 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47705
47706         * modules/savedir (Depends-on): Add openat.
47707
47708 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47711         (uintmax_t) [defined uintmax_t]: Do not declare.
47712         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47713         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47714         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47715         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47716         sake of portability to weird hosts that C allows (though we don't
47717         know of any practical examples).
47718
47719         * lib/savedir.h (fdsavedir): New decl.
47720         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47721         contains most of the former guts of savedir.
47722         (savedir): Use savedirstream.
47723         Include "openat.h".
47724
47725 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         * modules/obstack (Files): Add m4/ulonglong.m4.
47728         Problem reported by Davide Angelocola.
47729
47730 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47731
47732         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47733         coreutils no longer futzes with rounding modes.
47734
47735 2005-11-14  Jim Meyering  <jim@meyering.net>
47736
47737         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47738         replacement of mkstemp.
47739
47740 2005-11-10  Simon Josefsson  <jas@extundo.com>
47741
47742         * lib/readline.c: Remove EOL.
47743
47744 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * modules/gethrxtime (Depends-on): Add gettime.
47747
47748 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47751         or gettimeofday; no longer needed.
47752
47753 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47754
47755         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47756         time business.
47757         (gethrxtime) [! (HAVE_NANOUPTIME
47758         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47759         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47760         our own approximation.
47761
47762 2005-11-08  Eric Blake  <ebb9@byu.net>
47763
47764         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47765
47766 2005-11-08  Eric Blake  <ebb9@byu.net>
47767
47768         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47769
47770 2005-11-04  Bruno Haible  <bruno@clisp.org>
47771
47772         * gnulib-tool: Implement --update mode.
47773
47774 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47775
47776         Fix porting problem reported by Theodoros V. Kalamatianos.
47777         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47778         Don't assume that futimes failing means we must fail.
47779
47780 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47783         variables to suggest the intended function of the PATH_MAX check.
47784
47785 2005-10-30  Kean Johnston  <jkj@sco.com>
47786
47787         Trivial changes to support SCO systems.
47788         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47789         as PATH_MAX.
47790         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47791         where __ptr is null when no I/O is pending.
47792
47793 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47794
47795         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47796         leave errno alone.  Problem reported by Dmitry V. Levin.
47797
47798 2005-10-28  Simon Josefsson  <jas@extundo.com>
47799
47800         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47801         Test more.
47802
47803         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47804
47805         * modules/md2, modules/md2-tests: New files.
47806
47807 2005-10-28  Simon Josefsson  <jas@extundo.com>
47808
47809         * m4/inet_ntop.m4: More tests.
47810
47811         * m4/gc-md2.m4, md2.m4: New file.
47812
47813 2005-10-28  Simon Josefsson  <jas@extundo.com>
47814
47815         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47816         "restrict" keywords, as per POSIX.  Protect the function
47817         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47818         Don't use K&R prototypes.  Check the sprintf return values.
47819         Re-define EAFNOSUPPORT if not present.  Indent.
47820
47821         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47822         suggested by Bruno Haible <bruno@clisp.org>.
47823
47824         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47825
47826         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47827
47828         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47829         libgcrypt).
47830
47831         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47832
47833         * lib/md2.h, lib/md2.c: New files.
47834
47835 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47838         errno alone.  Problem reported by Frederic Jolliton.
47839
47840 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47841
47842         * modules/verify (License): Change from GPL to LGPL.  This is a
47843         tiny module and there are apparently near-equivalents that are
47844         under the BSD license.
47845
47846 2005-10-24  Simon Josefsson  <jas@extundo.com>
47847
47848         * modules/sha1: Relicense to LGPL.
47849
47850 2005-10-24  Simon Josefsson  <jas@extundo.com>
47851
47852         * lib/md4.h: Shrink buffer size, now that we changed the type.
47853
47854 2005-10-23  Simon Josefsson  <jas@extundo.com>
47855
47856         * gnulib-tool (func_import): Fix --tests-base.
47857
47858 2005-10-22  Simon Josefsson  <jas@extundo.com>
47859
47860         * modules/arcfour (Depends-on): Need stdint.
47861
47862 2005-10-22  Simon Josefsson  <jas@extundo.com>
47863
47864         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47865         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47866
47867 2005-10-22  Simon Josefsson  <jas@extundo.com>
47868
47869         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47870         suggested by Bruno Haible <bruno@clisp.org>.
47871
47872 2005-10-22  Simon Josefsson  <jas@extundo.com>
47873
47874         * lib/crc.h: Include stddef.h, for size_t.
47875
47876 2005-10-22  Simon Josefsson  <jas@extundo.com>
47877
47878         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47879         arcfour_context struct (simplify test vector testing in GNU
47880         Shishi).
47881
47882 2005-10-21  Simon Josefsson  <jas@extundo.com>
47883
47884         * modules/des, modules/des-tests: New files.
47885
47886         * modules/gc-des, modules/gc-des-tests: New files.
47887
47888         * tests/test-des.c, tests/test-gc-des.c: New file.
47889
47890 2005-10-21  Simon Josefsson  <jas@extundo.com>
47891
47892         * modules/arctwo, modules/arctwo-tests: New files.
47893
47894         * tests/test-arctwo.c: New file.
47895
47896         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47897
47898         * tests/test-gc-arctwo.c: New file.
47899
47900 2005-10-21  Simon Josefsson  <jas@extundo.com>
47901
47902         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47903         Bruno Haible <bruno@clisp.org>.
47904
47905         * m4/gc-des.m4: New file.
47906
47907 2005-10-21  Simon Josefsson  <jas@extundo.com>
47908
47909         * m4/arctwo.m4: New file.
47910
47911         * m4/gc-arctwo.m4: New file.
47912
47913 2005-10-21  Simon Josefsson  <jas@extundo.com>
47914
47915         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47916         block.
47917
47918 2005-10-21  Simon Josefsson  <jas@extundo.com>
47919
47920         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47921         <bruno@clisp.org>.
47922
47923         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47924
47925         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47926         Bruno Haible <bruno@clisp.org>.
47927
47928         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47929         <bruno@clisp.org>.
47930
47931 2005-10-21  Simon Josefsson  <jas@extundo.com>
47932
47933         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47934
47935 2005-10-21  Simon Josefsson  <jas@extundo.com>
47936
47937         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47938
47939 2005-10-21  Simon Josefsson  <jas@extundo.com>
47940
47941         * lib/des.h, lib/des.c: New files.
47942
47943         * lib/gc-gnulib.c: Support DES.c
47944
47945 2005-10-21  Simon Josefsson  <jas@extundo.com>
47946
47947         * lib/arctwo.h, lib/arctwo.c: New files.
47948
47949         * lib/gc-gnulib.c: Support ARCTWO.
47950
47951 2005-10-21  Simon Josefsson  <jas@extundo.com>
47952
47953         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47954         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47955
47956 2005-10-21  Simon Josefsson  <jas@extundo.com>
47957
47958         * gnulib-tool (func_import, func_create_testdir): Define automake
47959         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47960         Makefile.am snippet),
47961         suggested by Bruno Haible <bruno@clisp.org>.
47962
47963         * modules/gc (Makefile.am): Use it.
47964
47965 2005-10-21  Bruno Haible  <bruno@clisp.org>
47966
47967         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47968         patch.
47969
47970 2005-10-19  Simon Josefsson  <jas@extundo.com>
47971
47972         * tests/test-gc-rijndael.c: New file.
47973
47974         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47975
47976 2005-10-19  Simon Josefsson  <jas@extundo.com>
47977
47978         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47979         interface too.
47980
47981 2005-10-19  Simon Josefsson  <jas@extundo.com>
47982
47983         * tests/test-gc-arcfour.c: New file.
47984
47985         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47986
47987 2005-10-19  Simon Josefsson  <jas@extundo.com>
47988
47989         * modules/gc-md4, modules/gc-md4-tests: New file.
47990
47991         * tests/test-gc-md4.c: New file.
47992
47993 2005-10-19  Simon Josefsson  <jas@extundo.com>
47994
47995         * m4/gc-md4.m4: New file.
47996
47997 2005-10-19  Simon Josefsson  <jas@extundo.com>
47998
47999         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48000         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48001         <kasal@ucw.cz>.
48002
48003 2005-10-19  Simon Josefsson  <jas@extundo.com>
48004
48005         * m4/gc-arcfour.m4: New file.
48006
48007         * m4/gc-rijndael.m4: New file.
48008
48009 2005-10-19  Simon Josefsson  <jas@extundo.com>
48010
48011         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48012
48013 2005-10-19  Simon Josefsson  <jas@extundo.com>
48014
48015         * lib/gc-gnulib.c: Support ARCFOUR.
48016
48017 2005-10-19  Simon Josefsson  <jas@extundo.com>
48018
48019         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48020         support.
48021
48022         * lib/gc.h: Add ECB enum type.
48023
48024         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48025
48026 2005-10-18  Simon Josefsson  <jas@extundo.com>
48027
48028         * tests/test-md5.c: New file.
48029
48030         * modules/md5-tests: New file.
48031
48032 2005-10-18  Simon Josefsson  <jas@extundo.com>
48033
48034         * tests/test-md4.c: New file.
48035
48036         * modules/md4, modules/md4-tests: New files.
48037
48038 2005-10-18  Simon Josefsson  <jas@extundo.com>
48039
48040         * m4/md4.m4: New file.
48041
48042 2005-10-18  Simon Josefsson  <jas@extundo.com>
48043
48044         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48045
48046 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48047
48048         * gnulib-tool (func_create_testdir): Omit the second check whether
48049         BUILT_SOURCES in nonempty.
48050
48051 2005-10-17  Simon Josefsson  <jas@extundo.com>
48052
48053         * tests/test-rijndael.c: New file.
48054
48055 2005-10-17  Simon Josefsson  <jas@extundo.com>
48056
48057         * modules/sha1: Depend on stdint instead of md5.
48058
48059         * modules/md5: Depend on stdint, remove uint32_t.
48060
48061 2005-10-17  Simon Josefsson  <jas@extundo.com>
48062
48063         * modules/gc-sha1-tests: New file.
48064
48065         * tests/test-gc-sha1.c: New file.
48066
48067 2005-10-17  Simon Josefsson  <jas@extundo.com>
48068
48069         * m4/md5.m4: Remove call to uint32_t.m4.
48070
48071 2005-10-17  Simon Josefsson  <jas@extundo.com>
48072
48073         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48074
48075         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48076         md5.h.
48077
48078         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48079
48080         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48081
48082 2005-10-17  Simon Josefsson  <jas@extundo.com>
48083
48084         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48085
48086 2005-10-17  Simon Josefsson  <jas@extundo.com>
48087
48088         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48089
48090 2005-10-17  Simon Josefsson  <jas@extundo.com>
48091
48092         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48093
48094         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48095
48096 2005-10-17  Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48099         that it can also be used in a test.
48100
48101 2005-10-16  Bruno Haible  <bruno@clisp.org>
48102
48103         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48104         TESTS_ENVIRONMENT, so that individual tests can augment it.
48105
48106         * gnulib-tool (func_create_testdir): Use an intermediate target for
48107         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48108         macros, like $(ALLOCA_H), which cannot be passed through the command
48109         line.
48110
48111 2005-10-15  Simon Josefsson  <jas@extundo.com>
48112
48113         * modules/rijndael-tests: New file.
48114
48115         * modules/rijndael: New file.
48116
48117 2005-10-15  Simon Josefsson  <jas@extundo.com>
48118
48119         * m4/rijndael.m4: New file.
48120
48121 2005-10-15  Simon Josefsson  <jas@extundo.com>
48122
48123         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48124
48125         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48126
48127 2005-10-14  Simon Josefsson  <jas@extundo.com>
48128
48129         * tests/test-arcfour.c: New file.
48130
48131         * modules/arcfour, modules/arcfour-tests: New files.
48132
48133 2005-10-14  Simon Josefsson  <jas@extundo.com>
48134
48135         * m4/arcfour.m4: New file.
48136
48137 2005-10-14  Simon Josefsson  <jas@extundo.com>
48138
48139         * lib/arcfour.h, lib/arcfour.c: New files.
48140
48141 2005-10-14  Roland McGrath  <roland@redhat.com>
48142
48143         Import from libc.  [BZ #1331]
48144         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48145         macro argument.
48146         Reported by Matej Vela <vela@debian.org>.
48147
48148 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48149
48150         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48151         include <wchar.h>; no longer needed.
48152
48153 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48154
48155         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48156
48157 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48158         and  Ulrich Drepper  <drepper@redhat.com>
48159
48160         Import from libc.
48161         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48162         instead of inline stream orientation test and two separate
48163         function calls.  Pay no attention to USE_IN_LIBIO.
48164
48165 2005-10-13  Simon Josefsson  <jas@extundo.com>
48166
48167         * modules/gc-hmac-md5-tests: New file.
48168
48169         * tests/test-gc-hmac-sha1.c: New file.
48170
48171         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48172
48173         * modules/gc-hmac-md5-tests: New file.
48174
48175         * tests/test-gc-md5.c: New file.
48176
48177         * modules/gc-md5-tests: New file.
48178
48179 2005-10-13  Simon Josefsson  <jas@extundo.com>
48180
48181         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48182         Move memory allocation outside of loop.
48183
48184 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48185
48186         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48187         intermediate directory is in a read-only file system.  Problem
48188         reported by Eric Blake.
48189
48190 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48191
48192         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48193
48194 2005-10-12  Simon Josefsson  <jas@extundo.com>
48195
48196         * tests/test-hmac-sha1.c: New file.
48197
48198         * modules/hmac-sha1-tests: New file.
48199
48200         * modules/hmac-sha1: New file.
48201
48202 2005-10-12  Simon Josefsson  <jas@extundo.com>
48203
48204         * modules/gc-sha1: New file.
48205
48206 2005-10-12  Simon Josefsson  <jas@extundo.com>
48207
48208         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48209
48210         * tests/test-gc-pbkdf2-sha1.c: New file.
48211
48212 2005-10-12  Simon Josefsson  <jas@extundo.com>
48213
48214         * modules/gc-md5, modules/gc-hmac-md5: New files.
48215
48216         * modules/gc (Files): Remove md5, memxor and hmac files.
48217
48218 2005-10-12  Simon Josefsson  <jas@extundo.com>
48219
48220         * m4/gc-pbkdf2-sha1.m4: New file.
48221
48222         * m4/gc-hmac-sha1.m4: New file.
48223
48224         * m4/gc-sha1: New file.
48225
48226         * m4/hmac-sha1.m4: New file.
48227
48228 2005-10-12  Simon Josefsson  <jas@extundo.com>
48229
48230         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48231
48232         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48233
48234 2005-10-12  Simon Josefsson  <jas@extundo.com>
48235
48236         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48237         suggested by Bruno Haible <bruno@clisp.org>.
48238
48239 2005-10-12  Simon Josefsson  <jas@extundo.com>
48240
48241         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48242
48243 2005-10-12  Simon Josefsson  <jas@extundo.com>
48244
48245         * lib/gc-pbkdf2-sha1.c: New file.
48246
48247         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48248
48249 2005-10-12  Simon Josefsson  <jas@extundo.com>
48250
48251         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48252
48253         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48254
48255 2005-10-12  Simon Josefsson  <jas@extundo.com>
48256
48257         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48258         GC_USE_HMAC_MD5, respectively.
48259
48260         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48261         (gc_md5): Fix typo.
48262
48263         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48264
48265         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48266
48267         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48268
48269 2005-10-12  Bruno Haible  <bruno@clisp.org>
48270
48271         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48272         Reported by Stepan Kasal <kasal@ucw.cz>.
48273
48274 2005-10-11  Simon Josefsson  <jas@extundo.com>
48275
48276         * tests/test-crc.c: New file.
48277
48278         * modules/crc, modules/crc-tests: New files.
48279
48280 2005-10-11  Simon Josefsson  <jas@extundo.com>
48281
48282         * m4/crc.m4: New file.
48283
48284 2005-10-11  Simon Josefsson  <jas@extundo.com>
48285
48286         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48287
48288         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48289
48290         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48291
48292 2005-10-11  Simon Josefsson  <jas@extundo.com>
48293
48294         * lib/crc.h, lib/crc.c: New files.
48295
48296         * lib/gc.h (gc_hash_buffer): Add doc.
48297
48298 2005-10-11  Bruno Haible  <bruno@clisp.org>
48299
48300         * modules/c-strcasestr: New file.
48301         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48302
48303 2005-10-11  Bruno Haible  <bruno@clisp.org>
48304
48305         * modules/c-strcase: New file.
48306         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48307
48308 2005-10-11  Bruno Haible  <bruno@clisp.org>
48309
48310         * lib/strcasecmp.c: Include limits.h.
48311         (strcasecmp): Avoid integer overflow on exotic platforms.
48312         * lib/strncasecmp.c: Include limits.h.
48313         (strncasecmp): Avoid integer overflow on exotic platforms.
48314         Reported by Paul Eggert.
48315
48316 2005-10-11  Bruno Haible  <bruno@clisp.org>
48317
48318         * lib/c-strcasestr.h: New file, from GNU gettext.
48319         * lib/c-strcasestr.c: New file, from GNU gettext.
48320
48321 2005-10-11  Bruno Haible  <bruno@clisp.org>
48322
48323         * lib/c-strcase.h: New file, from GNU gettext.
48324         * lib/c-strcasecmp.c: New file, from GNU gettext.
48325         * lib/c-strncasecmp.c: New file, from GNU gettext.
48326
48327 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * modules/mempcpy (License): GPL -> LGPL.
48330         * modules/strchrnul (License): Likewise.
48331         * modules/sysexits (License): Likewise.
48332
48333 2005-10-08  Simon Josefsson  <jas@extundo.com>
48334
48335         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48336
48337 2005-10-07  Simon Josefsson  <jas@extundo.com>
48338
48339         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48340
48341 2005-10-06  Simon Josefsson  <jas@extundo.com>
48342
48343         * tests/test-hmac-md5.c: New file.
48344
48345         * modules/hmac-md5-tests: New file.
48346
48347         * modules/hmac-md5: New file.
48348
48349 2005-10-06  Simon Josefsson  <jas@extundo.com>
48350
48351         * m4/hmac-md5.m4: New file.
48352
48353         * m4/memxor.m4: Require gl_C_RESTRICT.
48354
48355 2005-10-06  Simon Josefsson  <jas@extundo.com>
48356
48357         * lib/memxor.c (memxor): Avoid casts and warnings.
48358
48359 2005-10-06  Simon Josefsson  <jas@extundo.com>
48360
48361         * lib/hmac-md5.c: New file.
48362
48363         * lib/hmac.h: New file.
48364
48365 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48366
48367         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48368         promotes to int, not unsigned int, to catch the AIX 5.3
48369         compiler bug.
48370
48371 2005-10-05  Simon Josefsson  <jas@extundo.com>
48372
48373         * modules/memxor: New file.
48374
48375         * modules/iconv (Files): Move config.rpath to havelib, it is used
48376         there.
48377
48378         * modules/havelib (Files): Add config.rpath.
48379
48380 2005-10-05  Simon Josefsson  <jas@extundo.com>
48381
48382         * m4/memxor.m4: New file.
48383
48384 2005-10-05  Simon Josefsson  <jas@extundo.com>
48385
48386         * lib/memxor.c (memxor): Fix compiler error.
48387
48388         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48389         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48390
48391         * lib/memxor.h, lib/memxor.c: New files.
48392
48393         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48394         we assume all systems have it, suggested by Jim Meyering
48395         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48396         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48397         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48398         same reasons.
48399
48400 2005-10-05  Simon Josefsson  <jas@extundo.com>
48401
48402         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48403
48404 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48407         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48408         needed, since the source code now assumes these .h files.
48409
48410 2005-10-05  Derek Price  <derek@ximbiot.com>
48411
48412         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48413
48414 2005-10-05  Bruno Haible  <bruno@clisp.org>
48415
48416         * modules/stdint (License): Change to LGPL.
48417
48418 2005-10-04  Simon Josefsson  <jas@extundo.com>
48419
48420         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48421         D. Baushke" <mdb@gnu.org>.
48422
48423 2005-10-04  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/verify.h (verify_true): Provide alternative definition for C++.
48426
48427 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48428
48429         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48430         (SSIZE_MAX): New macro, if not already defined.
48431         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48432         than 2 GiB.
48433
48434 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48435
48436         Sync from coreutils.
48437         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48438         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48439         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48440         ULLONG_MAX doesn't work with 2.7.2.1.
48441
48442 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48445         From Ben Pfaff.
48446
48447         * modules/exclude (Depends-on): Depend on verify.
48448         * modules/strtoimax (Depends-on): Likewise.
48449         * modules/utimecmp (Depends-on): Likewise.
48450
48451 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         * lib/exclude.c: Include verify.h.
48454         (verify): Remove.  All callers changed to use verify.h's version.
48455         * lib/strtoimax.c: Likewise.
48456         * lib/utimecmp.c: Likewis.e
48457
48458         Sync from coreutils.
48459         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48460         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48461         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48462         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48463         bother returning ENOSYS if settimeofday or stime fails; just let
48464         them return whatever errno they want to return.
48465         * lib/utimens.c: Include unistd.h, for dup2.
48466         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48467         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48468
48469 2005-10-02  Jim Meyering  <jim@meyering.net>
48470
48471         Sync from coreutils.
48472         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48473         from glibc-2.2.5 that fails for read-only files.
48474
48475 2005-10-02  Jim Meyering  <jim@meyering.net>
48476
48477         Sync from coreutils.
48478         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48479         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48480         `#if HAVE_CONFIG_H'.
48481         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48482         Remove AT_FDCWD test.
48483         Do not consume the fd unless successful.
48484         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48485         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48486         block, so that we don't even try to compile it if settimeofday is
48487         available.  This works around a compilation failure on OSF1 V5.1,
48488         due to stime requiring a `long int*' while tv_sec is `int'.
48489
48490 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48491
48492         Sync from coreutils.
48493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48494         against `yes', rather than just testing for nonempty.
48495
48496 2005-10-01  Simon Josefsson  <jas@extundo.com>
48497
48498         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48499         and Darwin.
48500
48501         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48502         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48503         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48504         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48505         Check if struct addrinfo is declared.
48506
48507 2005-10-01  Simon Josefsson  <jas@extundo.com>
48508
48509         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48510         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48511         AI_* and EAI_* definitions.  Protect function declarations.
48512
48513 2005-10-01  Jim Meyering  <jim@meyering.net>
48514
48515         Sync from coreutils.
48516
48517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48518         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48519         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48521         in the inet and nsl libraries.  Required on Solaris 5.7.
48522
48523 2005-10-01  Jim Meyering  <jim@meyering.net>
48524
48525         Sync from coreutils.
48526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48527         in the inet and nsl libraries.  Required on Solaris 5.7.
48528
48529 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48530
48531         * lib/getdelim.c (getdelim): Remove unused variables.
48532
48533 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48534
48535         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48536         so that the code works even with ancient cpp.  Portability problem
48537         with GCC 2.7.2.1 reported by Thomas M.Ott.
48538
48539 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         * modules/regex (Depends-on): Add strcase.
48542
48543         * modules/gethostname (Licence): Change from GPL to LGPL, since
48544         gethostname.c is a trivial implementation of a standard library
48545         function.
48546         * modules/poll (License): Change from GPL to LGPL, since it's
48547         derived from LGPL code.
48548
48549 2005-09-27  Jim Meyering  <jim@meyering.net>
48550
48551         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48552         HAVE_CONFIG_H.
48553
48554         * lib/intprops.h (signed_type_or_expr__): Define.
48555         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48556         for unsigned types.
48557
48558 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48559
48560         * lib/verify.h (verify_expr): Remove, replacing with:
48561         (verify_true): New macro that returns true instead of void.
48562         (verify_type__): Remove.
48563         (verify): Use verify_true rather than verify_type__.
48564
48565 2005-09-26  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48568         is necessary.
48569         (lib_SOURCES): Remove mbchar.c.
48570         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48571         (Files): Add m4/mbrtowc.m4.
48572         * modules/mbiter: Likewise.
48573         * modules/mbuiter: Likewise.
48574
48575 2005-09-26  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48578         compile mbchar.c if they are not both present.
48579         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48580         * m4/mbiter.m4 (gl_MBITER): Likewise.
48581         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48582         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48583         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48584
48585 2005-09-25  Jim Meyering  <jim@meyering.net>
48586
48587         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48588         also uses socklen_t.
48589
48590 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48591
48592         * lib/utimens.c (ENOSYS): Define if not already defined.
48593         (futimens): Support having a null PATH if the file descriptor
48594         is nonnegative.
48595
48596         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48597         Remove.
48598         (__attribute): Define to empty unless GCC 3.1 or later.
48599         This works around a core dump on OpenBSD 3.4, which has GCC
48600         2.95.3, which dumps core when given __attribute__(()).  It also
48601         simplifies other tests, since we really don't want to bother with
48602         worrying about which ancient version of GCC supported what.
48603         Original problem reported by Yoann Vandoorselaere, with part of
48604         the fix suggested by Derek Price.
48605
48606 2005-09-24  Jim Meyering  <jim@meyering.net>
48607
48608         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48609         so we can once again use a positive bitfield width of 1 -- now we
48610         don't have to explain why we were using a bitfield width of 2.
48611
48612 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48615         and similarly for the other external symbols.  Problem reported
48616         by James Gallager.
48617
48618         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48619         bug reported by Jim Meyering.
48620
48621         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48623         not needed, since socklen is a prerequisite module.
48624
48625 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48626
48627         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48628         Problem reported by Eric Blake.
48629         (getaddrinfo): Initialize se so that it's not garbage.
48630         Redo internal storage allocation so that it doesn't make unportable
48631         assumptions about alignment.
48632         Fix a memory leak.
48633
48634         * lib/utimens.c (futimens): Use futimesat if available.
48635         Prefer it to futimes since it doesn't have the futimes bug.
48636
48637         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48638         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48639         Instead, declare a function that returns a pointer to an array,
48640         and use verify_type__ to declare the size of the array.
48641         Problem and germ of a solution reported by Bruno Haible.
48642         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48643         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48644
48645 2005-09-23  Jim Meyering  <jim@meyering.net>
48646
48647         Sync from coreutils.
48648         Correct build failure (socklen_t not defined) on at least
48649         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48651
48652 2005-09-23  Jim Meyering  <jim@meyering.net>
48653
48654         * modules/getaddrinfo (Depends-on): Add socklen.
48655
48656 2005-09-23  Bruno Haible  <bruno@clisp.org>
48657
48658         * tests/test-verify.c: New file.
48659
48660 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         Sync from coreutils.
48663
48664         * modules/argmatch (Depends-on): Add verify.
48665         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48666         unistd-safer.
48667         * modules/save-cwd (Depends-on): Likewise.
48668
48669         * modules/openat (Files): Add lib/openat-die.c.
48670         (Depends-on): Remove error, exitfail.
48671         Add dirname.
48672
48673         * modules/verify: New file.
48674         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48675         with "verify" module.
48676
48677 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         Sync from coreutils.
48680
48681         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48682         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48683         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48684         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48685         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48686         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48687         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48688         Don't bother checking for string.h, stdlib.h, unistd.h.
48689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48690         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48691         module's job.
48692         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48693         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48694
48695         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48696         (gl_GETDATE): Use it.
48697
48698         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48699
48700 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48701
48702         Sync from coreutils.
48703
48704         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48705         stat-time.h.
48706         * lib/argmatch.h: Include verify.h
48707         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48708         (ARGMATCH_ASSERT): Remove; unused.
48709         * lib/canonicalize.c: Assume STDC_HEADERS.
48710         * lib/exclude.c: Include "strcase.h".
48711         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48712         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48713         and stdio-safer.h.
48714         (getusershell): Call fopen, not fopen_safer.
48715         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48716         Do not include unistd-safer.h.
48717         (save_cwd): Don't call fd_safer; no longer needed
48718         now that we include fcntl--.h.
48719
48720         * lib/getdate.y (relative_time): New type.
48721         (RELATIVE_TIME_0): New constant.
48722         (parser_control): Use relative_time instead of doing it ourselves.
48723         (%union): Add new relative_time rel member.
48724         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48725         Now typeless.
48726         (relunit, relunit_snumber): Now of type rel.
48727         (zone, rel, relunit, get_date): Adjust to above changes.
48728
48729         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48730         Do not include unistd-safer.h.
48731         (getloadavg): Don't call fd_safer; no longer needed
48732         now that we include fcntl--.h.
48733
48734         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48735         (make_dir_parents): Treat ENOSYS like EEXIST.
48736
48737         Improve quality of diagnostics on restore_cwd failure.
48738         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48739         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48740         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48741         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48742         each time through the loop.  Do not diagnose restore_cwd failure;
48743         that is the caller's job (and perhaps the caller does not care).
48744
48745         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48746         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48747         If the file already exists but is not a directory, don't bother
48748         to try to make its parents.
48749         Close potential file descriptor leak if we can't chdir("/") (!).
48750         Don't always return true if chdir($PWD) fails; return true only
48751         if the requested action was done successfully (except for the
48752         chdir($PWD)).
48753         Don't log final directory unless we actually made it.
48754         Refactor to avoid duplicate code to fix up permissions.
48755         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48756
48757         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48758         to make it a bit faster and (I hope) clearer.
48759         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48760         Fix bug in formats like %2N.
48761
48762         * lib/verify.h: New file.
48763
48764 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48765
48766         Sync from coreutils.
48767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48768
48769 2005-09-22  Jim Meyering  <jim@meyering.net>
48770
48771         Sync from coreutils.
48772
48773         * m4/lstat.m4 (gl_FUNC_LSTAT):
48774         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48775         Remove obsolete comment.
48776         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48777         * m4/xstrtod.m4: Likewise.
48778
48779         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48780
48781 2005-09-22  Jim Meyering  <jim@meyering.net>
48782
48783         Sync from coreutils.
48784
48785         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48786
48787         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48788         the .tm_year member, since otherwise gcc-4.0 would now warn about
48789         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48790
48791         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48792         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48793
48794         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48795         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48796         when run in a time zone for which daylight savings time is in effect
48797         for the starting date.
48798
48799         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48800         stop us from restricting permissions of just-created absolute-named
48801         directories.
48802         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48803         to restore initial working directory.
48804         * lib/mkdir-p.c (make_dir_parents): New parameter:
48805         different_working_dir, to tell caller if/when we change the working
48806         directory and are unable to return to the initial one.
48807         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48808         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48809         `return false'.  This fixes a bug introduced on 2004-07-30.
48810
48811         * lib/openat.c (fdopendir): Be sure to close the supplied
48812         file descriptor before returning.  This makes our replacement
48813         implementation a little closer to Solaris's, where fdopendir
48814         ties the file descriptor to the returned DIR* pointer.
48815         * lib/openat.c (unlinkat): New function.
48816         * lib/openat.h (unlinkat): Add prototype.
48817         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48818         (openat_restore_fail): Rename from openat_restore_die.
48819         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48820
48821         Provide an alternative to exiting immediately upon save_cwd or
48822         restore_cwd failure.  Now, an application can arrange e.g.,
48823         to perform a longjump in that case.
48824         * lib/openat.c: Include dirname.h.
48825         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48826         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48827         and openat_restore_die rather than calling error directly.
48828         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48829
48830         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48831         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48832         define.
48833
48834         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48835         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48836                             int utc, int nanoseconds);
48837         Background:
48838         date should not have to allocate a megabyte of virtual memory to
48839         handle a format argument like +%1048575T.  When implemented with
48840         strftime, it must allocate such a buffer, use strftime to fill it
48841         in, print it, then free it.
48842         With fprintftime, it simply prints everything and exits.
48843         With no need for memory allocation, that's one fewer way to fail.
48844         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48845         optional field width, not before, so we accept %9:z, not %:9z.
48846         (my_strftime): Be sure to use L_('x') for literals.
48847
48848         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48849         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48850         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48851         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48852         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48853         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48854         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48855         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48856         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48857         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48858         * lib/xgethostname.c, lib/xreadlink.c:
48859         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48860
48861         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48862         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48863         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48864         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48865         and don't include <sys/file.h>).
48866
48867 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48868
48869         Sync from coreutils.
48870
48871         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48872         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48873         [!LDAV_DONE]: Avoid unused variable warning.
48874
48875 2005-09-21  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/unicodeio.h (unicode_to_mb): New declaration.
48878
48879 2005-09-20  Derek Price  <derek@ximbiot.com>
48880
48881         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48882         getaddrinfo.h.
48883
48884 2005-09-20  Bruno Haible  <bruno@clisp.org>
48885
48886         * gnulib-tool: Remove trailing slashes from the values specified for
48887         --source-base, --m4-base, --tests-base, --aux-dir.
48888         Suggested by Simon Josefsson <jas@extundo.com>.
48889
48890 2005-09-20  Bruno Haible  <bruno@clisp.org>
48891
48892         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48893         func_modules_to_filelist, func_import, func_create_testdir): Make all
48894         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48895         change when gnulib-tool is invoked in a different locale.
48896
48897 2005-09-19  Simon Josefsson  <jas@extundo.com>
48898
48899         * m4/socklen.m4: Fix typo.
48900
48901 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48902
48903         Use a consistent style for including <config.h>.
48904         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48905         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48906         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48907         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48908         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48909         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48910         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48911         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48912         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48913         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48914         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48915         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48916         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48917         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48918         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48919         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48920         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48921         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48922         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48923         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48924         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48925         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48926         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48927         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48928         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48929         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48930         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48931         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48932         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48933         lib/xstrtoumax.c, lib/yesno.c:
48934         Standardize inclusion of config.h.
48935         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48936         lib/inttostr.h:  Removed inclusion of config.h from header files.
48937         * lib/inttostr.c:  Adjusted in-tree users.
48938         * lib/timespec.h: Remove superfluous warning to include config.h.
48939         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48940         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48941         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48942         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48943         config.h with HAVE_CONFIG_H.
48944
48945 2005-09-19  Jim Meyering  <jim@meyering.net>
48946
48947         * modules/pathmax (License): Change to LGPL.
48948
48949 2005-09-19  Derek Price  <derek@ximbiot.com>
48950
48951         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48952
48953 2005-09-19  Bruno Haible  <bruno@clisp.org>
48954
48955         * gnulib-tool (import): Provide default for --tests-base.
48956
48957 2005-09-19  Bruno Haible  <bruno@clisp.org>
48958
48959         * doc/quote.texi: New file, extracted from gnulib.texi.
48960         * doc/ctime.texi: New file, extracted from gnulib.texi.
48961         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48962         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48963         * doc/gnulib.texi: Include them.
48964
48965 2005-09-18  Bruno Haible  <bruno@clisp.org>
48966
48967         Portability fix.
48968         * gnulib-tool (func_readlink): New function.
48969         (func_ln_if_changed): Use it.
48970
48971 2005-09-18  Bruno Haible  <bruno@clisp.org>
48972
48973         * gnulib-tool: Support --with-tests also with --import.
48974         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48975         (func_import): Use variables $testsbase and $inctests. Emit a
48976         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48977         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48978         SUBDIRS += $testsdir.
48979         (func_create_testdir): Update.
48980
48981 2005-09-18  Bruno Haible  <bruno@clisp.org>
48982
48983         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48984         instead of $dry_run.
48985         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48986         (func_ln_if_changed): Don't handle dry-run here.
48987         (func_import): In dry-run mode, detect more precisely which actions
48988         would be performed, and don't use "...ing" verbs.
48989
48990 2005-09-18  Bruno Haible  <bruno@clisp.org>
48991
48992         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48993         (func_import): Use join on two temporary files instead of three nested
48994         loops, in order to determine which files are new or old.
48995
48996 2005-09-18  Bruno Haible  <bruno@clisp.org>
48997
48998         * gnulib-tool (func_import): Comment out code that spits out the
48999         new files with --dry-run.
49000
49001 2005-09-18  Bruno Haible  <bruno@clisp.org>
49002
49003         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49004
49005 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49006
49007         * lib/stat-time.h: New file.
49008         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49009         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49010         in a different way.
49011         (timespec_cmp): New function.
49012         * lib/utimecmp.c: Include stat-time.h.
49013         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49014         members exist, not on the obsolescent ST_MTIM_NSEC.
49015         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49016
49017 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49020
49021 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49022
49023         * MODULES.html.sh (File system functions): Add stat-time.
49024         * modules/stat-time: New file.
49025         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49026         is now done in a different way, by the stat-time module.
49027         * modules/utimecmp (Depends-on): Add stat-time.
49028
49029 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49030
49031         * m4/st_mtim.m4: Remove.  Superseded by...
49032         * m4/stat-time.m4: New file.
49033         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49034         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49035
49036 2005-09-15  Derek Price  <derek@ximbiot.com>
49037
49038         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49039
49040 2005-09-15  Derek Price  <derek@ximbiot.com>
49041
49042         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49043         * lib/regex_internal.c: Ditto, using this...
49044         (__GNUC_PREREQ): ...new macro.
49045         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49046         using...
49047         (__GNUC_PREREQ): ...this new macro.
49048
49049         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49050
49051 2005-09-15  Derek Price  <derek@ximbiot.com>
49052             Paul Eggert  <eggert@cs.ucla.edu>
49053
49054         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49055         changes, consolidating in...
49056         * lib/regex_internal.h: ...this file.
49057
49058 2005-09-13  Jim Meyering  <jim@meyering.net>
49059
49060         * lib/canon-host.c: Filter through gnu indent and reword comments
49061         slightly.
49062         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49063
49064 2005-09-13  Derek Price  <derek@ximbiot.com>
49065
49066         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49067         failure.
49068         Reported by Jim Meyering  <jim@meyering.net>.
49069
49070 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49071
49072         * lib/base64.c: Typo.
49073         (base64_encode): Put b64str in initialized data section.
49074
49075 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         Merge glibc and coreutils changes into gnulib, plus a few
49078         extra fixes.
49079         * lib/md5.c: Use #error rather than a string.
49080         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49081         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49082         (__attribute__): Define to empty for non recent-GCC.
49083         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49084         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49085         Renamed from their non-__ counterparts, with new macros replacing
49086         them if not _LIBC.  Add __THROW attribute.
49087         (rol): Remove.
49088         (struct md5_ctx): Align buffer if using GCC.
49089         * lib/sha1.h (struct sha1_ctx): Likewise.
49090         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49091         The old name was backwards.
49092         (NOTSWAP): Remove; not used.
49093         (rol): New macro, moved here from md5.h.
49094         (sha1_process_block): Remove a FIXME that doesn't make sense.
49095
49096 2005-09-12  Derek Price  <derek@ximbiot.com>
49097
49098         Return usable errors from canon-host.
49099         * lib/canon-host.h: New file.
49100         * lib/canon-host.c (canon_host): Wrap...
49101         (canon_host_r): ...this new function, which now relies exclusively on
49102         getaddrinfo.
49103         (ch_strerror): New function.
49104         (last_cherror): New global.
49105         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49106         interface.
49107         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49108         void *.
49109         (freeaddrinfo): Free ai->ai_canonname when set.
49110
49111 2005-09-12  Derek Price  <derek@ximbiot.com>
49112
49113         Make canon-host require getaddrinfo.
49114         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49115         AC_LIBSOURCE canon-host.h.  Call...
49116         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49117         gl_GETADDRINFO.
49118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49119
49120 2005-09-12  Derek Price  <derek@ximbiot.com>
49121
49122         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49123         LGPL.
49124         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49125
49126 2005-09-12  Derek Price  <derek@ximbiot.com>
49127
49128         * lib/gai_strerror.c: Include config.h when available.  Include
49129         getaddrinfo.h before other headers to test interface.
49130         Reported by Larry Jones <lawrence.jones@ugs.com>.
49131
49132 2005-09-12  Derek Price  <derek@ximbiot.com>
49133             Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         * modules/glob (Files): Add glob-libc.h.
49136
49137 2005-09-12  Derek Price  <derek@ximbiot.com>
49138             Paul Eggert  <eggert@cs.ucla.edu>
49139
49140         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49141         glob_.h, glob-libc.h.
49142         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49143
49144 2005-09-12  Derek Price  <derek@ximbiot.com>
49145             Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49148         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49149         protecting things that should be done only in gnulib contexts.
49150         * lib/glob_.h: New file, containing only the glob things needed for
49151         gnulib.
49152         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49153         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49154         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49155         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49156         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49157         and to respect the namespace rules better.
49158
49159 2005-09-08  Simon Josefsson  <jas@extundo.com>
49160
49161         * modules/socklen: New file.
49162
49163 2005-09-08  Simon Josefsson  <jas@extundo.com>
49164
49165         * m4/socklen.m4: New file.
49166
49167 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49168
49169         * modules/utimens (Files): Add m4/utimbuf.m4, since
49170         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49171         Reported by Sergey Poznyakoff.
49172
49173 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49176         definitions, since that's the preferred style in glibc.
49177         Fix a minor spacing issue, and update copyright notice to match
49178         glibc's.
49179
49180 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49183
49184 2005-09-06  Simon Josefsson  <jas@extundo.com>
49185
49186         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49187         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49188
49189 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49192         warning.
49193
49194 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49195
49196         * config/srclist.txt: Add glibc bug 1302.
49197
49198 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         Change bitset word type from unsigned int to unsigned long int,
49201         as this has better performance on typical 64-bit hosts.
49202         Port bitset code to hosts with unusual word sizes.
49203         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49204         (build_collating_symbol):
49205         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49206         argument is a bitset.  This is merely a style issue, but it makes
49207         it clearer that an entire array is expected.
49208         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49209         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49210         Port to the case where bitset_word is not the same as unsigned int.
49211         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49212         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49213         Likewise.
49214         * lib/regexec.c (check_dst_limits_calc_pos_1,
49215         check_subexp_matching_top):
49216         (build_trtable, group_nodes_into_DFAstates):
49217         Likewise.
49218         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49219         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49220         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49221         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49222         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49223         * lib/regcomp.c (optimize_subexps, lower_subexp):
49224         Work even if bitset_word has holes in its bitwise representation.
49225         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49226         * lib/regexec.c (check_dst_limits_calc_pos_1,
49227         check_subexp_matching_top):
49228         Likewise.
49229         * lib/regex_internal.c (re_string_reconstruct):
49230         Don't assume UCHAR_MAX == 255.
49231         * lib/regex_internal.h (bitset_set_all): Likewise.
49232         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49233         All uses changed.
49234         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49235         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49236         All uses changed.
49237         (BITSET_WORD_MAX): New macro.
49238         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49239         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49240         (bitset_empty, bitset_copy):
49241         Prefer sizeof (bitset) to multiplying it out ourselves.
49242         (bitset_not_merge): Remove; unused.
49243         (bitset_contain): Return bool, not unsigned int with one bit on.
49244         All callers changed.
49245         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49246         alignment than re_node_set; do this by defining a new internal
49247         type struct dests_alloc and using it to allocate memory.
49248
49249 2005-09-05  Bruno Haible  <bruno@clisp.org>
49250
49251         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49252         links.
49253
49254 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49255
49256         * modules/size_max (Makefile.am): Add size_max.h
49257
49258 2005-09-04  Derek Price  <derek@ximbiot.com>
49259
49260         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49261
49262 2005-09-03  Simon Josefsson  <jas@extundo.com>
49263
49264         * gnulib-tool: Fix typo.
49265
49266 2005-09-03  Simon Josefsson  <jas@extundo.com>
49267
49268         * config/srclist.txt: Add glibc bug 1293.
49269
49270 2005-09-03  Derek Price  <derek@ximbiot.com>
49271
49272         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49273         From Larry Jones <lawrence.jones@ugs.com>.
49274
49275 2005-09-02  Simon Josefsson  <jas@extundo.com>
49276
49277         * modules/socklen: New file.
49278
49279 2005-09-02  Simon Josefsson  <jas@extundo.com>
49280
49281         * modules/havelib: New module.
49282
49283         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49284         Use havelib.
49285
49286 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49287
49288         Check for arithmetic overflow when calculating sizes, to prevent
49289         some buffer-overflow issues.  These patches are conservative, in the
49290         sense that when I couldn't determine whether an overflow was possible,
49291         I inserted a run-time check.
49292         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49293         macros.
49294         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49295         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49296         (re_xnrealloc, re_x2nrealloc): New inline functions.
49297         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49298         parse_bracket_exp):
49299         (build_equiv_class, build_charclass): Check for arithmetic overflow
49300         in size expression calculations.
49301         * lib/regex_internal.c (re_string_realloc_buffers):
49302         (build_wcs_upper_buffer, re_node_set_add_intersect):
49303         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49304         (re_dfa_add_node, register_state): Likewise.
49305         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49306         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49307         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49308         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49309
49310 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49311
49312         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49313         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49314
49315 2005-09-02  Bruno Haible  <bruno@clisp.org>
49316
49317         Support for lib vs. lib64 distinction on biarch platforms.
49318         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49319         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49321
49322 2005-09-02  Bruno Haible  <bruno@clisp.org>
49323
49324         * gnulib-tool (import): In the other first-use case, provide defaults
49325         as well.
49326
49327 2005-09-02  Bruno Haible  <bruno@clisp.org>
49328
49329         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49330         patches not yet found in the latest gettext release.
49331
49332 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49335         to avoid a collision with bits/local_lim.h in glibc.
49336         All uses changed.  Problem reported by Dmitry V. Levin in
49337         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49338
49339         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49340         bugs in int versus size_t comparisons.
49341         (re_string_context_at): Fix bug where the code assumed that
49342         Idx is signed.
49343
49344         Use bool where appropriate.
49345         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49346         All callers changed.
49347         (calc_eclosure_iter): Likewise, for ROOT arg.
49348         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49349         (build_charclass_op): Likewise, for NON_MATCH arg.
49350         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49351         (re_string_construct_common): Likewise, for ICASE arg.
49352         * lib/regexec.c (re_search_2_stub, re_search_stub):
49353         Likewise, for RET_LEN arg.
49354         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49355         (set_regs): Likewise, for FL_BACKTRACK arg.
49356         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49357         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49358         (calc_eclosure_iter, parse_bracket_exp):
49359         Use bool for internal variables that are booleans.
49360         * lib/regexec.c (re_search_internal, check_matching,
49361         proceed_next_node):
49362         (set_regs, build_sifted_states, sift_states_bkref):
49363         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49364         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49365         (find_collation_sequence_value):
49366         Likewise.
49367         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49368         (re_node_set_compare):
49369         Return bool, not int. All callers changed.
49370         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49371         (build_trtable, check_node_accept): Likewise.
49372         * lib/regex_internal.h: Include stdbool.h.
49373
49374         Fix bugs uncovered when converting to bool.
49375         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49376         failure instead of charging ahead blindly.
49377         * lib/regex_internal.c (register_state): Likewise.
49378         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49379         for freeing internal storage.
49380         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49381         bitset pieces used as boolean, to avoid undefined behavior
49382         on hosts that do int overflow checking.
49383
49384 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49385
49386         * config/srclist.txt: Add glibc bugs 1285-1287.
49387
49388 2005-09-01  Jim Meyering  <jim@meyering.net>
49389
49390         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49391         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49392         Require gl_STAT_MACROS, too.
49393
49394 2005-09-01  Bruno Haible  <bruno@clisp.org>
49395
49396         * gnulib-tool (import): In the first-use case, provide defaults.
49397
49398 2005-09-01  Bruno Haible  <bruno@clisp.org>
49399
49400         * gnulib-tool (func_import): Remove the .tmp files.
49401
49402 2005-09-01  Bruno Haible  <bruno@clisp.org>
49403
49404         * gnulib-tool (func_import): Fix handling of symbolic links.
49405
49406 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49407
49408         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49409         old glibc regex code mishandles strings longer than 2**31 bytes.
49410         This patch fixes this when the regex code is used in gnulib
49411         (i.e., outside glibc).
49412
49413         This patch should not affect the use of the regex code inside
49414         glibc.  No doubt this problem also needs to be handled for glibc
49415         as well, but the result will be an incompatible change to the
49416         glibc ABI, and the old ABI will have to be supported too.  That
49417         can be the the subject for another patch.
49418
49419         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49420         governing whether the rest of this patch is active.  By default,
49421         the macro is disabled and the patch has no effect.
49422         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49423         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49424         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49425         (re_match_2, re_set_registers): Use the new types.
49426         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49427         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49428         New macros.
49429         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49430         (re_string_context_at, bin_tree_t, re_dfastate_t):
49431         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49432         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49433         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49434         (re_string_char_size_at, re_string_wchar_at):
49435         (re_string_elem_size_at):
49436         Use the new types and macros to port to 64-bit hosts.
49437         Use unsigned types for internal values, so that the code
49438         mostly works even for arrays larger than SSIZE_MAX.
49439         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49440         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49441         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49442         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49443         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49444         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49445         (calc_inveclosure, parse_dup_op, build_range_exp):
49446         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49447         (fetch_number, create_token_tree, mark_opt_subexp):
49448         Likewise.
49449         * lib/regex_internal.c (re_string_construct_common,
49450         create_ci_newstate):
49451         (create_cd_newstate, re_string_allocate, re_string_construct):
49452         (re_string_realloc_buffers, build_wcs_upper_buffer):
49453         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49454         (re_string_reconstruct, re_string_peek_byte_case):
49455         (re_string_fetch_byte_case, re_string_context_at):
49456         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49457         (re_node_set_init_copy, re_node_set_add_intersect):
49458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49460         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49461         (re_acquire_state, re_acquire_state_context, register_state):
49462         Likewise.
49463         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49464         search_cur_bkref_entry):
49465         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49466         (re_search_internal, re_search_2_stub, re_search_stub)
49467         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49468         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49469         (update_cur_sifted_state, check_dst_limits):
49470         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49471         (check_subexp_limits, sift_states_bkref, merge_state_array):
49472         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49473         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49474         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49475         (expand_bkref_cache, check_node_accept_bytes):
49476         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49477         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49478         (acquire_init_state_context, check_halt_node_context):
49479         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49480         (sift_states_backward, clean_state_log_if_needed):
49481         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49482         (find_recover_state, transit_state_sb, transit_state_mb):
49483         (transit_state_bkref, build_trtable, match_ctx_clean):
49484         Likewise.
49485         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49486         to work around an assumption that REG_MISSING is negative.
49487
49488         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49489         (seek_collating_symbol_entry) [defined _LIBC]:
49490         (lookup_collation_sequence_value) [defined _LIBC]:
49491         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49492         Use prototypes rather than old-style function definitions.
49493         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49494         (transit_state_sb) [0]:
49495         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49496
49497         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49498         rm_eo.
49499
49500         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49501         (optimize_subexps, lower_subexp):
49502         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49503         since the signed shift might overflow.  Use 1u<<31 instead.
49504         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49505         Likewise.
49506         * lib/regexec.c (check_dst_limits_calc_pos_1,
49507         check_subexp_matching_top): Likewise.
49508
49509         * lib/regcomp.c (optimize_subexps, lower_subexp):
49510         Use CHAR_BIT rather than 8, for clarity.
49511         * lib/regexec.c (check_dst_limits_calc_pos_1):
49512         (check_subexp_matching_top): Likewise.
49513         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49514         have to worry about portability issues when shifting it left.
49515         Remove no-longer-needed test for table_size > 0.
49516         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49517         in a word, as the resulting behavior is undefined.
49518         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49519         in one case, a <= should have been an <, and in another case the
49520         whole test was missing.
49521         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49522         the standard name CHAR_BIT.
49523         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49524         this is not true on one's complement and signed-magnitude hosts.
49525
49526         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49527         next_last_offset.
49528         (struct re_dfa_t): Remove unused member states_alloc.
49529         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49530
49531 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49532
49533         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49534         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49535         and large-file glibc and in 32-bit large-file Solaris.
49536
49537 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49538
49539         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49540         lengths fit in regoff_t; this isn't true if regoff_t is the same
49541         width as size_t.
49542         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49543         (= START + RANGE) instead of RANGE.  This avoids overflow
49544         problems when regoff_t is the same width as size_t.
49545         All callers changed.
49546         (re_search_2_stub): Check for overflow when adding the
49547         sizes of the two strings.
49548         (re_search_stub): Check for overflow when adding START
49549         to RANGE; if it occurs, substitute the extreme value.
49550
49551 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49552
49553         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49554
49555 2005-08-31  Jim Meyering  <jim@meyering.net>
49556
49557         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49558         a pointer-to-const.
49559         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49560         (register_state): Likewise.
49561         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49562         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49563         (group_nodes_into_DFAstates): Likewise.
49564
49565 2005-08-31  Jim Meyering  <jim@meyering.net>
49566
49567         * check-module: Add a FIXME comment.
49568
49569 2005-08-31  Eric Blake  <ebb9@byu.net>
49570
49571         * modules/unistd-safer (Files): Add unistd--.h.
49572         * modules/stdio-safer (Files): Add stdio--.h.
49573
49574 2005-08-31  Derek Price  <derek@ximbiot.com>
49575
49576         * lib/getdelim.c (getdelim): Return EOF on EOF.
49577         Reported by Larry Jones <lawrence.jones@ugs.com>.
49578
49579 2005-08-31  Bruno Haible  <bruno@clisp.org>
49580
49581         Avoid unnecessary diffs in the generated lib/Makefile.am.
49582         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49583         the generated files.
49584         (func_import): Don't set cmd.
49585
49586 2005-08-31  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/strstr.c: Include <stddef.h>, for NULL.
49589         * lib/strcasestr.c: Likewise.
49590         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49591
49592 2005-08-31  Bruno Haible  <bruno@clisp.org>
49593
49594         * gnulib-tool: New option --macro-prefix.
49595         (func_import): Use macro_prefix.
49596         (import): Handle option --macro-prefix.
49597
49598 2005-08-31  Bruno Haible  <bruno@clisp.org>
49599
49600         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49601         Also use new variables cached_lgpl, cached_libtool.
49602
49603 2005-08-31  Bruno Haible  <bruno@clisp.org>
49604
49605         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49606         always instantiating them.
49607
49608 2005-08-31  Bruno Haible  <bruno@clisp.org>
49609
49610         * gnulib-tool (func_import): Read the previous cached settings
49611         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49612         earlier added by gnulib but are now dropped. Warn when a gnulib file
49613         overwrites a non-gnulib file.
49614
49615 2005-08-31  Bruno Haible  <bruno@clisp.org>
49616
49617         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49618         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49619         projects that don't keep autogenerated files in CVS. Put into
49620         actioncmd only the specified modules, not the transitive closure.
49621
49622 2005-08-31  Bruno Haible  <bruno@clisp.org>
49623
49624         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49625         Create directories that shall be filled.
49626         (import): Don't look for gl_* macros in configure.ac. Recurse across
49627         all directories containing a gnulib-cache.m4 files, if meaningful.
49628
49629 2005-08-31  Bruno Haible  <bruno@clisp.org>
49630
49631         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49632         (import): Set seen_libtool when we see gl_LIBTOOL.
49633
49634 2005-08-31  Bruno Haible  <bruno@clisp.org>
49635
49636         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49637         declaration macro definitions from generated gnulib.m4.
49638
49639 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49640
49641         * lib/iconvme.h: Add prototype for iconv_alloc.
49642
49643 2005-08-29  Simon Josefsson  <jas@extundo.com>
49644
49645         * lib/iconvme.c: Fix errno.
49646
49647 2005-08-29  Bruno Haible  <bruno@clisp.org>
49648
49649         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49650         that it works when the directory contains spaces.
49651
49652 2005-08-29  Bruno Haible  <bruno@clisp.org>
49653
49654         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49655
49656 2005-08-29  Bruno Haible  <bruno@clisp.org>
49657
49658         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49659         Emit more advice.
49660
49661 2005-08-29  Bruno Haible  <bruno@clisp.org>
49662         and Stepan Kasal  <kasal@ucw.cz>
49663
49664         * check-module: If more parameters are given, check each of them
49665         separately; add more exceptions, as noted by Jim Meyering.
49666         (check_module): New procedure.
49667         (%exempt_header): Now contains all exceptions.
49668
49669 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49670
49671         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49672
49673 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49674
49675         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49676
49677 2005-08-28  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/gnulib-tool.m4: New file.
49680
49681 2005-08-27  Jim Meyering  <jim@meyering.net>
49682
49683         * modules/unistd-safer (Files): Add pipe-safer.c.
49684         * modules/fcntl-safer (Files): Add creat-safer.c.
49685
49686 2005-08-27  Jim Meyering  <jim@meyering.net>
49687
49688         * m4/stdlib-safer.m4: New file.  From coreutils.
49689         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49690         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49691         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49692         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49693         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49694
49695 2005-08-27  Jim Meyering  <jim@meyering.net>
49696
49697         * lib/fopen-safer.c: Merge minor changes from coreutils.
49698         * lib/dup-safer.c: Likewise.
49699         * lib/fd-safer.c: Likewise.
49700
49701         Merge from coreutils.
49702         * lib/stdio--.h: New file.
49703         * lib/stdlib--.h: New file.
49704         * lib/mkstemp-safer.c: New file.
49705
49706         GNU tar needs these.
49707         * lib/pipe-safer.c: New file.
49708         * lib/creat-safer.c: New file.
49709         * lib/fcntl--.h (creat): Define to creat_safer.
49710         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49711         * lib/unistd--.h (pipe): Define to pipe_safer.
49712         * lib/unistd-safer.h: Declare pipe_safer.
49713
49714 2005-08-26  Simon Josefsson  <jas@extundo.com>
49715
49716         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49717         Haible <bruno@clisp.org>.
49718
49719 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * lib/regex_internal.h: Remove all references to
49722         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49723         or better.
49724         (bitset_not, bitset_merge, bitset_not_merge):
49725         (bitset_mask, re_string_allocate, re_string_construct):
49726         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49727         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49728         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49729         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49730         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49731         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49732         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49733         (re_acquire_state_context):
49734         Remove unnecessary forward decls.
49735         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49736         Put __attribute at function definition,
49737         now that the function decl has been removed.
49738         * lib/regex_internal.c (re_string_peek_byte_case):
49739         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49740         Likewise.
49741
49742 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49743
49744         * m4/regex.m4: Add AC_PREREQ(2.50).
49745         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49746
49747 2005-08-25  Simon Josefsson  <jas@extundo.com>
49748
49749         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49750         __fsetlocking.
49751
49752 2005-08-25  Simon Josefsson  <jas@extundo.com>
49753
49754         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49755         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49756         GLIBC specific code.
49757
49758 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         Make regex safe for g++.  This fixes one real bug (an "err"
49761         that should have been "*err").  g++ problem reported by
49762         Sam Steingold.
49763         * lib/regex_internal.h (re_calloc): New macro, consistent with
49764         re_malloc etc.  All callers of calloc changed to use re_calloc.
49765         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49766         not int.  All callers changed.
49767         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49768         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49769         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49770         (find_recover_state): Change "err" to "*err"; this fixes what
49771         appears to be a real bug.
49772         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49773         versus int.
49774
49775 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49776
49777         * modules/regex (Depends-on): Add malloc, since the code
49778         assumes that !malloc(0) means failure.
49779
49780 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49781
49782         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49783
49784         alloca modernization/simplification for regex.
49785         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49786         needs to be at the start of the file, and can be moved into
49787         regex_internal.h and simplified.
49788         * lib/regex_internal.h: Include <alloca.h>.
49789         (__libc_use_alloca) [!defined _LIBC]: New macro.
49790         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49791         now works outside glibc.
49792
49793 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49794
49795         * config/srclist.txt: Add glibc bugs 1241, 1245.
49796
49797 2005-08-25  Jim Meyering  <jim@meyering.net>
49798
49799         * lib/open-safer.c: Include <config.h>.
49800         Otherwise, we'd lose LARGEFILE support in any file using
49801         e.g. "fcntl--.h"
49802
49803 2005-08-25  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/minmax.m4: Require autoconf 2.52.
49806         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49807         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49808         alternatives of translit over the alphabet.
49809         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49810
49811 2005-08-24  Simon Josefsson  <jas@extundo.com>
49812
49813         * tests/test-getpass.c: New file.
49814
49815 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49816
49817         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49818         for GNU regex features.
49819
49820 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49821
49822         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49823         * lib/regex.h (regerror): Likewise.
49824
49825         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49826         requires this.  (The code never needed it.)
49827
49828         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49829         All uses of recently-renamed identifiers changed to use the new,
49830         POSIX-compliant names.  The code will build and run just fine
49831         without these changes, but it's better to eat our own dog food
49832         and use the standard-conforming names.
49833
49834         * lib/regex.h: Fix a multitude of POSIX name space violations.
49835         These changes have an effect only for programs that define
49836         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49837         do not change anything for programs compiled in the normal way.
49838         Also, there is no effect on the ABI.
49839
49840         (_REGEX_SOURCE): New macro.
49841         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49842         defined and _GNU_SOURCE is not; this fixes a name space violation.
49843
49844         Rename the following macros to obey POSIX requirements.
49845         The old names are still visible as macros if _REGEX_SOURCE is defined.
49846         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49847         RE_BACKSLASH_ESCAPE_IN_LISTS.
49848         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49849         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49850         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49851         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49852         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49853         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49854         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49855         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49856         (REG_INTERVALS): renamed from RE_INTERVALS.
49857         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49858         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49859         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49860         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49861         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49862         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49863         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49864         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49865         RE_UNMATCHED_RIGHT_PAREN_ORD.
49866         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49867         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49868         (REG_DEBUG): renamed from RE_DEBUG.
49869         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49870         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49871         unusual, since we can't clash with the POSIX REG_ICASE.
49872         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49873         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49874         (REG_NO_SUB): renamed from RE_NO_SUB.
49875         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49876         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49877         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49878         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49879         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49880         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49881         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49882         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49883         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49884         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49885         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49886         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49887         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49888         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49889         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49890         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49891         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49892         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49893         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49894         (REG_FIXED): Renamed from REGS_FIXED.
49895         (REG_NREGS): Renamed from RE_NREGS.
49896
49897         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49898         of other REG_* macros, since POSIX says the user is allowed to
49899         #undef these macros selectively.
49900
49901         (reg_errcode_t): Update comment stating what other tables need
49902         to be consistent.
49903
49904         Rename the following enum values to obey POSIX requirements.
49905         The old names are still visible as macros.
49906         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49907         is not defined, since GNU is supposed to be a superset of POSIX as
49908         much as possible, and since we want reg_errcode_t to be a signed
49909         type for implementation consistency.
49910         (_REG_NOERROR): Renamed from REG_NOERROR.
49911         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49912         (_REG_BADPAT): Renamed from REG_BADPAT.
49913         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49914         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49915         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49916         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49917         (_REG_EBRACK): Renamed from REG_EBRACK.
49918         (_REG_EPAREN): Renamed from REG_EPAREN.
49919         (_REG_EBRACE): Renamed from REG_EBRACE.
49920         (_REG_BADBR): Renamed from REG_BADBR.
49921         (_REG_ERANGE): Renamed from REG_ERANGE.
49922         (_REG_ESPACE): Renamed from REG_ESPACE.
49923         (_REG_BADRPT): Renamed from REG_BADRPT.
49924         (_REG_EEND): Renamed from REG_EEND.
49925         (_REG_ESIZE): Renamed from REG_ESIZE.
49926         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49927         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49928         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49929         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49930         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49931
49932         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49933         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49934         changed.  But support the old name if the new one is not defined
49935         and if _REGEX_SOURCE.
49936
49937         Change the following member names in struct re_pattern_buffer.
49938         The old names are still supported if !_REGEX_SOURCE.
49939         The new names are always supported, regardless of _REGEX_SOURCE.
49940         (re_buffer): Renamed from buffer.
49941         (re_allocated): Renamed from allocated.
49942         (re_used): Renamed from used.
49943         (re_syntax): Renamed from syntax.
49944         (re_fastmap): Renamed from fastmap.
49945         (re_translate): Renamed from translate.
49946         (re_can_be_null): Renamed from can_be_null.
49947         (re_regs_allocated): Renamed from regs_allocated.
49948         (re_fastmap_accurate): Renamed from fastmap_accurate.
49949         (re_no_sub): Renamed from no_sub.
49950         (re_not_bol): Renamed from not_bol.
49951         (re_not_eol): Renamed from not_eol.
49952         (re_newline_anchor): Renamed from newline_anchor.
49953
49954         Change the following member names in struct re_registers.
49955         The old names are still supported if !_REGEX_SOURCE.
49956         The new names are always supported, regardless of _REGEX_SOURCE.
49957         (rm_num_regs): Renamed from num_regs.
49958         (rm_start): Renamed from start.
49959         (rm_end): Renamed from end.
49960
49961         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49962         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49963         Prepend __ to parameter names.
49964
49965         Undo yesterday's changes.
49966
49967 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49970         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49971         lib/regex.c.
49972
49973 2005-08-24  Jim Meyering  <jim@meyering.net>
49974
49975         Sync from coreutils.
49976         * m4/fcntl-safer.m4: New file.
49977
49978         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49979         and object files for this module.
49980
49981 2005-08-24  Jim Meyering  <jim@meyering.net>
49982
49983         Sync from coreutils.
49984         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49985
49986 2005-08-24  Jim Meyering  <jim@meyering.net>
49987
49988         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49989         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49990
49991 2005-08-24  Jim Meyering  <jim@meyering.net>
49992
49993         * modules/fcntl-safer: New module.
49994         * modules/fts (Depends-on): Add fcntl-safer.
49995         * MODULES.html.sh (File descriptor based Input/Output):
49996         Add fcntl-safer.
49997
49998 2005-08-24  Bruno Haible  <bruno@clisp.org>
49999
50000         Support for unit test modules.
50001         * modules/README: Mention tests modules.
50002         * modules/TEMPLATE-TESTS: New file.
50003         * gnulib-tool: New options --extract-tests-module, --with-tests and
50004         --tests-base (unused for the moment).
50005         (testsbase, inctests): New variables.
50006         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50007         (func_verify_module): Exclude TEMPLATE-TESTS.
50008         (func_verify_nontests_module, func_verify_tests_module): New functions.
50009         (func_get_dependencies): Add implicit dependency for tests modules.
50010         (func_get_tests_module): New function.
50011         (func_modules_transitive_closure): When --with-tests was specified,
50012         include the unit tests as well, unless explicitly avoided.
50013         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50014         (func_emit_tests_Makefile_am): New function.
50015         (func_create_testdir): When --with-tests was specified, emit a
50016         tests/ directory.
50017         * MODULES.html.sh (Future developments): Update.
50018
50019 2005-08-24  Bruno Haible  <bruno@clisp.org>
50020
50021         * modules/tls-tests: New file.
50022         * tests/test-tls.c: New file, from GNU gettext.
50023
50024 2005-08-24  Bruno Haible  <bruno@clisp.org>
50025
50026         * modules/lock-tests: New file.
50027         * tests/test-lock.c: New file, from GNU gettext.
50028
50029 2005-08-24  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/lock.h: Add multiple inclusion guard.
50032         * lib/tls.h: Add multiple inclusion guard.
50033
50034 2005-08-24  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool: Add support for the --aux-dir option to
50037         --create-testdir, --create-megatestdir, --test, --megatest.
50038         (func_create_testdir, func_create_megatestdir): Optionally emit a
50039         AC_CONFIG_AUX_DIR directive.
50040         (create-testdir, create-megatestdir, test, megatest): Provide a
50041         default value for $auxdir.
50042
50043 2005-08-24  Bruno Haible  <bruno@clisp.org>
50044
50045         * gnulib-tool (import): Use compound statement instead of subshell
50046         where possible.
50047
50048 2005-08-24  Bruno Haible  <bruno@clisp.org>
50049
50050         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50051
50052 2005-08-24  Bruno Haible  <bruno@clisp.org>
50053
50054         * gnulib-tool (func_version): Update.
50055
50056 2005-08-24  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_import, func_create_testdir,
50059         func_create_megatestdir): Quote all autoconf macro arguments.
50060
50061 2005-08-24  Bruno Haible  <bruno@clisp.org>
50062
50063         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50064         option --force, because --force causes the aclocal.m4 of each
50065         subdirectory to be newer than the corresponding config.h.in.
50066
50067 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50070         All contents moved to gl_REGEX.
50071         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50072         assume that it does.
50073
50074 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         * lib/regex.h (REG_NOSYS)
50077         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50078         Define, since POSIX requires it as of 2001.
50079         (_REG_ENOSYS)
50080         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50081         New private symbol, used to keep the enum signed in all cases.
50082         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50083         Youngman in
50084         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50085
50086         * lib/regex_internal.c (re_string_skip_chars, register_state):
50087         (calc_state_hash):
50088         Remove forward decls; no longer needed now that we use prototypes.
50089         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50090         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50091         (clean_state_log_if_needed): Likewise.
50092
50093 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * config/srclist.txt: Add glibc bugs 1231-1233.
50096
50097 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         Fix problems reported by Sam Steingold in
50100         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50101         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50102         assumed that reg_errcode_t is a signed type, which is not
50103         necessarily true if _XOPEN_SOURCE is not defined.
50104         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50105         since some compilers warn about it otherwise.
50106
50107 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50108
50109         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50110         (init_word_char, create_initial_state, duplicate_node_closure):
50111         (fetch_token, peek_token_bracket, build_range_exp):
50112         (build_collating_symbol): Remove forward decls; no longer needed
50113         now that we use prototypes.
50114
50115         * lib/regcomp.c:
50116         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50117         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50118         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50119         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50120         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50121         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50122         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50123         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50124         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50125         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50126         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50127         (build_charclass, build_charclass_op, fetch_number, create_tree):
50128         (create_token_tree, mark_opt_subexp, duplicate_tree):
50129         Use prototypes rather than old-style definitions.
50130
50131         * lib/regex_internal.c:
50132         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50133         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50134         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50135         (re_string_reconstruct, re_string_peek_byte_case):
50136         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50137         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50138         (re_node_set_init_copy, re_node_set_add_intersect):
50139         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50140         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50141         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50142         (re_acquire_state, re_acquire_state_context, register_state):
50143         (create_ci_newstate, create_cd_newstate, free_state):
50144         Likewise.
50145         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50146         re_search_2):
50147         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50148         (re_search_internal, prune_impossible_nodes):
50149         (acquire_init_state_context, check_matching, static):
50150         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50151         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50152         (update_regs, sift_states_backward, build_sifted_states):
50153         (clean_state_log_if_needed, merge_state_array):
50154         (update_cur_sifted_state, add_epsilon_src_nodes):
50155         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50156         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50157         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50158         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50159         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50160         (check_arrival, check_arrival_add_next_nodes):
50161         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50162         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50163         (check_node_accept_bytes, check_node_accept, extend_buffers):
50164         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50165         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50166         (sift_ctx_init):
50167         Likewise.
50168
50169         * lib/regex_internal.h:
50170         (re_string_allocate, re_string_construct, re_string_reconstruct):
50171         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50172         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50173         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50174         (re_string_context_at, re_string_peek_byte_case):
50175         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50176         is defined, since we now use prototypes always.
50177
50178         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50179         C89 or better.  All uses removed.
50180
50181 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50182
50183         * config/srclist.txt: Add glibc bugs 1220-1227.
50184
50185 2005-08-20  Jim Meyering  <jim@meyering.net>
50186
50187         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50188         of unused local, dfa.
50189
50190 2005-08-20  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50193
50194 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50195
50196         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50197         (re_node_set_insert_last, re_dfa_add_node):
50198         Rename local variables to avoid GCC shadowing warnings.
50199
50200 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50203         [defined lint]: Suppress bogus uninitialized-variable warnings.
50204
50205         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50206         and let the caller return REG_ESPACE if out of space.  This
50207         removes an uninitialied-variable warning with GCC 4.0.1, and also
50208         avoids taking the address of a local variable.  All callers
50209         changed.
50210
50211 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50214         $LIBCSRC/posix/regexec.c.
50215         Add glibc bug 1217 for regcomp.c.
50216
50217 2005-08-19  Jim Meyering  <jim@meyering.net>
50218
50219         * lib/regexec.c (proceed_next_node): Redo local variables to
50220         avoid GCC shadowing warnings.
50221
50222 2005-08-18  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/strstr.c (strstr): Fix return value in multibyte case.
50225         * lib/strcasestr.c (strcasestr): Likewise.
50226
50227 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50228
50229         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50230
50231 2005-08-17  Jim Meyering  <jim@meyering.net>
50232
50233         Make the %s format (seconds since the epoch) work for a negative
50234         number and when used with a zero-padded field width, e.g. %015s.
50235
50236         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50237         label so that it precedes the code to set `digits'.  Otherwise,
50238         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50239         print `00-22'.  Now, it prints `-0022', as it should.
50240
50241 2005-08-17  Bruno Haible  <bruno@clisp.org>
50242
50243         * modules/strstr (Files): Add m4/mbrtowc.m4.
50244         (Depends-on): Add mbuiter.
50245
50246 2005-08-17  Bruno Haible  <bruno@clisp.org>
50247
50248         * modules/strcasestr: New file.
50249         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50250         strcasestr.
50251
50252 2005-08-17  Bruno Haible  <bruno@clisp.org>
50253
50254         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50255
50256 2005-08-17  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/mbuiter: New file.
50259         * MODULES.html.sh (Extended multibyte and wide character utilities):
50260         Add mbuiter.
50261
50262 2005-08-17  Bruno Haible  <bruno@clisp.org>
50263
50264         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50265         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50266
50267 2005-08-17  Bruno Haible  <bruno@clisp.org>
50268
50269         * m4/strcasestr.m4: New file.
50270
50271 2005-08-17  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50274         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50275
50276 2005-08-17  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/strcasestr.h: New file.
50279         * lib/strcasestr.c: New file.
50280
50281 2005-08-17  Bruno Haible  <bruno@clisp.org>
50282
50283         * lib/strcasecmp.c: Use mbuiter.h.
50284
50285 2005-08-17  Bruno Haible  <bruno@clisp.org>
50286
50287         * lib/mbuiter.h: New file.
50288
50289 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50290
50291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50292         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50293         and gl_GETOPT are both invoked via different paths (as happens
50294         with GNU tar CVS because it uses both argp and getopt), the former
50295         wins.
50296
50297 2005-08-16  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/tls: New file.
50300         * MODULES.html.sh (Multithreading): Add tls.
50301
50302 2005-08-16  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/strnlen1: New file.
50305         * MODULES.html.sh (String handling): Add strnlen1.
50306
50307 2005-08-16  Bruno Haible  <bruno@clisp.org>
50308
50309         * modules/strcase (Files): Add m4/mbrtowc.m4.
50310         (Depends-on): Add strnlen1, mbchar.
50311
50312 2005-08-16  Bruno Haible  <bruno@clisp.org>
50313
50314         * modules/mbiter: New file.
50315         * MODULES.html.sh (Extended multibyte and wide character utilities):
50316         Add mbiter.
50317
50318 2005-08-16  Bruno Haible  <bruno@clisp.org>
50319
50320         * modules/mbfile: New file.
50321         * MODULES.html.sh (Extended multibyte and wide character utilities):
50322         Add mbfile.
50323
50324 2005-08-16  Bruno Haible  <bruno@clisp.org>
50325
50326         * modules/mbchar: New file.
50327         * MODULES.html.sh (Extended multibyte and wide character utilities):
50328         New section.
50329
50330 2005-08-16  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/tls.m4: New file, from GNU gettext.
50333
50334 2005-08-16  Bruno Haible  <bruno@clisp.org>
50335
50336         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50337         always.
50338         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50339
50340 2005-08-16  Bruno Haible  <bruno@clisp.org>
50341
50342         * m4/mbiter.m4: New file.
50343
50344 2005-08-16  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/mbfile.m4: New file.
50347
50348 2005-08-16  Bruno Haible  <bruno@clisp.org>
50349
50350         * m4/mbchar.m4: New file.
50351
50352 2005-08-16  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/tls.h: New file, from GNU gettext.
50355         * lib/tls.c: New file, from GNU gettext.
50356
50357 2005-08-16  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/strnlen1.h: New file.
50360         * lib/strnlen1.c: New file.
50361
50362 2005-08-16  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50365         (mbi_init): Update.
50366         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50367         NUL byte, not after it.
50368
50369 2005-08-16  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/strcase.h (strcasecmp): Add note in comments.
50372         * lib/strncasecmp.c: Use code from strcasecmp.c.
50373         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50374         (strcasecmp): Work correctly in multibyte locales.
50375
50376 2005-08-16  Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/mbiter.h: New file.
50379
50380 2005-08-16  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/mbfile.h: New file.
50383
50384 2005-08-16  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/mbchar.h: New file.
50387         * lib/mbchar.c: New file.
50388
50389 2005-08-16  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50392         the valid ones. Makes the comparison operations transitive:
50393         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50394         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50395
50396 2005-08-15  Simon Josefsson  <jas@extundo.com>
50397
50398         * modules/ssize_t (License): Change to 'unlimited'.
50399
50400         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50401
50402 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50405         Add comments for each pending glibc patch.
50406
50407 2005-08-15  Bruno Haible  <bruno@clisp.org>
50408
50409         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50410         __cplusplus is defined.
50411
50412 2005-08-14  Jim Meyering  <jim@meyering.net>
50413
50414         Sync from coreutils.
50415
50416         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50417         Use the hash-table-based cycle-detection code not just when
50418         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50419         Reported by James Youngman in
50420         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50421         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50422         FTS_TIGHT_CYCLE_CHECK.
50423         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50424         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50425         once again.
50426         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50427         * lib/fts.c (fd_safer): Remove decl.
50428         Include fcntl--.h rather than unistd-safer.h
50429         (fts_safe_changedir): Don't call fd_safer; no longer needed
50430         now that we include fcntl--.h.
50431
50432 2005-08-12  Simon Josefsson  <jas@extundo.com>
50433
50434         * modules/getndelim2: Use ssize_t module.
50435         * modules/getnline: Likewise.
50436         * modules/safe-read: Likewise.
50437         * modules/xreadlink: Likewise.
50438
50439         * modules/ssize_t: New file.
50440
50441 2005-08-12  Simon Josefsson  <jas@extundo.com>
50442
50443         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50444
50445 2005-08-12  Simon Josefsson  <jas@extundo.com>
50446
50447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50448         ssize_t.
50449
50450 2005-08-12  Simon Josefsson  <jas@extundo.com>
50451
50452         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50453         readline, getdelim and check_version.
50454         (Support for systems lacking ISO C 99: Sizes of integer types):
50455         Add size_max.
50456
50457 2005-08-12  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50460
50461 2005-08-11  Simon Josefsson  <jas@extundo.com>
50462
50463         * modules/readline: New file.
50464
50465         * modules/strnlen (Files): Add strnlen.h.
50466
50467 2005-08-11  Simon Josefsson  <jas@extundo.com>
50468
50469         * m4/readline.m4: New file.
50470
50471 2005-08-11  Simon Josefsson  <jas@extundo.com>
50472
50473         * lib/readline.h, readline.c: New file.
50474
50475 2005-08-11  Simon Josefsson  <jas@extundo.com>
50476
50477         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50478         gl_AVOID.
50479
50480 2005-08-11  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50483
50484 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50485
50486         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50487
50488 2005-08-10  Simon Josefsson  <jas@extundo.com>
50489
50490         * tests/test-iconvme.c: New file.
50491
50492 2005-08-10  Simon Josefsson  <jas@extundo.com>
50493
50494         * m4/strnlen.m4: New file.
50495
50496         * m4/strndup.m4: Don't check for strnlen declaration, done in
50497         strnlen.m4.
50498
50499 2005-08-10  Simon Josefsson  <jas@extundo.com>
50500
50501         * lib/strndup.c: Use strnlen.h.
50502
50503         * lib/strnlen.h: New file.
50504
50505 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50506
50507         * README: Typos.
50508
50509 2005-08-02  Simon Josefsson  <jas@extundo.com>
50510
50511         * modules/readline: New file.
50512
50513 2005-08-02  Simon Josefsson  <jas@extundo.com>
50514
50515         * modules/getdelim: New file.
50516
50517         * modules/getline: Rewrite, don't use getndelim2.
50518
50519 2005-08-02  Simon Josefsson  <jas@extundo.com>
50520
50521         * m4/getline.m4: Separate out getdelim stuff into separate module.
50522
50523         * m4/getdelim.m4: New file.
50524
50525 2005-08-02  Simon Josefsson  <jas@extundo.com>
50526
50527         * lib/getline.h, getline.c: Rewrite.
50528
50529         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50530
50531 2005-07-31  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/lock.h (gl_lock_initializer): New macro.
50534         (gl_lock_define_initialized): Use it.
50535         (gl_rwlock_initializer): New macro.
50536         (gl_rwlock_define_initialized): Use it.
50537         (gl_recursive_lock_initializer): New macro.
50538         (gl_recursive_lock_define_initialized): Use it.
50539
50540 2005-07-30  Karl Berry  <karl@gnu.org>
50541
50542         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50543         Report from Ben Pfaff, regarding getopt.
50544
50545 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50546
50547         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50548         normal way.
50549         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50550         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50551         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50552         (gl_GETOPT): Use the new macros.  Most of the implementation
50553         is moved to the new macros.  This is for programs like Emacs
50554         that don't want all the functionality of gl_GETOPT.
50555
50556 2005-07-26  Bruno Haible  <bruno@clisp.org>
50557
50558         * m4/lock.m4: Update from GNU gettext.
50559
50560 2005-07-26  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/lock.h: Update from GNU gettext.
50563         * lib/lock.c: Update from GNU gettext.
50564
50565 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50568         obsolescent AC_TRY_RUN.  Include the default includes files, for
50569         'exit'.
50570
50571 2005-07-24  Bruno Haible  <bruno@clisp.org>
50572
50573         * modules/visibility: New file.
50574         * MODULES.html.sh (Misc): Add visibility.
50575
50576 2005-07-24  Bruno Haible  <bruno@clisp.org>
50577
50578         * m4/visibility.m4: New file.
50579
50580 2005-07-24  Bruno Haible  <bruno@clisp.org>
50581
50582         * doc/visibility.texi: New file.
50583
50584 2005-07-22  Bruno Haible  <bruno@clisp.org>
50585
50586         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50587         $(ALLOCA_H), redundant through BUILT_SOURCES.
50588         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50589         redundant through BUILT_SOURCES.
50590         * modules/byteswap (Makefile.am): Remove explicit dependency on
50591         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50592         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50593         $(FNMATCH_H), redundant through BUILT_SOURCES.
50594         * modules/getopt (Makefile.am): Remove explicit dependency on
50595         $(GETOPT_H), redundant through BUILT_SOURCES.
50596         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50597         redundant through BUILT_SOURCES.
50598         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50599         redundant through BUILT_SOURCES.
50600         * modules/stdbool (Makefile.am): Remove explicit dependency on
50601         $(STDBOOL_H), redundant through BUILT_SOURCES.
50602         * modules/stdint (Makefile.am): Remove explicit dependency on
50603         $(STDINT_H), redundant through BUILT_SOURCES.
50604         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50605         Remove explicit dependency on $(SYSEXITS_H).
50606         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50607
50608 2005-07-18  Simon Josefsson  <jas@extundo.com>
50609
50610         * lib/check-version.c (check_version): Accept identical versions too.
50611
50612 2005-07-18  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/lock: New file.
50615         * MODULES.html.sh (Multithreading): New section.
50616
50617 2005-07-18  Bruno Haible  <bruno@clisp.org>
50618
50619         * m4/lock.m4: New file, from GNU gettext.
50620
50621 2005-07-18  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/lock.h: New file, from GNU gettext.
50624         * lib/lock.c: New file, from GNU gettext.
50625
50626 2005-07-18  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/lock.h (gl_once_t): New type.
50629         (gl_once_define, gl_once): New macros.
50630         * lib/lock.c (fresh_once): New variable.
50631         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50632         functions.
50633
50634 2005-07-16  Simon Josefsson  <jas@extundo.com>
50635
50636         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50637         workaround, suggested by Bruno.
50638
50639 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         * modules/xalloc (Depends-on): Add xalloc-die.
50642         * modules/xvasprintf (Depends-on): Add xalloc-die.
50643
50644 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50647         with a minor change.
50648
50649 2005-07-15  Bruno Haible  <bruno@clisp.org>
50650
50651         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50652         When using lib/poll.c, define poll as rpl_poll.
50653
50654 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50655
50656         * modules/argp (Depends-on): Remove unlocked-io.
50657
50658 2005-07-14  Derek Price  <derek@ximbiot.com>
50659
50660         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50661         for glob symlink bug.
50662
50663 2005-07-14  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50666         Instead, test for *_unlocked function declarations directly.
50667
50668 2005-07-11  Simon Josefsson  <jas@extundo.com>
50669
50670         * modules/size_max: New file.
50671
50672         * modules/xsize: Depend on size_max module for size_max.m4.
50673
50674 2005-07-11  Simon Josefsson  <jas@extundo.com>
50675
50676         * lib/size_max.h: New file.
50677
50678 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50679
50680         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50681         copyright symbol and the year.
50682         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50683         (version_etc_va): Use parameterized copyright notice.
50684         Reword to conform to the current GNU coding standards.
50685
50686 2005-07-11  Karl Berry  <karl@gnu.org>
50687
50688         * doc/gnulib.texi (Quoting): new node.
50689         (Initial import): more info, from Patrice.
50690
50691 2005-07-11  Bruno Haible  <bruno@clisp.org>
50692
50693         * gnulib-tool (func_usage): Document option --avoid.
50694         (Command line options): Handle --avoid.
50695         (func_acceptable): New function.
50696         (func_modules_transitive_closure): Use it.
50697
50698 2005-07-11  Bruno Haible  <bruno@clisp.org>
50699
50700         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50701         Reported by Jim Meyering.
50702
50703 2005-07-10  Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50706         Needed when size_t is smaller than 'unsigned int'.
50707         Reported by Paul Eggert.
50708
50709 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50710
50711         * modules/argp (Depends-on): Add unlocked-io
50712
50713 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50714
50715         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50716         block of defines.
50717
50718 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50721         fix now.
50722
50723 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50724         and Paul Eggert  <eggert@cs.ucla.edu>
50725
50726         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50727         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50728
50729 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * modules/regex (Files): Add lib/regex_internal.c,
50732         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50733         (Depends-on): Add extensions.
50734         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50735
50736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50739         pathconf.
50740         * m4/same.m4 (gl_SAME): Likewise.
50741         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50742
50743         * m4/regex.m4: Adjust to new libc regex implementation.
50744         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50745         all the .c and .h parts of (the new) regex.
50746         Quote the m4 stuff better.
50747         Check for RE_ICASE bug of old gnulib.
50748         Check for REG_STARTEND of recent libc.
50749         Rename local variables from jm_* to gl_*.
50750         Quote operand of "test -f".
50751         Say "recent enough" version of libc, not "version 2".
50752         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50753         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50754         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50755         Remove check for btowc, isascii.
50756         Require AM_LANGINFO_CODESET.
50757
50758 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50759
50760         * lib/regex.c, regex.h: Sync from libc.
50761         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50762         * lib/regexec.c:
50763         New files, synced from libc, except that regex_internal.h
50764         currently has a small porting fix.
50765
50766 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50769         regex_internal.c, regexec.c.
50770         Add regex_internal.h too, but as a comment, since the libc version
50771         is currently broken in gnulib mode.
50772
50773 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         Support programs like Emacs that use gnulib but not gettext.
50776         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50777         * modules/gettext-h: New file.
50778         * modules/gettext (Files): Remove lib/gettext.h.
50779         (Depends-on): Add gettext-h.
50780         (Makefile.am): Remove lib_SOURCES.
50781         * modules/argmatch, modules/c-stack, modules/closeout:
50782         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50783         * modules/execute, modules/file-type, modules/getaddrinfo:
50784         * modules/getopt, modules/human, modules/javacomp:
50785         * modules/javaexec, modules/mkdir-p, modules/obstack:
50786         * modules/openat, modules/pagealign_alloc, modules/pipe:
50787         * modules/quotearg, modules/regex, modules/rpmatch:
50788         * modules/unicodeio, modules/userspec, modules/version-etc:
50789         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50790         * modules/xsetenv:
50791         Depend on gettext-h, not gettext.
50792
50793 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50794
50795         * gnulib-tool (func_import): Add support for 'public domain' license.
50796         * modules/alloca, modules/atexit, modules/memmove:
50797         Now public domain, not GPL.
50798         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50799         * modules/realloc, modules/strerror, modules/strtod:
50800         Now LGPL, not GPL.
50801
50802 2005-07-05  Bruno Haible  <bruno@clisp.org>
50803
50804         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50805         autoconf CVS. Needed for mingw.
50806
50807 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         Remove the dependency of the strftime module on the tzset module.
50810         * modules/strftime (Depends-on): Remove dependency on tzset.
50811
50812 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         Remove the dependency of the strftime module on the tzset module.
50815         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50816         gl_FUNC_TZSET_CLOBBER.
50817
50818 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         Remove the dependency of the strftime module on the tzset module.
50821         * lib/strftime.c (my_strftime)
50822         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50823         Copy the input structure, to work around some of the bug with
50824         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50825         Solaris releases, you should also use the tzset module, but we won't
50826         require it as a dependency any more since we don't want LGPLed code
50827         to depend on GPLed code.
50828
50829 2005-07-02  Jim Meyering  <jim@meyering.net>
50830
50831         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50832         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50833         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50834         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50835
50836 2005-07-02  Jim Meyering  <jim@meyering.net>
50837
50838         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50839
50840 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50843         declares only 'struct timespec;' (!).
50844
50845 2005-07-01  Jim Meyering  <jim@meyering.net>
50846
50847         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50848         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50849         * lib/save-cwd.c, tempname.c:
50850         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50851         and don't include <sys/file.h>).
50852
50853 2005-06-29  Jim Meyering  <jim@meyering.net>
50854
50855         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50856         type name.  Use the variable name instead.
50857         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50858         Likewise.
50859
50860 2005-06-28  Simon Josefsson  <jas@extundo.com>
50861
50862         * modules/check-version (Files): Add check-version.m4.
50863
50864 2005-06-28  Simon Josefsson  <jas@extundo.com>
50865
50866         * m4/check-version.m4: New file, suggested by Jim Meyering
50867         <jim@meyering.net>.
50868
50869 2005-06-28  Simon Josefsson  <jas@extundo.com>
50870
50871         * lib/check-version.h, lib/check-version.c: New files.
50872
50873 2005-06-28  Simon Josefsson  <jas@extundo.com>
50874
50875         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50876         collision with global variable.  Better indentation.  Don't
50877         increment buffer pointer beyond buffer end.  Based on comments
50878         from Paul Eggert <eggert@cs.ucla.edu>.
50879
50880         * lib/base64.h: Indent.
50881
50882 2005-06-28  Simon Josefsson  <jas@extundo.com>
50883
50884         * doc/gnulib.texi (Library version handling): New section.
50885
50886 2005-06-28  Jim Meyering  <jim@meyering.net>
50887
50888         * check-module (find_included_lib_files): Hard-code another
50889         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50890         but modules/fts-lgpl (correctly) does not list those files.
50891
50892         * modules/canonicalize (Files): Add lib/pathmax.h.
50893
50894 2005-06-25  Simon Josefsson  <jas@extundo.com>
50895
50896         * modules/check-version: New file.
50897
50898 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50899
50900         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50901         initializer of struct addrinfo, as an indication that we don't
50902         care how many members the structure has.
50903
50904 2005-06-24  Derek Price  <derek@ximbiot.com>
50905         and Bruno Haible  <bruno@clisp.org>
50906
50907         Remove stat module & update lstat.
50908         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50909         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50910         * m4/stat.m4: Remove this file.
50911
50912 2005-06-24  Derek Price  <derek@ximbiot.com>
50913         and Bruno Haible  <bruno@clisp.org>
50914
50915         Remove stat module & update lstat.
50916         * lib/stat.c: Remove this file...
50917         (slash_aware_lstat): ...moving this content and its support...
50918         * lib/lstat.c (rpl_lstat): ...into here.
50919         * lib/lstat.h: New file.
50920
50921 2005-06-24  Derek Price  <derek@ximbiot.com>
50922         and Bruno Haible  <bruno@clisp.org>
50923
50924         Remove stat module & update lstat.
50925         * config/srclist.txt (libc sources): Remove stat.
50926
50927 2005-06-24  Derek Price  <derek@ximbiot.com>
50928         and Bruno Haible  <bruno@clisp.org>
50929
50930         Remove stat module & update lstat.
50931         * MODULES.html.sh (stat): Remove.
50932         * MODULES.html: Regenerated.
50933         * modules/lstat (Description): Correct function name.
50934         (Files): Add "lstat.h".
50935         (Depends-on): Remove stat, add xalloc, stat-macros.
50936         * modules/stat: Remove this file.
50937         (Include): Add "lstat.h", remove <sys/stat.h>.
50938
50939 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50940
50941         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50942         (ranged_convert): Don't save conversion in a temporary struct.
50943         This causes a warning with GCC 4.0.0, and anyway in the typical
50944         case it's not worth the extra 100 bytes or so of code.
50945         (ranged_convert, __mktime_internal): When calling a function via a
50946         pointer P, use P () rather than (*P) (), as we now assume C89 or
50947         better.
50948
50949 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50952         "who -r" failed to give output.  Problem reported by Tim Waugh.
50953
50954         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50955         (xcalloc): Use it to avoid needless tests.
50956         Problem reported by Jim Meyering.
50957
50958 2005-06-20  Derek Price  <derek@ximbiot.com>
50959
50960         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50961         unnecessary for Autoconfs > 2.59c.
50962
50963 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50964
50965         * lib/argp.h (__option_is_short): Check upper limit of
50966         __key. Isprint() requires its argument to have the value
50967         of an unsigned char or EOF.
50968
50969 2005-06-16  Jim Meyering  <jim@meyering.net>
50970
50971         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50972         when either N or S is zero.
50973
50974 2005-06-16  Derek Price  <derek@ximbiot.com>
50975
50976         * m4/bison.m4: Declare YACC & YFLAGS precious.
50977
50978 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50979
50980         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50981         multibyte string or pattern, fall back on unibyte matching.
50982         Problem reported by James Youngman.
50983
50984 2005-06-08  Bruno Haible  <bruno@clisp.org>
50985
50986         * modules/csharpcomp: New file.
50987         * MODULES.html.sh (C#): Add csharpcomp.
50988
50989 2005-06-08  Bruno Haible  <bruno@clisp.org>
50990
50991         * m4/csharpcomp.m4: New file, from GNU gettext.
50992
50993 2005-06-08  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/csharpcomp.h: New file, from GNU gettext.
50996         * lib/csharpcomp.c: New file, from GNU gettext.
50997         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50998
50999 2005-06-08  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51002         warning on mingw.
51003
51004 2005-06-07  Derek Price  <derek@ximbiot.com>
51005
51006         Sync from CVS.
51007         * lib/glob_.h: Indent nested #ifdef.
51008
51009 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51010
51011         Sync from coreutils.
51012         Use "file name" when talking about file names, instead of "filename"
51013         or "path", as per the GNU coding standards.
51014         * lib/mkdir-p.c: Renamed from makepath.c.
51015         (make_dir_parents): Renamed from make_path.  All callers changed.
51016         * lib/mkdir-p.h: Likewise.  All includers changed.
51017         * lib/filenamecat.c: Renamed from path-concat.c.
51018         (file_name_concat): Renamed from path_concat.  All callers changed.
51019         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51020         * lib/filenamecat.h: Likewise.  All includers changed.
51021         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51022         in comments or local variable names.
51023         * lib/basename.c: Likewise.
51024         * lib/canonicalize.c, canonicalize.h: Likewise.
51025         * lib/dirname.c, dirname.h: Likewise.
51026         * lib/euidaccess.c: Likewise.
51027         * lib/exclude.c: Likewise
51028         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51029         * lib/fsusage.c, fsuage.h: Likewise.
51030         * lib/fts.c, fts_.h: Likewise.
51031         * lib/getcwd.c: Likewise.
51032         * lib/getloadavg.c: Likewise.
51033         * lib/mkstemp.c: Likewise.
51034         * lib/mountlist.c, mountlist.h: Likewise.
51035         * lib/openat.c, openat.h: Likewise.
51036         * lib/readlink-stub.c: Likewise.
51037         * lib/readutmp.c, readutmp.h: Likewise.
51038         * lib/rename.c: Likewise.
51039         * lib/rmdir.c: Likewise.
51040         * lib/same.c: Likewise.
51041         * lib/savedir.c: Likewise.
51042         * lib/stripslash.c: Likewise.
51043         * lib/tempname.c: Likewise.
51044         * lib/xreadlink.c: Likewise.
51045         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51046         All uses changed.
51047         * lib/exclude.h: Likewise.
51048
51049         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51050         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51051         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51052         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51053         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51054         files have been getting away with it for years (MORE/BSD 4.3
51055         is extinct now).
51056         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51057         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51058
51059         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51060         Define to 256, not 255, as per modern POSIX.
51061
51062 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         Sync from coreutils.
51065         Use "file name" when talking about file names, instead of "filename"
51066         or "path", as per the GNU coding standards.
51067         * MODULES.html.sh: mkdir-p renamed from makepath.
51068         filenamecat renamed from path-concat.
51069         * modules/filenamecat: Renamed from modules/path-concat.
51070         (Files): filenamecat.h and filenamecat.c renamed from
51071         path-concat.h and path-concat.c.
51072         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51073         (Include): filenamecat.h, not path-concat.h.
51074         * modules/mkdir-p: Renamed from modules/makepath.
51075         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51076         makepath.c.
51077         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51078         (Include): mkdir-p.h, not makepath.h.
51079
51080 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51081
51082         Sync from coreutils.
51083         * m4/mkdir-p.m4: Renamed from makepath.m4.
51084         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51085         Rename files from makepath.c to mkdir-p.c, and from
51086         makepath.h to mkdir-p.h.
51087         * m4/filenamecat.m4: Renamed from path-concat.m4.
51088         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51089         Rename files from path-concat.c to filenamecat.c,
51090         and from path-concat.h to filenamecat.h.
51091         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51092         "file name" in local variables or comments.
51093         * m4/rename.m4: Likewise.
51094
51095 2005-06-01  Bruno Haible  <bruno@clisp.org>
51096
51097         * modules/csharpexec: New file.
51098         * MODULES.html.sh (C#): New section.
51099
51100 2005-06-01  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/csharp.m4: New file, from GNU gettext.
51103         * m4/csharpexec.m4: New file, from GNU gettext.
51104
51105 2005-06-01  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/csharpexec.h: New file, from GNU gettext.
51108         * lib/csharpexec.c: New file, from GNU gettext.
51109         * lib/csharpexec.sh.in: New file, from GNU gettext.
51110
51111 2005-05-31  Derek Price  <derek@ximbiot.com>
51112             Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         Sync from cvs.
51115         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51116
51117 2005-05-31  Derek Price  <derek@ximbiot.com>
51118             Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         Sync from cvs.
51121         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51122
51123 2005-05-29  Derek Price  <derek@ximbiot.com>
51124
51125         * config/srclist.txt (glob_.h, glob.c): Add these files.
51126
51127 2005-05-29  Derek Price  <derek@ximbiot.com>
51128
51129         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51130         * modules/glob: New file.
51131         * modules/getlogin_r: Add link to POSIX spec in description.
51132
51133 2005-05-29  Derek Price  <derek@ximbiot.com>
51134             Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * m4/glob.m4: New file.
51137
51138 2005-05-29  Derek Price  <derek@ximbiot.com>
51139             Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * lib/glob_.h, lib/glob.c: New files.
51142
51143 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51146         * modules/fts-lgpl (Depends-on): Remove gettext.
51147
51148 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51151         and don't require gt_INTTYPES_PRI.
51152
51153 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51154
51155         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51156
51157         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51158         the configuration hassle isn't worth it.
51159         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51160         (LONGEST_MODIFIER, PRIuMAX): Remove.
51161
51162 2005-05-27  Bruno Haible  <bruno@clisp.org>
51163
51164         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51165
51166 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51167
51168         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51169         _POSIX_PTHREAD_SEMANTICS for Solaris.
51170
51171 2005-05-25  Derek Price  <derek@ximbiot.com>
51172
51173         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51174
51175 2005-05-25  Derek Price  <derek@ximbiot.com>
51176             Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51179         * lib/getlogin_r.c, getlogin_r.h: New files.
51180
51181 2005-05-25  Bruno Haible  <bruno@clisp.org>
51182             Derek Price  <derek@ximbiot.com>
51183
51184         * lib/getlogin_r.h: Simplify API documentation.
51185
51186 2005-05-23  Derek Price  <derek@ximbiot.com>
51187
51188         * modules/minmax (Files): Add m4/minmax.m4.
51189         (configure.ac): Add gl_MINMAX.
51190
51191 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51192
51193         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51194         so that unistd-safer.h (GPL'ed code) need not be included.
51195
51196 2005-05-22  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/minmax.m4: New file.
51199         Based on a patch by Derek Price <derek@ximbiot.com>.
51200
51201 2005-05-22  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51204         (INT64_MIN): Fix definition.
51205         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51206
51207         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51208         NEED_SIGNED_INT_TYPES.
51209
51210         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51211         HAVE_SYSTEM_INTTYPES.
51212
51213 2005-05-22  Bruno Haible  <bruno@clisp.org>
51214
51215         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51216         Also include <sys/param.h> if it defines MIN, MAX.
51217         Based on a patch by Derek Price <derek@ximbiot.com>.
51218
51219 2005-05-21  Jim Meyering  <jim@meyering.net>
51220
51221         * modules/fts (Files): Add m4/inttypes-pri.m4.
51222         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51223
51224 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         New fts module.
51227         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51228         (setup_dir, free_dir): New functions.
51229         (enter_dir, leave_dir): Define trivial
51230         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51231         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51232         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51233         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51234         Move to fts-cycle.c.
51235         (fts_open): Use setup_dir.
51236         (fts_close): Use free_dir.
51237         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51238         This adds a label and some gotos, but the alternatives were messier.
51239         Check for memory allocation failure when entering a dir.
51240         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51241         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51242         (FTS): New member fts_cycle, that is a union that contains the
51243         old active_dir_ht and cycle_state.  All uses changed to mention
51244         fts_cycle.ht and fts_cycle.state.
51245         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51246         fts.c, with the following changes:
51247         (setup_dir, free_dir): New functions.
51248         (enter_dir): Now returns bool.  Return true if successful, false
51249         if memory exhausted.  All callers changed.
51250         Do not bother partly cleaning up on
51251         memory allocation failure; that is free_dir's job.
51252         However, free ad if hash_insert fails, to avoid memory leak.
51253         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51254         fts->fts_options to see which union member to use.
51255
51256 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51257
51258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51259         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51260
51261 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51262
51263         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51264
51265 2005-05-20  Jim Meyering  <jim@meyering.net>
51266
51267         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51268         Now a macro, to pacify GCC.
51269
51270 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51271
51272         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51273         of -1.
51274
51275 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51276
51277         * lib/chown.c (rpl_chown): Return -1 on failure.
51278
51279 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51282         Don't check for stddef.h.
51283         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51284         don't use its results.
51285         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51286         since we include them unconditionally.  Don't require
51287         AM_STDBOOL_H, since stdbool is a prerequisite.
51288         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51289         since we assume C89 or better.
51290         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51291         as we don't use their results.
51292         Don't check for fchdir, memmove, memset, strrchr, as we use
51293         them unconditionally.
51294         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51295         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51296
51297 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51300         Include <stddef.h> unconditionally, since we assume C89 now.
51301         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51302         * lib/fts.c: Include fts_.h first, to check interface.
51303         Do not include intprops.h; no longer needed.
51304         Include cycle-check.h and hash.h, since fts_.h no longer does.
51305         Remove unnecessary casts of closedir to void.
51306         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51307         decide whether to decrement nlinks.
51308         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51309         (FTS): Use struct hash_table * instead of Hash_table, so that
51310         we no longer need to include hash.h here.
51311
51312 2005-05-18  Jim Meyering  <jim@meyering.net>
51313
51314         * modules/dirfd (License): Change to LGPL.  Most of the code
51315         is already in the public domain.
51316
51317 2005-05-18  Jim Meyering  <jim@meyering.net>
51318
51319         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51320         Reported by Yoann Vandoorselaere.
51321
51322 2005-05-17  Jim Meyering  <jim@meyering.net>
51323
51324         * m4/fts.m4: New file, from coreutils.
51325
51326 2005-05-17  Jim Meyering  <jim@meyering.net>
51327
51328         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51329
51330 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         Sync from coreutils.
51333         * m4/unlinkdir.m4: New file.
51334
51335 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51336
51337         Sync from coreutils.
51338         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51339         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51340         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51341         White space changes only.
51342         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51343         special.
51344         * lib/yesno.c: Include getline.h, not ctype.h.
51345         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51346         Use getline to remove arbitrary restriction on response length.
51347
51348 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * config/srclist-update: Spell out "Street" in FSF postal
51351         mail address; this is the style the FSF seems to prefer.
51352
51353         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51354         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51355         this updates FSF postal mail address.
51356
51357         Sync from coreutils.
51358         * modules/unlinkdir: New file.
51359         * modules/yesno (Depends-on): Add getline.
51360         * MODULES.html.sh (File system functions): Add unlinkdir.
51361
51362 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51363
51364         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51365         lib/strsep.h:
51366         Change the initial comment to refer to GPL, not LGPL.
51367         gnulib-tool will change it to LGPL as needed.
51368
51369         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51370         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51371         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51372         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51373         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51374         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51375         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51376         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51377         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51378         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51379         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51380         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51381         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51382         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51383         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51384         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51385         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51386         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51387         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51388         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51389         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51390         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51391         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51392         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51393         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51394         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51395         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51396         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51397         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51398         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51399         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51400         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51401         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51402         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51403         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51404         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51405         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51406         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51407         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51408         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51409         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51410         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51411         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51412         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51413         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51414         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51415         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51416         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51417         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51418         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51419         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51420         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51421         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51422         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51423         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51424         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51425         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51426         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51427         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51428         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51429         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51430         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51431         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51432         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51433         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51434         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51435         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51436         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51437         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51438         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51439         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51440         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51441         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51442         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51443         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51444         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51445         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51446         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51447         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51448         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51449         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51450         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51451         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51452         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51453         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51454         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51455         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51456         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51457         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51458         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51459         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51460         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51461         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51462         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51463         lib/yesno.c, lib/yesno.h:
51464         Update FSF postal mail address.
51465
51466 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51467
51468         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51469         tests/test-memmem.c, tests/test-stpncpy.c:
51470         Update FSF postal mail address.
51471
51472 2005-05-13  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51475         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51476         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51477         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51478         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51479         Add support for 64-bit integers in the MSVC compiler.
51480
51481 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51482
51483         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51484
51485 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51486
51487         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51488
51489 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51490
51491         * doc/getdate.texi (General date syntax): Don't say that date
51492         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51493         Problem reported by Nic Ferrier.
51494
51495 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51496
51497         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51498         specified in ai_socktype. Fix invalid ai_protocol
51499         check. ai_protocol is usually set to 0 or depending on
51500         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51501         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51502         ai_socktype / ai_protocol in the returned addrinfo structure.
51503
51504 2005-05-10  Simon Josefsson  <jas@extundo.com>
51505
51506         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51507         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51508
51509 2005-05-10  Karl Berry  <karl@gnu.org>
51510
51511         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51512         (from http://www.gnu.org/licenses).
51513         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51514         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51515         fdl.texi suffices.
51516
51517 2005-05-10  Karl Berry  <karl@gnu.org>
51518
51519         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51520         (COPYING.DOC): remove.
51521
51522         * config/srclist-update: new FSF address.
51523
51524 2005-05-10  Derek Price  <derek@ximbiot.com>
51525
51526         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51527         possible.
51528
51529 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51530             Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/inet_ntop: New file.
51533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51534         inet_ntop.
51535
51536 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51537             Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/inet_ntop.m4: New file.
51540
51541 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51542             Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/inet_ntop.h: New file.
51545         * lib/inet_ntop.c: New file, from glibc with modifications.
51546
51547 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51548
51549         * modules/time_r (License): Change to LGPL.
51550         * modules/extensions (License): Change to LGPL.  Actually,
51551         the license is more permissive than that, but currently gnulib-tool
51552         doesn't know how to handle more-permissive licenses.
51553
51554         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51555         Problem reported by Dave Love.
51556
51557 2005-05-08  Jim Meyering  <jim@meyering.net>
51558
51559         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51560         blank.
51561
51562 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * modules/argmatch (Depends-on): Add stdbool.
51565         * modules/backupfile (Depends-on): Likewise.
51566         * modules/chdir-long (Depends-on): Likewise.
51567         * modules/closeout (Depends-on): Likewise.
51568         * modules/cycle-check (Depends-on): Likewise.
51569         * modules/dirname (Depends-on): Likewise.
51570         * modules/fnmatch (Depends-on): Likewise.
51571         * modules/fsusage (Depends-on): Likewise.
51572         * modules/fwriteerror (Depends-on): Likewise.
51573         * modules/getcwd (Depends-on): Likewise.
51574         * modules/getloadavg (Depends-on): Likewise.
51575         * modules/hard-locale (Depends-on): Likewise.
51576         * modules/makepath (Depends-on): Likewise.
51577         * modules/mountlist (Depends-on): Likewise.
51578         * modules/nanosleep (Depends-on): Likewise.
51579         * modules/posixtm (Depends-on): Likewise.
51580         * modules/quotearg (Depends-on): Likewise.
51581         * modules/readtokens (Depends-on): Likewise.
51582         * modules/readtokens0 (Depends-on): Likewise.
51583         * modules/readutmp (Depends-on): Likewise.
51584         * modules/save-cwd (Depends-on): Likewise.
51585         * modules/strftime (Depends-on): Likewise.
51586         * modules/userspec (Depends-on): Likewise.
51587         * modules/utimecmp (Depends-on): Likewise.
51588         * modules/xgetcwd (Depends-on): Likewise.
51589         * modules/xnanosleep (Depends-on): Likewise.
51590         * modules/xstrtod (Depends-on): Likewise.
51591         * modules/yesno (Depends-on): Likewise.
51592
51593 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51594
51595         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51596         needless checks.
51597
51598 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         Merge from coreutils.  Among other things,
51601         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51602         * lib/fd-safer.c: New file.
51603         * lib/fcntl-safer.h, open-safer.c: Remove.
51604         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51605         * lib/dup-safer.c: Include unistd-safer.h first.
51606         Don't include errno.h.
51607         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51608         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51609         * lib/file-type.c: Rely on file-type.h change.
51610         * lib/getloadavg.c: Include unistd-safer.h.
51611         (getloadavg): Use safer open.
51612         * lib/getusershell.c: Include "stdio-safer.h".
51613         (getusershell): Use safer fopen.
51614         * lib/long-options.c (long_options): Use NULL rather than 0.
51615         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51616         'free'.
51617         * lib/modechange.c: Likewise.
51618         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51619         (MODE_DONE): New constant.
51620         (struct mode_change): Remove 'next' member.
51621         (make_node_op_equals): New function; like the old one of the
51622         same name, except it allocates an array.
51623         (mode_compile, mode_create_from_ref): Use it.
51624         (mode_compile): Allocate result as an array, not a linked list.
51625         Parse octal string ourself, so that we catch mistakes like "+0".
51626         (mode_adjust): Arg is an array, not a linked list.
51627         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51628         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51629         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51630         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51631         Remove.  This is now stat-macros.h's job.
51632         (talloc): Remove.  All callers replaced by xalloc, so that
51633         our invokers don't have to worry about reporting memory failures.
51634         (make_node_op_equals): Remove.
51635         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51636         New constants.
51637         (struct mode_change): Moved here from modechange.h.
51638         (mode_append_entry): Remove.
51639         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51640         apps to have incorrect behavior.  Use simpler algorithm for head
51641         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51642         Detect more invalid usages rather than having somewhat-random behavior.
51643         Don't insert an "a=" action, as that leads to incorrect behavior.
51644         (mode_compile, mode_create_from_ref): Return NULL on error instead
51645         of an enum, since now there's only one way to have an error.  All
51646         callers changed.
51647         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51648         at the correct time.  Simplify calculation of "+u" and its ilk.
51649         Don't mishandle "+X".
51650         (mode_free): Remove "register" and localize decls.
51651         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51652         (struct mode_change): Move to modechange.c; callers don't
51653         need to see this stuff.
51654         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51655         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51656         (mode_change, mode_adjust): Reflect the new signatures noted above.
51657         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51658         that might redefine system include files.
51659         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51660         (my_usleep): Use NULL rather than (void *) 0.
51661         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51662         Use siginterrupt to specify that system calls should be interrupted.
51663         (rpl_nanosleep): Move initialization of suspended closer to call of
51664         my_usleep.
51665         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51666         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51667         (desirable_utmp_entry): New function.
51668         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51669         using x2nrealloc, to simplify logic.
51670         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51671         size calculation.  Do not assume utmp file is a regular file.
51672         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51673         (READ_UTMP_CHECK_PIDS): New constant.
51674         * lib/save-cwd.c: Include unistd-safer.h.
51675         (save_cwd): Use fd_safer.
51676         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51677         [!_LIBC] Include "stat-macros.h" instead.
51678         * lib/unistd-safer.h (fd_safer): New decl.
51679
51680 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51681
51682         * modules/getloadavg (Depends-on): Add unistd-safer.
51683         * modules/getusershell (Depends-on): Add stdio-safer.
51684         * modules/lstat (Depends-on): Remove xalloc.
51685         * modules/mkstemp (Depends-on): Add stat-macros.
51686         * modules/modechange (Depends-on): Remove xstrtol.
51687         Add stat-macros, xalloc.
51688         * modules/save-cwd (Depends-on): Add unistd-safer.
51689         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51690         * modules/unistd-safer (Files): Add lib/fd-safer.c
51691         (Makefile.am): Remove lib_SOURCES.
51692
51693         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51694         Remove fcntl-safer; unistd-safer supersedes it.
51695
51696 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51697
51698         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51699         AC_HEADER_STAT.
51700         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51701         (gl_PREREQ_CHOWN): Remove.
51702         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51703         it.  Don't require AC_HEADER_STAT.
51704         (gl_PREREQ_LSTAT): Remove.
51705         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51706         Don't require AC_HEADER_STAT.
51707         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51708         (gl_PREREQ_RMDIR): Remove.
51709         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51710         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51711         the stat-macros module a prerequisite.
51712         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51713         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51714         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51715         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51716         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51717         variable names.
51718         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51719         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51720         variable prefixes.
51721         * m4/fcntl-safer.m4: Remove.
51722         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51723         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51724         Invoke gl_PREREQ_FD_SAFER.
51725         (gl_PREREQ_FD_SAFER): New macro.
51726         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51727         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51728         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51729         Remove duplicate call to AC_LIBOBJ(readutmp).
51730         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51731
51732         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51733         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51734
51735 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51736
51737         * MODULES.html.sh (Misc): Add byteswap.
51738
51739 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51740
51741         * modules/getcwd (Depends-on): Add extensions.
51742         * modules/openat (Depends-on): Likewise.
51743
51744 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51745
51746         * modules/byteswap: New file.
51747
51748 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51749
51750         * m4/byteswap.m4: New file.
51751
51752 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51753
51754         * lib/byteswap_.h: New file.
51755
51756 2005-04-25  Karl Berry  <karl@gnu.org>
51757
51758         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51759
51760 2005-04-25  Albert Chin  <china@thewrittenword.com>
51761
51762         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51763         Toolkit C bug.
51764
51765 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51766
51767         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51768         (func_ln_if_changed) Remove forcibly for no error message
51769         in case file does not exist.
51770
51771 2005-04-19  Simon Josefsson  <jas@extundo.com>
51772
51773         * gnulib-tool (Options): Make --symlink mean --symbolic.
51774
51775 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51776
51777         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51778
51779 2005-04-16  Simon Josefsson  <jas@extundo.com>
51780
51781         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51782
51783 2005-04-15  Simon Josefsson  <jas@extundo.com>
51784
51785         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51786
51787 2005-04-15  Simon Josefsson  <jas@extundo.com>
51788
51789         * gnulib-tool: Rename --symlink to --symbolic.
51790
51791 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51792
51793         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51794         symbolic links to files instead of copying/moving.  Add --aux-dir,
51795         specifying directory relative --dir where auxiliary build tools
51796         are placed.
51797
51798 2005-04-14  Bruno Haible  <bruno@clisp.org>
51799
51800         * modules/allocsa (License): Change to LGPL.
51801         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51802
51803 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51806         that "UTC +1 second" continues to work.  Problem reported
51807         by Dmitry V. Levin.
51808         (relunit_snumber): New rule.
51809         (relunit): Use it.
51810
51811 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * lib/getdate.y (universal_time_zone_table): New constant.
51814         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51815         universal_time_zone_table.
51816         (lookup_zone): Prefer universal_time_zone_table to
51817         local_time_zone_table, so that "GMT" time stamps are allowed in
51818         London during the summer.  Problem reported by Ian Abbott.
51819
51820 2005-04-12  Jim Meyering  <jim@meyering.net>
51821
51822         * lib/human.c (humblock): Set *options even when returning due to
51823         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51824         warning from gcc-4.
51825
51826 2005-04-09  Jim Meyering  <jim@meyering.net>
51827
51828         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51829         -Wuninitialized: initialize tm0.tm_year.
51830
51831 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51834         count, since there's no maximum.  All uses changed.
51835         Add member dsts_seen.
51836         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51837         not being INT_MAX.
51838         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51839         Use pc_rels_seen to decide whther a date is absolute.
51840
51841         * lib/getdate.y (number): Don't overwrite year.
51842         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51843         check.
51844
51845 2005-04-02  Simon Josefsson  <jas@extundo.com>
51846
51847         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51848         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51849
51850 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51851
51852         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51853         where no absolute path name can be longer than PATH_MAX.
51854
51855 2005-03-27  Jim Meyering  <jim@meyering.net>
51856
51857         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51858
51859 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51860
51861         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51862         "one's complement" -> "ones' complement" in comment, as per Knuth.
51863         "value of type" -> "type or expression" in comment.
51864         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51865
51866 2005-03-26  Jim Meyering  <jim@meyering.net>
51867
51868         Comment nits.
51869         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51870         Correct typos: s/or/of/.
51871
51872 2005-03-26  Jim Meyering  <jim@meyering.net>
51873
51874         * modules/check-include-files: Move to ../ and rename to...
51875         * check-module: ...this.
51876
51877 2005-03-25  Jim Meyering  <jim@meyering.net>
51878
51879         * modules/xvasprintf (Files): Add xalloc.h.
51880
51881 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51882
51883         * modules/gettext (Files): config/config.rpath ->
51884         build-aux/config.rpath
51885         * modules/iconv (Files): Likewise.
51886         Problem reported by Oskar Liljeblad.
51887
51888 2005-03-23  Jim Meyering  <jim@meyering.net>
51889
51890         * modules/check-include-files: New script to check for
51891         missing dependencies, multiple includes, etc.
51892
51893         * modules/c-strtold (Depends-on): Add xalloc.
51894         * modules/c-strtod (Depends-on): Add xalloc.
51895         * modules/hash (Depends-on): Add xalloc.
51896         (Files): Remove lib/xalloc.h.
51897
51898         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51899         * modules/userspec (Files): Add lib/inttostr.h.
51900
51901 2005-03-23  Jim Meyering  <jim@meyering.net>
51902
51903         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51904
51905 2005-03-22  Jim Meyering  <jim@meyering.net>
51906
51907         * modules/stat-macros: New module.
51908         * modules/canonicalize, modules/euidaccess, modules/file-type,
51909         * modules/filemode, modules/lchown, modules/makepath,
51910         * modules/rmdir, modules/stat: Depend on new stat-macros module
51911         rather than listing lib/stat-macros.h manually.
51912         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51913
51914 2005-03-22  Jim Meyering  <jim@meyering.net>
51915
51916         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51917
51918 2005-03-22  Bruno Haible  <bruno@clisp.org>
51919
51920         * config/srclist.txt: Replace target directory 'config' with
51921         'build-aux'.
51922         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51923         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51924         ../build-aux/.
51925
51926 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51927
51928         * modules/chdir-long (Depends-on): Add mempcpy.
51929
51930         * modules/acl, modules/backupfile, modules/c-strtod,
51931         modules/c-strtold, modules/canon-host, modules/canonicalize,
51932         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51933         modules/exclude, modules/exitfail, modules/file-type,
51934         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51935         modules/getdate, modules/getline, modules/getpagesize,
51936         modules/getpass, modules/getugroups, modules/group-member,
51937         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51938         modules/inttostr, modules/long-options, modules/makepath,
51939         modules/md5, modules/memcasecmp, modules/memcoll,
51940         modules/modechange, modules/mountlist, modules/path-concat,
51941         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51942         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51943         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51944         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51945         modules/strftime, modules/strndup, modules/strverscmp,
51946         modules/timespec, modules/unlocked-io, modules/userspec,
51947         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51948         modules/yesno:
51949         Remove lib_SOURCES line from Makefile.am section, as this is now
51950         done automatically by the corresponding Autoconf macro.
51951
51952 2005-03-21  Jim Meyering  <jim@meyering.net>
51953
51954         Changes imported from coreutils.
51955
51956         * lib/cycle-check.c: Don't include xalloc.h.
51957
51958         * lib/path-concat.c: Don't include assert.h.
51959         (path_concat): Remove assertion that would have triggered
51960         for ABASE starting with more than one slash.
51961         Reported by Andreas Schwab.
51962
51963         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51964         properly when ABASE is an absolute file name.
51965         Correct the description of this function.
51966         Include <assert.h>.
51967         Add an assertion and a test driver.
51968         This fixes a bug introduced on 2004-07-02.
51969         Andreas Schwab reported the resulting failure of cp --parents:
51970         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51971
51972 2005-03-21  Jim Meyering  <jim@meyering.net>
51973
51974         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51975         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51976
51977 2005-03-21  Jim Meyering  <jim@meyering.net>
51978         and  Paul Eggert  <eggert@cs.ucla.edu>
51979
51980         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51981         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51982         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51983         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51984         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51985         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51986         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51987         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51988         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51989         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51990         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51991         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51992         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51993         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51994         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51995         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51996         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51997         for these modules.
51998
51999 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52000
52001         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52002         (which shouldn't happen), generate nothing instead of returning 0
52003         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52004
52005 2005-03-16  Bruno Haible  <bruno@clisp.org>
52006
52007         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52008         HAVE_LONGLONG_64BIT.
52009
52010 2005-03-16  Bruno Haible  <bruno@clisp.org>
52011
52012         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52013         HAVE_LONGLONG_64BIT.
52014
52015 2005-03-16  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52018         HAVE_LONGLONG_64BIT.
52019
52020 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52023         reliably distinguish strftime failure from empty output on POSIX
52024         hosts.
52025
52026 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52029         (iconv_string): Don't guess a size-zero buffer, as that might cause
52030         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52031         result would be 'too large', where 'too large' is (heuristically)
52032         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52033         overflow concerns.  This will prevent some unwanted malloc failures
52034         when the inputs are very large.
52035
52036 2005-03-15  Karl Berry  <karl@gnu.org>
52037
52038         * config/srclist.txt (config.rpath): from gettext.
52039         * config/config.rpath: update.
52040
52041 2005-03-15  Bruno Haible  <bruno@clisp.org>
52042
52043         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52044         to 'negate'.
52045
52046         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52047         variable.
52048
52049         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52050         results.
52051
52052 2005-03-14  Simon Josefsson  <jas@extundo.com>
52053
52054         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52055         <fx@gnu.org>.
52056
52057 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52060         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52061         intprops.h.
52062         * lib/strtol.c: Likewise.
52063
52064 2005-03-14  Jim Meyering  <jim@meyering.net>
52065
52066         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52067         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52068         to be nonzero so that we (and caller) can detect the difference
52069         between a valid zero-length expansion and an error return, even
52070         when the underlying strftime fails before writing anything into
52071         that location.
52072
52073 2005-03-14  Bruno Haible  <bruno@clisp.org>
52074
52075         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52076         Update from GNU gettext 0.14.3.
52077
52078 2005-03-10  Jim Meyering  <jim@meyering.net>
52079
52080         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52081
52082 2005-03-10  Jim Meyering  <jim@meyering.net>
52083
52084         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52085         so that this module works on systems without fchdir.
52086
52087 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52088
52089         Factor int-properties macros into a single file, except for
52090         glibc-related files.
52091         * lib/intprops.h: New file.
52092         * lib/getloadavg.c: Include it instead of limits.h.
52093         (INT_STRLEN_BOUND): Remove.
52094         * lib/human.c: Include intprops.h.
52095         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52096         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52097         302/1000.
52098         * lib/inttostr.h: Include intprops.h instead of limits.h.
52099         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52100         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52101         for consistency with intprops.h.
52102         (time_t_is_integer, twos_complement_arithmetic): Use them.
52103         * lib/sig2str.h: Include <signal.h>, intprops.h.
52104         (INT_STRLEN_BOUND): Remove.
52105         * lib/strftime.c (TYPE_SIGNED): Remove.
52106         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52107         * lib/strtol.c: Adjust comments to match intprops.h.
52108         * lib/userspec.c: Include intprops.h.
52109         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52110         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52111         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52112         instead of rolling our own expressions.
52113         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52114
52115         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52116         instead of int.
52117         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52118         the right thing even if adding 1900 would overflow.  Similarly
52119         for tm_mon + 1 and tm_yday + 1.
52120         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52121         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52122         (DO_SIGNED_NUMBER): New macro.
52123         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52124
52125 2005-03-07  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52128
52129 2005-03-07  Bruno Haible  <bruno@clisp.org>
52130
52131         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52132
52133 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52134
52135         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52136         (func_import): Only replace files via --import when they have actually
52137         changed.
52138
52139 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52140
52141         * m4/mmap-anon.m4: New file.
52142         * m4/pagealign_alloc.m4: New file.
52143
52144 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52145             Bruno Haible  <bruno@clisp.org>
52146
52147         * modules/pagealign_alloc: New file.
52148         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52149
52150 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52151             Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/pagealign_alloc.h: New file.
52154         * lib/pagealign_alloc.c: New file.
52155
52156 2005-03-03  Bruno Haible  <bruno@clisp.org>
52157
52158         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52159         Use an all-permissive copyright notice, recommended by RMS.
52160
52161 2005-03-02  Bruno Haible  <bruno@clisp.org>
52162
52163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52164         of AIX, the replacement has to be done only after <string.h> is
52165         included, therefore not in config.h. stpncpy.h does the replacement,
52166         and stpncpy.c uses it.
52167
52168 2005-03-02  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52171         stpncpy.c uses it.
52172
52173 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52176         The workaround isn't strictly needed for POSIX conformance, and
52177         it's too much of a pain to configure and maintain.  We'll ask
52178         people to fix their kernels instead.
52179         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52180         (NANOSLEEP_BUG_WORKAROUND): Remove.
52181         (xnanosleep): Remove the workaround.
52182
52183 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52186         Reported by Derek Price.
52187         (Include): Add "timespec.h".
52188
52189         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52190
52191 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52194         to detect nanosleep bug.
52195
52196 2005-03-01  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52199
52200 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52201
52202         * modules/gethrxtime: New file.
52203         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52204         (Depends-on): Add gethrxtime.
52205         (configure.ac): Add gl_XNANOSLEEP.
52206         (Makefile.am): Remove lib_SOURCES line.
52207
52208 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52209
52210         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52211         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52212
52213 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52214
52215         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52216         * lib/timespec.h (gettime): Return void, since it always
52217         succeeds now.  All uses changed.
52218         * lib/gettime.c (gettime) Likewise.
52219         [HAVE_NANOTIME]: Prefer nanotime.
52220         Assume gettimeofday succeeds, as POSIX requires.
52221         Assime time () succeeds, since other code already does.
52222         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52223         (timespec_subtract): Remove.
52224         (NANOSLEEP_BUG_WORKAROUND): New constant.
52225         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52226         things considerably.  Use it only on GNU/Linux hosts, since the
52227         workaround shouldn't be needed elsewhere.
52228
52229 2005-02-24  Bruno Haible  <bruno@clisp.org>
52230
52231         * modules/gettext (Files): Add m4/glibc2.m4.
52232
52233 2005-02-24  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52236         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52237         * m4/progtest.m4:
52238         Update from GNU gettext 0.14.2.
52239         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52240
52241 2005-02-24  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52244         * lib/config.charset: Update from GNU gettext 0.14.2.
52245
52246 2005-02-24  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/gettext.h: Update from GNU gettext 0.14.2.
52249
52250 2005-02-23  Simon Josefsson  <jas@extundo.com>
52251
52252         * m4/iconvme.m4: New file.
52253
52254 2005-02-23  Jim Meyering  <jim@meyering.net>
52255
52256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52257         change.
52258         Thanks to Bruno Haible for catching it.
52259
52260 2005-02-22  Simon Josefsson  <jas@extundo.com>
52261
52262         * modules/iconvme: New file.
52263
52264         * MODULES.html.sh: Add iconvme.
52265
52266 2005-02-22  Simon Josefsson  <jas@extundo.com>
52267
52268         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52269
52270 2005-02-22  Simon Josefsson  <jas@extundo.com>
52271
52272         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52273
52274 2005-02-22  Jim Meyering  <jim@meyering.net>
52275
52276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52277         s/ifndef/ifdef/.
52278
52279 2005-02-20  Neil Conway  <neilc@samurai.com>
52280
52281         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52282         returned by OSX/Darwin if the specified buffer is not large
52283         enough for the hostname.
52284
52285 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52286
52287         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52288         pass it to _help, otherwise the latter coredumps trying to
52289         dereference state.root_argp.
52290
52291 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         * modules/chdir-long (Depends-on): Add memrchr.
52294         * modules/memrchr (Files): Add lib/memrchr.h.
52295         (Include): "memrchr.h".
52296
52297 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52300
52301 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * lib/memrchr.h: New file.
52304         * lib/chdir-long.c: Include it.
52305         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52306         Don't bother including stddef.h.
52307
52308 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52309
52310         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52311         inclusion.
52312         Include <sys/types.h>, for dev_t.
52313         (ME_DUMMY, ME_REMOTE): Move from here....
52314         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52315         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52316         Dmitry V. Levin.
52317         Include mountlist.h first, to test the interface.
52318
52319 2005-01-29  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/progname.c (program_name): Initialize.
52322         Needed when linking statically on MacOS X.
52323
52324 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52325
52326         Sync from coreutils.
52327         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52328         (Depends-on): Add c-strtod.
52329         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52330
52331 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52332
52333         Sync from coreutils.
52334         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52335
52336         Remove files that are specific to coreutils.
52337         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52338
52339 2005-01-28  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/javacomp: New file.
52342         * MODULES.html.sh (Java): Add javacomp.
52343
52344 2005-01-28  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/javacomp.m4: New file, from GNU gettext.
52347
52348 2005-01-28  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/javacomp.sh.in: New file, from GNU gettext.
52351         * lib/javacomp.h: New file, from GNU gettext.
52352         * lib/javacomp.c: New file, from GNU gettext.
52353
52354 2005-01-26  Simon Josefsson  <jas@extundo.com>
52355
52356         * lib/gai_strerror.c: Use GPL in header.
52357
52358 2005-01-26  Bruno Haible  <bruno@clisp.org>
52359
52360         * modules/javaexec: New file.
52361         * MODULES.html.sh (Java): Add javaexec.
52362
52363 2005-01-26  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/javaexec.m4: New file, from GNU gettext.
52366
52367 2005-01-26  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/javaexec.sh.in: New file, from GNU gettext.
52370         * lib/javaexec.h: New file, from GNU gettext.
52371         * lib/javaexec.c: New file, from GNU gettext.
52372
52373 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52374
52375         * modules/lchown (Depends-on): Remove lchown.h
52376
52377 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52378
52379         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52380         must be defined if the header file was not found, in order
52381         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52382
52383 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52384
52385         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52386         initializers for struct pentry_state.
52387         (__argp_error): Check return value of __asprintf
52388         (__argp_failure): Translate error message
52389
52390         * lib/argp-parse.c: Removed braces around the expansion of N_()
52391
52392 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52393
52394         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52395         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52396         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52397         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52398         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52399         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52400         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52401         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52402         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52403         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52404         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52405         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52406         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52407         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52408         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52409         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52410         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52411         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52412         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52413         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52414         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52415         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52416         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52417         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52418         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52419         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52420         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52421         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52422         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52423         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52424         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52425         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52426         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52427         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52428         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52429         Use an all-permissive copyright notice, recommended by RMS.
52430
52431 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         * modules/chdir-long (Depends-on): Remove mempcpy.
52434
52435 2005-01-21  Jim Meyering  <jim@meyering.net>
52436
52437         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52438         same value as for Solaris 9.
52439
52440         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52441         component length.  This included changing the parameter to be
52442         of type `char *' rather than `char const *'.
52443         * lib/chdir-long.h (chdir_long): Update prototype.
52444
52445         * lib/openat.c (fdopendir, fstatat): New functions.
52446         * lib/openat.h: Include headers required for use of DIR and struct
52447         stat.
52448         [AT_SYMLINK_NOFOLLOW]: Define.
52449         (fdopendir, fstatat): Add prototypes.
52450
52451 2005-01-21  Bruno Haible  <bruno@clisp.org>
52452
52453         * modules/classpath: New file.
52454         * MODULES.html.sh (Java): Add classpath.
52455
52456 2005-01-21  Bruno Haible  <bruno@clisp.org>
52457
52458         * lib/classpath.h: New file, from GNU gettext.
52459         * lib/classpath.c: New file, from GNU gettext.
52460
52461 2005-01-20  Simon Josefsson  <jas@extundo.com>
52462
52463         * modules/version-etc-fsf: New file.
52464
52465 2005-01-20  Simon Josefsson  <jas@extundo.com>
52466
52467         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52468         * lib/version-etc.c: Remove version_etc_copyright.
52469         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52470         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52471
52472 2005-01-20  Simon Josefsson  <jas@extundo.com>
52473
52474         * lib/base64.h (isbase64): Add.
52475
52476         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52477         using a unsigned prototype, don't inline.
52478         (base64_decode): Use it.
52479
52480 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52481
52482         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52483         it.
52484
52485 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * lib/save-cwd.c (save_cwd): Remove code to support the case
52488         where fchdir is missing or flaky.
52489
52490 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52493
52494 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52497         AC_LIBSOURCES now does this.
52498         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52499         with new ullong_max module.
52500
52501 2005-01-19  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/sh-quote: New file.
52504         * MODULES.html.sh (Executing programs): Add sh-quote.
52505
52506 2005-01-19  Bruno Haible  <bruno@clisp.org>
52507
52508         * lib/sh-quote.h: New file, from GNU gettext.
52509         * lib/sh-quote.c: New file, from GNU gettext.
52510
52511 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52512
52513         Merge from coreutils.
52514         * m4/ullong_max.m4: New file.
52515         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52516         (gl_MACROS): Assume localeconv exists.
52517
52518 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52519
52520         Merge changes from coreutils, as described below in several
52521         changelogs dated today.
52522
52523         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52524         (O_DIRECTORY): Remove; not needed here, since "." must be
52525         a directory.  All uses removed.
52526         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52527         universal on Suns, and we also need to test for IRIX.
52528         Revamp code to use 'if' rather than '#if'.
52529         Avoid unnecessary comparison of cwd->desc to 0.
52530
52531         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52532         for known valid error numbers rather than observed invalid ones.
52533
52534 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         * modules/ullong_max: New file.
52537
52538         * modules/chdir-long, modules/openat: New files.
52539         * modules/save-cwd (Depends-on): Depend on chdir-long.
52540         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52541
52542 2005-01-18  Jim Meyering  <jim@meyering.net>
52543
52544         Merge from coreutils.
52545         * m4/chdir-long.m4, m4/openat.m4: New files.
52546         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52547         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52548         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52549         is sane and DOES follow symlinks.  Besides, testing 20 different
52550         systems found no broken chown implementations.
52551         Prompted by a change in rsync's copy of this macro.
52552         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52553
52554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52555
52556         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52557         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52558         NULL-means-set-to-current-time semantics.
52559         Remove temporary file immediately, rather than waiting
52560         for configure's at-exit trap code to do it.
52561
52562 2005-01-18  Jim Meyering  <jim@meyering.net>
52563
52564         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52565
52566         * lib/utimens.c (futimens): Account for the fact that futimes
52567         can also fail with errno == ENOSYS or errno == ENOENT.
52568         Patch from Dmitry V. Levin.
52569
52570         Change the name of the robust chdir function from chdir to chdir_long.
52571         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52572         (restore_cwd): Use chdir_long, not chdir.
52573         * lib/chdir-long.c: Renamed from chdir.c.
52574         * lib/chdir-long.h: Renamed from chdir.h.
52575         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52576         Hurd.
52577
52578 2005-01-18  Bruno Haible  <bruno@clisp.org>
52579
52580         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52581         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52582         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52583         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52584         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52585         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52586         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52587         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52588         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52589         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52590         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52591         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52592         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52593         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52594         Use an all-permissive copyright notice, recommended by RMS.
52595
52596 2005-01-18  Bob Proulx  <bob@proulx.com>
52597
52598         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52599         simplify offsetof() macro construct to avoid compile failure with
52600         native HP-UX 11.0 ANSI C compiler.
52601
52602 2005-01-17  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52605         redundant because stpncpy.m4 takes care of it.
52606
52607 2005-01-17  Bruno Haible  <bruno@clisp.org>
52608
52609         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52610
52611 2005-01-17  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52614         used.
52615
52616 2005-01-17  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/fwriteerror.h (fwriteerror): Change specification to include
52619         fclose.
52620         * lib/fwriteerror.c: Include <stdbool.h>.
52621         (fwriteerror): At the end, close the file stream. Record whether
52622         stdout was already closed.
52623
52624 2005-01-17  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/execute.c (environ): Declare if needed.
52627         * lib/pipe.c (environ): Likewise.
52628         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52629
52630 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52631
52632         * modules/argp: Depend on vsnprintf
52633
52634 2005-01-10  Jim Meyering  <jim@meyering.net>
52635
52636         * modules/closeout (Depends-on): Add atexit.
52637
52638 2005-01-06  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52641
52642 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52645         definitions to be after all include files, to avoid collisions.
52646         Problem reported by Bob Proulx.
52647
52648 2005-01-04  Jim Meyering  <jim@meyering.net>
52649
52650         Changes imported from coreutils.
52651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52652         as the mkstemp template, use a temporary directory and an
52653         8.3-friendly template to avoid trouble on systems like DJGPP.
52654         Reported by Juan M. Guerrero via Stepan Kasal.
52655         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52656         close. Remove the temporary directory right away, rather than waiting
52657         for configure's at-exit trap code to do it.
52658         Suggestion from Stepan Kasal.
52659
52660 2005-01-01  Simon Josefsson  <jas@extundo.com>
52661
52662         * gnulib-tool: Print #include directives when --import'ing.
52663
52664 2004-12-28  Simon Josefsson  <jas@extundo.com>
52665
52666         * tests/test-base64.c: Include required header files.  Remove
52667         unused variables.
52668
52669 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * modules/error (Depends-on): Remove gettext.
52672
52673 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52676         not needed.  This removes a dependency on the gettext module.
52677         [defined _LIBC]: Do not include <libintl.h>; not needed.
52678
52679 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52680
52681         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52682         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52683
52684 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52685
52686         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52687         HAVE_DECL_STRTOLD.
52688
52689 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52690
52691         * modules/getdate (Depends-on): Remove alloca-opt.
52692
52693 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52694
52695         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52696
52697 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52698
52699         * lib/argp-parse.c: Include <stddef.h>.
52700         (alignof, alignto): New macros.
52701         (parser_init): Don't assume that void * is aligned sufficiently
52702         for struct option.
52703
52704         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52705         need to extend the stack.
52706         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52707         large.
52708
52709 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52710
52711         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52712
52713 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52714
52715         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52716         (2004-10-24) change.  Apparently this was a false alarm.
52717
52718         * modules/getdate: Depend on alloca-opt, not alloca.
52719
52720 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52723         Remove now-obsolete comment about AIX.
52724         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52725         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52726         (YYMAXDEPTH): New macro.
52727
52728 2004-12-18  Simon Josefsson  <jas@extundo.com>
52729
52730         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52731
52732 2004-12-18  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52735
52736 2004-12-18  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/fatal-signal.c (fatal_signals): Make non-const.
52739         (init_fatal_signals): New function.
52740         (uninstall_handlers, install_handlers): Ignore signals that were set to
52741         SIG_IGN.
52742         (at_fatal_signal): Call init_fatal_signals.
52743         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52744         SIG_IGN.
52745         Reported by Paul Eggert.
52746
52747 2004-12-18  Bruno Haible  <bruno@clisp.org>
52748
52749         * doc/alloca.texi: New file.
52750         * doc/alloca-opt.texi: New file.
52751
52752 2004-12-17  Jim Meyering  <jim@meyering.net>
52753
52754         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52755         Otherwise, install-sh could exit with improper exit status when
52756         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52757
52758 2004-12-16  Simon Josefsson  <jas@extundo.com>
52759
52760         * tests/test-base64.c: Add license.
52761
52762 2004-12-15  Stepan Kasal  <address@hidden>
52763
52764         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52765
52766 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         * modules/getcwd (Files): Add m4/d-ino.m4.
52769         Suggested by Mark D. Baushke.
52770
52771 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52772
52773         * lib/getdate.y (textint): New member "negative".
52774         (time_zone_hhmm): New function.
52775         Expect 14 shift-reduce conflicts, not 13.
52776         (o_colon_minutes): New rule.
52777         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52778         (yylex): Set the "negative" member of signed numbers.
52779
52780 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52781
52782         * doc/getdate.texi (Time of day items, Time zone items):
52783         Describe new formats +00:00, UTC+00:00.
52784
52785 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52788         spurious "-l"s.  Problem reported by Stepan Kasal.
52789
52790 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52793         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52794
52795 2004-12-04  Simon Josefsson  <jas@extundo.com>
52796
52797         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52798         Vandoorselaere <yoann@prelude-ids.org>.
52799
52800 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52801
52802         Changes imported from coreutils.
52803         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52804         exist.
52805         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52806
52807 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52808
52809         Changes imported from coreutils.
52810         * lib/hard-locale.c: Assume <locale.h> exists.
52811         Include "strdup.h".
52812         (GLIBC_VERSION): New macro.
52813         (hard_locale): Assume setlocale exists.
52814         Rewrite to avoid #ifdef.
52815         Use strdup rather than malloc + strcpy.
52816         * lib/human.c: Assume <locale.h> exists.
52817         (human_readable): Assume localeconv exists.
52818
52819 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52820
52821         * modules/hard-locale (Depends-on): Add strdup.
52822
52823 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52824
52825         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52826         convert T2, not T.  (Imported from libc.)
52827
52828 2004-11-30  Simon Josefsson  <jas@extundo.com>
52829
52830         * modules/restrict (License): Change to LGPL.
52831
52832 2004-11-30  Simon Josefsson  <jas@extundo.com>
52833
52834         * m4/restrict.m4: Add copyright and copying conditions.
52835
52836 2004-11-30  Simon Josefsson  <jas@extundo.com>
52837
52838         * m4/base64.m4: New file.
52839
52840 2004-11-30  Simon Josefsson  <jas@extundo.com>
52841
52842         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52843         base64.
52844
52845         * tests/test-base64.c: New file.
52846
52847         * modules/base64: New file.
52848
52849 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52850
52851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52852         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52853
52854         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52855
52856 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52857
52858         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52859         (__getcwd.c): Don't restore errno; glibc doesn't.
52860         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52861         first, falling back to our code only if its results look suspicious.
52862         Ensure that the resulting buffer is only as large as necessary.
52863
52864         * lib/readutmp.c: Include readutmp.h first.
52865         Include <errno.h>, since readutmp.h no longer does that.
52866         * lib/readutmp.h: Don't include <errno.h>,
52867         <sys/param.h>, <time.h>; not needed to establish interface.
52868         (errno): Remove decl.
52869         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52870         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52871         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52872
52873 2004-11-28  Simon Josefsson  <jas@extundo.com>
52874
52875         * lib/base64.h, base64.c: New file.
52876
52877 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52878
52879         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52880
52881 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52884         (Depends-on): Remove pathmax, same.  Add mempcpy.
52885         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52886         (Makefile.am): Append getcwd.h to lib_SOURCES.
52887         (Include): Add getcwd.h.
52888         (Maintainer): Change from Jim Meyering to "all, glibc",
52889         since getdate now uses intended-for-glibc code.
52890         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52891         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52892
52893 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52894
52895         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52896         HP's ANSI C compiler.
52897         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52898         Declaring int functions causes warnings on some modern systems and
52899         shouldn't be needed to compile on ancient ones.
52900         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52901         defined.
52902
52903         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52904         with the following changes.
52905         (__set_errno): Parenthesize properly.
52906         Include <stdbool.h>.
52907         (MIN, MAX, MATCHING_INO): New macros.
52908         (__getcwd): Define with prototype, not K&R form.
52909         Use heuristics to allocate default buffer on stack if possible.
52910         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52911         behavior, and to avoid the PATH_MAX limit when computing
52912         ../../../../...
52913         Use MATCHING_INO to compare inode number to file.
52914         Check for arithmetic overflow in size calculations.
52915         Fix bug in reallocation of dot array that caused getcwd to fail
52916         on directories nested deeper than 75.
52917         Be more careful about saving errno on error.
52918         Do not use realloc; use only free+malloc, as this is a bit
52919         more flexible and avoids a needless copy operation.
52920         Do not inspect st_dev and st_ino for symbolic links; POSIX
52921         doesn't specify the latter.
52922         Check for closedir errors.
52923         Avoid needless casts.
52924         Use "#ifdef weak_alias" around weak_alias, to be like other
52925         glibc code.
52926         The following changes to getcwd.c have effect only when used in
52927         gnulib; they have no effect inside glibc proper.
52928         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52929         as alloca isn't used.
52930         (alloca, __alloca): Likewise.
52931         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52932         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52933         unconditionally, as gnulib assumes C89 or better.
52934         Do not include <sys/param.h>.
52935         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52936         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52937         better.
52938         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52939         Include <dirent.h> in a way that is compatible with modern Autoconf.
52940         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52941         New macros, if not already defined.
52942         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52943         Use "_LIBC", not "defined _LIBC", for consistency.
52944         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52945         a mempcpy module.
52946         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52947         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52948         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52949         credit only to Jim Meyering and adjust the copyright dates.
52950         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52951         <stdlib.h>, <unistd.h>, "pathmax.h".
52952         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52953         (INITIAL_BUFFER_SIZE): Remove.
52954         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52955
52956 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52959         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52960         Use the _ONCE methods, for efficiency.
52961         Check for fcntl.h.  In test program, include <errno.h>
52962         and <fcntl.h> if available.  Remove old K&R cruft from
52963         test program.  Check for common errors in GNU/Linux,
52964         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52965         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52967         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52968         name accordingly.
52969         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52970         accommodate new getcwd.c.
52971         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52972         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52973         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52974         that's all we need now.
52975
52976 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52977
52978         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52979         argp-parse.c depends on getopt internals, that means we should
52980         always use our getopt, to be on the safe side.
52981         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52982         order not to spoil the result of an eventual previous invocation
52983         of gl_GETOPT_SUBSTITUTE.
52984
52985 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52986
52987         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52988         redefinition warnings. To avoid them, include the defines
52989         in `#if !defined __need_getopt ... #endif'. The only place
52990         where __getopt_argv_const is used is in definitions
52991         of getopt_long and getopt_long_only below, which are as well
52992         protected by `#ifndef __need_getopt'.
52993         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52994         __need_getopt after including <stdio.h> and <unistd.h> These
52995         headers might have defined it.
52996
52997 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52998
52999         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53000
53001 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53004         (futimens): New function, which uses futimes if available.
53005         (futimens, utimens): Support timespec==NULL, with same semantics
53006         as utime and utimens.
53007         * lib/utimens.h (futimens): New decl.
53008
53009 2004-11-23  Jim Meyering  <jim@meyering.net>
53010
53011         * lib/getopt_.h: Remove trailing blanks.
53012
53013 2004-11-23  Jim Meyering  <jim@meyering.net>
53014
53015         * lib/__fpending.c: Add comment.
53016
53017 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         * modules/canonicalize (Depends-on): Add xreadlink.
53020         Problem reported by James Youngman.
53021
53022 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53023
53024         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53025         New macros.
53026         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53027         optopt): Use them instead of invoking ## directly; otherwise, the
53028         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53029
53030 2004-11-19  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/strtok_r.c: Move comments from here...
53033         * lib/strtok_r.h: ... to here.
53034
53035 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53038         implementations that mishandle size_t overflow.
53039
53040 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53043         might fail.  Problem reported by Yoann Vandoorselaere.
53044         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53045         implementations that mishandle size_t overflow.
53046
53047 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         * modules/canon-host (Depends-on): Add strdup.
53050
53051 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53054
53055 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53056
53057         * lib/canon-host.c: Include "strdup.h".
53058         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53059         Use strdup instead of malloc/strcpy to duplicate strings.
53060
53061         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53062         (human_space_before_unit): New constant.
53063         * lib/human.c (human_readable): Support it.
53064
53065         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53066         (xgetcwd): Set errno correctly when failing.
53067         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53068         the failure is actually due to a PATH_MAX problem.
53069
53070         Further getopt changes to make it more likely that glibc will
53071         buy the changes back.
53072         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53073         (getopt): Use it, so to preserve glibc semantic
53074         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53075         when compiling for libc.
53076         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53077         (getopt_long, getopt_long_only): Use it.
53078
53079         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53080         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53081         (getopt): Argv is now char * const *, as per standard.
53082         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53083         not char *__getopt_argv_const *.
53084         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53085         _getopt_long_only_r): Likewise.
53086         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53087         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53088         _getopt_long_r, _getopt_long_only_r): Likewise.
53089         * lib/getopt_.h (__getopt_argv_const): Remove.
53090         (getopt): Argv is now char * const *, as per standard.
53091
53092         * lib/getdate.y (tORDINAL): New token.
53093         (day, relunit): Allow it for relative times.
53094         (relative_time_table): Use tORDINAL for ordinals.
53095
53096 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53099         Document that "second" isn't allowed as an ordinal number.
53100
53101 2004-11-16  Jim Meyering  <jim@meyering.net>
53102
53103         * modules/closeout (Depends-on): Add fpending.
53104
53105 2004-11-15  Jim Meyering  <jim@meyering.net>
53106
53107         * lib/closeout.c: Include "__fpending.h" once again.
53108         Include <stdbool.h>.
53109         (close_stdout): Don't fail just because stdout was closed initially,
53110         since some programs don't write to stdout in the normal course of
53111         operation (other than --version and --help), and we don't want this
53112         function to make e.g. `touch file >&-' fail.
53113         But do fail if it was closed and someone has tried to write to it.
53114         E.g., `printf foo >&-' must fail.
53115
53116 2004-11-13  Jim Meyering  <jim@meyering.net>
53117
53118         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53119
53120 2004-11-12  Simon Josefsson  <jas@extundo.com>
53121
53122         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53123         small doc fix is still pending.
53124
53125 2004-11-11  Simon Josefsson  <jas@extundo.com>
53126
53127         * modules/strtok_r: New file.
53128
53129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53130         strtok_r.
53131
53132 2004-11-11  Simon Josefsson  <jas@extundo.com>
53133
53134         * m4/strtok_r.m4: New file.
53135
53136         * m4/getopt.m4: Replace opterr.
53137
53138 2004-11-11  Simon Josefsson  <jas@extundo.com>
53139
53140         * lib/strtok_r.h, strtok_r.c: New file.
53141
53142 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53145         of replacing opterr, getopt, etc.  This should handle the
53146         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53147
53148 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53151         we can stop lying to compilers about the constness of argv when we
53152         are compiled outside glibc.
53153         (getopt, getopt_long, getopt_long_only): Use it.
53154         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53155         _getopt_internal, getopt): Likewise.
53156         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53157         _getopt_long_only_r): Likewise.
53158         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53159         _getopt_long_r, _getopt_long_only_r): Likewise.
53160
53161         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53162         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53163         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53164         the other external symbols.
53165         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53166         declaration, since the above renaming now works around collisions.
53167
53168 2004-11-11  Jim Meyering  <jim@meyering.net>
53169
53170         * lib/linebreak.c: Remove trailing blanks.
53171         * lib/alloca_.h: Likewise.
53172         * lib/acosl.c: Likewise.
53173         * lib/euidaccess.c: Likewise.
53174         * lib/allocsa.h: Likewise.
53175
53176 2004-11-10  Simon Josefsson  <jas@extundo.com>
53177
53178         * m4/getaddrinfo.m4: New file.
53179
53180 2004-11-10  Simon Josefsson  <jas@extundo.com>
53181
53182         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53183
53184 2004-11-10  Simon Josefsson  <jas@extundo.com>
53185
53186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53187         getaddrinfo.
53188
53189         * modules/getaddrinfo: New file.
53190
53191 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53194
53195 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         * lib/mktime.c (SHR): New macro, which is a portable
53198         substitute for >> that should work even on Crays.
53199         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53200         Problem reported by Mark D. Baushke in
53201         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53202         * lib/getdate.y (SHR): Likewise.
53203         (tm_diff): Use it.
53204         * lib/strftime.c (SHR): Likewise.
53205         (tm_diff): Use it.
53206         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53207         quote_these_too, so that right shifts are well defined.  All uses
53208         changed.
53209
53210 2004-11-10  Jim Meyering  <jim@meyering.net>
53211
53212         Ensure that no close failure goes unreported.
53213         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53214         return early when it seems there's nothing to flush.
53215         Don't include __fpending.h.
53216
53217 2004-11-10  Jim Meyering  <jim@meyering.net>
53218
53219         * modules/closeout (Depends-on): Remove fpending.
53220
53221 2004-11-10  Jim Meyering  <jim@meyering.net>
53222
53223         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53224
53225 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53228         gl_FUNC_STRFTIME.
53229         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53230         and AC_REQUIRE when possible, to avoid duplicate checks.
53231         Check for <wchar.h>.
53232
53233 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53236
53237 2004-11-09  Bruno Haible  <bruno@clisp.org>
53238
53239         * m4/sockpfaf.m4: New file.
53240
53241 2004-11-05  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53244         Reported by Mark D. Baushke <mdb@cvshome.org>.
53245
53246 2004-11-04  Bruno Haible  <bruno@clisp.org>
53247
53248         2004-09-11  Bruno Haible  <bruno@clisp.org>
53249                 * allocsa.valgrind: New file.
53250         2004-02-06  Bruno Haible  <bruno@clisp.org>
53251                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53252                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53253                 Reported by Christopher Seip <chris.seip@hp.com>.
53254
53255 2004-11-04  Bruno Haible  <bruno@clisp.org>
53256
53257         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53258         (Makefile.am): Distribute it.
53259
53260 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53263         with errno == ERANGE if the buffer is too small.
53264         Problem reported by Mark D. Baushke.
53265
53266 2004-11-03  Albert Chin  <china@thewrittenword.com>
53267             Paul Eggert  <eggert@cs.ucla.edu>
53268
53269         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53270         equivalent, substitute $ac_type for equivalent type rather than
53271         blindly using uint32_t *always* which won't work if uint32_t is not
53272         available.  Define _UINT32_T to work around typedef of uint32_t if
53273         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53274         2.5.1.
53275
53276 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/jm-macros.m4: Sync from coreutils.
53279         (gl_MACROS): Check for mbrlen, for pathchk.
53280         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53281
53282 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53283
53284         * lib/xreadlink.c (MAXSIZE): New macro.
53285         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53286         size does not exceed MAXSIZE.  Avoid cast.
53287         As suggested by Mark D. Baushke in
53288         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53289         if readlink fails with buffer size just under MAXSIZE, try again
53290         with MAXSIZE.
53291
53292 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53293
53294         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53295
53296 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53297         and  Paul Eggert  <eggert@cs.ucla.edu>
53298
53299         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53300         (get_date): Overparenthesize to avoid GCC warning.
53301
53302 2004-11-02  Bruno Haible  <bruno@clisp.org>
53303
53304         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53305         returns void.
53306
53307 2004-11-02  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53310         function returns void.
53311
53312 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53313
53314         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53315         fflush_unlocked, flockfile, funlockfile, funlockfile,
53316         fputs_unlocked, putc_unlocked.
53317
53318 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53321         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53322         already declared.
53323
53324 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         * modules/getdate (Files): Add doc/getdate.texi.
53327         (Depends-on): Add setenv, xalloc.
53328
53329 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * lib/getdate.y: Add support for TZ="foo" within a date string.
53332         Fix some bugs near time_t boundaries.  Reject dates with
53333         out-of-range components, e.g., "Sept 31".
53334         Include <stdlib.h>, "setenv.h", "xalloc.h".
53335         (ISDIGIT_LOCALE): Remove; unused.
53336         Note that the TZ and time functions used here are not reentrant.
53337         (mktime_ok, get_tz): New functions.
53338         (TZBUFSIZE): New constant.
53339         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53340         This requires that we sometimes generate our own TZ="XXX..." setting.
53341
53342 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         * doc/getdate.texi: New file, from coreutils with modifications for
53345         the new TZ parsing.
53346
53347 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53348
53349         * lib/mktime.c (not_equal_tm): Remove redundant check.
53350
53351 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * modules/regex (lib_SOURCES): Add regex.c.
53354         Reported by James Youngman in
53355         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53356
53357 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53358
53359         * lib/getdate.y: Use Bison 1.875 features, and some minor
53360         code cleanups.  This change does not affect semantics.
53361         Don't include <stdlib.h>; no longer needed.
53362         Don't include unlocked-io.h; only the "#if TEST" code uses
53363         stdio, and performance isn't crucial there.
53364         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53365         Bison 1.875 features as described below.
53366         All uses of "PC." replaced by "pc->".
53367         (YYSTYPE): Add a forward declaration.
53368         (yylex, yyerror): Use full prototypes in forward decls.
53369         Use "%pure-parser" rather than obsolescent "%pure_parser".
53370         Use %parse-param and %lex-param instead of obsolescent
53371         YYPARSE_PARAM and YYLEX_PARAM.
53372         (meridian_table, month_and_day_table, time_units_table,
53373         relative_time_table, time_zone_table, military_table,
53374         lookup_zone, lookup_word, get_date):
53375         Use NULL instead of 0 where appropriate.
53376         (to_hour): Avoid abort (), to avoid a dependency on
53377         stdlib.h.
53378         (yyerror, yylex): Now accepts parser_control * arg.
53379         (main) [TEST]: Use '\0' rather than 0 for char.
53380
53381 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53382
53383         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53384
53385 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53388         It's now the caller's responsibility to handle the case where
53389         !HAVE_GETPAGESIZE && !defined getpagesize.
53390
53391         * lib/mktime.c (leapyear): Arg is long int, not int.
53392
53393 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53396
53397 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53400         missing.  Problem reported by James Youngman.
53401
53402 2004-10-16  Simon Josefsson  <jas@extundo.com>
53403
53404         * gnulib-tool: Fix comments.  Fix parse problem.
53405         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53406
53407 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53410         implementation of getopt_long.  Problem reported by Alexander Taler in:
53411         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53412
53413 2004-10-15  Bruno Haible  <bruno@clisp.org>
53414
53415         * gnulib-tool: Untabify. Initialize supplied_libname.
53416         (func_usage): More homogenous output.
53417         (func_modules_transitive_closure, func_modules_to_filelist,
53418         func_emit_lib_Makefile_am): New functions.
53419         (func_import): New function, extracted from big case statement. Use
53420         func_get_license, func_modules_transitive_closure,
53421         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53422         opt_lgpl. Don't use test -a, as it's not portable.
53423         (func_create_testdir): Use func_modules_transitive_closure,
53424         func_modules_to_filelist, func_emit_lib_Makefile_am.
53425
53426 2004-10-15  Bruno Haible  <bruno@clisp.org>
53427
53428         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53429
53430 2004-10-15  Bruno Haible  <bruno@clisp.org>
53431
53432         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53433         the portions belonging to each module.
53434         Suggested by Derek Robert Price <derek@ximbiot.com>.
53435
53436 2004-10-12  Simon Josefsson  <jas@extundo.com>
53437
53438         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53439         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53440         to real functions.
53441
53442 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53443
53444         * modules/vsnprintf: New file.
53445
53446 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53447
53448         * m4/vsnprintf.m4: New file.
53449
53450 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53451
53452         * lib/vsnprintf.h: New file.
53453         * lib/vsnprintf.c: New file.
53454
53455 2004-10-11  Bruno Haible  <bruno@clisp.org>
53456
53457         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53458         vsnprintf.
53459
53460 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53461
53462         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53463
53464 2004-10-07  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53467         fits into the provided buffer.
53468
53469 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * lib/diacrit.c, diacrit.h: Add GPL notice.
53472
53473         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53474         notice.
53475         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53476         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53477         This avoids a potential constant-folding bug.
53478
53479 2004-10-05  Bruno Haible  <bruno@clisp.org>
53480
53481         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53482         for the declaration of strsep.
53483
53484 2004-10-05  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53487
53488 2004-10-04  Simon Josefsson  <jas@extundo.com>
53489
53490         * modules/memmem: New file.
53491         * tests/test-memmem.c: New file.
53492         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53493
53494 2004-10-04  Simon Josefsson  <jas@extundo.com>
53495
53496         * m4/memmem.m4: New file.
53497
53498 2004-10-04  Simon Josefsson  <jas@extundo.com>
53499
53500         * lib/memmem.h: New file.
53501         * lib/memmem.c: New file, taken from glibc.
53502
53503 2004-10-04  Simon Josefsson  <jas@extundo.com>
53504
53505         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53506         '#ifdef USE_UNLOCKED_IO'.
53507
53508 2004-10-04  Simon Josefsson  <jas@extundo.com>
53509
53510         * config/srclist.txt: Add memmem from glibc.
53511
53512 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53515
53516         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53517         modules/exclude, modules/getdate, modules/getline,
53518         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53519         modules/getusershell, modules/linebuffer, modules/md5,
53520         modules/mountlist, modules/posixtm, modules/readtokens,
53521         modules/readutmp, modules/regex, modules/sha1,
53522         modules/version-etc, modules/yesno:
53523         Remove dependency on unlocked-io.
53524
53525 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53526
53527         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53528
53529         * m4/unlocked-io.m4: Add copyright notice.
53530         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53531
53532 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53535         * lib/xmalloc.c (xmemdup): Likewise.
53536         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53537         XFREE): Remove these long-obsolescent macros.
53538         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53539         * lib/xstrdup.c: Remove.
53540
53541         * lib/regex.c (re_comp): Cast gettext return value to char *,
53542         Problem reported by Martin Neitzel via Mark D. Baushke.
53543
53544 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53547         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53548         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53549         regex.c, sha1.c, version-etc.c, yesno.c:
53550         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53551         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53552         the includer's responsibility.
53553
53554         Sync from coreutils.
53555
53556         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53557         points to the start of a string, as the C Standard says the
53558         resulting behavior is undefined.
53559
53560         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53561         simple -> simple_backups, numbered_existing ->
53562         numbered_existing_backups, numbered -> numbered_backups
53563         to avoid shadowing problems.  All uses changed.
53564         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53565         * lib/backupfile.c (check_extension, numbered_backup):
53566         Rename locals to avoid shadowing 'basename'.
53567         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53568         once.
53569
53570         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53571         * lib/.cvsignore: Add getopt.h.
53572
53573 2004-10-04  Bruno Haible  <bruno@clisp.org>
53574
53575         * modules/README: New file.
53576         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53577         not a module.
53578
53579 2004-10-02  Jim Meyering  <jim@meyering.net>
53580
53581         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53582
53583 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53584
53585         * modules/strsep: New file.
53586
53587 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53588
53589         * m4/strsep.m4: New file.
53590
53591 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53592
53593         * lib/strsep.h: New file.
53594         * lib/strsep.c: New file.
53595
53596 2004-10-01  Simon Josefsson  <jas@extundo.com>
53597
53598         * lib/snprintf.c (snprintf): Handle size==0.
53599
53600 2004-10-01  Simon Josefsson  <jas@extundo.com>
53601             Bruno Haible  <bruno@clisp.org>
53602
53603         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53604         (snprintf): Declare 'args'.
53605
53606 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * lib/snprintf.c: Remove comments as to why each header is needed.
53609
53610 2004-10-01  Bruno Haible  <bruno@clisp.org>
53611
53612         * MODULES.html.sh: Add strsep.
53613
53614 2004-09-30  Simon Josefsson  <jas@extundo.com>
53615
53616         * modules/snprintf: New file.
53617
53618 2004-09-30  Simon Josefsson  <jas@extundo.com>
53619
53620         * m4/snprintf.m4: New file.
53621
53622 2004-09-30  Simon Josefsson  <jas@extundo.com>
53623
53624         * lib/snprintf.h, lib/snprintf.c: New files.
53625
53626 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53627
53628         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53629         (hol_entry_help): Never translate an empty string.
53630         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53631         * lib/argp.h (OPTION_NO_TRANS): New option.
53632
53633 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * modules/argp (Maintainer): Replace Simon Josefsson
53636         by Sergey Poznyakoff.
53637
53638 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53639
53640         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53641         changes merged back into glibc.
53642
53643 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53646
53647 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53648
53649         * lib/xvasprintf.c: Include xalloc.h.
53650         (xvasprintf): Use xalloc_die, not xmalloc_die.
53651
53652 2004-09-29  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/alloca-opt: New file, derived from modules/alloca.
53655         * modules/allocsa: Depend on alloca-opt instead of alloca.
53656         * modules/setenv: Likewise.
53657         * modules/vasnprintf: Likewise.
53658         * MODULES.html.sh: Add alloca-opt.
53659
53660 2004-09-28  Simon Josefsson  <jas@extundo.com>
53661
53662         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53663         LGPL, and to replace license template from GPL to LGPL.
53664
53665 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53666
53667         * modules/dummy: Change license to LGPL.
53668
53669 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53672
53673 2004-09-24  Simon Josefsson  <jas@extundo.com>
53674
53675         * modules/minmax (License): Change from GPL to LGPL.
53676
53677 2004-09-23  Simon Josefsson  <jas@extundo.com>
53678
53679         * gnulib-tool (--import): Typo.
53680
53681 2004-09-23  Simon Josefsson  <jas@extundo.com>
53682
53683         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53684
53685 2004-09-22  Bruno Haible  <bruno@clisp.org>
53686
53687         * modules/*: Add 'License' field.
53688         * gnulib-tool: Accept --extract-license option.
53689         (func_get_license): New function.
53690
53691 2004-09-21  Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53694         Reported by Simon Josefsson.
53695
53696 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53699         gl_AC_TYPE_LONG_LONG.
53700
53701 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53704
53705 2004-09-18  Simon Josefsson  <jas@extundo.com>
53706         and  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53709         calls with autoreconf.  Define GL_LIB.
53710
53711 2004-09-14  Karl Berry  <karl@gnu.org>
53712
53713         * config/srclist.txt: unsync setenv.c, sigh.
53714
53715 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53716
53717         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53718         Problem reported by Bruno Haible in:
53719         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53720
53721 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         * config/srclist.txt: Comment out argp-pvh.c.
53724
53725 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53728         in case some system header has #define'd it.  Problem reported by
53729         Soeren D. Schulze in
53730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53731
53732 2004-09-09  Karl Berry  <karl@gnu.org>
53733
53734         * regex.[ch]: delete from the root.  These were supposed to be
53735                 synced with emacs cvs, but this has not happened for about
53736                 a year, and anyway nothing else uses emacs regex.[ch].
53737                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53738                 lib/regex[.ch] is untouched.
53739
53740 2004-09-09  Bruno Haible  <bruno@clisp.org>
53741
53742         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53743
53744 2004-09-09  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53747         modifications.
53748         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53749
53750 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53751
53752         * modules/xvasprintf: New file.
53753         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53754
53755 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53756
53757         * lib/xvasprintf.h: New file.
53758         * lib/xvasprintf.c: New file.
53759         * lib/xasprintf.c: New file.
53760
53761 2004-09-08  Bruno Haible  <bruno@clisp.org>
53762
53763         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53764
53765 2004-09-08  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53768         length is > INT_MAX.
53769         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53770         more.
53771
53772 2004-09-08  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/stdint_.h: New file, taken from GNU clisp.
53775
53776 2004-09-08  Bruno Haible  <bruno@clisp.org>
53777             Oskar Liljeblad  <oskar@osk.mine.nu>
53778
53779         * modules/stdint: New file.
53780         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53781
53782 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         Import from coreutils.
53785         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53786         strings on unbounded length.  alloca's performance benefits aren't
53787         that important here.
53788         (V_STRDUP): Remove.
53789         (parse_with_separator): New function, with most of the internals
53790         of the old parse_user_spec.  Allow user to omit both user and group,
53791         for compatibility with FreeBSD.
53792         Clone only the user name, not the entire spec.
53793         Do not set *uid, *gid unless entirely successful.
53794         Avoid memory leak in some failing cases.
53795         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53796         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53797         (parse_user_spec): Rewrite to use parse_with_separator.
53798
53799 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53800
53801         * modules/userspec: Don't depend on alloca.
53802
53803 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53806
53807 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53810         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53811         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53812
53813 2004-08-16  Simon Josefsson  <jas@extundo.com>
53814
53815         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53816         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53817         Add --dry-run for --import.
53818         Let user provided command line parameters override configure.ac
53819         settings.
53820
53821 2004-08-12  Simon Josefsson  <jas@extundo.com>
53822
53823         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53824         as discussed with Paul Eggert in threads rooted at
53825         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53826         and
53827         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53828         Before, the test was empty, and relied on ELIDE_CODE in source
53829         code.)
53830         (gl_PREREQ_GETOPT): New macro.
53831         (gl_GETOPT): Use them.
53832
53833 2004-08-12  Simon Josefsson  <jas@extundo.com>
53834
53835         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53836         * lib/getopt_.h: Renamed from getopt.h.
53837
53838 2004-08-12  Simon Josefsson  <jas@extundo.com>
53839
53840         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53841         Change default library name from libfoo to libgnu.
53842         Now, if you have a configure.ac that says:
53843                 gl_SOURCE_BASE(gl)
53844                 gl_M4_BASE(gl/m4)
53845                 gl_MODULES(error getopt etcetera)
53846                 gl_INIT
53847         you can import all you need by running:
53848                 ../gnulib/gnulib-tool --import
53849
53850         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53851         (Makefile.am): Rewrite, use logic from argz.
53852         (Include): Use <getopt.h> instead of "getopt.h".
53853
53854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * modules/argp (Files): Add m4/unlocked-io.m4.
53857         (Depends-on): Add extensions.
53858
53859 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53862         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53863         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53864         Check for program_invocation_name, program_invocation_short_name,
53865         flockfile, funlockfile, features.h, _getopt_long_only_r.
53866
53867 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53870         its complicated substitute.
53871         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53872         and program_invocation_name.
53873         (__argp_basename) [!_LIBC]: Remove; the only use was
53874         replaced by its body.
53875         (__argp_short_program_name): Change condition from
53876         !defined __argp_short_program_name to
53877         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53878         to match argp-namefrob.h.
53879         (__argp_failure): Don't assume strerror_r returns char *.
53880         * lib/argp-parse.c (N_): Define unconditionally.
53881         (argp_default_options): Fill out initializers with 0 to avoid
53882         gcc warnings.
53883
53884 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53887         getopt1.c.
53888
53889 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         Merge from coreutils.
53892
53893         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53894
53895         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53896         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53897
53898 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         Merge from coreutils.
53901
53902         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53903         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53904         for Reliant Unix 5.43.
53905
53906         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53907         (union fooround): Use uintmax_t, not long int.
53908         The rest is a merge from libc:
53909         [defined _LIBC]: Include <shlib-compat.h>.
53910         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53911
53912         * lib/settime.c (settime): Recode to avoid warning with
53913         Sun Forte C 6U2.
53914
53915         * lib/strverscmp.c: Convert to UTF-8.
53916
53917 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53920         m4/uintmax_t.m4.
53921
53922 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * modules/xalloc-die: New file.
53925         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53926
53927         * modules/md5 (Files): Add m4/uint32_t.m4.
53928         * modules/sha1: Renamed from modules/sha.
53929         (Files):
53930         Rename lib/sha.h to lib/sha1.h.
53931         Rename lib/sha.c to lib/sha1.c.
53932         Rename m4/sha.m4 to m4/sha1.m4.
53933         (lib_SOURCES): Likewise.
53934         (configure.ac): Rename gl_SHA to gl_SHA1.
53935         (Include): sha.h -> sha1.h.
53936
53937 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53940         * m4/sha1.m4: Renamed from sha.m4.
53941         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53942
53943 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * lib/obstack.h (obstack_empty_p):
53946         Don't assume that chunk->contents is suitably aligned.
53947         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53948         Likewise. Problem reported by Benno in
53949         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53950
53951         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53952         readable.  This could be improved further but it'd take some work.
53953
53954 2004-08-08  Simon Josefsson  <jas@extundo.com>
53955
53956         * modules/xgethostname (Depends-on): Remove exit and error (not
53957         used).
53958
53959         * modules/getpass-gnu: Add getpass.h.
53960         (Depends-on): Add stdbool.
53961         * modules/getpass: Add getpass.h.
53962
53963 2004-08-08  Simon Josefsson  <jas@extundo.com>
53964
53965         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53966         Check getpass declaration.
53967
53968 2004-08-08  Simon Josefsson  <jas@extundo.com>
53969
53970         * lib/xgethostname.c: Don't include error.h (not used).
53971
53972         * lib/getpass.h: Add.
53973         * lib/getpass.c: Include getpass.h first.
53974
53975 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/xalloc-die.c: New file.
53978         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53979         All uses removed.
53980         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53981         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53982         xalloc-die.c.
53983         (_, N_, xalloc_die): Move to xalloc-die.c.
53984         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53985         so that we needn't mess with xalloc_msg_memory_exhausted.
53986
53987         * lib/sha1.h: Renamed from sha.h.
53988         (SHA1_H): Renamed from _SHA_H.
53989         (sha1_ctx): Renamed from sha_ctx.
53990         (sha1_init_ctx): Renamed from sha_init_ctx.
53991         (sha1_process_block): Renamed from sha_process_block.
53992         (sha1_process_bytes): Renamed from sha_process_bytes.
53993         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53994         (sha1_read_ctx): Renamed from sha_read_ctx.
53995         (sha1_stream): Renamed from sha_stream.
53996         (sha1_buffer): Renamed from sha_buffer.
53997         * lib/sha1.c: Likewise; renamed from sha.c.
53998         Do not include <sys/types.h>.
53999         Include <stddef.h> rather than <stdlib.h>.
54000
54001 2004-08-08  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54004         FILESYSTEM_PREFIX_LEN.
54005         * lib/progreloc.c: Likewise.
54006         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54007
54008 2004-08-06  Simon Josefsson  <jas@extundo.com>
54009
54010         * modules/progname (Depends-on): Don't depend on stdbool.
54011
54012 2004-08-06  Simon Josefsson  <jas@extundo.com>
54013
54014         * modules/getsubopt: New file.
54015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54016         getsubopt.
54017
54018 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         More merge from coreutils.
54021
54022         * m4/utimens.m4, m4/utimecmp.m4: New files.
54023         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54024         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54025         prereq.m4, sha.m4: Import changes from coreutils.
54026
54027 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54028
54029         More merge from coreutils.
54030         * modules/raise, modules/readtokens0, modules/utimens:
54031         * modules/utimecmp, module/xnanosleep: New files.
54032         * modules/strftime: Add lib/strftime.h.
54033         Change include from <time.h> to "strftime.h".
54034         * modules/yesno: Add lib/yesno.h.
54035         * modules/backupfile: Remove lib/addext.c.
54036         * modules/euidaccess: Add stat-macros.h.
54037         * modules/canonicalize, modules/euidaccess,
54038         modules/filemode, modules/lchown, modules/makepath,
54039         modules/rmdir, modules/stat: Likewise.
54040
54041 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54042
54043         Merge from tar.
54044         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54045         SIZE_MAX is a valid preprocessor constant.
54046         (__argp_basename): Change from "#ifndef _LIBC"
54047         to "#ifndef __argp_short_program_name", so that
54048         we don't compile these functions for tar.
54049
54050         More merges from coreutils.
54051         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54052         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54053         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54054         * lib/addext.c: Remove; no longer needed.
54055         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54056         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54057         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54058         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54059         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54060         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54061         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54062         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54063         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54064         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54065         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54066         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54067         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54068         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54069         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54070         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54071         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54072         Import changes from coreutils.
54073
54074 2004-08-05  Simon Josefsson  <jas@extundo.com>
54075
54076         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54077
54078 2004-08-05  Simon Josefsson  <jas@extundo.com>
54079
54080         * m4/getsubopt.m4: New file.
54081
54082 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         Merge from coreutils.
54085
54086         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54087         * m4/getcwd-path-max.m4: New files.
54088
54089         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54090         FILESYSTEM_PREFIX_LEN ->
54091         FILE_SYSTEM_PREFIX_LEN.
54092         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54093         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54094         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54095         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54096
54097         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54098         prerequisite modules now handle the DOS stuff.
54099         Don't check for unistd.h.
54100
54101 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         Merge from coreutils.
54104
54105         * lib/.gdb-history: Remove; this doesn't belong here.
54106
54107         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54108         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54109         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54110         * lib/getcwd.c: New files.
54111
54112         * lib/dirname.h: Include <stdbool.h>.
54113         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54114         for consistency with POSIX terminology.  All uses changed.
54115         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54116         (strip_trailing_slashes): Use bool for booleans.
54117         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54118
54119         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54120         sometimes returns a positive errno value even when it succeeds.
54121         (print_errno_message) [!LIBC]: Fall back on strerror if
54122         __strerror_r fails.
54123
54124         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54125         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54126         (longest_relative_suffix): New function.
54127         (path_concat): Use it.  Assume first argument is not NULL.
54128         Port to DOS.  Omit redundant separators.
54129         Report an error instead of returning NULL.
54130         Use mempcpy instead of memcpy.
54131         (xpath_concat): Remove: not declared or used.
54132
54133         * lib/same.h: Include <stdbool.h>
54134         (same_name): Return bool, not int.
54135         * lib/same.c (same_name): Likewise.
54136         (errno): Don't declare; we assume C89 or better now.
54137
54138         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54139         if not already defined.
54140
54141         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54142         * lib/dup-safer.c (errno): Likewise.
54143
54144 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         Merge from coreutils.
54147         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54148         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54149         * modules/path-concat: Don't depend on strdup.
54150
54151 2004-08-03  Simon Josefsson  <jas@extundo.com>
54152
54153         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54154         * lib/progname.h: Don't include stdbool.h.
54155
54156 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54157
54158         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54159         * MODULES.html.sh (func_all_modules): Remove fatal.
54160
54161 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54162
54163         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54164
54165 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54168         working.
54169
54170 2004-08-02  Simon Josefsson  <jas@extundo.com>
54171
54172         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54173         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54174         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54175
54176 2004-08-01  Simon Josefsson  <jas@extundo.com>
54177
54178         * lib/xgetdomainname.c: Include stdlib.h, for free().
54179
54180 2004-07-19  Bruno Haible  <bruno@clisp.org>
54181
54182         * MODULES.html.sh (func_all_modules): Add dummy.
54183
54184 2004-07-16  Simon Josefsson  <jas@extundo.com>
54185
54186         * modules/dummy: New file.
54187
54188 2004-07-16  Simon Josefsson  <jas@extundo.com>
54189
54190         * lib/dummy.c: New file.
54191
54192 2004-07-16  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/backupfile.h: Add extern "C" for C++.
54195         * lib/closeout.h: Likewise.
54196         * lib/copy-file.h: Likewise.
54197         * lib/findprog.h: Likewise.
54198         * lib/full-write.h: Likewise.
54199         * lib/pathname.h: Likewise.
54200         * lib/progname.h: Likewise.
54201         * lib/stpcpy.h: Likewise.
54202         * lib/stpncpy.h: Likewise.
54203         * lib/strcase.h: Likewise.
54204         * lib/strstr.h: Likewise.
54205         * lib/xalloc.h: Likewise.
54206
54207         * lib/mbswidth.h: Add extern "C" for C++.
54208         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54209
54210 2004-07-13  Robert Millan  <robertmh@gnu.org>
54211
54212         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54213
54214 2004-07-09  Simon Josefsson  <jas@extundo.com>
54215
54216         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54217         failed without this.)
54218
54219 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * modules/chown (Files): Add lib/fchown-stub.c, since
54222         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54223
54224 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54225
54226         * lib/fchown-stub.c: New file.
54227
54228 2004-06-24  Jim Meyering  <jim@meyering.net>
54229
54230         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54231
54232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54233
54234         * modules/argz: Omit "#include".
54235
54236         * MODULES.html.sh (func_all_modules): Add calloc, to match
54237         2004-06-01 addition of calloc module.
54238
54239 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * m4/argz.m4: New file, which is autoupdated from libtool.
54242
54243 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54246         libtool.
54247
54248 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         * config/srclist-update: Don't insist on "USA." before the
54251         close-comment, as libtool omits the period and puts the */ on a
54252         separate line.
54253         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54254         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54255
54256 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54257
54258         * modules/argz: New file.
54259         * MODULES.html.sh (func_all_modules): Add argz.
54260
54261 2004-06-12  Jim Meyering  <jim@meyering.net>
54262         and  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * modules/hash (Files): Add lib/xalloc.h.
54265         * modules/pipe (Depends-on): Add wait-process.
54266         * modules/stat (Depends-on): Add xalloc.
54267         * modules/userspec (Files): Add lib/userspec.h.
54268         * modules/xstrto
54269
54270         Upgrade from gettext-0.13.
54271         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54272         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54273         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54274
54275 2004-06-10  Jim Meyering  <jim@meyering.net>
54276
54277         * lib/calloc.c: New file.
54278
54279 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * lib/getdate.y (yylex): Allow space between sign and number.
54282         Problem reported by Dan Jacobson.
54283
54284 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54285
54286         Merge from coreutils CVS.
54287
54288         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54289         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54290         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54291         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54292         xstrtol.m4: Fix copyright date and/or serial number.
54293
54294         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54295         See if we need an fchown replacement.
54296         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54297         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54298         and use the replacement function if we detect either defect.
54299
54300         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54301         gl_UTIMECMP.
54302
54303 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54304         and  Jim Meyering  <jim@meyering.net>
54305
54306         Merge from coreutils CVS.
54307
54308         * lib/stat-macros.h: New file, with contents from file-type.h
54309         and coreutils' system.h.
54310         * lib/file-type.c: Include "stat-macros.h".
54311         * lib/file-type.h (file_type): Move all macro definitions to new file,
54312         stat-macros.h.
54313
54314         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54315         Wrap old code with this conditional.
54316         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54317         function that does not dereference symlinks.
54318         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54319
54320         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54321         dependency problems.
54322         (xreadlink): Accept new arg SIZE, for efficiency.
54323         All decls and uses changed.
54324         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54325
54326         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54327         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54328
54329         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54330         sysexits.h.
54331
54332 2004-06-01  Jim Meyering  <jim@meyering.net>
54333
54334         * m4/calloc.m4: New file.
54335
54336 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54339         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54340         Also, fix a typo in a diagnostic.
54341
54342 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54345         or AC_FUNC_REALLOC.
54346
54347 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54348
54349         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54350         macros to be defined.
54351         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54352         the allocator returns NULL because the requested size is zero.
54353
54354 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54357         var.  Add comment explaining why libc still defines it.  This
54358         merges the following patch from glibc:
54359         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54360
54361 2004-05-20  Andreas Schwab  <schwab@suse.de>
54362
54363         * m4/free.m4: Replace free if it not known to work, not the other
54364         way round.
54365
54366 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54369         present in glibc since revision 1.1 of this file.
54370         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54371         obstack_alignment_mask, obstack_alloc, obstack_base,
54372         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54373         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54374         obstack_grow0, obstack_init, obstack_int_grow,
54375         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54376         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54377         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54378         nonexistent functions.
54379
54380 2004-05-18  Karl Berry  <karl@gnu.org>
54381
54382         * config/srclist.txt: break link for vasnprintf.c.
54383
54384 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54385
54386         Port obstack to the AS/400, where pointers are 16 bytes wide and
54387         you cannot cast an integer to a valid pointer.  This patch is
54388         currently waiting to be integrated into glibc; see
54389         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54390
54391         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54392         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54393         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54394         (struct obstack): temp member is now a union of a pointer and
54395         an integer, instead of an integer.  All integer uses changed.
54396         This does not affect the physical layout of struct obstack,
54397         except on hosts (like the AS/400) where the size or alignment of
54398         void * is greater than that of ptrdiff_t.
54399         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54400         __STDC__)]: Store temporary in pointer member of union, not
54401         integer member.
54402         * lib/obstack.c: Include <stddef.h>, for offsetof.
54403         (struct fooalign): Remove; it doesn't need a name.
54404         (union fooround): Change double to long double, and add void *.
54405         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54406         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54407         not a macro.  Hence the values are always int; so remove all
54408         casts-to-int in uses.
54409
54410 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54413         we can get this patch merged into glibc.
54414
54415 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54416             Paul Eggert  <eggert@cs.ucla.edu>
54417
54418         * m4/argp: Depend on alloca.
54419
54420 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54421             Paul Eggert  <eggert@cs.ucla.edu>
54422
54423         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54424         freecoding.
54425
54426 2004-05-17  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54429         precision that consists of a '.' followed by an empty digit string.
54430         Patch by Tor Lillqvist <tml@iki.fi>.
54431
54432 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54433
54434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54435         for backward compatibility with older code.  We need our own
54436         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54437         it under some other name, and our alloca.h will define it.
54438
54439 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54440             Derek Price  <derek@ximbiot.com>
54441
54442         * lib/alloca.c: Include <alloca.h>, to get our interface.
54443         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54444         include <alloca.h> first.  Use C89 prototype for alloca; this
54445         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54446         Use #elif for simplicity, since we can assume C89 now.
54447         Don't try to source the system alloca.h since it will not be found
54448         and to prevent recursively including its replacement.
54449         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54450         * lib/regex.c: Likewise.
54451
54452 2004-05-16  Derek Price  <derek@ximbiot.com>
54453             Paul Eggert  <eggert@cs.ucla.edu>
54454
54455         getline cleanup.  This changes the getndelim2 API: both order of
54456         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54457         no delimiter).
54458
54459         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54460         interface does that.
54461         (getline): Always use getdelim, so that we don't have two
54462         copies of this code.
54463         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54464         if available.
54465         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54466         (GETNDELIM2_MAXIMUM): New macro.
54467         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54468         instead of the old practice of delim2==0.  All callers changed.
54469         Return -1 on overflow, instead of returning junk.
54470         Do not set *linesize unless allocation succeeds.
54471         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54472         that we include sys/types.h.
54473         * lib/getnline.h: Likewise.
54474         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54475         (getndelim2): Reorder arguments.
54476         * lib/getnline.c (getnline, getndelim):
54477         Don't discard the NMAX argument.
54478         (getnline): Invoke getndelim, to avoid code duplication.
54479         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54480         of (size_t) -1 by callers of the getnline family.
54481
54482 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54485         Check for gettimeofday.
54486         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54487         Check for settimeofday, stime.
54488
54489 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * lib/nanosleep.c (suspended): Change its type from int to
54492         sig_atomic_t volatile.
54493         (first_call): Make it private to rpl_nanosleep, and have it
54494         be zero initially as that's a bit faster.
54495         (my_usleep): Round up fractional times instead of truncating them,
54496         as this is the usual meaning for 'sleep'.
54497
54498         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54499         doesn't work.
54500         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54501         (ENOSYS): Define if not defined.
54502         (settime): Fall back on stime if it exists and settimeofday fails.
54503         But don't bother with fallbacks if a method fails with errno == EPERM.
54504
54505 2004-05-11  Jim Meyering  <jim@meyering.net>
54506
54507         Prior to this change, the save_cwd caller required read access to the
54508         current directory on most systems (ones with the fchdir function).
54509
54510         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54511         fails, try write-only, and finally, resort to using xgetcwd.
54512
54513 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * lib/obstack.c, obstack.h: Import changes from libc.
54516
54517 2004-04-28  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54520         also implicitly appends .exe to executables.
54521         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54522         accepts Windows pathnames.
54523         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54524         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54525         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54526         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54527         Reported by Derek Robert Price <derek@ximbiot.com>.
54528
54529 2004-04-21  Karl Berry  <karl@gnu.org>
54530
54531         * config/srclist.txt (localcharset.c): break sync.
54532
54533 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54534
54535         * m4/host-os.m4: Add a copyright notice.
54536
54537 2004-04-20  Jim Meyering  <jim@meyering.net>
54538
54539         Change UTILS_ to gl_ in AC_DEFINE'd names.
54540         Change utils_- and jm_-prefixed variables, too.
54541         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54542         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54544
54545         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54546         Don't emit trailing blanks.
54547         Also rename jm_-prefixed variables to have gl_ prefix.
54548
54549         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54550         Also rename jm_-prefixed variables to have gl_ prefix.
54551
54552         * m4/jm-macros.m4: Reflect the renamings.
54553         * m4/prereq.m4: Likewise.
54554
54555 2004-04-20  Jim Meyering  <jim@meyering.net>
54556
54557         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54558         memory.
54559
54560 2004-04-20  Jim Meyering  <jim@meyering.net>
54561             Bruno Haible  <bruno@clisp.org>
54562
54563         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54564         memory when realloc fails.
54565
54566 2004-04-19  Jim Meyering  <jim@meyering.net>
54567
54568         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54569         now that readutmp.c may call `free (0)'.
54570
54571 2004-04-19  Bruno Haible  <bruno@clisp.org>
54572
54573         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54574         * m4/inttypes_h.m4: Likewise.
54575         * m4/stdint_h.m4: Likewise.
54576         * m4/intmax_t.m4: Likewise.
54577         * m4/uintmax_t.m4: Likewise.
54578
54579 2004-04-18  Jim Meyering  <jim@meyering.net>
54580
54581         * m4/prereq.m4: Don't forbid jm_ prefix.
54582
54583         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54584         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54585         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54586         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54587         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54588         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54589         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54590         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54591         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54592         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54593         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54594         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54595         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54596         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54597         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54598         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54599         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54600         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54601         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54602
54603 2004-04-18  Jim Meyering  <jim@meyering.net>
54604
54605         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54606         failure, don't leak memory and do call END_UTMP_ENT.
54607
54608 2004-04-16  Jim Meyering  <jim@meyering.net>
54609
54610         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54611         coreutils' stat program.
54612         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54613
54614 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54615
54616         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54617         C89.
54618         (CHAR_BIT): Remove, since we assume C89.
54619         Include <stdint.h> if available, as per current Autoconf CVS advice.
54620
54621 2004-03-31  Jim Meyering  <jim@meyering.net>
54622
54623         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54624         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54625         * m4/xalloc.m4: Likewise.
54626
54627 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54628
54629         Merge from coreutils.
54630
54631         * m4/inttostr.m4: New file.
54632         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54633         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54634         Require gl_CLOCK_TIME.
54635         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54636
54637 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54638
54639         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54640         not bool, to be more consistent with Unix conventions.
54641         Suggested by Bruno Haible.
54642
54643         Merge from coreutils.
54644
54645         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54646         * lib/umaxtostr.c: New files.
54647
54648         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54649         the usual <time.h> dance.
54650         (get_date): Change signature to support fractional time stamps.
54651         All callers changed.
54652         * lib/getdate.y: Include "getdate.h" first, as we can now
54653         assume C89 and don't need to worry about 'const'.
54654         Similarly, include "unlocked-io.h" near start, not in middle.
54655         Include <limits.h>.
54656         (textint.value): Use long int rather than int.
54657         (textint.digits): Use size_t rather than int.
54658         (BILLION, LOG10_BILLION): New constants.
54659         (parser_control): New member rel_ns.  Members day_ordinal,
54660         time_zone, month, day, hour, minutes, rel_year, rel_month,
54661         rel_day, rel_hour, rel_minutes, rel_seconds
54662         are now long int, not int.  Member seconds is now struct timespec,
54663         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54664         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54665         not int.
54666         (%union.intval): Now long int, not int.
54667         New member timespec.
54668         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54669         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54670         (spec): Now is a timespec or an item list.
54671         (timespec, items): New nonterminals.
54672         (time, rel, relunit, number, get_date):
54673         Add support for fractional seconds.
54674         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54675         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54676         (to_hour): First arg is now long int, not int.
54677         (to_year): Returns long int, not int.
54678         Don't treat year -70 like 70.
54679         (tm_diff): Returns long int, not int.
54680         (lookup_word): Use bool instead of int when appropriate.
54681         (yylex): Use size_t for count, not int.
54682         Detect overflow when parsing large integer constants.
54683         Add support for fractions.
54684         (get_date): Make pointers 'const' if possible.
54685         Use more-portable code to detect integer overflow.
54686         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54687         Don't use ctime; it's not reliable if the year has >4 digits.
54688
54689         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54690         This is for compatibility with BSD.
54691
54692         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54693         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54694         From coreutils' system.h.
54695
54696         * lib/userspec.c: Don't include "posixver.h".
54697         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54698         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54699         compatible extension.  Simplify code by removing a boolean int
54700         that was always nonzero if a string was nonnull.
54701
54702 2004-03-30  Jim Meyering  <jim@meyering.net>
54703
54704         Merge from coreutils.
54705
54706         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54707         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54708         on some systems one must include <grp.h> before it.
54709         Reported by Christian Krackowizer.
54710
54711 2004-03-30  Jim Meyering  <jim@meyering.net>
54712
54713         Merge from coreutils.
54714
54715         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54716
54717         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54718         an empty input stream.
54719
54720         * lib/readtokens.c: Include <stdbool.h>.
54721         (readtoken): Use `size_t' rather than int/long.
54722         All callers adjusted.
54723         Use `bool' rather than `int' where appropriate.
54724         Use memset rather than an explicit loop.
54725         Use x2nrealloc rather than xrealloc.
54726         Allow the use of `\0' as a delimiter.
54727         (readtokens): Likewise.
54728         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54729
54730 2004-03-30  Jim Meyering  <jim@meyering.net>
54731
54732         * m4/realloc.m4: Remove file, since now it does no more than
54733         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54734         the `configure.ac' section of module/realloc.
54735         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54736
54737 2004-03-30  Bruno Haible  <bruno@clisp.org>
54738
54739         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54740         nonnull.
54741
54742 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54743
54744         Merge changes to getloadavg.c from coreutils and Emacs.
54745
54746         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54747         Define to an expression, not to the empty string.
54748         Include cloexec.h and xalloc.h.
54749         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54750         Use set_cloexec_flag rather than rolling our own.
54751         * lib/cloexec.c, lib/cloexec.h: New files.
54752
54753 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54754
54755         * m4/cloexec.m4: New file.
54756
54757 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54758
54759         * lib/getopt.h: Sync with libc CVS.
54760
54761 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54762             Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54765         mbswidth.
54766
54767 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54768             Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/mbswidth.h: Include <wchar.h> only if
54771         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54772         <wchar.h>.
54773         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54774
54775 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54776
54777         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54778         Sync with libc CVS.
54779         * lib/getopt_int.h: New file, also synced from libc.
54780
54781 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54782
54783         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54784         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54785         Bring back getopt.c, getopt.h, getopt1.c.
54786
54787 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54788
54789         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54790         All uses changed.  Check for sa_sigaction member; this fixes
54791         a bug first reported by Jason Andrade in
54792         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54793
54794 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54795
54796         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54797         '#if' expressions.  Unlike the code it replaces, it does not
54798         depend on (defined _SC_PAGESIZE).  However, it does depend on
54799         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54800         first reported by Jason Andrade in
54801         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54802
54803 2004-02-25  Simon Josefsson  <jas@extundo.com>
54804
54805         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54806
54807 2004-02-25  Simon Josefsson  <jas@extundo.com>
54808
54809         * lib/strdup.h: New file.
54810         * lib/strdup.c: Include it.
54811         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54812         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54813
54814 2004-02-23  Karl Berry  <karl@gnu.org>
54815
54816         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54817         (from fencepost.gnu.org:/gd/gnuorg).
54818
54819 2004-02-23  Karl Berry  <karl@gnu.org>
54820
54821         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54822         * config/srclist.txt: add maintain/standards documents.
54823
54824 2004-02-18  Bruno Haible  <bruno@clisp.org>
54825
54826         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54827         Reported by Derek Robert Price <derek@ximbiot.com>.
54828
54829 2004-02-16  Karl Berry  <karl@gnu.org>
54830
54831         * config/mkinstalldirs, install-sh: update from automake.
54832
54833 2004-02-06  Karl Berry  <karl@gnu.org>
54834
54835         * m4/po.m4: update from gettext 0.14.1.
54836
54837 2004-02-06  Karl Berry  <karl@gnu.org>
54838
54839         * lib/config.charset: update from gettext 0.14.1.
54840
54841 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54842
54843         Add comments and code, prompted by suggestions from Bruno Haible
54844         for sh-quote.
54845         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54846         describing the enum quoting_style values.
54847         * lib/quotearg.c (quotearg_alloc): New function.
54848         (quotearg_buffer_restyled): Treat lone { and } as special.
54849         Treat = as special.  Work around bug with older shells
54850         that "see" a '\' that is really the 2nd byte of a multibyte char.
54851         Quote empty string with shell_quoting_style.
54852
54853 2004-02-03  Bruno Haible  <bruno@clisp.org>
54854
54855         * m4/pipe.m4: New file, from GNU gettext.
54856
54857 2004-02-03  Bruno Haible  <bruno@clisp.org>
54858
54859         * lib/pipe.h: New file, from GNU gettext.
54860         * lib/pipe.c: New file, from GNU gettext.
54861
54862 2004-01-27  Bruno Haible  <bruno@clisp.org>
54863
54864         * m4/execute.m4: New file, from GNU gettext.
54865
54866 2004-01-27  Bruno Haible  <bruno@clisp.org>
54867
54868         * lib/execute.h: New file, from GNU gettext.
54869         * lib/execute.c: New file, from GNU gettext.
54870         * lib/w32spawn.h: New file, from GNU gettext.
54871
54872 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54873
54874         Merge from diffutils.
54875
54876         * lib/file-type.c (file_type): Add typed memory objects.
54877         * lib/file-type.h (S_TYPEISTMO): New macro.
54878
54879         * lib/c-stack.h (c_stack_action): Remove argv argument.
54880         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54881         (die): Don't calculate message unless segv_action returns.
54882         (get_stack_location, min_address_from_argv, max_address_from_argv,
54883         volatile stack_base, volatile_stack_size): Remove.
54884         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54885         that every segmentation violation is a stack overflow.  (Ouch!)
54886         See Debian bug 136249 (still outstanding) for more info about why
54887         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54888
54889 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54890
54891         Exit-status fix from coreutils.
54892
54893         Use exit_failure consistently in place of EXIT_FAILURE,
54894         so that program exit statuses are consistent on failure.
54895
54896         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54897         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54898         * lib/argmatch.h: Comment fix to match the above.
54899         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54900         Now a macro referring to exit_failure, instead of a separate
54901         variable.  Include "exitfail.h" to get it.
54902         * lib/xstrtol.h: Include "exitfail.h".
54903         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54904
54905         * lib/long-options.c (parse_long_options): Use prototype
54906         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54907         for clarity.
54908
54909 2004-01-21  Jim Meyering  <jim@meyering.net>
54910
54911         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54912         so as not to conflict with a different-sized __mktime_internal
54913         function in GNU libc.
54914         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54915         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54916
54917 2004-01-20  Karl Berry  <karl@gnu.org>
54918
54919         * config/config.guess: update from config.
54920
54921         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54922
54923 2004-01-20  Bruno Haible  <bruno@clisp.org>
54924
54925         Safer stack allocation.
54926         * lib/setenv.c: Include allocsa.h.
54927         (alloca): Remove fallback definition.
54928         (freea): Remove macro.
54929         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54930         instead of freea.
54931
54932 2004-01-20  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/eealloc.m4: New file, from GNU gettext.
54935
54936 2004-01-20  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/allocsa.m4: New file, from GNU gettext.
54939
54940 2004-01-20  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/xallocsa.h: New file, from GNU gettext.
54943         * lib/xallocsa.c: New file, from GNU gettext.
54944
54945 2004-01-20  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54948
54949 2004-01-20  Bruno Haible  <bruno@clisp.org>
54950
54951         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54952         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54953         specially.
54954
54955 2004-01-20  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54958         patch.
54959
54960 2004-01-20  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54963
54964 2004-01-20  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/eealloc.h: New file.
54967
54968 2004-01-20  Bruno Haible  <bruno@clisp.org>
54969
54970         * lib/binary-io.h: Avoid warnings on Cygwin.
54971
54972 2004-01-20  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/allocsa.h: New file, from GNU gettext.
54975         * lib/allocsa.c: New file, from GNU gettext.
54976
54977 2004-01-18  Karl Berry  <karl@gnu.org>
54978
54979         * doc/gpl.texi, doc/lgpl.texi: new files.
54980
54981 2004-01-18  Karl Berry  <karl@gnu.org>
54982
54983         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54984         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54985
54986 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54987
54988         Merge from coreutils.
54989
54990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54991         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54992         (gl_DEFAULT_POSIX2_VERSION): Move
54993         the documentation from 'configure' into 'config.hin',
54994         so that 'configure --help' isn't burdened by it and
54995         we don't have to worry about its formatting there.
54996         Reword the documentation so that it's more succinct
54997         and can be run together into a single paragraph.
54998         * m4/same.m4 (gl_SAME): Check for pathconf.
54999
55000 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55001
55002         Merge from coreutils.
55003
55004         * lib/posixver.c: Include posixver.h.
55005
55006         * lib/same.c: Include <stdbool.h>, <limits.h>.
55007         (_POSIX_NAME_MAX): Define if not defined.
55008         (MIN): New macro.
55009         (same_name): If file names are silently truncated, report
55010         that the file names are the same if they are the same after
55011         the silent truncation.
55012
55013         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55014         conversion function.
55015         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55016         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55017         longer needed.
55018
55019 2004-01-15  Jim Meyering  <jim@meyering.net>
55020
55021         Merge from coreutils.
55022
55023         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55024         if no library is required.
55025         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55026         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55027         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55028         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55029         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55030         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55031         value, $ac_cv_search_crypt, if it's "none required".
55032         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55033         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55034         not gl_FUNC_GETLOADAVG.
55035         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55036         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55037
55038 2004-01-15  Jim Meyering  <jim@meyering.net>
55039
55040         Merge from coreutils.
55041
55042         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55043         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55044         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55045
55046         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55047         optional configure-time default.
55048
55049         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55050
55051         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55052
55053 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55054
55055         Merge from coreutils.
55056
55057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55058         value, $ac_cv_search_nanosleep, if it's "none required".
55059
55060 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55061
55062         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55063         with like-named macro in fnmatch.c.
55064         (EXT): Use an internal constant instead.
55065
55066         Merge fnmatch patches from glibc.
55067         * lib/fnmatch.c (mbsinit): Remove define.
55068         Add libc_hidden_ver (__fnmatch, fnmatch).
55069         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55070         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55071
55072 2004-01-14  Karl Berry  <karl@gnu.org>
55073
55074         * config/install-sh: update from automake.
55075
55076 2004-01-13  Karl Berry  <karl@gnu.org>
55077
55078         * config/install-sh: update from automake.
55079
55080 2004-01-09  Karl Berry  <karl@gnu.org>
55081
55082         * config/install-sh: update from automake.
55083
55084 2004-01-05  Karl Berry  <karl@gnu.org>
55085
55086         * config/config.{sub,guess}: update from config.
55087
55088 2003-12-31  Karl Berry  <karl@gnu.org>
55089
55090         * config/depcomp: update from automake.
55091
55092 2003-12-14  Karl Berry  <karl@gnu.org>
55093
55094         * lib/config.charset: update from gettext-runtime.
55095
55096 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55097
55098         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55099         Bug reported by Alfred M. Szmidt.
55100
55101 2003-12-03  Bruno Haible  <bruno@clisp.org>
55102
55103         * m4/gettext.m4: Upgrade from gettext-0.13.
55104         * m4/po.m4: Upgrade from gettext-0.13.
55105         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55106         * m4/intmax.m4: New file, from gettext-0.13.
55107         * m4/printf-posix.m4: New file, from gettext-0.13.
55108
55109 2003-11-29  Karl Berry  <karl@gnu.org>
55110
55111         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55112
55113 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55114             Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/printf-parse.h: Don't include sys/types.h.
55117         (ARG_NONE): New macro.
55118         (char_directive): Change type of *arg_index fields to size_t.
55119         * lib/printf-parse.c: Don't include sys/types.h.
55120         (SSIZE_MAX): Remove macro.
55121         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55122         Remove unnecessary overflow check.
55123         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55124         fields.
55125
55126 2003-11-25  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55129
55130 2003-11-25  Bruno Haible  <bruno@clisp.org>
55131
55132         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55133         gt_TYPE_SSIZE_T.
55134
55135 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55136
55137         * modules/alloca: Remove dependency on xalloc.
55138
55139 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55140
55141         * lib/alloca.c: Remove dependency on xalloc module.
55142         (xalloc_die): Remove.
55143         (memory_full) [!defined emacs]: New macro.
55144         [!defined emacs]: Don't include xalloc.h.
55145         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55146         address arithmetic overflows.  Change datatypes a bit to avoid
55147         unnecessary casts.
55148
55149 2003-11-22  Jim Meyering  <jim@meyering.net>
55150
55151         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55152         s/size/size_t/.
55153
55154 2003-11-21  Karl Berry  <karl@gnu.org>
55155
55156         * config/config.{sub,guess}: update from config.
55157
55158 2003-11-18  Karl Berry  <karl@gnu.org>
55159
55160         * config/config.{sub,guess}: update from config.
55161
55162         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55163
55164 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55165
55166         * README: Mention that S+T cannot overflow if S is the size of
55167         an existing object and T is sufficiently small.
55168
55169 2003-11-17  Jim Meyering  <jim@meyering.net>
55170
55171         On systems without utime and without a utimes function capable of
55172         dealing with a NULL struct utimbuf* argument, this utime replacement
55173         could -- in unusual circumstances -- leak a file descriptor.
55174         * lib/utime.c: Include <unistd.h> and <errno.h>.
55175         (utime_null): Be sure to close `fd' and to preserve errno.
55176         Reported by Geoff Collyer via Arnold Robbins.
55177
55178 2003-11-17  Bruno Haible  <bruno@clisp.org>
55179
55180         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55181         (Depends-on): Add xsize.
55182
55183 2003-11-17  Bruno Haible  <bruno@clisp.org>
55184
55185         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55186
55187 2003-11-17  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/vasnprintf.c (alloca): Remove fallback definition.
55190         (freea): Remove definition.
55191         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55192         Reported by Paul Eggert.
55193
55194 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55195             Bruno Haible  <bruno@clisp.org>
55196
55197         Protect against address arithmetic overflow.
55198         * lib/printf-args.h: Include stddef.h.
55199         (arguments): Change type of field 'count' to size_t.
55200         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55201         'unsigned int' where appropriate.
55202         * lib/printf-parse.h: Include sys/types.h.
55203         (char_directive): Change type of *arg_index fields to ssize_t.
55204         (char_directives): Change type of fields 'count', max_*_length to
55205         size_t.
55206         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55207         (SSIZE_MAX): Define fallback value.
55208         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55209         instead of 'int' where appropriate. Check a_allocated, d_allocated
55210         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55211         * lib/vasnprintf.c: Include xsize.h.
55212         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55213         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55214         overflow. Avoid wraparound when converting a width or precision from
55215         decimal to binary.
55216
55217 2003-11-16  Bruno Haible  <bruno@clisp.org>
55218
55219         Update from GNU gettext.
55220         * lib/printf-parse.c: Generalize to it can be compiled for wide
55221         strings.
55222         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55223         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55224         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55225         SNPRINTF): New macros.
55226         Don't include <alloca.h> if the file is used inside libintl.
55227         (local_wcslen): New function, for Solaris 2.5.1.
55228         (VASNPRINTF): Use it instead of wcslen.
55229
55230 2003-11-16  Bruno Haible  <bruno@clisp.org>
55231
55232         * lib/xsize.h (xmax): New function.
55233         (xsum, xsum3, xsum4): Declare as "pure" functions.
55234
55235 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55236
55237         * modules/xalloc (Files): Undo latest change, since xalloc.h
55238         no longer needs SIZE_MAX or PTRDIFF_MAX.
55239
55240 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55241
55242         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55243         gl_PTRDIFF_MAX.
55244
55245 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55246
55247         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55248         "return", to pacify some unknown compiler.  Problem reported
55249         by Joerg Schilling.
55250
55251 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55252
55253         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55254         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55255         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55256         heuristic is just as accurate as far as we know, and it removes a
55257         dependency on size_max.m4 and ptrdiff_max.m4.
55258
55259 2003-11-11  Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/xsize (Files): Add m4/size_max.m4.
55262         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55263
55264 2003-11-11  Bruno Haible  <bruno@clisp.org>
55265
55266         * m4/size_max.m4: New file.
55267         * m4/ptrdiff_max.m4: New file.
55268         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55269         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55270         (gl_XALLOC): Invoke it.
55271
55272 2003-11-11  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55275         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55276         defined.
55277
55278 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55279
55280         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55281         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55282         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55283         From Bruno Haible.
55284         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55285         not (size_t) -1, since it's defined here.
55286
55287 2003-11-09  Karl Berry  <karl@gnu.org>
55288
55289         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55290
55291 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55292
55293         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55294         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55295         Reject sizes of exactly SIZE_MAX bytes.
55296         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55297         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55298
55299 2003-11-05  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55302         SIZE_MAX defined in <limits.h> on Solaris.
55303
55304 2003-11-04  Jim Meyering  <jim@meyering.net>
55305
55306         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55307         variable names, rather than @VAR@.
55308         * modules/poll: Likewise.
55309
55310 2003-11-04  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/xsize: New file.
55313         * modules/linebreak: Depend on xsize.
55314         * MODULES.html.sh (func_all_modules): Add xsize.
55315
55316 2003-11-04  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/xsize.m4: New file.
55319
55320 2003-11-04  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/xsize.h: New file.
55323         * lib/linebreak.c: Include xsize.h.
55324         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55325         argument for overflow.
55326         Suggested by Paul Eggert.
55327
55328 2003-11-03  Karl Berry  <karl@gnu.org>
55329
55330         * config/config.{guess,sub}: update from config.
55331
55332 2003-11-03  Jim Meyering  <jim@meyering.net>
55333
55334         * modules/userspec (lib_SOURCES): Add userspec.h.
55335         (Include): Add "userspec.h".
55336         Improve description.
55337
55338 2003-11-03  Jim Meyering  <jim@meyering.net>
55339
55340         * lib/userspec.c: Include "userspec.h".
55341         * lib/userspec.h: New file.
55342
55343 2003-11-03  Bruno Haible  <bruno@clisp.org>
55344
55345         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55346
55347 2003-11-03  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55350         available, to avoid (extremely rare) race condition.
55351         Suggested by Paul Eggert.
55352
55353 2003-11-02  Karl Berry  <karl@gnu.org>
55354
55355         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55356
55357 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55358
55359         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55360         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55361         (read_filesystem_list): Set and use me_type_malloced.
55362         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55363         whatever the type happens to be), for brevity and consistency.
55364         Check for size calculation overflow on Alphas running OSF/1.
55365
55366 2003-10-31  Jim Meyering  <jim@meyering.net>
55367
55368         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55369
55370         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55371
55372 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55373             Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55376         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55377
55378 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55381         netbsd*-gnu*.  Suggested by Robert Millan.
55382
55383 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55384
55385         * modules/group-member: Depend on stdbool.
55386
55387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55388
55389         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55390
55391 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55392
55393         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55394         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55395         after the 'gnu' in these cases.  This fixes some bugs in the
55396         previous change, and is based on suggestions by Robert Millan.
55397
55398 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55399
55400         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55401         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55402         no longer needed.
55403         * lib/quotearg.c (quotearg_n_options): Use it.
55404         * lib/group-member.c: Include <stdbool.h>.
55405         (free_group_info): Arg is now const *; don't free arg.
55406         (get_group_info): Now returns bool and accepts struct group_info *,
55407         rather than returning a malloc'ed struct group_info *.
55408         All uses changed.  Check for overflow in internal size calculation.
55409
55410         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55411         rather than xmalloc/xrealloc.
55412         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55413         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55414         conformance bug: the old code used a pointer after freeing the
55415         storage that it addressed.
55416         * lib/hash.c (hash_initialize): Simplify the code by using
55417         xalloc_oversized rather than doing it by hand.
55418         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55419         the buffer preserved.  Use free and xmalloc instead.
55420         * lib/quotearg.c (quotearg_n_options): Likewise.
55421         Use a simpler test for size overflow.  Don't use xalloc_oversized
55422         because unsigned int might be wider than size_t (!); this suggests
55423         that we should switch from unsigned int to size_t for slot numbers.
55424
55425 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55426
55427         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55428         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55429         NetBSD kernels.  Requested by Richard Stallman.
55430
55431 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55432
55433         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55434         to allocate the returned structure.  Do not allocate a subarray,
55435         as x2nrealloc will do that.
55436         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55437         instead of xnrealloc.
55438         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55439
55440 2003-10-27  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/stdbool_.h: Better support for BeOS.
55443
55444 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55445
55446         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55447         now uses inline.
55448
55449 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55450
55451         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55452         callers that want to do their own size-overflow checking.  Include
55453         <stdbool.h>, since xalloc_oversized returns bool.
55454         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55455         to use xalloc_oversized.
55456
55457         Add two functions x2realloc, x2nrealloc, for programs that grow
55458         arrays dynamically by doubling their sizes.
55459         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55460         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55461         New functions.
55462
55463         Port to C99 semantics for 'inline' of external functions.
55464         Bug reported by Bruno Haible.
55465         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55466         with the old contents of xnmalloc.
55467         (xnmalloc, xmalloc): Use it.
55468         (xnrealloc_inline): New static inline function,
55469         with the old contents of xnrealloc.
55470         (xnrealloc, xrealloc): Use it.
55471
55472         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55473         that.
55474
55475 2003-10-26  Karl Berry  <karl@gnu.org>
55476
55477         * config/srclist.txt (COPYING.DOC): no longer available from
55478         /gd/gnuorg; don't know where the ultimate source is.
55479
55480 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55481
55482         Fix several address-calculation bugs in the hash modules,
55483         plus some minor code cleanup.
55484
55485         * lib/hash.h: Include <stdbool.h>, for bool.
55486         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55487         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55488         hash_get_n_entries, hash_get_max_bucket_length,
55489         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55490         hash_rehash): Use size_t rather than unsigned.
55491         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55492         hash_get_n_buckets_used, hash_get_n_entries,
55493         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55494         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55495         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55496         Likewise.
55497         (SIZE_MAX): Define if not defined.
55498         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55499         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55500         hash_print):
55501         Use const * when possible.
55502         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55503         (check_tuning): Fix bug: if tuning parameters were very close to
55504         0 or 1, rounding errors could have caused subscript violations.
55505         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55506         (hash_initialize): Add 'fail:' label
55507         to free table and return NULL, and use it to simplify code.
55508         Use calloc rather than clearing the storage ourself.
55509         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55510         buffer size calculations.
55511         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55512         Include <stddef.h>, for size_t.
55513         * lib/hash-pjw.c (hash_pjw): Likewise.
55514         Switch to method described by Bruno Haible.
55515         Include <limits.h>, for CHAR_BIT.
55516         (SIZE_BITS): New macro.
55517
55518 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55519
55520         * m4/getline.m4 (AM_FUNC_GETLINE):
55521         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55522         hosts.  Problem reported by Derek Robert Price in
55523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55524         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55525         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55526
55527 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55528
55529         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55530         ceiling the allocation at NMAX bytes rather than silently
55531         discarding input bytes before NMAX is reached.  This makes
55532         a difference only if NMAX exceeds SIZE_MAX / 2.
55533
55534         * lib/obstack.c: Merge from glibc.
55535         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55536         Add libc_hidden_def (_obstack_newchunk).
55537         (_obstack_free) [! defined _LIBC]: Remove.
55538         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55539         a clone of the function body.
55540         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55541         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55542
55543         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55544         glibc.
55545         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55546         arg to memcpy.
55547
55548         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55549         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55550         Don't use lvalue casts, as GCC plans to remove support for them
55551         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55552         was also present in the non-GCC version, indicating that this
55553         code had always been buggy and had never been widely used.
55554         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55555         Use the fast variant of each macro, rather than copying the
55556         definiens of the fast variant; that way, we'll be more likely to
55557         catch future bugs in the fast variants.
55558
55559 2003-10-20  Bruno Haible  <bruno@clisp.org>
55560
55561         * modules/wait-process: New file.
55562         * MODULES.html.sh (func_all_modules): Add wait-process.
55563
55564 2003-10-20  Bruno Haible  <bruno@clisp.org>
55565
55566         * m4/wait-process.m4: New file.
55567
55568 2003-10-20  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/wait-process.h: New file, from GNU gettext.
55571         * lib/wait-process.c: New file, from GNU gettext.
55572
55573 2003-10-19  Jim Meyering  <jim@meyering.net>
55574
55575         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55576         HPUX 10.20.
55577
55578 2003-10-18  Karl Berry  <karl@gnu.org>
55579
55580         * config/config.guess: update from config.
55581
55582 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55583
55584         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55585         (getgroups): First arg is int, not size_t.
55586         Don't let 'free' mangle errno.
55587
55588 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55589
55590         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55591
55592 2003-10-16  Karl Berry  <karl@gnu.org>
55593
55594         * config/config.{guess,sub}: update from config.
55595
55596 2003-10-16  Jim Meyering  <jim@meyering.net>
55597
55598         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55599         memcpy.
55600
55601 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55602
55603         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55604         (SIZE_MAX): Remove.
55605         (new_exclude, add_exclude_file): Initial size no longer needs to
55606         be a power of 2.
55607         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55608         our own address arithmetic overflow checking.
55609
55610         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55611         (fnmatch): Do not alloca more than 2000 wide characters;
55612         instead, use malloc for large buffers.
55613         Check for address arithmetic overflow, and return -1
55614         with errno set to ENOMEM in that case.
55615         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55616         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55617         instead, return -1.  Check for address arithmetic overflow.
55618
55619 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55620
55621         Handle invalid suffixes and overflow independently, so that
55622         callers can treat them independently as needed.  Fix some bugs in
55623         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55624         suffix for a human-readable blocksize.  The major caller-visible
55625         change is the addition of a new
55626         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55627         that both overflow and suffix chars were found.
55628
55629         * lib/human.c (humblock): Don't check separately for invalid suffix
55630         char; that is xstrtoumax's job (now that its bug is fixed).
55631         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55632         INTMAX_MAX]: New macros.
55633         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55634         TYPE_MAXIMUM): New macros.
55635         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55636         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55637         if overflow occurs, as it's what __strtol does and it's more useful
55638         in practice.
55639         (__xstrtol): If __strtol reports some error other than ERANGE,
55640         reflect it to the caller as LONGINT_INVALID.  If it reports
55641         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55642         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55643         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55644         value.
55645         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55646         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55647         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55648         [defined UINTMAX_MAX]: New macros.
55649
55650 2003-10-14  Bruno Haible  <bruno@clisp.org>
55651
55652         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55653
55654 2003-10-14  Bruno Haible  <bruno@clisp.org>
55655
55656         * m4/sig_atomic_t: New file, from GNU gettext.
55657         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55658
55659 2003-10-14  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55662         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55663         Also use volatile where needed.
55664
55665 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55666
55667         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55668         Change maintainer from Bruno Haible to 'all'.
55669
55670 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55671
55672         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55673
55674 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55675
55676         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55677         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55678         and define in terms of the other primitives.
55679         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55680         (SIZE_MAX): Define if not already defined.
55681         (array_size_overflow): New function.
55682         (xalloc_die): Abort instead of exiting if 'error' returns.
55683         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55684         (xmalloc, xrealloc): Use them.
55685         (xcalloc): Check for address arithmetic overflow.
55686         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55687         a bit faster than strcpy.
55688
55689 2003-10-10  Simon Josefsson  <jas@extundo.com>
55690
55691         * modules/argp (Depends-on): Add restrict and strcase.
55692
55693 2003-10-10  Simon Josefsson  <jas@extundo.com>
55694
55695         * m4/argp.m4: Add AC_C_INLINE.
55696
55697 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55698
55699         Merge getpass from libc, plus a few fixes.
55700
55701         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55702         Include <stdbool.h>.
55703         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55704         __fsetlocking to empty.
55705         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55706         do include <bits/libc-lock.h>.
55707         Do not include <fcntl.h>; not needed.
55708         [_LIBC]: Include <wchar.h>.
55709         (NOTCANCEL_MODE): New macro.
55710         (flockfile, funlockfile) [_LIBC]: New macros.
55711         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55712         [!_LIBC]: New macros.
55713         (call_fclose): New function.
55714         (getpass): Use it.  Save tty stream separately; this simplifies the
55715         code and makes it more reliable if stdin happens to equal stdout.
55716         Invoke __fsetlocking on tty.
55717         Handle thread cancellation if needed.
55718         Namespace cleanup (use __tcgetattr, __getline).
55719         Use bool for Booleans.
55720         [USE_IN_LIBIO]: Handle wide streams.
55721         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55722         stream might go where.
55723
55724         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55725         doesn't have to include <stdio.h> before us.
55726         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55727         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55728         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55729         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55730         if not declared, so that we can use getpass.c code from libc without
55731         rewriting it.
55732         (flockfile, ftrylockfile, funlockfile): New macros.
55733
55734 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55735
55736         * modules/getpass: Depend on stdbool.
55737
55738 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55739
55740         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55741
55742 2003-10-07  Karl Berry  <karl@gnu.org>
55743
55744         * config/config.{guess,sub}: update from config.
55745
55746 2003-10-06  Jim Meyering  <jim@meyering.net>
55747             Bruno Haible  <bruno@clisp.org>
55748
55749         This lets translators provide better translations for the
55750         "Written by ..." part of --version output.
55751         * lib/version-etc.h: Include stdarg.h.
55752         (version_etc_copyright): Declare as readonly.
55753         (version_etc): Make this function variadic with a NULL-terminated list
55754         of author name strings.
55755         (version_etc_va): New declaration.
55756         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55757         (version_etc_copyright): Declare as readonly.
55758         (version_etc_va): New function. Provide a different translatable string
55759         for each possible number of authors < 10. Abbreviate when there are 10
55760         authors or more.
55761         (version_etc): Make this function variadic. Call version_etc_va.
55762         Suggestion from Gary V. Vaughan.
55763
55764         * lib/long-options.h (parse_long_options): Change prototype: the
55765         authors string is moved to the end and becomes variadic.
55766         * lib/long-options.c: Include stdarg.h.
55767         (parse_long_options): Make this function variadic, too.
55768         Call version_etc_va, not version_etc.
55769
55770 2003-10-06  Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/version-etc-2: Remove file.
55773         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55774
55775 2003-10-06  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/fatal-signal: New file.
55778         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55779
55780 2003-10-06  Bruno Haible  <bruno@clisp.org>
55781
55782         * m4/fatal-signal.m4: New file.
55783         * m4/signalblocking.m4: New file, from GNU gettext.
55784
55785 2003-10-06  Bruno Haible  <bruno@clisp.org>
55786
55787         * lib/version-etc-2.h: Remove file.
55788         * lib/version-etc-2.c: Remove file.
55789
55790 2003-10-06  Bruno Haible  <bruno@clisp.org>
55791
55792         * lib/fatal-signal.h: New file, from GNU gettext.
55793         * lib/fatal-signal.c: New file, from GNU gettext.
55794
55795 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55796
55797         * README: Rework advice for preventing empty .o files.
55798         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55799         not <sys/types.h>.
55800
55801 2003-10-04  Karl Berry  <karl@gnu.org>
55802
55803         * lib/argp*: update from libc.
55804
55805 2003-10-04  Karl Berry  <karl@gnu.org>
55806
55807         * config/config.{guess,sub}: update from config.
55808
55809 2003-10-02  Bruno Haible  <bruno@clisp.org>
55810
55811         * modules/lchown (Include): Add lchown.h.
55812         * modules/time_r (Include): Use "..." syntax.
55813         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55814
55815 2003-10-01  Simon Josefsson  <jas@extundo.com>
55816
55817         * MODULES.html.sh (func_all_modules): Move gethostname from section
55818         'based on' to section 'lacking' POSIX:2001.
55819
55820 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55821
55822         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55823         to output mode on the same stream.
55824
55825 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55826
55827         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55828         Fix arg typo in previous patch.
55829
55830 2003-09-28  Jim Meyering  <jim@meyering.net>
55831
55832         * lib/error.c: Correct cpp indentation.
55833
55834 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55835
55836         * modules/free: New file.
55837
55838 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55839
55840         * m4/free.m4: New file.
55841
55842 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55843
55844         * lib/minmax.h (MIN, MAX)
55845         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55846         Omit the special code that used __typeof__, since we worry that
55847         it could be more trouble than it's worth.  See:
55848         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55849         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55850
55851         * lib/free.c: New file.
55852
55853 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55854
55855         Trivial fixes to Makefile.am parts of module listings.
55856         * modules/strstr: Append strstr.h to lib_SOURCES.
55857         * modules/strcase: Likewise, for strcase.h.
55858
55859 2003-09-27  Karl Berry  <karl@gnu.org>
55860
55861         * config/mkinstalldirs: update from automake.
55862
55863 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55864
55865         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55866         (error_tail): Do not loop, reallocating temporary buffer, since
55867         the output cannot contain more wide characters than the input
55868         contains bytes, the size must be big enough already.  This avoids
55869         one potential size overflow calculation.  Check for size overflow
55870         when calculating temporary buffer size.  Free temporary buffer
55871         when done, if it was allocated with malloc; this plugs a memory
55872         leak.  Remove casts from void * to pointers, that are no longer
55873         needed now that we're assuming C89 or better.
55874
55875         Merge error changes from glibc.
55876
55877         * lib/error.c, error.h: Update copyright notice header to match glibc.
55878         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55879         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55880         Disable cancellation while printing error.
55881         * lib/error.h: Prepend __ to parameter names.
55882
55883 2003-09-26  Jim Meyering  <jim@meyering.net>
55884
55885         * lib/error.c (error_tail): Move some declarations
55886         into inner scope where the local variables are used.
55887
55888 2003-09-26  Bruno Haible  <bruno@clisp.org>
55889
55890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55891         stpncpy().
55892         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55893
55894 2003-09-26  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55897         (stpncpy): Define as alias for gnu_stpncpy.
55898         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55899
55900 2003-09-25  Simon Josefsson  <jas@extundo.com>
55901
55902         * lib/xgetdomainname.h: New file.
55903         * lib/xgetdomainname.c: New file.
55904
55905 2003-09-25  Simon Josefsson  <jas@extundo.com>
55906             Bruno Haible  <bruno@clisp.org>
55907
55908         * modules/getdomainname: New file.
55909         * modules/xgetdomainname: New file.
55910         * MODULES.html.sh (func_all_modules): Add getdomainname,
55911         xgetdomainname.
55912
55913 2003-09-25  Simon Josefsson  <jas@extundo.com>
55914             Bruno Haible  <bruno@clisp.org>
55915
55916         * m4/getdomainname.m4: New file.
55917
55918 2003-09-25  Simon Josefsson  <jas@extundo.com>
55919             Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/getdomainname.h: New file.
55922         * lib/getdomainname.c: New file.
55923
55924 2003-09-25  Karl Berry  <karl@gnu.org>
55925
55926         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55927
55928 2003-09-25  Karl Berry  <karl@gnu.org>
55929
55930         * config/install-sh: update from automake.
55931
55932 2003-09-25  Bruno Haible  <bruno@clisp.org>
55933
55934         * modules/version-etc-2: New file, from modules/version-etc with
55935         modifications.
55936         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55937
55938 2003-09-25  Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55941         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55942
55943 2003-09-24  Simon Josefsson  <jas@extundo.com>
55944
55945         * modules/xgethostname: Add xgethostname.h.
55946
55947 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55948
55949         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55950         the buffer associated with the argument.  Bug reported by
55951         Simon Josefsson.
55952
55953 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55954
55955         * README: Document assumptions that 'int' is at least 32 bits
55956         wide, that integer arithmetic is 2's complement without overflow,
55957         that there are no holes in integer values, that adding sizes of
55958         two nonoverlapping objects can't overflow, and that all-bits-zero
55959         yields scalar zero.  Fix spelling and capitalization typos.
55960
55961 2003-09-19  Karl Berry  <karl@gnu.org>
55962
55963         * lib/argp.h: update from libc.
55964
55965 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55966
55967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55968         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55969         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55970
55971 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55972
55973         * gnulib-tool: Use "test -h", not "test -L", for portability
55974         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55975         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55976         (sed_extract_prog): Issue s commands one-by-one, rather than
55977         using \| in one s command.
55978
55979 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55980
55981         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55982         input error, instead of returning NULL the next time we are called
55983         (and therefore losing track of errno).
55984
55985 2003-09-16  Bruno Haible  <bruno@clisp.org>
55986
55987         * gnulib-tool (func_create_testdir): Warn about duplicated
55988         dependencies.
55989
55990 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55991
55992         * modules/argmatch, modules/fatal, modules/obstack,
55993         modules/xalloc, modules/xgethostname: Sort dependencies by
55994         importance, not alphabetically.
55995
55996 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55997
55998         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55999         fails, so that the caller gets the proper errno.
56000
56001         * lib/readutmp.c (read_utmp): Likewise.
56002         Check for fstat error.  Close stream and free storage
56003         when failing.
56004
56005 2003-09-14  Karl Berry  <karl@gnu.org>
56006
56007         * config/srclist.txt (strdup.c): disable for c89 changes.
56008
56009 2003-09-14  Jim Meyering  <jim@meyering.net>
56010
56011         * lib/getloadavg.c: Correct cpp indentation.
56012         * lib/strdup.c: Likewise.
56013         * lib/vasnprintf.c: Likewise.
56014
56015 2003-09-14  Bruno Haible  <bruno@clisp.org>
56016
56017         * modules/fwriteerror: New file.
56018         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56019
56020 2003-09-14  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/fwriteerror.h: New file.
56023         * lib/fwriteerror.c: New file.
56024
56025 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56026
56027         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56028         modules/xgethostname, modules/xalloc: Depend on exit.
56029
56030 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56031
56032         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56033
56034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56035         and AC_MINIX, too, so that their extensions are available.
56036
56037         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56038         This macro has been superseded by gl_BACKUPFILE.
56039
56040         More patches to assume C89 or better.
56041
56042         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56043
56044         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56045         unconditionally.
56046         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56048         Include <string.h>, <stdlib.h> unconditionally.
56049         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56050         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56051         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56052         headers or for string.h.
56053         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56054         or strtoul.
56055
56056         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56057         headers.
56058         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56059         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56060         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56061         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56062         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56063         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56064         memcpy, memset.
56065         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56066         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56067         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56068         strtol.
56069         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56070         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56072         strtoul.
56073
56074 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56075
56076         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56077         * lib/obstack.c [!defined _LIBC]: Likewise.
56078         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56079         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56080         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56081
56082         More changes to assume C89 or better.
56083
56084         * lib/error.c (error_tail): Assume vprintf.
56085
56086         * lib/argmatch.c (getenv): Remove decl.
56087         * lib/progreloc.c (get_full_program_name): Define via prototype.
56088         * lib/setenv.c (clearenv): Likewise.
56089         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56090         needed.
56091         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56092         (malloc, memcpy): Remove decls.
56093         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56094         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56095         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56096         (memcpy): Remove macro.
56097         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56098         (__P): Remove.  All uses removed.
56099         (PTR): Remove.  All uses changed to void *.
56100         (CHAR_BIT, NULL): Remove.
56101         (spaces, zeros, memset_space, memset_zero)
56102         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56103         Remove.
56104         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56105         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56106         Define with prototype.
56107         Remove now-unnecessary prototype decl.
56108         (extra_args_spec): Assume ANSI C.  All uses changed.
56109         (extra_args_spec_iso): Remove.
56110         (my_strftime, emacs_strftimeu): Define via prototype.
56111         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56112         unconditionally.
56113         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56114         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56115         (strtoul, strtol): Remove decls.
56116         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56117         LONG_MAX): Remove.
56118         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56119         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56120         (LOCALE_PARAM_PROTO): New macro.
56121         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56122         (INTERNAL (strtol), strtol): Define with a prototype.
56123         (PARAMS): Remove.  All uses removed.
56124         * lib/tempname.c: Include <string.h> unconditionally.
56125         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56126         * lib/xgethostname.c (main): Define with a prototype.
56127         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56128         Include <stdlib.h> unconditionally.
56129         (calloc, malloc, realloc, free): Remove decls.
56130         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56131         Include <stdlib.h> unconditionally.  Sort include file names.
56132         (strtod): Remove.
56133         (xstrtod): Define with a prototype.
56134         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56135         (strtol, strtoul): Remove decls.
56136
56137 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56138
56139         More patches to assume C89 or better.
56140         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56141         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56142         string.h, memchr, STDC_HEADERS.
56143
56144 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56145
56146         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56147         Include <stdlib.h>, <string.h> unconditionally.
56148         Remove now-unnecessary cast to char *.
56149         * lib/strnlen.c: Include <string.h> unconditionally.
56150         * lib/yesno.c (yesno): Define with a prototype.
56151
56152 2003-09-11  Bruno Haible  <bruno@clisp.org>
56153
56154         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56155
56156 2003-09-10  Jim Meyering  <jim@meyering.net>
56157
56158         * lib/error.c: Correct indentation of cpp directives.
56159
56160 2003-09-10  Bruno Haible  <bruno@clisp.org>
56161
56162         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56163         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56164         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56165         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56166         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56167         <stdlib.h> and <string.h> checks.
56168         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56169         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56170
56171 2003-09-10  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/strcspn.c: Include <string.h> unconditionally.
56174         * lib/strpbrk.c: Include <string.h> unconditionally.
56175         * lib/strstr.c: Include <string.h> unconditionally.
56176         * lib/unicodeio.c: Include <string.h> unconditionally.
56177         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56178         * lib/unsetenv.c: Likewise.
56179         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56180         * lib/yesno.c: Include <stdlib.h> unconditionally.
56181         (rpmatch): Add prototype.
56182
56183 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56184
56185         More patches to assume C89 or better.
56186         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56187         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56188         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56189         or for string.h.
56190         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56191         stdlib.h.
56192         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56193         C headers.
56194         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56195         string.h.
56196         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56197         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56198         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56199         or for string.h.
56200         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56201         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56202         C headers.
56203         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56204         memcpy.
56205         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56206         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56207         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56208         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56209         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56210         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56211         string.h, free.
56212         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56213         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56214         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56215         C headers, or for string.h.
56216         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56217         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56218         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56219         headers, memory.h, stdlib.h, string.h, strings.h.
56220         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56221         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56222         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56223         strchr.
56224         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56225         headers, memory.h, string.h.
56226         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56227         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56228         free.
56229         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56230         headers.
56231         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56232         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56233         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56234         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56235         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56236
56237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56238
56239         More K&R removal.
56240
56241         * lib/acosl.c (main): Use a prototype.
56242         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56243         tanl.c: Likewise.
56244
56245         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56246
56247         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56248         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56249         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56250         with a prototype.
56251         * lib/getopt.c (const): Remove macro.
56252         Include <string.h> unconditionally.
56253         (my_index): Remove; all uses changed to strchr.
56254         (strlen): Remove decl.
56255         (exchange): Remove forward decl; no longer needed.
56256         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56257         Define with prototype.
56258         * lib/getopt1.c (const): Remove macro.
56259         (getopt_long, getopt_long_only, main): Define with prototype.
56260
56261         * lib/getugroups.c: Include <string.h> unconditionally.
56262
56263         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56264         (getusershell, setusershell, endusershell, readname, main):
56265         Define with prototypes.
56266
56267         * lib/group-member.c: Include group-member.h first.
56268         Include <stdlib.h> unconditionally.
56269
56270         * lib/hard-locale.c: Include hard-locale.h first.
56271         Include <stdlib.h>, <string.h> unconditionally.
56272
56273         * lib/hash.c (free, malloc): Remove decls.
56274         Include <stdlib.h> unconditionally.
56275
56276         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56277         (getenv): Do not declare.
56278
56279         * lib/idcache.c: Include <string.h> unconditionally.
56280
56281         * lib/long-options.c: Include long-options.h first, to test interface.
56282         Include <stdlib.h> unconditionally.
56283
56284         * lib/makepath.c: Include makepath.h first, to test interface.
56285         Include <stdlib.h> and <string.h> unconditionally.
56286
56287         * lib/linebuffer.c: Include <stdlib.h>.
56288         (free): Remove decl.
56289
56290         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56291         stddef.h. rpl_malloc returns void *, not char *.
56292         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56293         prototype.
56294
56295         * lib/md5.h: Include <limits.h> unconditionally.
56296         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56297         (__P): Remove; all uses removed.
56298         * lib/md5.c: Include "md5.h" first.
56299         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56300         md5_buffer, md5_process_bytes, md5_process_block):
56301         Define with prototypes.
56302         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56303         * lib/sha.c: Include "sha.h" first.
56304         Include <stdlib.h>, <string.h> unconditionally.
56305
56306         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56307         * lib/memcmp.c (__ptr_t): Likewise.
56308         * lib/memrchr.c (__ptr_t): Likewise.
56309         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56310         Include <string.h> unconditionally.
56311         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56312         * lib/memchr.c: Include <stdlib.h> unconditionally.
56313         * lib/memchr.c (LONG_MAX): Remove.
56314         * lib/memrchr.c (LONG_MAX): Likewise.
56315         * lib/memchr.c (__memchr): Define via a prototype.
56316         * lib/memrchr.c (__memrchr): Likewise.
56317         * lib/memcmp.c (__P): Remove, and remove all uses.
56318         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56319         Remove forward decls; no longer needed.
56320         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56321         Use types required by C89 in prototype.
56322
56323         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56324         * lib/savedir.c: Likewise.
56325         * lib/mkdir.c (free): Remove decl.
56326         * lib/rmdir.c (rmdir): Define with a prototype.
56327         * lib/savedir.c: Include savedir.h first, to test interface.
56328
56329         * lib/mktime.c (STDC_HEADERS): Remove.
56330         Include <stdlib.h>, <string.h> unconditionally.
56331
56332         * lib/modechange.c: Include <stdlib.h> unconditionally.
56333         (malloc): Remove decl.
56334
56335         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56336         (free): Remove decl.
56337
56338         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56339         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56340         (This type really should be intptr_t, but that's a C99ism.)
56341         (_obstack_memcpy): Remove: all uses changed to memcpy.
56342         Include <string.h> unconditionally.
56343         (struct obstack): Assume __STDC__ for types of members
56344         chunkfun, freefun, extra_arg.
56345         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56346         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56347         obstack_begin, obstack_specify_allocation,
56348         obstack_specify_allocation_with_arg, obstack_chunkfun,
56349         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56350         Remove unprototyped decls and the macros that use them.
56351         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56352         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56353         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56354         (defined __STDC__ && __STDC__)]:
56355         Remove nonprototyped code.
56356         Include <stdlib.h> unconditionally.
56357         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56358         _obstack_allocated_p, _obstack_free, obstack_free,
56359         _obstack_memory_used, print_and_abort):
56360         Define using prototypes.
56361         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56362         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56363         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56364         obstack_next_free, obstack_object_size, obstack_room) [0]:
56365         Remove unused, unprototyped code.
56366
56367         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56368
56369         * lib/physmem.c (physmem_total, physmem_available, main): Define
56370         with prototypes.
56371
56372         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56373         (main): Define with a prototype.
56374
56375         * lib/posixver.c (getenv): Remove decl.
56376
56377         * lib/putenv.c (malloc): Returns void *, not char *.
56378         Include <string.h> unconditionally.
56379         (strchr, memcpy, NULL): Do not define.
56380
56381         * lib/readtokens.c: Include readtokens.h first, to test interface.
56382         Include <stdlib.h>, <string.h> unconditionally.
56383         (init_tokenbuffer): Define with a prototype.
56384
56385         * lib/regex.c (PARAMS): Remove.  All uses removed.
56386         All uses of _RE_ARGS removed, too.
56387         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56388         unconditionally.
56389         (bzero): Assume memset exists.
56390         (memcmp, memcpy, NULL): Remove.
56391         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56392         char, or assignments to local vars of type signed char.
56393         (init_syntax_once, PREFIX(extract_number_and_incr),
56394         PREFIX(print_partial_compiled_pattern),
56395         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56396         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56397         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56398         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56399         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56400         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56401         wcs_compile_range, byte_compile_range, truncate_wchar,
56402         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56403         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56404         count_mbs_length, wcs_re_match_2_internal,
56405         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56406         PREFIX(alt_match_null_string_p),
56407         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56408         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56409         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56410         now-unnecessary declaration, if any.
56411         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56412         regcomp, regexec):
56413         Remove now-unnecessary casts among pointer types.
56414         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56415
56416         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56417         (free): Remove decl.
56418
56419         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56420
56421         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56422         (free): Remove decl.
56423
56424         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56425         * lib/xgetcwd.c: Likewise.
56426
56427         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56428         (free): Remove decl.
56429
56430         * lib/strchrnul.c (strchrnul): Define with a prototype.
56431         Fix bug: c_in was not converted to char before searching.
56432
56433         The following changes are not K&R related:
56434
56435         * lib/group-member.h: Include <sys/types.h>, so that this file is
56436         self-contained.
56437         * lib/makepath.h: Likewise.
56438
56439         * lib/getusershell.c (readname, default_index, line_size, readname):
56440         Use size_t, not int, for sizes.
56441         (readname): If the size overflows, report an error instead of
56442         looping forever.
56443
56444 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56445
56446         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56447         libc.
56448
56449 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56450
56451         * README: New section: portability guidelines.
56452
56453 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56454
56455         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56456         C89 spec.
56457
56458 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56459
56460         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56461
56462 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56463
56464         Assume C89 or better; remove K&R cruft.
56465         A few of these changes were first proposed by Derek Robert Price
56466         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56467
56468         * lib/addext.c: Include <string.h> unconditionally.
56469         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56470         Don't declare getenv or malloc.
56471
56472         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56473         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56474         (NULL): Remove.
56475         (find_stack_direction, alloca): Use prototypes.
56476
56477         * lib/atexit.c (atexit): Define using a prototype.
56478
56479         * lib/basename.c, dirname.c, stripslash.c:
56480         Include <string.h> unconditionally.
56481
56482         * lib/bcopy.c: Include <stddef.h>.
56483         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56484
56485         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56486
56487         * lib/error.h (error, error_at_line, error_print_progname)
56488         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56489         * lib/error.c: Include error.h first, to check interface.
56490         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56491         (VA_START): Remove; all uses changeed to va_start.
56492         (exit, strerror): Remove decls.
56493         (error_print_progname): Prototype uncondionally.
56494         Don't include <errno.h>; no longer needed.
56495         (private_strerror): Remove.
56496         (error_tail): Always define.
56497         (error, error_at_line): Assume C89 or better; always use prototypes.
56498         * lib/fatal.c: Include "fatal.h" first, to test interface.
56499         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56500         (VA_START): Remove; all uses changed to va_start.
56501         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56502         this case.
56503         (exit): Remove decl.
56504         (fatal): Prototype unconditionally.  Assume va_start works.
56505         Abort at end, to pacify gcc.
56506
56507         * lib/euidaccess.c (main): Define with a prototype.
56508
56509         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56510
56511         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56512
56513         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56514         prototypes.
56515         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56516         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56517         (getenv): Remove decl.
56518         (fnmatch): Define using a prototype.
56519         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56520         (FCT): Define using a prototype.
56521
56522         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56523
56524         * lib/gethostname.c: Include <stddef.h>.
56525         (gethostname): Define with prototype.  Length is size_t, not int.
56526
56527 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56528
56529         Assume C89 or better; remove K&R cruft.
56530         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56531         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56532         string.h, getenv, malloc.
56533         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56534         headers.
56535         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56536         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56537         do not check for strerror.
56538         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56539         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56540         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56541         do not check for doprnt or vprintf.
56542         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56543         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56544
56545 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56546
56547         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56548         getversion.c should have been removed then, but was accidentally
56549         preserved.
56550
56551         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56552         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56553
56554 2003-09-08  Karl Berry  <karl@gnu.org>
56555
56556         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56557                 config, forget about prep.
56558
56559         * config/depcomp, missing: update from automake.
56560
56561 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56562
56563         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56564         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56565
56566 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56567
56568         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56569         copy_tm_result.  Bug reported by Simon Josefsson in
56570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56571
56572 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56573
56574         * m4/time_r.m4: New file.
56575         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56576         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56577         is. Check for timegm declaration.
56578         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56579         Do not check for gmtime_r.
56580         Replace mktime if __mktime_internal does not exist and if mktime
56581         hasn't been replaced already.
56582
56583 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56584
56585         * lib/time_r.c, lib/time_r.h: New files.
56586
56587         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56588         __localtime_r.
56589         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56590         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56591
56592         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56593         __gmtime_r.
56594         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56595         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56596         Include <time_r.h>.
56597
56598         * lib/timegm.c: Switch to glibc implementation, with the following
56599         changes:
56600         [defined HAVE_CONFIG_H]: Include <config.h>.
56601         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56602         (__mktime_internal) [!defined _LIBC]: New decl.
56603         (__gmtime_r) [!defined _LIBC]: New macro and function.
56604         (timegm): Use a prototype, since gnulib assumes C89.
56605         Do not bother declaring tmp to be const, as it's not really usefu.
56606         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56607         (timegm): Declare only if HAVE_DECL_TIMEGM.
56608
56609 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56610
56611         * MODULES.html.sh (func_all_modules): Add time_r.
56612         * modules/time_r: New file.
56613         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56614         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56615
56616 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56617
56618         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56619         Bug reported by Lute Kamstra in
56620         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56621
56622         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56623         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56624         course with correspondingly smaller numbers for tomorrow and
56625         yesterday.  From Tadayoshi Funaba.  Originally installed into
56626         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56627         coreutils merge?).
56628
56629 2003-08-31  Simon Josefsson  <jas@extundo.com>
56630
56631         * modules/timegm: New file.
56632         * MODULES.html.sh (func_all_modules): Add timegm.
56633
56634 2003-08-31  Simon Josefsson  <jas@extundo.com>
56635
56636         * m4/timegm.m4: New file.
56637
56638 2003-08-31  Simon Josefsson  <jas@extundo.com>
56639
56640         * lib/timegm.h: New file.
56641         * lib/timegm.c: New file.  Based on
56642         wget-1.8.2/src/http.c:mktime_from_utc.
56643
56644 2003-08-31  Karl Berry  <karl@gnu.org>
56645
56646         * lib/argp.h: update from libc.
56647
56648 2003-08-28  Bruno Haible  <bruno@clisp.org>
56649
56650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56651         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56652         followed by '#define fnmatch fnmatch_posix' gives an error.
56653
56654 2003-08-28  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56657         warning on QNX, which defines O_BINARY to 000000.
56658
56659 2003-08-27  Jim Meyering  <jim@meyering.net>
56660
56661         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56662         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56663         would fail after 32.  Reported by Danny Levinson.  Details here:
56664         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56665
56666 2003-08-24  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56669         MSVC7 <stdio.h> is included later.
56670
56671 2003-08-22  Simon Josefsson  <jas@extundo.com>
56672
56673         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56674
56675 2003-08-20  Karl Berry  <karl@gnu.org>
56676
56677         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56678
56679 2003-08-20  Bruno Haible  <bruno@clisp.org>
56680
56681         * modules/progname: New file.
56682         * MODULES.html.sh (func_all_modules): Add progname.
56683
56684 2003-08-20  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/progname.h: New file, from GNU gettext.
56687         * lib/progname.c: New file, from GNU gettext.
56688         * lib/progreloc.c: New file, from GNU gettext.
56689
56690 2003-08-19  Jim Meyering  <jim@meyering.net>
56691
56692         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56693         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56694
56695 2003-08-19  Bruno Haible  <bruno@clisp.org>
56696
56697         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56698         more.
56699
56700 2003-08-19  Bruno Haible  <bruno@clisp.org>
56701
56702         * lib/xstrdup.c: Assume <string.h> exists.
56703
56704 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56705
56706         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56707         in makefile rules.
56708
56709 2003-08-18  Jim Meyering  <jim@meyering.net>
56710
56711         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56712         * m4/lib-ld.m4: Likewise.
56713
56714 2003-08-18  Jim Meyering  <jim@meyering.net>
56715
56716         * lib/setenv.h: Indent nested cpp directive.
56717         * lib/vasnprintf.c: Remove trailing blanks.
56718
56719 2003-08-17  Simon Josefsson  <jas@extundo.com>
56720
56721         * modules/xstrndup: New file.
56722         * MODULES.html.sh (func_all_modules): Add xstrndup.
56723
56724 2003-08-17  Simon Josefsson  <jas@extundo.com>
56725
56726         * modules/argp: Fix autoconf macro name. Add more dependencies.
56727
56728 2003-08-17  Simon Josefsson  <jas@extundo.com>
56729
56730         * m4/xstrndup.m4: New file.
56731
56732 2003-08-17  Simon Josefsson  <jas@extundo.com>
56733
56734         * m4/argp.m4: New file.
56735
56736 2003-08-17  Simon Josefsson  <jas@extundo.com>
56737             Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/xstrndup.h: New file.
56740         * lib/xstrndup.c: New file.
56741
56742 2003-08-17  Bruno Haible  <bruno@clisp.org>
56743
56744         * modules/strndup (Files, Include): Add lib/strndup.h.
56745
56746 2003-08-17  Bruno Haible  <bruno@clisp.org>
56747
56748         * modules/euidaccess (Files): Add lib/euidaccess.h.
56749
56750 2003-08-17  Bruno Haible  <bruno@clisp.org>
56751
56752         * lib/strndup.h: New file.
56753
56754 2003-08-17  Bruno Haible  <bruno@clisp.org>
56755
56756         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56757         like AC_GNU_SOURCE.
56758         * modules/extensions (configure.ac): Comment out the invocation of
56759         gl_USE_SYSTEM_EXTENSIONS.
56760
56761 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56762
56763         Merges from coreutils, etc.
56764         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56765         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56766         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56767         fixing a typo.
56768         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56769         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56770
56771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56772
56773         Document merge from coreutils.
56774         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56775         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56776         * modules/utime: Add m4/utimes-null.m4.
56777
56778 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56779
56780         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56781         space, undoing this 2003-08-12 change:
56782         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56783
56784 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56785
56786         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56787         strtoul.c from libc, undoing this 2003-08-12 change:
56788         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56789
56790 2003-08-16  Jim Meyering  <jim@meyering.net>
56791
56792         Merges from coreutils.
56793         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56794         prefix.  Adjust cache variables similarly.  Create 500 rather than
56795         just 300 files, to exercise bug on Darwin6.5, too.
56796         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56797         $missing_dir.
56798         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56799         AM_SYS_POSIX_TERMIOS.
56800         Reported by mkc@mathdogs.com.
56801         Also change use of $am_cv_sys_posix_termios
56802         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56803         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56804         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56805         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56806         in /proc/mounts until it finds one with matching device number.  This
56807         is unnecessary when the FILE argument *is* a mount point.  No stat call
56808         is necessary in that case.  So, disable the statvfs-testing code on
56809         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56810         as RedHat bug# 84846.
56811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56812         to 1MB, so as not to render systems with no stack size limit (e.g.,
56813         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56814         Include <unistd.h>.  On some systems,
56815         it is required for the definition of _SC_PAGESIZE.
56816
56817 2003-08-16  Jim Meyering  <jim@meyering.net>
56818
56819         Merge from coreutils.
56820         * lib/xstrtoimax.c: #else #if -> #elif.
56821         * lib/xstrtoumax.c: Likewise.
56822
56823 2003-08-16  Jim Meyering  <jim@meyering.net>
56824
56825         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56826         * m4/utimes.m4: Removed.
56827         * m4/utimes-null.m4: Renamed from utimes.m4.
56828
56829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56830         to 1MB, so as not to render systems with no stack size limit (e.g.,
56831         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56832         Include <unistd.h>.  On some systems,
56833         it is required for the definition of _SC_PAGESIZE.
56834
56835 2003-08-16  Jim Meyering  <jim@meyering.net>
56836         and Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         Merges from coreutils, etc.
56839
56840         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56841         using the latest version from cvs.  This avoids problems with #line
56842         directives using a vendor (Sun) compiler.
56843         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56844         Don't set GETGROUPS_LIB here; now it's
56845         done via getgroups.m4's wrapper function.
56846         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56847         rather than just in sh-util/configure.in, so that the
56848         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56849         same.
56850         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56851         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56852         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56853         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56854         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56855         Remove code that is now done by the newly-required macros.
56856         Append $(EXEEXT) to DF_PROG.
56857         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56858         Do not invoke or require the following here,
56859         since prereq.m4 or some gnulib .m4 now does this for us:
56860         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56861         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56862         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56863         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56864         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56865         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56866         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56867         AC_FUNC_OBSTACK.
56868         Do not replace the following functions, as this is now the job
56869         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56870         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56871         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56872         atexit getpass, strdup, getpagesize.
56873         Replace 'raise'.
56874         Do not check for the following functions, as this is now the job
56875         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56876         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56877         setregid.
56878         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56879         Check for sys/sysctl.h.
56880         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56881         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56882         of checking for ssize_t ourselves.
56883
56884         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56885         Require every macro that gnulib/modules/* suggests for us.
56886         (jm_PREREQ_ADDEXT): New macro.
56887         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56888         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56889
56890         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56891         (gl_PHYSMEM): Use it.
56892         Also check for `table' function.
56893         Check for new headers and functions.
56894         Add check for sys/sysmp.h.
56895         With suggestions from Kaveh Ghazi.
56896         Ignore headers that are present but cannot be compiled.  This
56897         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56898         C 5.4.
56899
56900 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56901
56902         Document merge from coreutils.
56903         * modules/userspec: Depend on posixver.
56904         * modules/strftime: Depend on tzset.
56905
56906 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56907
56908         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56909         rather than tab, after '#' in shell-script copyright notices.
56910         Suggested by Bruno Haible.
56911
56912 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56913
56914         * config/srclist-update: Use three spaces, rather than tab, after '#'
56915         in shell-script copyright notices.  Suggested by Bruno Haible.
56916         Remove unnecessary parenthesization in regular expression.
56917
56918 2003-08-15  Jim Meyering  <jim@meyering.net>
56919
56920         Merge from coreutils.
56921         * lib/xgethostname.c: Include <stdlib.h>.
56922         (xghostname): Don't exit for anything other than memory-related
56923         failure; just return NULL.
56924         * lib/userspec.c: Include "posixver.h".
56925         (parse_user_spec): Accept `.' as a separator only
56926         in pre-POSIX-200112 mode.
56927         * lib/strtoimax.c: Use #elif rather than #else #if.
56928         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56929         Remove function, now that we can rely on a working tzset function.
56930         [!_LIBC]: Ensure that the required autoconf test has been run.
56931         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56932         Use underlying_strftime for %r.
56933         * lib/sha.c: Merge in some clean-up and optimization changes from
56934         glibc.
56935         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56936         Ensure that it is a multiple of 64.
56937         Rearrange loop exit tests so as to avoid performing an
56938         additional fread after encountering an error or EOF.
56939         * lib/realloc.c: Update copyright date.
56940
56941 2003-08-15  Jim Meyering  <jim@meyering.net>
56942         and Paul Eggert  <eggert@twinsun.com>
56943
56944         Merge from coreutils.
56945         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56946         member but strut utmpx does not.  Needed for AIX 4.3.3.
56947         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56948
56949 2003-08-15  Jim Meyering  <jim@meyering.net>
56950         and Paul Eggert  <eggert@cs.ucla.edu>
56951
56952         Merges from coreutils, etc.
56953         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56954         Require gl_FUNC_TZSET_CLOBBER.
56955         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56956         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56957         members.
56958
56959 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56960
56961         Help the merge from coreutils.
56962         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56963         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56964         * m4/tzset.m4: Use it too.
56965
56966 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56967
56968         * modules/tzset: New file.
56969
56970 2003-08-14  Jim Meyering  <jim@meyering.net>
56971
56972         Merges from coreutils.
56973         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56974         variable names, rather than @FNMATCH_H@.
56975         * modules/alloca: Likewise for $(ALLOCA_H).
56976
56977         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56978         the three copies of the literal target, `fnmatch.h'.
56979         * modules/alloca (alloca.h): Likewise.
56980
56981 2003-08-14  Jim Meyering  <jim@meyering.net>
56982
56983         Merge from coreutils.
56984         * m4/tzset.m4: New file.
56985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56986         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56987         otherwise, AIX 5.1 systems would end up using the latter.
56988         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56989         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56990         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56991         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56992
56993 2003-08-14  Jim Meyering  <jim@meyering.net>
56994
56995         Merge from coreutils.
56996         * lib/obstack.h: Whitespace changes.
56997         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56998         and xcalloc return values.
56999         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57000         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57001         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57002         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57003         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57004         error from mntctl.
57005         Use mntctl's return value to drive the entry-processing loop, since
57006         we can't rely on the value of the vmt_length member in the last
57007         entry.  On some systems doing so could result in exhausting
57008         virtual memory.  Based in part on a patch from Mike Jetzer.
57009
57010 2003-08-14  Jim Meyering  <jim@meyering.net>
57011         and Paul Eggert  <eggert@twinsun.com>
57012
57013         Merges from coreutils, plus other fixes.
57014         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57015         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57016         for credits and details.  Thanks to Kaveh Ghazi for helping
57017         to keep these files in sync.
57018         (ARRAY_SIZE): Define it.
57019         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57020         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57021         (memcasecmp): Don't assume size_t fits in unsigned int.
57022         Remove casts and duplicate code.
57023         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57024         (memcpy): Remove definition.
57025         Merge in some clean-up and optimization changes from glibc.
57026         [BLOCKSIZE]: Move definition to top of file.
57027         Ensure that it is a multiple of 64.
57028         Rearrange loop exit tests so as to avoid performing an
57029         additional fread after encountering an error or EOF.
57030         * lib/md5.h (md5_uintptr): Define.
57031         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57032         return to the initial working directory.  Preserve errno
57033         for caller.
57034         * lib/idcache.c: Include "xalloc.h".
57035         (xmalloc, xrealloc): Remove decls.
57036         (getuser): Remove casts no longer required in C89.
57037         * lib/human.c: Include stdio.h, for sprintf.
57038         * lib/group-member.c: Include "xalloc.h".
57039         (xmalloc, xrealloc): Remove decls.
57040         (get_group_info): Remove casts no longer required in C89.
57041         * lib/getusershell.c (readname): Remove casts no longer required in
57042         C89.
57043         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57044         * lib/getline.c: Whitespace fix, from coreutils.
57045
57046 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57047
57048         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57049         Check for isascii.
57050
57051         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57052         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57053         Undo previous (whitespace-only) change.
57054
57055 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57056
57057         * lib/exclude.c: Include <ctype.h>
57058         (IN_CTYPE_DOMAIN): New macro.
57059         (is_space): New fn.
57060         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57061         and empty lines.
57062
57063         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57064         Undo previous (whitespace-only) change.
57065
57066 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57067
57068         * config/srclist-update: Change update back to the old behavior,
57069         leaving whitespace alone.  Use one 'sed' command rather than a
57070         pipeline.
57071         (fixlicense): Now a variable, not a function.
57072         (remove_trailing_blanks): Remove.
57073         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57074         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57075         Undo previous (whitespace-only) change.
57076
57077 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57078
57079         Merge from coreutils.
57080         * modules/euidaccess: Add lib_SOURCES, include for new
57081         file euidaccess.h
57082
57083 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57084
57085         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57086         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57087         Normalize leading white space and remove trailing white space.
57088
57089         Merge from coreutils
57090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57091
57092         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57093         0.12.1.  These files are now being upgraded automatically by
57094         ../config/srclist-update.
57095
57096 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57097
57098         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57099         Normalize leading white space and remove trailing white space.
57100         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57101         notice, as per ../config/srclist-update.
57102
57103         Merge from coreutils.
57104         * lib/euidaccess.h: New file.
57105         * lib/euidaccess.c: Include it.
57106         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57107         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57108         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57109
57110 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57111
57112         * config/srclist-update: Add copyright notice.
57113         (remove_id_lines, remove_trailing_blanks): New constants.
57114         (fixfile): Use them to normalize spacing a bit in copied files.
57115         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57116         Normalize leading white space and remove trailing white space.
57117
57118         * config/texinfo.tex: Sync with texinfo.
57119
57120         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57121         strtoul.c from libc, to merge coreutils whitespace changes.
57122
57123         * config/srclist.txt: Get the following m4 files from gettext:
57124         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57125         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57126         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57127         wint_t.m4.
57128
57129 2003-08-12  Karl Berry  <karl@gnu.org>
57130
57131         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57132         been made.
57133
57134 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57135
57136         * modules/gnu-source, m4/gnu-source.m4:
57137         Remove; we're assuming Autoconf 2.54 or later now.
57138         Suggested by Bruno Haible.
57139         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57140
57141 2003-08-11  Bruno Haible  <bruno@clisp.org>
57142
57143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57144
57145 2003-08-11  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57148         (vasnprintf): Use it instead of wcslen.
57149
57150 2003-08-11  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57153         value to ensure that _Bool promotes to int. Use #define for _Bool when
57154         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57155
57156 2003-08-10  Karl Berry  <karl@gnu.org>
57157
57158         * lib/regex.h: update from libc (whitespace fix).
57159
57160 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57161
57162         Merge some files from coreutils.  These changes were
57163         originally made by Jim Meyering.
57164         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57165         many older Unixes require this.
57166         * lib/alloca.c (alloca): Remove cast to argument of free;
57167         no longer needed in C89.
57168         * lib/alloca_.h, regex.h: Fix white space to match
57169         what GNU indent does.
57170
57171 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57172
57173         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57174         apparently Emacs's Unicode mode got confused before my 2003-08-05
57175         checkin.
57176
57177 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57178
57179         * m4/extensions.m4: New file.
57180         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57181         Require gl_USE_SYSTEM_EXTENSIONS.
57182         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57183         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57184
57185 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57186
57187         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57188         * modules/extensions, modules/gnu-source: New files.
57189         * modules/timespec, modules/unlocked-io: Depend on extensions.
57190
57191 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57192
57193         * modules/restrict: New file.
57194         * MODULES.html.sh (func_all_modules): Add restrict.
57195         * modules/regex: Depend on restrict.
57196
57197 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57198
57199         * m4/restrict.m4: New file.
57200         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57201
57202 2003-08-07  Bruno Haible  <bruno@clisp.org>
57203
57204         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57205         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57206
57207 2003-08-07  Bruno Haible  <bruno@clisp.org>
57208
57209         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57210         makes the module 'getndelim2' compatible with the module 'getline'.
57211
57212 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57213
57214         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57215         byte with "\201" to avoid glitches when editing that source file
57216         with multi-gnome-terminal.
57217
57218 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57219
57220         * lib/bumpalloc.h: Remove.
57221
57222 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57223
57224         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57225         * modules/bumpalloc: Remove.
57226
57227 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57228
57229         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57230         GNU coding style.
57231
57232         Merge from coreutils.
57233         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57234         1. From glibc.
57235         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57236         from Karl Berry, implemented by Jim Meyering.
57237         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57238         from Dmitry V. Levin.
57239         Remove anachronistic cast of xrealloc.
57240         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57241         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57242         type. Otherwise, it wouldn't compile with at least /bin/cc on
57243         ymp-cray-unicos9.0.2.X.
57244         Combine two mostly-identical uses of alloca into one.
57245         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57246
57247 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57248
57249         [From Emacs.]
57250
57251         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57252         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57253         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57254         obsolete NLIST_NAME_UNION.
57255         [__GNU__]: Undef BSD and FSCALE.
57256         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57257
57258 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57259
57260         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57261         an enum type, so that it's guaranteed to promote to int.  See:
57262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57263
57264 2003-08-03  Karl Berry  <karl@gnu.org>
57265
57266         * config/depcomp: update from automake.
57267
57268 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57269
57270         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57271         (strerror): Don't assume that a printable int fits in 14 bytes.
57272
57273 2003-07-31  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/getpass-gnu: New file.
57276         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57277
57278 2003-07-31  Bruno Haible  <bruno@clisp.org>
57279
57280         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57281
57282 2003-07-24  Karl Berry  <karl@gnu.org>
57283
57284         * config/missing: update from automake.
57285
57286 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57287             Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57290         * lib/getline.c (getline, getdelim): Likewise.
57291         Remove _GNU_SOURCE define; now it's defined in config.h through
57292         m4/getline.m4.
57293
57294 2003-07-23  Karl Berry  <karl@gnu.org>
57295
57296         * config/config.sub: update from prep.
57297
57298 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57299
57300         * modules/xalloc (Depends-on): Add exitfail.
57301         * modules/xmemcoll: Likewise.
57302
57303 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57304
57305         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57306         over-parenthesization in macros.
57307
57308         Sync with coreutils.
57309
57310         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57311         required by C99.
57312
57313         Use `exit_failure' for xalloc and xmemcoll instead of their own
57314         private exit-failure variables.
57315         * lib/xalloc.h (xalloc_exit_failure): Remove.
57316         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57317         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57318         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57319         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57320         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57321
57322 2003-07-20  Jim Meyering  <jim@meyering.net>
57323
57324         * modules/closeout (Depends-on): Add exitfail.
57325         Suggestion from Bruno Haible.
57326
57327 2003-07-19  Karl Berry  <karl@gnu.org>
57328
57329         * config/config.sub: update from prep.
57330
57331 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57332
57333         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57334         Remove.
57335         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57336         to test that it can stand by itself.  Include "exitfail.h".
57337         Clients should set exit_failure instead.
57338         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57339
57340 2003-07-18  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/getndelim2: New file.
57343         * modules/getline: Share files with module getndelim2.
57344         * modules/getnline: Depend on getndelim2 instead of sharing files with
57345         it. Add getnline.c to lib_SOURCES.
57346         * MODULES.html.sh (func_all_modules): Add getndelim2.
57347
57348 2003-07-18  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/getndelim2.m4: New file.
57351         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57352         invoke gl_PREREQ_GETNDELIM2.
57353         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57354         gl_PREREQ_GETNDELIM2.
57355         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57356         gl_GETNDELIM2.
57357
57358 2003-07-18  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/getndelim2.h: New file.
57361         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57362         getndelim2.h.
57363         (getndelim2): Make non-static. Change return type to ssize_t.
57364         * lib/getline.h: Change argument names.
57365         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57366         * lib/getnline.c: Include getndelim2.h.
57367
57368 2003-07-18  Andreas Schwab  <schwab@suse.de>
57369
57370         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57371
57372 2003-07-17  Karl Berry  <karl@gnu.org>
57373
57374         * config/config.sub: update from prep.
57375
57376 2003-07-17  Bruno Haible  <bruno@clisp.org>
57377
57378         * modules/getnline: New file.
57379         * modules/getline: Add lib/getndelim2.c to source file list.
57380         * MODULES.html.sh (func_all_modules): Add getnline.
57381
57382 2003-07-17  Bruno Haible  <bruno@clisp.org>
57383
57384         * m4/getnline.m4: New file.
57385
57386 2003-07-17  Bruno Haible  <bruno@clisp.org>
57387
57388         * m4/Makefile.am.in: Remove file.
57389         * m4/Makefile.am: Remove file.
57390         * m4/Makefile.in: Remove file.
57391
57392 2003-07-17  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/getnline.h: New file.
57395         * lib/getnline.c: New file.
57396         * lib/getndelim2.c: New file, extracted from getline.c.
57397         (getndelim2): Renamed from getdelim2, with added nmax argument.
57398         * lib/getline.c: Include getndelim2.c.
57399         (getdelim2): Moved out to getndelim2.c.
57400         (getline, getdelim): Update.
57401
57402 2003-07-17  Bruno Haible  <bruno@clisp.org>
57403
57404         * lib/Makefile.am: Remove file.
57405         * lib/Makefile.in: Remove file.
57406
57407 2003-07-17  Bruno Haible  <bruno@clisp.org>
57408
57409         * configure.in: Remove file.
57410         * Makefile.in: Remove file.
57411
57412 2003-07-17  Bruno Haible  <bruno@clisp.org>
57413
57414         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57415
57416 2003-07-16  Karl Berry  <karl@gnu.org>
57417
57418         * config/srclist-update: was running fixlicense twice, which caused
57419                 texinfo.tex to be nullified for some reason.  Simplify,
57420                 $gplsrc is no longer needed as far as I can see?
57421
57422 2003-07-16  Jim Meyering  <jim@meyering.net>
57423
57424         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57425
57426 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57427
57428         * config/srclist.txt: Get the following files from gettext-runtime/intl
57429         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57430         ref-del.sin.  From Bruno Haible.
57431         * config/srclist-update (fixfile): Change grep pattern again, since the
57432         previous fix didn't work (there was another trailing $).  Use
57433         '[$]' to escape the $s.
57434
57435 2003-07-15  Karl Berry  <karl@gnu.org>
57436
57437         * lib/vasnprintf.c: update from gettext.
57438
57439 2003-07-15  Karl Berry  <karl@gnu.org>
57440
57441         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57442         gets expanded when surrounded by '$'.
57443
57444 2003-07-15  Jim Meyering  <jim@meyering.net>
57445
57446         * modules/save-cwd: Don't depend on error.  From Derek Price.
57447
57448 2003-07-15  Jim Meyering  <jim@meyering.net>
57449
57450         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57451
57452 2003-07-14  Simon Josefsson  <jas@extundo.com>
57453
57454         * modules/mempcpy: New file.
57455         * MODULES.html.sh (func_all_modules): Add mempcpy.
57456
57457 2003-07-14  Simon Josefsson  <jas@extundo.com>
57458
57459         * m4/mempcpy.m4: New file.
57460
57461 2003-07-14  Simon Josefsson  <jas@extundo.com>
57462
57463         * lib/mempcpy.h: New file.
57464         * lib/mempcpy.c: New file.
57465
57466 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57467
57468         * modules/getdate, modules/posixtm: Depend on mktime.
57469
57470 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57471
57472         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57473         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57474         unicodeio.c, unicodeio.h, unlocked-io.h:
57475         Switch from LGPL to GPL.
57476
57477 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57478
57479         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57480         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57481         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57482         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57483         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57484         updated automatically by ../config/srclist-update.  This changes
57485         their license from LPGL to GPL.
57486
57487 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57488
57489         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57490         assumed to refer to the root of the most recent stable gettext version.
57491         * config/srclistvars.sh: Add defaults for eggert.
57492         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57493         Match "This program" as well as "The program".  This is needed
57494         for gettext.
57495
57496 2003-07-14  Jim Meyering  <jim@meyering.net>
57497
57498         Don't emit diagnostics.  Let callers do that.
57499         * lib/save-cwd.c: Don't include "error.h".
57500         (save_cwd): Don't call error.  Ensure that errno is valid
57501         when returning nonzero.
57502
57503         * lib/save-cwd.h (restore_cwd): Update prototype.
57504         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57505         Simplify.  Don't call error upon failure.  Let callers do that.
57506         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57507         when auditing is enabled.  But don't bother updating the #if.
57508
57509 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57510
57511         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57512         it breaks C++ compilation.
57513         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57514
57515 2003-07-10  Simon Josefsson  <jas@extundo.com>
57516
57517         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57518
57519 2003-07-10  Jim Meyering  <jim@meyering.net>
57520
57521         * m4/clock_time.m4: Remove trailing blank.
57522         * m4/intmax_t.m4: Likewise.
57523
57524 2003-07-10  Jim Meyering  <jim@meyering.net>
57525
57526         * lib/vasnprintf.c: Remove trailing blanks.
57527         Make cpp indentation consistent.
57528
57529 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57530
57531         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57532         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57533         Switch from LGPL to GPL.
57534
57535 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57536
57537         * config/srclist.txt: Sort sublists.  Add
57538         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57539         that differ from gnulib for one reason or another; we'd like this list
57540         to be smaller but for now let's document what we have.
57541
57542 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57543
57544         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57545         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57546         and sweeter "eval x=$x".
57547         * config/srclist.txt: Get lib/argp* from glibc.
57548
57549 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57550
57551         * lib/mktime.c: Fix some boundary cases and remove need for floating
57552         point.
57553
57554         Issue a compile-time diagnostic if time_t is floating point, or if
57555         two's complement arithmetic is not in effect, or if arithmetic
57556         right shift does not propagate the sign.  These assumptions were
57557         all in the original code but they weren't checked.
57558
57559         (TIME_T_MIDPOINT, verify): New macros.
57560         (__isleap): Remove; it has integer overflow problems.
57561         (leapyear): New function, without those problems.
57562         (ydhms_tm_diff): Remove; splitting into two parts.
57563         (ydhms_diff): New function, containing the arithmetic part of
57564         the old ydhms_tm_diff function.  Issue a compile-time
57565         diagnostic if we are not using C99 integer division.
57566         Avoid casts when possible.
57567         (guess_time_tm): New function, containing the checking part of
57568         the old ydhms_tm_diff function.  Return the new value, rather than
57569         the difference between it and the old.  Accept a new argument T
57570         so that *T specifies the old value.  Check for overflow in the result.
57571
57572         (__mktime_internal): Use a time_t offset, not a long int offset.
57573         This undoes the 2003-06-04 change, which is no longer needed now
57574         that we have better overflow checking.
57575         (localtime_offset): Likewise.
57576
57577         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57578         and long are 64-bit but int is only 32-bit.
57579         (ydhms_diff): Use long int to store year1 and yday1.
57580         Issue a compile-time diagnostic if long int is not wide enough.
57581
57582         (__mktime_internal): Use long int to store adjusted year and yday.
57583         Use plain C rather than preprocessor commands, if that doesn't
57584         affect efficiency.
57585         Check for overflow (and try to repair) after each probe
57586         rather than checking only at the very end.  This avoids some bugs
57587         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57588         does not equal GMT offset at maximum time).
57589         Use integer to check for overflow rather than floating point; this
57590         is more portable to non-IEEE hosts, and is a tad faster.
57591         When we detect that we are oscillating between two values,
57592         don't check whether tm_isdst has the requested value, since
57593         we already know the answer.  When tm_isdst has the wrong value,
57594         use a different heuristic to find the right one, based on the
57595         extreme values actually observed in practice in tz2003a,
57596         rather than the (overly optimistic) "previous 3 calendar quarters".
57597
57598         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57599         "T const" to accommodate glibc style.
57600         (check_result): Use less-confusing report format.  "long" -> "long int.
57601         (main): Likewise.
57602         Don't loop if the iteration overflows time_t.
57603         Allow a negative step in the iteration.
57604
57605 2003-07-06  Karl Berry  <karl@gnu.org>
57606
57607         * config/depcomp: update from automake.
57608         * config/config.sub: update from prep.
57609
57610 2003-07-03  Karl Berry  <karl@gnu.org>
57611
57612         * config/config.guess: update from prep.
57613
57614 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57615
57616         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57617         xreadlink.c now includes it unconditionally.
57618
57619 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57620
57621         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57622         having it depend on HAVE_SYS_TYPES_H.
57623
57624 2003-07-01  Bruno Haible  <bruno@clisp.org>
57625
57626         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57627         <sys/types.h> should be sufficient.
57628         Reported by Paul Eggert.
57629
57630 2003-06-26  Karl Berry  <karl@gnu.org>
57631
57632         * config/depcomp: update from automake.
57633
57634 2003-06-26  Bruno Haible  <bruno@clisp.org>
57635
57636         * modules/human: Depend on module stdbool.
57637
57638 2003-06-25  Bruno Haible  <bruno@clisp.org>
57639
57640         * modules/readlink: New file.
57641         * modules/xreadlink: Depend on it.
57642         * MODULES.html.sh (func_all_modules): Add readlink.
57643
57644 2003-06-25  Bruno Haible  <bruno@clisp.org>
57645
57646         * m4/readlink.m4: New file.
57647
57648 2003-06-25  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/readlink.c: New file.
57651
57652 2003-06-22  Karl Berry  <karl@gnu.org>
57653
57654         * config/srclist.txt: update mkinstalldirs from automake.
57655         * config/mkinstalldirs: update.
57656
57657 2003-06-22  Bruno Haible  <bruno@clisp.org>
57658
57659         Portability to mingw32.
57660         * m4/ssize_t.m4: New file, from GNU gettext.
57661         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57662         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57663
57664 2003-06-22  Bruno Haible  <bruno@clisp.org>
57665
57666         * modules/safe-read: Add m4/ssize_t.m4.
57667         * modules/xreadlink: Add m4/ssize_t.m4.
57668
57669 2003-06-20  Bruno Haible  <bruno@clisp.org>
57670
57671         Assume C89, so PARAMS isn't needed.
57672         * lib/unicodeio.h (PARAMS): Remove.
57673         * lib/unicodeio.c: Don't use PARAMS.
57674
57675 2003-06-18  Karl Berry  <karl@gnu.org>
57676
57677         * config/config.{guess,sub}: update from prep.
57678
57679 2003-06-18  Jim Meyering  <jim@meyering.net>
57680
57681         Merge changes from coreutils.
57682         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57683         Remove explicit declarations of xmalloc and realloc.
57684         Include xalloc.h.
57685         (read_utmp): Remove anachronistic cast of xmalloc.
57686
57687 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57688
57689         Assume C89, so PARAMS isn't needed.
57690         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57691         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57692         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57693         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57694         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57695         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57696         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57697         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57698         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57699         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57700         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57701         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57702         no longer needed. Anyway, config.h should always be included before any
57703         other file.
57704
57705 2003-06-11  Simon Josefsson  <jas@extundo.com>
57706
57707         * modules/sysexits: New file.
57708         * MODULES.html.sh (func_all_modules): Add sysexits.
57709
57710 2003-06-11  Simon Josefsson  <jas@extundo.com>
57711
57712         * lib/sysexit_.h: New file.
57713
57714 2003-06-11  Derek Price  <derek@ximbiot.com>
57715
57716         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57717         necessary.
57718
57719 2003-06-11  Bruno Haible  <bruno@clisp.org>
57720
57721         * m4/sysexits.m4: New file.
57722
57723 2003-06-10  Simon Josefsson  <jas@extundo.com>
57724
57725         * lib/argp.h: New file, from glibc.
57726         * lib/argp-ba.c: New file, from glibc.
57727         * lib/argp-eexst.c: New file, from glibc.
57728         * lib/argp-fmtstream.c: New file, from glibc.
57729         * lib/argp-fmtstream.h: New file, from glibc.
57730         * lib/argp-fs-xinl.c: New file, from glibc.
57731         * lib/argp-help.c: New file, from glibc.
57732         * lib/argp-namefrob.h: New file, from glibc.
57733         * lib/argp-parse.c: New file, from glibc.
57734         * lib/argp-pv.c: New file, from glibc.
57735         * lib/argp-pvh.c: New file, from glibc.
57736         * lib/argp-xinl.c: New file, from glibc.
57737
57738 2003-06-10  Simon Josefsson  <jas@extundo.com>
57739
57740         * modules/strchrnul: New file.
57741
57742 2003-06-10  Simon Josefsson  <jas@extundo.com>
57743
57744         * modules/argp: New file.
57745
57746 2003-06-10  Simon Josefsson  <jas@extundo.com>
57747
57748         * m4/strchrnul.m4: New file.
57749
57750 2003-06-10  Simon Josefsson  <jas@extundo.com>
57751
57752         * lib/strchrnul.h: New file.
57753         * lib/strchrnul.c: New file.
57754
57755 2003-06-10  Bruno Haible  <bruno@clisp.org>
57756
57757         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57758
57759 2003-06-07  Karl Berry  <karl@gnu.org>
57760
57761         * config/config.{guess,sub}: update from prep.
57762
57763 2003-06-07  Jim Meyering  <jim@meyering.net>
57764
57765         * modules/strtod: Use $(...) notation, not @...@ for
57766         AC_REPLACE'd variables.
57767         * modules/localcharset: Likewise.
57768
57769 2003-06-07  Jim Meyering  <jim@meyering.net>
57770
57771         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57772         in place of my name in the copyright comment.
57773         Remove definition and uses of __P.
57774
57775         From coreutils.
57776         * lib/stat.c: Don't declare xmalloc explicitly.
57777         Instead, include "xalloc.h".
57778         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57779         xrealloc, and xcalloc return values.
57780         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57781         Improve comment.
57782         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57783
57784 2003-06-07  Bruno Haible  <bruno@clisp.org>
57785
57786         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57787         avoid AC_CONFIG_LINKS.
57788         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57789         fnmatch.h, to avoid AC_CONFIG_LINKS.
57790         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57791
57792 2003-06-07  Bruno Haible  <bruno@clisp.org>
57793
57794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57795         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57796         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57797         directory.
57798         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57799         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57800         directory.
57801
57802 2003-06-06  Jim Meyering  <jim@meyering.net>
57803
57804         Merge from coreutils.
57805         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57806         Consolidate declarations and initializations of *_base* locals.
57807
57808         Merge from coreutils.
57809         This avoids a core dump on systems without GNU putenv,
57810         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57811         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57812         (unsetenv): New static function, from GNU libc.
57813         (rpl_putenv): Use it.
57814
57815         * lib/modechange.c: Remove trailing blanks.
57816
57817         Merge from coreutils.
57818         * lib/fsusage.c: Remove declaration of statfs.
57819         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57820
57821         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57822
57823 2003-06-06  Jim Meyering  <jim@meyering.net>
57824
57825         * lib/stdbool_.h: Renamed from stdbool.h.in.
57826
57827 2003-06-06  Jim Meyering  <jim@meyering.net>
57828             Bruno Haible  <bruno@clisp.org>
57829
57830         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57831         Adjust Makefile.am snippet not to redirect directly to target.
57832         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57833
57834 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57835
57836         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57837         mismatch, look in future quarters as well as past.  This fixes a
57838         bug when processing fall-backwards gaps immediately after a long
57839         period of daylight-saving time.
57840
57841         * lib/mktime.c: Assume freestanding C89 or better.
57842         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57843         (__P): Remove; not used.
57844         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57845         (mktime, not_equal_tm, print_tm, check_result,
57846         main): Use prototypes.  Use const * where appropriate.
57847         (main): Fix typo in testing code that uncovered by above changes.
57848         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57849
57850 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57851
57852         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57853         locale.h, localeconv.  This merges changes from coreutils.
57854
57855         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57856         It can be removed after the next Autoconf is released.
57857         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57858         needed.
57859
57860 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57861
57862         * lib/mktime.c: Fix Debian bug 177940
57863         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57864         (localtime_offset): Now long int, not time_t, because we want it
57865         to be guaranteed to be signed.  All uses changed.
57866         (__mktime_internal): If overflow would occur when adding offset,
57867         don't add it.
57868
57869         Merge 'human' changes from coreutils.  Rewrite to support
57870         locale-specific notations like thousands separators.
57871         * lib/human.c: Simplify authorship notice.
57872         Include human.h immediately after config.h.
57873         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57874         <limits.h>: Do not include, since human.h does.
57875         (SIZE_MAX, UINTMAX_MAX): New macros.
57876         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57877         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57878         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57879         (power_letter): Renamed from suffixes.
57880         (generate_suffix_backwards): Remove.
57881         (adjust_value): Now takes int style (because of human.h changes)
57882         and long double value (for greater precision on some platforms).
57883         (group_number): New function.
57884         (human_readable): Use it.  Use integer options, not enum.
57885         Put the options before the sizes in the arg list.
57886         Support all the new options.
57887         The old human_readable function has been removed;
57888         use inttostr.h instead.
57889         (human_readable, default_block_size, humblock):
57890         Use uintmax_t, not int, for block sizes.
57891         (human_readable_inexact, block_size_types): Remove.
57892         (block_size_opts): New constant.
57893         (human_options): Renamed from human_block_size, with new signature
57894         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57895         * lib/human.h: Add copyright and authorship notice.
57896         Include <limits.h> and <stdbool.h> unconditionally.
57897         (PARAMS): Remove.  All uses removed.
57898         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57899         (enum human_inexact_style): Remove tag; now a nameless enum.
57900         (human_floor, human_ceiling, human_round_to_even): Now have
57901         values 2, 0, 1 rather than -1, 1, 0.
57902         (human_group_digits, human_suppress_point_zero, human_autoscale,
57903         human_base_1024, human_SI, human_B): New constants.
57904         (human_readable_inexact, human_block_size): Remove.
57905         (human_readable): Size args are now uintmax_t, not int.
57906         (human_options): New decl.
57907
57908         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57909         unnecessary now that we assume C89 or better.  This change
57910         imported from coreutils.
57911
57912         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57913         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57914         in the 2003-05-30 sync from glibc.
57915
57916         .h files should stand alone, but we shouldn't include <sys/types.h>
57917         if we can get away with just <stddef.h>.
57918
57919         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57920         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57921         rather than <sys/types.h>, as we merely need size_t.
57922         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57923         to get size_t.
57924         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57925         Include <stdio.h>, to get FILE.
57926         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57927         memcasecmp.h has included <stddef.h> and all we need is size_t.
57928         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57929         our interface, instead of including <sys/types.h>
57930
57931 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57932
57933         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57934         now, as glibc mktime is buggy on non-glibc systems.
57935
57936 2003-06-03  Karl Berry  <karl@gnu.org>
57937
57938         * config/config.sub: update from prep.
57939
57940 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57941
57942         [from coreutils]
57943         Fix some minor time-related bugs with POSIX time arguments.
57944         Some valid time stamps were being rejected (notably -1, and
57945         time stamps before 1900 on 64-bit hosts).  And some invalid
57946         time stamps were being accepted, e.g. September 31.
57947
57948         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57949         that we can return (time_t) -1 successfully.
57950         * lib/posixtm.c: Likewise.
57951         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57952         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57953         (t): Remove static var.
57954         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57955         of static var.  All uses changed.
57956         (year): Do not reject years before 1900; they can occur with
57957         64-bit time_t.
57958         (posix_time_parse): Do not check for out-of-range components;
57959         that is now the caller's responsibility, since our checks were
57960         only approximations.
57961         (posixtime): Use mktime to check for out-of-range components,
57962         since it knows them exactly.
57963         If mktime returns (time_t) -1, check whether an error actually occurred
57964         by invoking localtime on -1.
57965         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57966         posixtime failures better.
57967         Improve the test data (in comments only).
57968
57969 2003-06-02  Karl Berry  <karl@gnu.org>
57970
57971         * config/mkinstalldirs (version): new variable.
57972         (--version): new option.
57973         (usage): improve message.
57974
57975 2003-05-30  Karl Berry  <karl@gnu.org>
57976
57977         * lib/mktime.c: update from libc.
57978
57979 2003-05-30  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57982         * config/config.rpath: Upgrade to gettext-0.12.1.
57983
57984 2003-05-30  Bruno Haible  <bruno@clisp.org>
57985
57986         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57987         * m4/nls.m4: New file, from gettext-0.12.1.
57988         * m4/po.m4: New file, from gettext-0.12.1.
57989         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57990
57991 2003-05-30  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57994         * lib/localcharset.h: Likewise.
57995         * lib/localcharset.c: Likewise.
57996
57997 2003-05-29  Karl Berry  <karl@gnu.org>
57998
57999         * config/config.rpath: update from gettext.
58000
58001 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58002
58003         Assume the headers required for C89 freestanding compilers.
58004         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58005         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58006         * m4/human.m4 (gl_HUMAN): Likewise.
58007         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58008         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58009         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58010         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58011         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58012         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58013
58014 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58015
58016         Assume the headers required for C89 freestanding compilers.
58017         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58018         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58019         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58020         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58021         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58022         define, since <limits.h> is guaranteed to do that.
58023         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58024         * lib/exclude.c: Include <stdbool.h> unconditionally.
58025         * lib/tempname.c: Include <stddef.h> unconditionally.
58026         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58027         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58028         <stddef.h> does that.
58029         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58030         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58031         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58032         needed.
58033         * lib/xstrtol.c: Likewise.
58034         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58035         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58036
58037         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58038         warnings on some platforms.
58039
58040         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58041         arbitrarily.
58042
58043 2003-05-26  Jim Meyering  <jim@meyering.net>
58044
58045         Merge in a change from coreutils:
58046         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58047         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58048         that condition, rather than `-1' which is slightly misleading.
58049         Change the name of the cache variable to have the gl_ prefix.
58050         Prompted by a patch from Richard Dawe for DJGPP.
58051
58052 2003-05-24  Karl Berry  <karl@gnu.org>
58053
58054         * config/config.guess: update from prep.
58055
58056 2003-05-22  Karl Berry  <karl@gnu.org>
58057
58058         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58059
58060 2003-05-20  Karl Berry  <karl@gnu.org>
58061
58062         * config/config.guess: update from prep.
58063
58064 2003-05-18  Karl Berry  <karl@gnu.org>
58065
58066         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58067         might actually be set by the user.
58068
58069         * config/depcomp, install-sh, mdate-sh: update from automake.
58070
58071 2003-05-17  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58074         invalid expansion for AC_EGREP_CPP.
58075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58076         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58077         Suggested by Akim Demaille <akim@epita.fr> in
58078         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58079
58080 2003-05-12  Jim Meyering  <jim@meyering.net>
58081
58082         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58083         the space-padded-by-default conversion specifiers, %e, %k, %l.
58084
58085 2003-05-12  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58088         the string is longer than 4 KB.
58089
58090 2003-05-11  Karl Berry  <karl@gnu.org>
58091
58092         * config/config.{guess,sub}: update from prep.
58093
58094 2003-05-09  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/error: Add m4/strerror_r.m4 to file list.
58097
58098 2003-05-03  Bruno Haible  <bruno@clisp.org>
58099
58100         Upgrade to Unicode-4.0.
58101         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58102         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58103         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58104         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58105         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58106         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58107         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58108         Change width of U+E0100..U+E01EF from 1 to 0.
58109
58110 2003-04-25  Jim Meyering  <jim@meyering.net>
58111
58112         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58113         of type size_t, not int.
58114
58115 2003-04-25  Bruno Haible  <bruno@clisp.org>
58116
58117         * lib/copy-file.c: Include <stddef.h>, for size_t.
58118
58119 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58120
58121         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58122         code which expansion is under static control.  Patch imported from
58123         Akim Demaille's patch to Bison; see
58124         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58125
58126 2003-04-14  Bruno Haible  <bruno@clisp.org>
58127
58128         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58129
58130 2003-04-11  Jim Meyering  <jim@meyering.net>
58131
58132         Merge changes from Coreutils.
58133
58134         2003-03-22  Jim Meyering  <jim@meyering.net>
58135
58136         * lib/strftime.c (widen): Cast alloca return value to proper type.
58137
58138         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58139
58140         From GNU libc.
58141         * lib/strftime.c (my_strftime): Handle very large width
58142         specifications for numeric values correctly.  Improve checks for
58143         overflow.
58144
58145         2003-01-19  Jim Meyering  <jim@meyering.net>
58146
58147         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58148         definitions.
58149         (nl_get_alt_digit) [! defined my_strftime]: Define.
58150         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58151         _nl_get_alt_digit and _nl_get_walt_digit.
58152
58153         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58154         libc. These changes have no effect outside of _LIBC.
58155
58156 2003-04-10  Bruno Haible  <bruno@clisp.org>
58157
58158         * modules/findprog: New file.
58159         * MODULES.html.sh (func_all_modules): Add it.
58160
58161 2003-04-10  Bruno Haible  <bruno@clisp.org>
58162
58163         * m4/findprog.m4: New file.
58164         * m4/eaccess.m4: New file.
58165
58166 2003-04-10  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/findprog.h: New file, from GNU gettext.
58169         * lib/findprog.c: New file, from GNU gettext.
58170
58171 2003-04-05  Jim Meyering  <jim@meyering.net>
58172
58173         Merge changes from Coreutils.
58174
58175         * lib/exclude.h (PARAMS): Remove definition and uses.
58176         * lib/exclude.c: Remove uses of `PARAMS'.
58177
58178         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58179         Add test-cases for DOS filenames. Declare program_name.
58180         (main): Set up program_name.  Patch by Rich Dawe.
58181
58182         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58183         error from mntctl.
58184         Use mntctl's return value to drive the entry-processing loop, since
58185         we can't rely on the value of the vmt_length member in the last
58186         entry.  On some systems doing so could result in exhausting
58187         virtual memory.  Based in part on a patch from Mike Jetzer.
58188
58189 2003-04-04  Bruno Haible  <bruno@clisp.org>
58190
58191         * modules/linebreak: New file.
58192         * MODULES.html.sh (func_all_modules): Add it.
58193
58194 2003-04-04  Bruno Haible  <bruno@clisp.org>
58195
58196         * m4/linebreak.m4: New file.
58197
58198 2003-04-04  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/linebreak.h: New file, from GNU gettext.
58201         * lib/linebreak.c: New file, from GNU gettext with slight
58202         modifications.
58203         * lib/lbrkprop.h: New file, from GNU gettext.
58204
58205 2003-04-03  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/utf8-ucs4: New file.
58208         * modules/utf16-ucs4: New file.
58209         * modules/ucs4-utf8: New file.
58210         * modules/ucs4-utf16: New file.
58211         * MODULES.html.sh (func_all_modules): Add them.
58212
58213 2003-04-03  Bruno Haible  <bruno@clisp.org>
58214
58215         * m4/utf-ucs4.m4: New file.
58216         * m4/ucs4-utf.m4: New file.
58217
58218 2003-04-03  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/utf8-ucs4.h: New file, from GNU gettext.
58221         * lib/utf16-ucs4.h: New file, from GNU gettext.
58222         * lib/ucs4-utf8.h: New file, from GNU gettext.
58223         * lib/ucs4-utf16.h: New file, from GNU gettext.
58224
58225 2003-04-02  Bruno Haible  <bruno@clisp.org>
58226
58227         * modules/binary-io: New file.
58228         * MODULES.html.sh (func_all_modules): Add it.
58229
58230 2003-04-02  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/binary-io.h: New file, from GNU gettext.
58233
58234 2003-04-01  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/pathname: New file.
58237         * MODULES.html.sh (func_all_modules): Add it.
58238
58239 2003-04-01  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/pathname.h: New file, from GNU gettext.
58242         * lib/concatpath.c: New file, from GNU gettext.
58243
58244 2003-03-30  Bruno Haible  <bruno@clisp.org>
58245
58246         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58247
58248 2003-03-30  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58251         function chown() doesn't exist.
58252
58253 2003-03-28  Bruno Haible  <bruno@clisp.org>
58254
58255         * modules/copy-file: New file.
58256         * MODULES.html.sh (func_all_modules): Add it.
58257
58258 2003-03-28  Bruno Haible  <bruno@clisp.org>
58259
58260         * m4/copy-file.m4: New file.
58261
58262 2003-03-28  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/copy-file.h: New file, from GNU gettext.
58265         * lib/copy-file.c: New file, from GNU gettext.
58266
58267 2003-03-18  Jim Meyering  <jim@meyering.net>
58268
58269         * lib/quote.c (quote_n): Fix typo in comment.
58270
58271 2003-03-18  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58274         checking.
58275         * m4/onceonly_2_57.m4: Likewise.
58276
58277 2003-03-17  Bruno Haible  <bruno@clisp.org>
58278
58279         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58280         (m4_quote): Remove macro.
58281         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58282
58283 2003-03-14  Jim Meyering  <jim@meyering.net>
58284
58285         Merge changes from Coreutils.
58286         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58287         to be const, in order to avoid warnings.
58288         (obstack_room): Likewise.
58289         (obstack_empty_p): Likewise.
58290
58291 2003-03-14  Bruno Haible  <bruno@clisp.org>
58292
58293         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58294         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58295
58296 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58297
58298         Merge changes from Bison.
58299         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58300         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58301         when compiling Bison 1.875's `bitset bset = obstack_alloc
58302         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58303         * lib/hash.c: Include <stdbool.h> unconditionally.
58304
58305 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58306
58307         * m4/onceonly.m4 (m4_quote): New macro.
58308         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58309         Quote AC_FOREACH variable-expansions properly.
58310
58311 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58312
58313         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58314
58315 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58316
58317         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58318         Reported by Bruce Becker; see:
58319         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58320
58321 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58322             Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58325         Reported by John Hughes, see
58326         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58327
58328 2003-02-20  Bruno Haible  <bruno@clisp.org>
58329
58330         * MODULES.html.sh (func_all_modules): Add poll.
58331
58332 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58333
58334         * modules/poll: New file.
58335
58336 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58337
58338         * lib/poll_.h: New file.
58339         * lib/poll.c: New file.
58340
58341 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58342
58343         * m4/poll.m4: New file.
58344
58345 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58346
58347         * modules/mathl: New file.
58348
58349 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58350
58351         * lib/mathl.h: New file.
58352         * lib/acosl.c: New file.
58353         * lib/asinl.c: New file.
58354         * lib/atanl.c: New file.
58355         * lib/ceill.c: New file.
58356         * lib/cosl.c: New file.
58357         * lib/expl.c: New file.
58358         * lib/floorl.c: New file.
58359         * lib/frexpl.c: New file.
58360         * lib/ldexpl.c: New file.
58361         * lib/logl.c: New file.
58362         * lib/sincosl.c: New file.
58363         * lib/sinl.c: New file.
58364         * lib/sqrtl.c: New file.
58365         * lib/tanl.c: New file.
58366         * lib/trigl.c: New file.
58367         * lib/trigl.h: New file.
58368
58369 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58370
58371         * m4/mathl.m4: New file.
58372
58373 2003-02-18  Bruno Haible  <bruno@clisp.org>
58374
58375         * MODULES.html.sh (func_all_modules): Add mathl.
58376
58377 2003-02-17  Bruno Haible  <bruno@clisp.org>
58378
58379         * modules/mkdtemp: New module.
58380         * MODULES.html.sh (func_all_modules): Add it.
58381
58382 2003-02-17  Bruno Haible  <bruno@clisp.org>
58383
58384         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58385
58386 2003-02-17  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/mkdtemp.h: New file, from GNU gettext.
58389         * lib/mkdtemp.c: New file, from GNU gettext.
58390
58391 2003-02-02  Jim Meyering  <jim@meyering.net>
58392
58393         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58394         e.g. glibc-2.2.93.
58395
58396 2003-01-31  Bruno Haible  <bruno@clisp.org>
58397
58398         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58399         'rpl_rename'.
58400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58401         'rpl_strnlen'.
58402         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58403         'rpl_strtod'.
58404         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58405         'rpl_utime'.
58406
58407 2003-01-31  Bruno Haible  <bruno@clisp.org>
58408
58409         * lib/rename.c: #undef rename before defining rpl_rename.
58410         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58411
58412 2003-01-30  Bruno Haible  <bruno@clisp.org>
58413
58414         * modules/vasnprintf, modules/vasprintf: New modules.
58415         * MODULES.html.sh (func_all_modules): Add them.
58416
58417 2003-01-30  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/signed.m4: New file, from GNU gettext.
58420         * m4/longdouble.m4: New file, from GNU gettext.
58421         * m4/wchar_t.m4: New file, from GNU gettext.
58422         * m4/wint_t.m4: New file, from GNU gettext.
58423         * m4/vasnprintf.m4: New file.
58424         * m4/vasprintf.m4: New file.
58425
58426 2003-01-30  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/printf-args.h: New file, from GNU gettext.
58429         * lib/printf-args.c: New file, from GNU gettext.
58430         * lib/printf-parse.h: New file, from GNU gettext.
58431         * lib/printf-parse.c: New file, from GNU gettext.
58432         * lib/vasnprintf.h: New file, from GNU gettext.
58433         * lib/vasnprintf.c: New file, from GNU gettext.
58434         * lib/asnprintf.c: New file, from GNU gettext.
58435         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58436         * lib/vasprintf.c: New file, from GNU gettext.
58437         * lib/asprintf.c: New file, from GNU gettext.
58438
58439 2003-01-29  Bruno Haible  <bruno@clisp.org>
58440
58441         * modules/stpncpy: New module.
58442         * MODULES.html.sh (func_all_modules): Add it.
58443
58444 2003-01-29  Bruno Haible  <bruno@clisp.org>
58445
58446         * m4/stpncpy.m4: New file.
58447
58448 2003-01-29  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58451         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58452
58453 2003-01-28  Bruno Haible  <bruno@clisp.org>
58454
58455         * modules/c-ctype: New module.
58456         * MODULES.html.sh (func_all_modules): Add it.
58457
58458 2003-01-28  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58461         Paul Eggert.
58462         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58463         Paul Eggert.
58464
58465 2003-01-27  Bruno Haible  <bruno@clisp.org>
58466
58467         * modules/xsetenv: New module.
58468         * MODULES.html.sh (func_all_modules): Add it.
58469
58470 2003-01-27  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/xsetenv.h: New file, from GNU gettext.
58473         * lib/xsetenv.c: New file, from GNU gettext.
58474
58475 2003-01-23  Jim Meyering  <jim@meyering.net>
58476
58477         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58478         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58479
58480 2003-01-23  Bruno Haible  <bruno@clisp.org>
58481
58482         * modules/minmax: New module.
58483         * MODULES.html.sh (func_all_modules): Add it.
58484
58485 2003-01-23  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58488         Eggert.
58489
58490 2003-01-22  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/exit: New module.
58493         * MODULES.html.sh (func_all_modules): Add it.
58494
58495 2003-01-22  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/exit.h: New file, from GNU gettext.
58498
58499 2003-01-19  Bruno Haible  <bruno@clisp.org>
58500
58501         * gnulib-tool: Recognize option --extract-maintainer.
58502         (func_get_maintainer): New function.
58503         * modules/*: Add Maintainer entry.
58504
58505 2003-01-16  Jim Meyering  <jim@meyering.net>
58506
58507         * m4/regex.m4: The `regex' struct is both input and output.
58508         Initialize it before each use.  Patch by Tim Waugh.
58509
58510 2003-01-16  Bruno Haible  <bruno@clisp.org>
58511
58512         * MODULES.html.sh: Add a table of contents. Add the module name as
58513         leftmost column. Add hyperlinks.
58514
58515 2003-01-15  Bruno Haible  <bruno@clisp.org>
58516
58517         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58518
58519 2003-01-15  Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58522         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58523         suffix.
58524
58525 2003-01-15  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58528
58529 2003-01-15  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58532         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58533
58534 2003-01-14  Jim Meyering  <jim@meyering.net>
58535
58536         * lib/same.c (same_name): Tweak a comment.
58537
58538 2003-01-14  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58541         when a string comparison is sufficient.
58542
58543 2003-01-14  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58546         'unsigned int'.
58547
58548 2003-01-14  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/hash-pjw.c: Add comment about low quality of this function.
58551
58552 2003-01-13  Bruno Haible  <bruno@clisp.org>
58553
58554         * modules/stpcpy: Distribute lib/stpcpy.h.
58555         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58556
58557 2003-01-13  Bruno Haible  <bruno@clisp.org>
58558
58559         * modules/*: Add a description.
58560         * modules/strpbrk: Fix Makefile.am snippet.
58561         * modules/strtoimax: Fix dependencies.
58562         * modules/strtoumax: Likewise.
58563
58564 2003-01-13  Bruno Haible  <bruno@clisp.org>
58565
58566         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58567         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58568         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58569
58570 2003-01-13  Bruno Haible  <bruno@clisp.org>
58571
58572         * gnulib-tool (func_create_testdir): Store config/* files in the main
58573         directory.
58574         * config.rpath: Move to ...
58575         * config/config.rpath: ... here.
58576         * modules/gettext: Contains config/config.rpath, not config.rpath.
58577         * modules/iconv: Likewise.
58578
58579 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58580
58581         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58582         to avoid collisions with libcurses and libreadline.
58583
58584         * m4/getstr.m4: Remove.
58585         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58586
58587 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58588
58589         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58590         to avoid collisions with libcurses and libreadline.
58591
58592         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58593         * lib/getstr.h, getstr.c: Remove.
58594         * lib/getline.c: Include "getline.h", to check interface.
58595         Move body of old getstr.c here: this defines MIN_CHUNK and
58596         declares getdelim2, which is renamed from getstr.
58597         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58598
58599         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58600         All uses changed.
58601         * lib/linebuffer.h: Likewise.
58602         (readline): Remove backward-compatibility macro.
58603
58604 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58605
58606         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58607         to avoid collisions with libcurses and libreadline.
58608         * getstr: Remove.
58609         * MODULES.html.sh: Remove getstr.
58610         * modules/getline: Depend on unlocked-io, not getstr.
58611
58612 2003-01-12  Jim Meyering  <jim@meyering.net>
58613
58614         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58615
58616 2003-01-10  Bruno Haible  <bruno@clisp.org>
58617
58618         * modules/alloca: Change Makefile.am requirements. Simplify Include
58619         requirements. Add lib/alloca_.h to file list.
58620
58621 2003-01-10  Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58624
58625 2003-01-10  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/alloca_.h: New file.
58628         * lib/getdate.y: Unconditionally include alloca.h.
58629         * lib/makepath.c: Likewise.
58630         * lib/setenv.c: Likewise.
58631         * lib/userspec.c: Likewise.
58632
58633 2003-01-09  Karl Berry  <karl@gnu.org>
58634
58635         * MODULES.html.sh: include `dirname $0` in PATH, to find
58636         gnulib-tool.
58637
58638 2003-01-09  Bruno Haible  <bruno@clisp.org>
58639
58640         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58641         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58642
58643 2003-01-09  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58646
58647 2003-01-09  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/stdbool.h.in: New file.
58650
58651 2003-01-09  Bruno Haible  <bruno@clisp.org>
58652
58653         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58654         * MODULES.html.sh: Likewise.
58655
58656 2003-01-08  Jim Meyering  <jim@meyering.net>
58657
58658         * lib/full-write.c: Undefine and define-away `const' after inclusion
58659         of errno.h, not before.  Suggestion from Bruno Haible.
58660
58661 2003-01-08  Bruno Haible  <bruno@clisp.org>
58662
58663         * modules/full-read: Depend on full-write.
58664
58665 2003-01-08  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/safe-read.c: Include specification header first, to ensure its
58668         selfcontainedness.
58669         * lib/full-write.c: Likewise.
58670
58671 2003-01-07  Jim Meyering  <jim@meyering.net>
58672
58673         * lib/full-write.c: Rework so that it may serve to define full_read,
58674         too.
58675         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58676
58677 2003-01-07  Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58680         <inttypes.h>.
58681         * lib/xstrtol.h: Likewise.
58682         * lib/xstrtoimax.c: Likewise.
58683         * lib/xstrtoumax.c: Likewise.
58684         * lib/human.h: Likewise.
58685
58686         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58687         on systems that have <inttypes.h> but not <stdint.h>.
58688
58689 2003-01-07  Bruno Haible  <bruno@clisp.org>
58690
58691         * MODULES.html.sh: Add copyright notice.
58692         (missed_files): Omit CVS directory entries.
58693         (func_module): Make it work with sed-3.02.
58694         * MODULES.txt: Remove file.
58695
58696 2003-01-06  Jim Meyering  <jim@meyering.net>
58697
58698         * lib/version-etc.c: Update year in translatable copyright string.
58699
58700 2003-01-03  Karl Berry  <karl@gnu.org>
58701
58702         * config/config.{guess,sub}: update from prep.
58703
58704 2003-01-02  Karl Berry  <karl@gnu.org>
58705
58706         * doc/COPYING.DOC: belatedly updated to 1.2.
58707
58708 2003-01-01  Karl Berry  <karl@gnu.org>
58709
58710         * gnulib-tool (func_verify_module): report module name $module in
58711         error message, not $1.
58712         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58713         be created, only if it doesn't exist.
58714         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58715
58716 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58717
58718         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58719
58720 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58721
58722         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58723         memcmp if strcoll doesn't work.
58724
58725 2002-12-31  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58728         nonempty.
58729
58730 2002-12-31  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/memcoll.c (STRCOLL): New macro.
58733         (memcoll): Use it.
58734
58735 2002-12-31  Bruno Haible  <bruno@clisp.org>
58736
58737         * lib/localcharset.h: New file.
58738         * lib/localcharset.c: Include it.
58739         * lib/unicodeio.c: Likewise.
58740
58741 2002-12-31  Bruno Haible  <bruno@clisp.org>
58742
58743         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58744         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58745
58746 2002-12-31  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/getline.h: Include <stddef.h>, for size_t.
58749
58750         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58751         * lib/unicodeio.c: Don't include <stddef.h>.
58752
58753 2002-12-31  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58756         HAVE_TM_ZONE.
58757
58758 2002-12-24  Karl Berry  <karl@gnu.org>
58759
58760         * config/config.guess: update from prep.
58761
58762 2002-12-24  Bruno Haible  <bruno@clisp.org>
58763
58764         General infrasructure.
58765         * m4/README: Rewritten.
58766         * m4/onceonly.m4: New file.
58767         * m4/onceonly_2_57.m4: New file.
58768
58769         Module atexit.
58770         * m4/atexit.m4: New file.
58771
58772         Module strtod.
58773         * m4/strtod.m4: New file.
58774
58775         Module strtol.
58776         * m4/strtol.m4: New file.
58777
58778         Module strtoul.
58779         * m4/strtoul.m4: New file.
58780
58781         Module memchr.
58782         * m4/memchr.m4: New file.
58783
58784         Module memcmp.
58785         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58786         (jm_FUNC_MEMCMP): Invoke it.
58787
58788         Module memcpy.
58789         * m4/memcpy.m4: New file.
58790
58791         Module memmove.
58792         * m4/memmove.m4: New file.
58793
58794         Module memset.
58795         * m4/memset.m4: New file.
58796
58797         Module strcspn.
58798         * m4/strcspn.m4: New file.
58799
58800         Module strpbrk.
58801         * m4/strpbrk.m4: New file.
58802
58803         Module strstr.
58804         * m4/strstr.m4: New file.
58805
58806         Module strerror.
58807         * m4/strerror.m4: New file.
58808
58809         Module mktime.
58810         * m4/mktime.m4: Renamed from jm-mktime.m4.
58811         (gl_PREREQ_MKTIME): New macro.
58812         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58813
58814         Module malloc.
58815         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58816         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58817         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58818
58819         Module realloc.
58820         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58821         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58822         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58823
58824         Module strftime.
58825         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58826         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58827         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58828         gl_TM_GMTOFF.
58829         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58830
58831         Module xalloc.
58832         * m4/xalloc.m4: New file.
58833
58834         Module alloca.
58835         * m4/alloca.m4: New file.
58836
58837         Module putenv.
58838         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58839         (jm_FUNC_PUTENV): Invoke it.
58840
58841         Module setenv.
58842         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58843         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58844         when invoked twice.
58845         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58846         gt_FUNC_SETENV.
58847
58848         Module memrchr.
58849         * m4/memrchr.m4: New file.
58850
58851         Module stpcpy.
58852         * m4/stpcpy.m4: New file.
58853
58854         Module strcase.
58855         * m4/strcase.m4: New file.
58856
58857         Module strdup.
58858         * m4/strdup.m4: New file.
58859
58860         Module strnlen.
58861         * m4/strnlen.m4: New file.
58862
58863         Module strndup.
58864         * m4/strndup.m4: New file.
58865
58866         Module xstrtod.
58867         * m4/xstrtod.m4: New file.
58868
58869         Module xstrtol.
58870         * m4/xstrtol.m4: New file.
58871
58872         Module getdate.
58873         * m4/getdate.m4: New file.
58874
58875         Module unlocked-io.
58876         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58877         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58878         * m4/jm-glibc-io.m4n: Remove file.
58879
58880         Module long-options.
58881         * m4/long-options.m4: New file.
58882
58883         Module md5.
58884         * m4/md5.m4: New file.
58885
58886         Module sha.
58887         * m4/sha.m4: New file.
58888
58889         Module getstr.
58890         * m4/getstr.m4: New file.
58891
58892         Module getline.
58893         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58894         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58895         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58896         simply getline. Infoke gl_PREREQ_GETLINE.
58897
58898         Module obstack.
58899         * m4/obstack.m4: New file.
58900
58901         Module hash.
58902         * m4/hash.m4: New file.
58903
58904         Module readtokens.
58905         * m4/readtokens.m4: New file.
58906
58907         Module strverscmp.
58908         * m4/strverscmp.m4: New file.
58909
58910         Module stdbool.
58911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58912         OSF/1.
58913
58914         Module strtoll.
58915         * m4/strtoll.m4: New file.
58916
58917         Module strtoull.
58918         * m4/strtoull.m4: New file.
58919
58920         Module strtoimax.
58921         * m4/strtoimax.m4: New file.
58922
58923         Module strtoumax.
58924         * m4/strtoumax.m4: New file.
58925
58926         Module xstrtoimax.
58927         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58928         jm_AC_PREREQ_XSTRTOIMAX.
58929         Moved the strtol prerequisites to strtol.m4.
58930         Moved the strtoll prerequisites to strtoll.m4.
58931         Moved the strtoimax prerequisites to strtoimax.m4.
58932
58933         Module xstrtoumax.
58934         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58935         jm_AC_PREREQ_XSTRTOUMAX.
58936         Moved the strtoul prerequisites to strtoul.m4.
58937         Moved the strtoull prerequisites to strtoull.m4.
58938         Moved the strtoumax prerequisites to strtoumax.m4.
58939
58940         Module chown.
58941         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58942         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58943
58944         Module dup2.
58945         * m4/dup2.m4: New file.
58946
58947         Module ftruncate.
58948         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58949         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58950
58951         Module getgroups.
58952         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58953         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58954
58955         Module gettimeofday.
58956         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58957         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58958         gl_PREREQ_GETTIMEOFDAY.
58959
58960         Module mkdir.
58961         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58962         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58963
58964         Module mkstemp.
58965         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58966         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58967         jm_AC_TYPE_UINTMAX_T.
58968         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58969
58970         Module stat.
58971         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58972         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58973
58974         Module lstat.
58975         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58976         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58977
58978         Module timespec.
58979         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58980         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58981         * m4/st_mtim.m4: Indentation.
58982
58983         Module nanosleep.
58984         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58985         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58986         gl_PREREQ_NANOSLEEP.
58987
58988         Module regex.
58989         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58990         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58991         (gl_REGEX): New macro.
58992
58993         Module rename.
58994         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58995         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58996
58997         Module rmdir.
58998         * m4/rmdir.m4: New file.
58999
59000         Module utime.
59001         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59002         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59003         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59004
59005         Module dirname.
59006         * m4/dirname.m4: New file.
59007
59008         Module getopt.
59009         * m4/getopt.m4: New file.
59010
59011         Module unistd-safer.
59012         * m4/unistd-safer.m4: New file.
59013
59014         Module fnmatch.
59015         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59016         declaration.
59017         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59018         (gl_FUNC_FNMATCH_POSIX): New macro.
59019         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59020         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59021         simply fnmatch.
59022
59023         Module exclude.
59024         * m4/exclude.m4: New file.
59025
59026         Module human.
59027         * m4/human.m4: New file.
59028
59029         Module acl.
59030         * m4/acl.m4: Nop.
59031
59032         Module backupfile.
59033         * m4/backupfile.m4: New file.
59034         * m4/d-ino.m4: Indentation.
59035
59036         Module fsusage.
59037         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59038         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59039         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59040
59041         Module dirfd.
59042         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59043         requirements.
59044
59045         Module euidaccess.
59046         * m4/euidaccess.m4: New file.
59047
59048         Module file-type.
59049         * m4/file-type.m4: New file.
59050
59051         Module fileblocks.
59052         * m4/fileblocks.m4: New file.
59053
59054         Module filemode.
59055         * m4/filemode.m4: New file.
59056
59057         Module isdir.
59058         * m4/isdir.m4: New file.
59059
59060         Module lchown.
59061         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59062         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59063
59064         Module makepath.
59065         * m4/makepath.m4: New file.
59066
59067         Module modechange.
59068         * m4/modechange.m4: New file.
59069
59070         Module mountlist.
59071         * m4/mountlist.m4: New file.
59072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59073         Indentation.
59074
59075         Module path-concat.
59076         * m4/path-concat.m4: New file.
59077
59078         Module pathmax.
59079         * m4/pathmax.m4: New file.
59080
59081         Module same.
59082         * m4/same.m4: New file.
59083
59084         Module save-cwd.
59085         * m4/save-cwd.m4: New file.
59086
59087         Module savedir.
59088         * m4/savedir.m4: New file.
59089
59090         Module xgetcwd.
59091         * m4/xgetcwd.m4: New file.
59092         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59093
59094         Module xreadlink.
59095         * m4/xreadlink.m4: New file.
59096
59097         Module safe-read.
59098         * m4/safe-read.m4: New file.
59099
59100         Module safe-write.
59101         * m4/safe-write.m4: New file.
59102
59103         Module closeout.
59104         * m4/closeout.m4: New file.
59105
59106         Module stdio-safer.
59107         * m4/stdio-safer.m4: New file.
59108
59109         Module getpass.
59110         * m4/getpass.m4: New file.
59111
59112         Module getugroups.
59113         * m4/getugroups.m4: New file.
59114
59115         Module group-member.
59116         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59117         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59118
59119         Module idcache.
59120         * m4/idcache.m4: New file.
59121
59122         Module userspec.
59123         * m4/userspec.m4: New file.
59124
59125         Module gettime.
59126         * m4/clock_time.m4: New file.
59127         * m4/gettime.m4: New file.
59128
59129         Module settime.
59130         * m4/settime.m4: New file.
59131
59132         Module posixtm.
59133         * m4/posixtm.m4: New file.
59134
59135         Module gethostname.
59136         * m4/gethostname.m4: New file.
59137
59138         Module canon-host.
59139         * m4/canon-host.m4: New file.
59140
59141         Module gettext.
59142         * m4/codeset.m4: New file, from gettext-0.11.5.
59143         * m4/gettext.m4: New file, from gettext-0.11.5.
59144         * m4/glibc21.m4: New file, from gettext-0.11.5.
59145         * m4/iconv.m4: New file, from gettext-0.11.5.
59146         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59147         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59148         * m4/inttypes.m4: New file, from gettext-0.11.5.
59149         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59150         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59151         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59152         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59153         * m4/lib-link.m4: New file, from gettext-0.11.5.
59154         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59155         * m4/progtest.m4: New file, from gettext-0.11.5.
59156         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59157         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59158         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59159
59160         Module localcharset.
59161         * m4/localcharset.m4: New file.
59162
59163         Module hard-locale.
59164         * m4/hard-locale.m4: New file.
59165
59166         Module mbswidth.
59167         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59168         onceonly macros.
59169         * m4/mbrtowc.m4: Add comment.
59170
59171         Module memcasecmp.
59172         * m4/memcasecmp.m4: New file.
59173
59174         Module memcoll.
59175         * m4/memcoll.m4: New file.
59176
59177         Module unicodeio.
59178         * m4/unicodeio.m4: New file.
59179
59180         Module rpmatch.
59181         * m4/rpmatch.m4: New file.
59182
59183         Module yesno.
59184         * m4/yesno.m4: New file.
59185
59186         Module exitfail.
59187         * m4/exitfail.m4: New file.
59188
59189         Module c-stack.
59190         * m4/c-stack.m4 (gl_C_STACK): New macro.
59191         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59192
59193         Module error.
59194         * m4/error.m4 (gl_ERROR): New macro.
59195         (jm_PREREQ_ERROR): Use onceonly macros.
59196
59197         Module fatal.
59198         * m4/fatal.m4: New file.
59199
59200         Module getloadavg.
59201         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59202         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59203
59204         Module getpagesize.
59205         * m4/getpagesize.m4: New file.
59206
59207         Module getusershell.
59208         * m4/getusershell.m4: New file.
59209
59210         Module physmem.
59211         * m4/physmem.m4: New file.
59212
59213         Module posixver.
59214         * m4/posixver.m4: New file.
59215
59216         Module quotearg.
59217         * m4/quotearg.m4: New file.
59218
59219         Module quote.
59220         * m4/quote.m4: New file.
59221
59222         Module readutmp.
59223         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59224
59225         Module sig2str.
59226         * m4/sig2str.m4: New file.
59227
59228         Other.
59229         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59230         ulonglong.m4.
59231         * m4/intmax_t.m4: New file.
59232         * m4/d-type.m4: Indentation.
59233         * m4/jm-macros.m4: Update.
59234         * m4/prereq.m4 (jm_PREREQ): Update.
59235         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59236         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59237         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59238         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59239         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59240         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59241         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59242         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59243         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59244         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59245         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59246         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59247         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59248         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59249         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59250         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59251         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59252         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59253         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59254
59255 2002-12-24  Bruno Haible  <bruno@clisp.org>
59256
59257         * MODULES.txt: Update according to m4/ changes.
59258
59259         Module gettext.
59260         * config.rpath: New file, from gettext-0.11.5.
59261
59262         * modules/*: New module descriptions.
59263         * gnulib-tool: New file.
59264         * MODULES.html.sh: New file.
59265
59266 2002-12-21  Karl Berry  <karl@gnu.org>
59267
59268         * doc/fdl.texi: update to version 1.2.
59269
59270 2002-12-19  Karl Berry  <karl@gnu.org>
59271
59272         * config/config.guess: update from prep.
59273
59274 2002-12-18  Bruno Haible  <bruno@clisp.org>
59275
59276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59277         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59278
59279 2002-12-17  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59282         stdlib.h, string.h.
59283
59284 2002-12-17  Bruno Haible  <bruno@clisp.org>
59285
59286         * lib/canon-host.c (strdup): Remove unused declaration.
59287
59288         * lib/fsusage.c: Include full_read.h.
59289         (get_fs_usage): Use full_read instead of safe_read.
59290
59291         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59292
59293 2002-12-12  Karl Berry  <karl@gnu.org>
59294
59295         * config/config.guess: update from prep.
59296
59297 2002-12-11  Bruno Haible  <bruno@clisp.org>
59298
59299         * m4/setenv.m4: New file, from gettext-0.11.5.
59300
59301 2002-12-11  Bruno Haible  <bruno@clisp.org>
59302
59303         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59304         not unsetenv().
59305         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59306         modifications:
59307
59308         2002-12-11  Bruno Haible  <bruno@clisp.org>
59309
59310                 * setenv.c (alloca): Fall back to malloc.
59311                 (freea): New macro.
59312                 (setenv): Use freea() to free memory allocated with alloca().
59313
59314         2002-11-13  Bruno Haible  <bruno@clisp.org>
59315
59316                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59317                 function declarations.
59318                 * unsetenv.c (unsetenv): Likewise.
59319
59320         2002-03-04  Bruno Haible  <bruno@clisp.org>
59321
59322                 Portability to AIX 4.3.3.
59323                 * unsetenv.c: New file, extracted from setenv.c.
59324                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59325
59326         2001-12-20  Bruno Haible  <bruno@clisp.org>
59327
59328                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59329                 use malloc instead. For SunOS 4.
59330
59331         2001-12-11  Bruno Haible  <bruno@clisp.org>
59332
59333                 * setenv.c: Declare alloca.
59334                 (compar_fn_t): New typedef.
59335                 (KNOWN_VALUE, STORE_VALUE): Use it.
59336
59337         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59338         setenv.h.
59339
59340 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59341
59342         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59343         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59344         Choose values that are less likely to collide with system fnmatch
59345         options.
59346         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59347         defined (e.g., a pure POSIX system).
59348         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59349         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59350
59351 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59352
59353         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59354         a pain in practice to deal with generated m4 files.  This change
59355         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59356
59357         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59358         and jm-glibc-io.m4, as they are no longer a special case.
59359         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59360         kludge and the auto-generation stuff.  Check only whether the
59361         functions are declared, not whether they exist, since older hosts
59362         that don't declare the functions can't use the optimization anyway.
59363
59364 2002-12-06  Jim Meyering  <jim@meyering.net>
59365
59366         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59367
59368         Merge in changes from libc's misc/error.c, in preparation
59369         for the merge of gnulib's changes back into libc.
59370
59371         * lib/error.c (_): Define only if not already defined.
59372         Move definition to follow all #include directives.
59373         Include unlocked-io.h only if !_LIBC.
59374         [_LIBC]: Include <libio/libioP.h>.
59375         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59376         (fflush): Tweak definition to use INTUSE.
59377         (putc): Define.
59378
59379 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59380
59381         * lib/alloca.c [defined emacs]: Include "lisp.h".
59382         (xalloc_die) [defined emacs]: New macro.
59383         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59384         [! defined emacs]: Include <xalloc.h>.
59385         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59386         (pointer): Typedef to POINTER_TYPE *.
59387         (malloc): Remove decl; we now always use xmalloc.
59388         (alloca): Use old-style definition, since Emacs needs this.
59389         Check for arithmetic overflow when computing combined size.
59390
59391 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59392
59393         Do not generate unlocked-io.h automatically, since it's easier to
59394         maintain it by hand.
59395
59396         * lib/unlocked-io.h: New file, from GNU diffutils,
59397         but with proper copyright notice and attribution.
59398         * lib/gen-uio: Remove.
59399         * lib/Makefile.am: Add copyright notice.
59400         (libfetish_a_SOURCES): Add unlocked-io.h.
59401         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59402         (DISTCLEANFILES, io_functions): Remove macros.
59403         (EXTRA_DIST): Remove gen_uio.
59404         (unlocked-io.h): Remove rule.
59405
59406 2002-12-04  Jim Meyering  <jim@meyering.net>
59407
59408         Reflect the fact that stat.c and lstat.c are no longer generated.
59409         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59410         (DISTCLEANFILES): Likewise.
59411         (EXTRA_DIST): Likewise.
59412         (all_local): Don't depend on stat.c or lstat.c.
59413         (stat.c, lstat.c): Remove rules.
59414         (EXTRA_DIST): Remove xstat.in.
59415
59416         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59417         * lib/stat.c: New file.  Contents mostly from xstat.in.
59418         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59419         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59420
59421         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59422         too.
59423         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59424
59425 2002-12-03  Jim Meyering  <jim@meyering.net>
59426
59427         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59428         but not semantics, to minimize the differences between these two files.
59429         (safe_read): Change comment to mention SAFE_READ_ERROR.
59430
59431         * lib/safe-read.c (IS_EINTR): Define.
59432         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59433
59434 2002-12-02  Jim Meyering  <jim@meyering.net>
59435
59436         * lib/safe-read.c (EINTR): Define.
59437         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59438         (INT_MAX): Provide fallback.
59439         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59440
59441         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59442
59443 2002-12-02  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59446         Define, taken from safe-read.c.
59447         (INT_MAX): Provide fallback.
59448         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59449         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59450
59451         * lib/safe-read.c (EINTR): Remove definition.
59452         (safe_read): Don't use EINTR if it is absent.
59453
59454 2002-12-01  Jim Meyering  <jim@meyering.net>
59455
59456         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59457         zero.
59458         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59459
59460 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59461
59462         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59463         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59464         with `if (! (value < limit)) abort ();', for readability.
59465
59466 2002-11-26  Karl Berry  <karl@gnu.org>
59467
59468         * lib/strdup.c: copy from libc again, with jim's ok.
59469         * lib/.cppi-disable: re-add strdup.c
59470
59471 2002-11-25  Karl Berry  <karl@gnu.org>
59472
59473         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59474         instead of "strtol.c".
59475
59476 2002-11-25  Karl Berry  <karl@gnu.org>
59477
59478         * config/install-sh: update from automake for variable quoting, $0 in
59479         error msgs, etc.
59480
59481         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59482         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59483         entry.
59484
59485 2002-11-25  Jim Meyering  <jim@meyering.net>
59486
59487         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59488
59489 2002-11-24  Karl Berry  <karl@gnu.org>
59490
59491         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59492         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59493
59494 2002-11-24  Jim Meyering  <jim@meyering.net>
59495
59496         Update from coreutils:
59497
59498         * lib/mktime.c: Merge in changes from libc.
59499
59500         Avoid a link-time failure on some Linux systems.
59501         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59502         (otherwise).
59503         (__mon_yday): Declare with the STATIC attribute.
59504         (__mktime_internal): Likewise.
59505         Based on a report from Greg Schafer.
59506
59507 2002-11-23  Jim Meyering  <jim@meyering.net>
59508
59509         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59510         Use `unsigned', not `int', as type of index.
59511
59512         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59513
59514         * lib/fsusage.c: Remove unneeded parentheses around operands of
59515         `defined'.
59516
59517 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59518
59519         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59520         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59521         so that we can be included first.
59522         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59523         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59524         No need to include stddef.h or sys/types.h any more.
59525         Surround local include files with "", not "<>".
59526         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59527         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59528         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59529         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59530         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59531         (ISPRINT): Remove; no longer needed now that we assume C89.
59532
59533         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59534         Preserve errno.
59535
59536         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59537         quotearg_char): Use SIZE_MAX rather than
59538         (size_t) -1 when we are talking about "infinity".
59539
59540         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59541
59542 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59543
59544         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59545         hint that one should use `if (! x) abort ();' rather than `assert
59546         (x);', and anyway it's one less thing to worry about configuring.
59547         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59548         hash_rehash, hash_insert): Use abort rather than assert.
59549
59550 2002-11-22  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/safe-read.h: Assume C89. Add comments.
59553         (safe_read): Change return type to size_t.
59554         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59555         byte counts > SSIZE_MAX correctly.
59556         * lib/safe-write.h: New file.
59557         * lib/safe-write.c: New file.
59558         * lib/full-read.h: New file.
59559         * lib/full-read.c: New file.
59560         * lib/full-write.h: Assume C89. Add comments.
59561         * lib/full-write.c: Include safe-write.h.
59562         (full_write): Rewritten to use safe_write.
59563         Suggested by Jim Meyering and Paul Eggert.
59564
59565 2002-11-21  Jim Meyering  <jim@meyering.net>
59566
59567         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59568
59569         Merge in changes from the coreutils.
59570
59571         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59572         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59573         <stdint.h>.
59574         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59575         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59576         int.  Work more efficiently if X is the same width as uintmax_t.
59577         Do not compare X to -1, to avoid bogus compiler warning.
59578         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59579         Don't assume that f_frsize and f_bsize are the same type.
59580
59581         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59582         warning on FreeBSD.
59583
59584         * lib/makepath.c (make_path): Restore umask *before* creating the final
59585         component.
59586         (make_path): Minor reformatting.
59587
59588         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59589         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59590         HAVE_MALLOC/HAVE_REALLOC.
59591
59592         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59593         dummy ones.  At least on GNU/Linux systems, `auto' means something
59594         else.
59595         From Michael Stone.
59596
59597 2002-11-21  Bruno Haible  <bruno@clisp.org>
59598
59599         Remove case insensitive option matching.
59600         * lib/argmatch.h (argcasematch): Remove declaration.
59601         (ARGCASEMATCH): Remove macro.
59602         (__xargmatch_internal): Remove case_sensitive argument.
59603         (XARGMATCH): Update.
59604         (XARGCASEMATCH): Remove macro.
59605         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59606         case_sensitive argument.
59607         (argcasematch): Remove function.
59608         (__xargmatch_internal): Remove case_sensitive argument.
59609         (main): Use XARGMATCH instead of XARGCASEMATCH.
59610
59611         * lib/xmalloc.c: Change compile-time error message. Add comment about
59612         required autoconf version.
59613
59614 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59615
59616         Merge argmatch cleanups from Bison.  Assume C89.
59617
59618         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59619         Include stdlib.h, for EXIT_FAILURE.
59620         Always include <string.h>, since we assume C89.
59621         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59622         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59623         Include <stddef.h> instead, since it's all we need for size_t.
59624         (PARAMS): Remove.  All uses removed.
59625         (ARRAY_CARDINALITY): Do not bother to #undef.
59626         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59627         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59628         Remove unnecessary parentheses.
59629         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59630         Insert necessary parentheses.
59631         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59632         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59633
59634 2002-11-19  Bruno Haible  <bruno@clisp.org>
59635
59636         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59637         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59638
59639         * lib/mbswidth.h (PARAMS): Remove macro.
59640         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59641         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59642
59643         * lib/gcd.h (PARAMS): Remove macro.
59644         (gcd): Use ANSI C function declarations.
59645         * lib/gcd.c (gcd): Likewise.
59646
59647 2002-11-15  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/strcspn.c: Include <stddef.h>.
59650         (strcspn): Use ANSI C function declaration. Change return type to
59651         size_t. Use NULL.
59652         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59653         (strpbrk): Use NULL.
59654         * lib/strpbrk.h (PARAMS): Remove macro.
59655         (strpbrk): Use ANSI C function declaration.
59656         * lib/strstr.c: Don't include <sys/types.h>.
59657         * lib/strstr.h (PARAMS): Remove macro.
59658         (strstr): Use ANSI C function declarations.
59659
59660 2002-11-14  Karl Berry  <karl@gnu.org>
59661
59662         * config/mkinstalldirs: `do' on separate line, instead of
59663         `for var; do'.
59664
59665 2002-11-06  Bruno Haible  <bruno@clisp.org>
59666
59667         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59668         * lib/gcd.c (gcd): Likewise.
59669
59670 2002-11-05  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/gcd.h: New file, from gettext-0.11.5.
59673         * lib/gcd.c: New file, from gettext-0.11.5.
59674
59675 2002-11-05  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59678         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59679         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59680         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59681
59682         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59683         <libintl.h>.
59684         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59685         <libintl.h>.
59686
59687         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59688         * lib/human.c: Include gettext.h instead of <libintl.h>.
59689         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59690         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59691         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59692         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59693         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59694         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59695         (textdomain): Remove definition.
59696         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59697
59698         * lib/long-options.c: Remove include of <libintl.h> and definition of
59699         _.
59700         * lib/same.c: Remove include of <libintl.h> and definition of _.
59701
59702 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59703
59704         * lib/config.charset: A few additions for Solaris.
59705
59706 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59707
59708         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59709         * lib/localcharset.c (locale_charset): Declare as extern "C".
59710
59711 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59712
59713         * lib/config.charset: msdos in uk_UA uses CP1125.
59714
59715 2002-11-04  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59718         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59719         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59720         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59721         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59722
59723 2002-11-04  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/localcharset.c (locale_charset): Don't return an empty string.
59726
59727 2002-11-04  Bruno Haible  <bruno@clisp.org>
59728
59729         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59730         aliases.
59731
59732 2002-11-04  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/config.charset: Update for newest glibc. Add canonical names
59735         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59736
59737 2002-11-04  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/config.charset: Add support for NetBSD.
59740
59741 2002-11-04  Bruno Haible  <bruno@clisp.org>
59742
59743         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59744
59745 2002-11-01  Bruno Haible  <bruno@clisp.org>
59746
59747         * configure.in: Add AC_CONFIG_AUX_DIR call.
59748         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59749         test/Makefile.
59750         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59751
59752 2002-09-28  Karl Berry  <karl@gnu.org>
59753
59754         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59755         installed automake until the next release, since changes have been
59756         made.
59757
59758 2002-09-25  Karl Berry  <karl@gnu.org>
59759
59760         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59761         * lib/getopt*: copy from libc/posix.
59762         * lib/gettext.h: copy from gettext.
59763         * lib/.cppi-disable: add strdup.c, gettext.h.
59764
59765 2002-09-25  Karl Berry  <karl@gnu.org>
59766
59767         * config/srclist.txt: enable gettext.h check.
59768         * config/config.{guess,sub}: update from prep.
59769         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59770                 from automake 1.6.3.
59771         See srclist*.
59772
59773 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59774
59775         * regex.c (PATFETCH): Remove the translating fetch.
59776         (PATFETCH_RAW): Rename to PATFETCH.
59777         (set_image_of_range): New fun.
59778         (SET_RANGE_TABLE_WORK_AREA): Use it.
59779         (regex_compile): Don't translate the pattern chars so eagerly.
59780         Only do it when inserting an `exactn' bytecode or when handling
59781         a char-range.
59782         (mutually_exclusive_p): Avoid empty statement.
59783
59784 2002-07-06  Jim Meyering  <meyering@lucent.com>
59785
59786         * m4/README: Don't mention Makefile.am.in.
59787         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59788
59789 2002-07-01  Jim Meyering  <meyering@lucent.com>
59790
59791         * lib/c-stack.c: Include sys/time.h.
59792         From Volker Borchert.
59793
59794 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59795
59796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59797
59798 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59799
59800         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59801         New macro.  Use it uniformly instead of
59802         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59803         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59804         reported by Vin Shelton.
59805
59806 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59807
59808         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59809         Do not assume SA_SIGINFO behavior.
59810         Bug reported by Jim Meyering on NetBSD 1.5.2.
59811
59812 2002-06-22  Jim Meyering  <meyering@lucent.com>
59813
59814         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59816
59817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59818         now that configure.ac uses AC_GNU_SOURCE.
59819         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59820         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59821
59822         Update to latest tools.  Suggestions from Paul Eggert.
59823         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59824         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59825         * m4/fnmatch.m4: Likewise.
59826         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59827         to AC_HEADER_STDBOOL
59828
59829 2002-06-22  Jim Meyering  <meyering@lucent.com>
59830
59831         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59832         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59833
59834 2002-06-22  Jim Meyering  <meyering@lucent.com>
59835
59836         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59837
59838         * lib/exitfail.c, exitfail.h: Likewise.
59839         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59840
59841         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59842         of fnmatch.h.
59843         (EXTRA_DIST): Add fnmatch_loop.c.
59844         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59845
59846         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59847         * lib/fnmatch.c: Update from diffutils-2.8.2.
59848         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59849         * lib/fnmatch.h: Remove file.
59850
59851 2002-06-21  Jim Meyering  <meyering@lucent.com>
59852
59853         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59854         * m4/mbrtowc.m4: Likewise.
59855
59856         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59857         * m4/mbswidth.m4: Reflect name change:
59858         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59859         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59860
59861         * m4/lib-link.m4: Update from gettext-0.11.2.
59862         * m4/gettext.m4: Likewise.
59863
59864         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59865         From Alfred M. Szmidt.
59866
59867 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59868
59869         * lib/file-type.h: Report an error if neither S_ISREG nor
59870         S_IFREG is defined, instead of using a test specific to glibc
59871         2.2.  This should be safe, since POSIX requires S_ISREG and
59872         Unix Version 7 had S_IFREG.  We don't need to check for
59873         <sys/types.h> since we don't use any symbols that it defines.
59874
59875 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59876
59877         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59878         $@-t, so that each temporary file name is unique and valid in the first
59879         8 characters, for operation under DOS.
59880
59881 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59882
59883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59884
59885 2002-06-15  Jim Meyering  <meyering@lucent.com>
59886
59887         Work even with DJGPP 2.03, which lacks support for symlinks.
59888         From Richard Dawe.
59889         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59890         is defined.
59891         * lib/lchown.c (S_ISLNK): Likewise.
59892
59893 2002-06-15  Jim Meyering  <meyering@lucent.com>
59894
59895         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59896         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59897         have been included before this file.
59898
59899 2002-06-14  Jim Meyering  <meyering@lucent.com>
59900
59901         * lib/file-type.h: Use the version from diffutils-2.8.2.
59902         * lib/file-type.c: Likewise.
59903
59904 2002-06-07  Jim Meyering  <meyering@lucent.com>
59905
59906         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59907         They're needed at least for NetBSD 1.5.2.
59908         ($statxfs_includes): Include those same headers.
59909         ($statxfs_includes): Include sys/vfs.h if available.
59910         ($statxfs_includes): Likewise for sys/statvfs.h.
59911         Check for the following members in both structs statfs and statvfs:
59912         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59913
59914 2002-06-01  Jim Meyering  <meyering@lucent.com>
59915
59916         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59917         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59918
59919 2002-05-28  Jim Meyering  <meyering@lucent.com>
59920
59921         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59922         Reported by Volker Borchert.
59923
59924 2002-05-27  Jim Meyering  <meyering@lucent.com>
59925
59926         Fix a problem seen only on nonconforming systems whereby ls.c's
59927         use of localtime, and then of gettimeofday would cause trouble:
59928         the localtime call used to initialize rpl_gettimeofday's save
59929         mechanism would clobber ls's current local time information so
59930         that in any long listing the first file would always be listed
59931         with date 1970-01-01.  Analysis by Volker Borchert.
59932
59933         * lib/gettimeofday.c (localtime): Undefine.
59934         (rpl_localtime): New function.
59935
59936 2002-05-27  Jim Meyering  <meyering@lucent.com>
59937
59938         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59939         localtime.
59940
59941         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59942         use the replacement function; it wouldn't resolve at link time.
59943         Reported by Volker Borchert.
59944
59945 2002-05-22  Jim Meyering  <meyering@lucent.com>
59946
59947         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59948         file-type.h.
59949         * lib/file-type.h: New file.
59950         * lib/file-type.c (file_type): New file/function.  Extracted from
59951         diffutils.
59952
59953 2002-04-30  Jim Meyering  <meyering@lucent.com>
59954
59955         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59956
59957 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59958
59959         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59960
59961 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59962
59963         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59964         Do not check for alloca.h (no longer used) or stdbool.h (was never
59965         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59966
59967 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59968
59969         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59970
59971 2002-04-29  Jim Meyering  <meyering@lucent.com>
59972
59973         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59974         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59975         Use AC_FUNC_STRNLEN here instead.
59976
59977         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59978         With autoconf-2.53a, it's part of AC_PROG_CC.
59979
59980 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59981
59982         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59983         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59984
59985 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59986
59987         * lib/sig2str.h, lib/sig2str.c: New files.
59988         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59989
59990 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59991
59992         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59993         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59994         of 127, since 64 is the largest conceivable number for ancient
59995         nonstandard hosts.
59996         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59997
59998 2002-04-28  Jim Meyering  <meyering@lucent.com>
59999
60000         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60001
60002 2002-04-24  Jim Meyering  <meyering@lucent.com>
60003
60004         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60005         (jm_PREREQ): Use it.
60006
60007         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60008         mach/mach.h fcntl.h.
60009         Check for this function: setlocale.
60010
60011 2002-04-24  Jim Meyering  <meyering@lucent.com>
60012
60013         * lib/gettext.h: New file, from Gettext.
60014         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60015         (libfetish_a_SOURCES): Add gettext.h.
60016
60017 2002-04-16  Jim Meyering  <meyering@lucent.com>
60018
60019         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60020         ut_pid, ut_id, ut_exit.
60021
60022 2002-04-16  Jim Meyering  <meyering@lucent.com>
60023
60024         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60025         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60026         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60027
60028 2002-04-12  Jim Meyering  <meyering@lucent.com>
60029
60030         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60031         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60032         existence of the getmntinfo function.  Needed for Darwin 5.3.
60033
60034         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60035         This is necessary at least on Darwin 5.3.
60036
60037         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60038         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60039         strnlen.o in the library, and that makes some versions of ranlib
60040         object.
60041
60042 2002-04-12  Jim Meyering  <meyering@lucent.com>
60043
60044         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60045
60046 2002-04-09  Jim Meyering  <meyering@lucent.com>
60047
60048         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60049         to be more precise.  Rather than saying we're checking whether the
60050         function `works', say what we're testing.
60051         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60052         Reported by Bruno Haible.
60053
60054 2002-03-10  Jim Meyering  <meyering@lucent.com>
60055
60056         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60057         Suggestion from Santiago Vila.
60058
60059 2002-03-08  Jim Meyering  <meyering@lucent.com>
60060
60061         * lib/rename.c: Mention that this wrapper is needed also on
60062         mips-dec-ultrix4.4 systems.
60063
60064 2002-03-02  Jim Meyering  <meyering@lucent.com>
60065
60066         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60067         not HAVE_CLOCK_SETTIME.
60068
60069 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60070
60071         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60072         Check for clock_settime.
60073
60074 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60075
60076         * lib/nanosleep.h: Rename to....
60077         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60078
60079         * lib/gettime.c: New file.
60080         * lib/settime.c: New file.
60081         * lib/stime.c: Remove.
60082
60083         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60084         timespec.h.  Remove nanosleep.h.
60085
60086 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60087
60088         * m4/acl.m4: New file.
60089         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60090         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60091
60092 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60093
60094         * lib/acl.c, lib/acl.h: New files.
60095         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60096
60097 2002-02-24  Jim Meyering  <meyering@lucent.com>
60098
60099         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60100         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60101         cause trouble.  Reported by Nelson Beebe.
60102
60103 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60104
60105         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60106         compilers that don't know that xalloc_die never returns.
60107
60108 2002-02-20  Jim Meyering  <meyering@lucent.com>
60109
60110         * lib/getdate.c: Regenerate using bison-1.33.
60111
60112 2002-02-17  Jim Meyering  <meyering@lucent.com>
60113
60114         * config/config.guess (main): Don't use `head -1'; it's no longer
60115         portable. Use `sed 1q' instead.
60116
60117 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60118
60119         * m4/codeset.m4: Upgrade to gettext-0.11.
60120         * m4/gettext.m4: Upgrade to gettext-0.11.
60121         * m4/glibc21.m4: Upgrade to gettext-0.11.
60122         * m4/iconv.m4: Upgrade to gettext-0.11.
60123         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60124         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60125         * m4/lib-ld.m4: New file, from gettext-0.11.
60126         * m4/lib-link.m4: New file, from gettext-0.11.
60127         * m4/lib-prefix.m4: New file, from gettext-0.11.
60128         * m4/progtest.m4: Upgrade to gettext-0.11.
60129
60130 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60131
60132         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60133         (jm_PREREQ): Use it.
60134
60135 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60136
60137         * lib/posixver.c, lib/posixver.h: New files.
60138         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60139
60140 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60141             Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60144         (fwrite_success_callback): New declaration.
60145         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60146         print_unicode_char. Call failure callback instead of error.
60147         (fwrite_success_callback): New function.
60148         (exit_failure_callback): New function.
60149         (fallback_failure_callback): New function.
60150         (print_unicode_char): Call unicode_to_mb.
60151
60152 2002-01-26  Jim Meyering  <meyering@lucent.com>
60153
60154         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60155         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60156
60157 2002-01-26  Jim Meyering  <meyering@lucent.com>
60158
60159         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60160
60161 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60162
60163         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60164
60165 2002-01-22  Jim Meyering  <meyering@lucent.com>
60166
60167         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60168         Otherwise, some versions of automake would omit the rule that makes
60169         Makefile from Makefile.in.
60170
60171 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60172
60173         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60174         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60175         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60176         (memcoll): Set errno to zero if there is no error.
60177
60178         * lib/quotearg.c (quotearg_buffer_restyled):
60179         Fix bug with quoting buffers containing NUL when backslashing escapes.
60180         This bug was exposed by the other changes in this patch.
60181         (quotearg_n_options): New arg ARGSIZE.
60182         All callers changed.
60183         (quoting_options_from_style): New function.
60184         (quotearg_n_style): Use it.
60185         (quotearg_n_style_mem): New function.
60186
60187         * lib/quotearg.h (quotearg_n_style_mem): New function.
60188
60189 2002-01-19  Jim Meyering  <meyering@lucent.com>
60190
60191         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60192         Remove useless quotes: DF_PROG="df".
60193         * m4/strnlen.m4: New file.
60194
60195 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60196
60197         * lib/backupfile.c (ISDIGIT): Comment fix.
60198         * lib/getdate.y (ISDIGIT): Likewise.
60199         * lib/posixtm.c (ISDIGIT, year): Likewise.
60200         * lib/strverscmp.c (ISDIGIT): Likewise.
60201         * lib/userspec.c (ISDIGIT): Likewise.
60202
60203 2002-01-16  Jim Meyering  <meyering@lucent.com>
60204
60205         * lib/getdate.y: Add three semicolons, each just before a closing
60206         brace. Bison (as of version 1.31) no longer papers over that mistake.
60207
60208 2002-01-05  Jim Meyering  <meyering@lucent.com>
60209
60210         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60211
60212 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60213
60214         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60215         not silently exit merely because the output buffer happens to
60216         have nothing pending.
60217
60218 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60219
60220         See the big note in ../ChangeLog.
60221         * lib/human.c (suffixes): Prefer K to k for 1024.
60222         (generate_suffix_backwards): New function.
60223         (human_readable_inexact): Use it.
60224         * lib/xstrtol.c (__xstrtol): If there is no number but there
60225         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60226         Accept 'K' as well as 'k'.
60227
60228 2001-12-15  Jim Meyering  <meyering@lucent.com>
60229
60230         * lib/regex.h (__restrict_arr): Update from libc.
60231
60232         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60233         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60234         (STREQ): Define.
60235
60236 2001-12-14  Jim Meyering  <meyering@lucent.com>
60237
60238         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60239         Suggestion from Bruno Haible.
60240
60241 2001-12-10  Jim Meyering  <meyering@lucent.com>
60242
60243         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60244         xrealloc, Instead, include "xalloc.h".
60245         (initbuffer): Don't cast xmalloc return value to char*.
60246         (readline): Reword comment.
60247         Don't cast xrealloc return value to char*
60248         Return NULL, not 0.
60249
60250 2001-12-09  Jim Meyering  <meyering@lucent.com>
60251
60252         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60253         about `signed and unsigned type in conditional expression'.
60254         * lib/posixtm.c (posix_time_parse): Likewise.
60255
60256         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60257
60258         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60259         to avoid a pedantic warning.
60260
60261         * lib/getstr.c: Don't include assert.h.
60262         (getstr): Remove warning-evoking assertions.
60263         Return -1 if offset parameter is out of bounds.
60264         Change the type of a local from int to size_t.
60265
60266         * lib/strftime.c (my_strftime_localtime_r): Include this function
60267         definition in the `#if ! HAVE_TM_GMTOFF' block.
60268
60269         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60270         Include xalloc.h instead.
60271
60272 2001-12-02  Jim Meyering  <meyering@lucent.com>
60273
60274         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60275         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60276         included.
60277
60278         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60279         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60280
60281 2001-11-30  Akim Demaille  <akim@epita.fr>
60282
60283         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60284         before being defined.
60285
60286 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60287
60288         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60289         First arg is int, not unsigned.
60290         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60291         (SIZE_MAX, UINT_MAX): New macros.
60292         (quotearg_n_options): Abort if N is negative.
60293         Avoid overflow check on hosts where size_t is 64 bits and int
60294         is 32 bits, as overflow is impossible there.
60295         Fix off-by-one typo that caused unnecessary reallocation.
60296
60297 2001-11-27  Jim Meyering  <meyering@lucent.com>
60298
60299         * lib/tempname.c: Merge with version from libc.
60300         * lib/regex.c: Likewise.
60301
60302         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60303         systems for which STDC_HEADERS is 0, it was not included, resulting in
60304         a warning about an integer-to-pointer conversion problem with getenv.
60305         Reported by Volker Borchert.
60306
60307 2001-11-26  Jim Meyering  <meyering@lucent.com>
60308
60309         * lib/gtod.h: Remove file.
60310         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60311         * lib/gettimeofday.c: Don't include gtod.h.
60312         (GTOD_init): Remove function.
60313         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60314         Suggestion from Volker Borchert.
60315
60316 2001-11-23  Jim Meyering  <meyering@lucent.com>
60317
60318         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60319         it.
60320         * lib/hash.c (struct hash_table): Define it here instead.
60321
60322 2001-11-22  Jim Meyering  <meyering@lucent.com>
60323
60324         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60325
60326 2001-11-20  Jim Meyering  <meyering@lucent.com>
60327
60328         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60329         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60330
60331 2001-11-19  Jim Meyering  <meyering@lucent.com>
60332
60333         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60334         directory.  Use "conftestXXXXXX" as the template.
60335         Suggestion from Paul Eggert.
60336
60337         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60338         immediately, so the test doesn't mistakenly hit the max-open-files
60339         limit.
60340
60341 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60342
60343         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60344         (TEMPORARIES): New macro.
60345         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60346         removes an artificial limitation (e.g. HP-UX 10.20, where
60347         TMP_MAX is 17576).
60348
60349 2001-11-18  Jim Meyering  <meyering@lucent.com>
60350
60351         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60352
60353 2001-11-18  Jim Meyering  <meyering@lucent.com>
60354
60355         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60356         on SunOS 4.
60357
60358         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60359         files will be created before anything else.
60360
60361 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60362
60363         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60364         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60365
60366 2001-11-17  Jim Meyering  <meyering@lucent.com>
60367
60368         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60369         Prompted by a report from Bob Proulx.
60370
60371         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60372         Instead, require UTILS_FUNC_MKSTEMP.
60373
60374 2001-11-17  Jim Meyering  <meyering@lucent.com>
60375
60376         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60377         Now, that's done as part of AC_FUNC_STRTOD.
60378
60379 2001-11-17  Jim Meyering  <meyering@lucent.com>
60380
60381         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60382         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60383         rather than group writable.  Patch by Juan F. Codagnone.
60384
60385         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60386         xrealloc, Instead, include "xalloc.h".
60387
60388         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60389         Remove explicit declarations of xmalloc, xrealloc,
60390         and xstrdup.  Instead, include "xalloc.h".
60391
60392         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60393         unlocked-io.h.
60394         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60395         Likewise.
60396         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60397
60398         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60399         Reported by Padraig Brady.
60400
60401         * lib/mkstemp.c: #undef mkstemp.
60402         Include config.h.
60403         (rpl_mkstemp): Rename from mkstemp.
60404         Protoize.
60405
60406 2001-11-16  Jim Meyering  <meyering@lucent.com>
60407
60408         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60409         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60410         determine the amount of total physical memory, use pstat_getstatic.
60411         HPUX-11 doesn't define _SC_PHYS_PAGES.
60412         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60413         If sysconf couldn't be used to determine the amount of available
60414         physical memory, use both pstat_getstatic and pstat_getdynamic.
60415         Based on a patch from Bob Proulx.
60416
60417 2001-11-10  Jim Meyering  <meyering@lucent.com>
60418
60419         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60420         (jm_PREREQ): Use it.
60421
60422 2001-11-09  Jim Meyering  <meyering@lucent.com>
60423
60424         * m4/jm-macros.m4: Require autoconf-2.52f.
60425         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60426         Use these AC_-prefixed names, not the AM_-prefixed ones.
60427
60428         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60429
60430 2001-11-05  Jim Meyering  <meyering@lucent.com>
60431
60432         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60433
60434 2001-11-04  Jim Meyering  <meyering@lucent.com>
60435
60436         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60437         $DEFS.
60438
60439 2001-11-03  Jim Meyering  <meyering@lucent.com>
60440
60441         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60442         of AC_DEFUN.
60443
60444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60445         know the name of the variable in the macro definition.
60446
60447 2001-11-03  Jim Meyering  <meyering@lucent.com>
60448
60449         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60450         in argmatch_to_argument call.
60451
60452         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60453         argument.
60454
60455         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60456         e.g., a fault due to an attempt to free a NULL pointer.
60457
60458 2001-11-01  Jim Meyering  <meyering@lucent.com>
60459
60460         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60461         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60462
60463 2001-11-01  Jim Meyering  <meyering@lucent.com>
60464
60465         * lib/dirfd.c, lib/dirfd.h: New files.
60466         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60467
60468         * lib/hash.c (hash_print) [TESTING]: Clean up.
60469
60470 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60471
60472         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60473         to avoid a warning if -Wall.
60474
60475 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60476
60477         * README: New file
60478         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60479         (per RMS's instructions, this is now the canonical source)
60480         * lgpl/, gpl/: New directories.
60481
60482 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60483
60484         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60485
60486 2001-10-21  Jim Meyering  <meyering@lucent.com>
60487
60488         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60489         this code would end up calling gettext even in packages built
60490         with --disable-nls.
60491         * lib/getopt.c (_): Likewise.
60492         * lib/regex.c (_): Likewise.
60493
60494 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60495
60496         * m4/error.m4 (jm_PREREQ_ERROR):
60497         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60498         AC_FUNC_STRERROR_R does that.
60499         Check for strerror declaration.
60500
60501         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60502         are supposed to have them these days.
60503         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60504         Merge changes from latest Autoconf CVS.
60505         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60506         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60507         POSIX decided to standardize on the int flavor of strerror_r.
60508
60509 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60510
60511         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60512         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60513         Use strerror_r that is only a macro, even if it is not a function.
60514         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60515         (private_strerror): Use prototypes, not old-style function definition.
60516         (print_errno_message): New function.
60517         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60518         char*-flavored one.
60519         (error_tail, error, error_at_line): Use it.
60520
60521 2001-10-11  Jim Meyering  <meyering@lucent.com>
60522
60523         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60524         and quote_n (1, ... to avoid clobbering a buffer.
60525
60526 2001-10-05  Jim Meyering  <meyering@lucent.com>
60527
60528         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60529         hash-pjw.h.
60530         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60531         * lib/hash-pjw.h: New file.
60532
60533 2001-09-30  Jim Meyering  <meyering@lucent.com>
60534
60535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60536         `struct fsstat' has the `f_fstypename' member.
60537         Use that to define FS_TYPE, which is now used to make
60538         the getfsstat link test tighter.
60539
60540 2001-09-30  Jim Meyering  <meyering@lucent.com>
60541
60542         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60543         Include <sys/ucred.h>, for Apple Darwin.
60544         Include sys/mount.h and sys/fs_types.h only if available.
60545         (FS_TYPE): Define.
60546         (read_filesystem_list): Use FS_TYPE.
60547
60548 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60549
60550         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60551         a boolean context.
60552
60553 2001-09-29  Jim Meyering  <meyering@lucent.com>
60554
60555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60556         [one-argument getmntent function]): Include stdio.h before mntent.h.
60557         SunOS 4.1.x needs it for the declaration of `FILE'.
60558         Patch by Volker Borchert.
60559
60560         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60561         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60562         sys/fs_types.h, and make the link-test for getfsstat guard #include
60563         directives with appropriate #if HAVE_*_H tests so that we can
60564         detect getfsstat on Apple Darwin1.3.7 systems.
60565         Reported by Nelson Beebe.
60566         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60567
60568 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60569
60570         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60571         #defines strtoimax.  Also treat the other strto* functions
60572         like strtoimax.
60573
60574         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60575         Check for strtoul and strtoumax,
60576         as those declarations are made even in the signed case.
60577         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60578         Likewise, for strtol and strtoimax.
60579
60580 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60581
60582         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60583         #defines strtoimax.  Also treat the other strto* functions
60584         like strtoimax.
60585
60586         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60587         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60588         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60589
60590 2001-09-26  Jim Meyering  <meyering@lucent.com>
60591
60592         Most macros in unlocked-io.h had the wrong number of arguments.
60593         * lib/gen-uio: New script.
60594         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60595         * lib/unlocked-io.hin: Remove file.
60596         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60597         rather than trying to embed it here.
60598         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60599         Reported by Padraig Brady.
60600
60601 2001-09-25  Volker Borchert  <bt@teknon.de>
60602
60603         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60604         `result'.
60605
60606 2001-09-24  Jim Meyering  <meyering@lucent.com>
60607
60608         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60609
60610 2001-09-23  Jim Meyering  <meyering@lucent.com>
60611
60612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60613         instead of the mere test for existence of mntent.h.  The latter
60614         would get a false-positive on AIX 3.4 systems.
60615         In the outer getmntent if-block, don't die if neither of the getmntent
60616         tests succeeds.  Instead, just fall through and continue with the
60617         remaining tests.
60618
60619 2001-09-23  Jim Meyering  <meyering@lucent.com>
60620
60621         * lib/mountlist.c: Remove useless parentheses in #if directives.
60622         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60623         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60624
60625 2001-09-22  Jim Meyering  <meyering@lucent.com>
60626
60627         * m4/gettext.m4: New file.  From gettext.
60628         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60629         * m4/progtest.m4: Likewise
60630         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60631         * m4/glibc21.m4: Likewise.
60632
60633         * m4/libintl.m4: Remove.  No longer used.
60634
60635 2001-09-22  Jim Meyering  <meyering@lucent.com>
60636
60637         * lib/localcharset.c: Update from latest gettext.
60638         * lib/config.charset: Likewise.
60639
60640 2001-09-20  Jim Meyering  <meyering@lucent.com>
60641
60642         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60643         strtoimax.
60644         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60645         strtoumax.
60646
60647 2001-09-20  Jim Meyering  <meyering@lucent.com>
60648
60649         * lib/xstrtol.c (strtoimax): Guard declaration with
60650         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60651         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60652         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60653         (strtoumax): Likewise, for completeness (it wasn't necessary).
60654
60655 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60656
60657         * lib/strtoimax.c (HAVE_LONG_LONG):
60658         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60659         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60660         to work around bug in IBM C compiler.
60661
60662 2001-09-17  Jim Meyering  <meyering@lucent.com>
60663
60664         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60665         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60666         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60667         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60668         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60669         whenever the right hand side need not be expanded by the shell.
60670
60671 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60672
60673         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60674         library.  It's not correct, as some older glibcs are buggy.
60675         fnmatch wasn't fixed until glibc 2.2.
60676
60677         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60678         special shell magic here.
60679
60680 2001-09-16  Jim Meyering  <meyering@lucent.com>
60681
60682         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60683         * m4/jm-macros.m4: Require it.
60684
60685 2001-09-16  Jim Meyering  <meyering@lucent.com>
60686
60687         * lib/mkdir.c: New file.
60688
60689 2001-09-15  Jim Meyering  <meyering@lucent.com>
60690
60691         * m4/jm-macros.m4: Check for help2man.
60692
60693 2001-09-11  Jim Meyering  <meyering@lucent.com>
60694
60695         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60696         The body, by Paul Eggert, was moved here from configure.in.
60697         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60698
60699 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60700
60701         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60702         (jm_PREREQ): Use it.
60703
60704 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60705
60706         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60707         Use ssize_t, not int, to store result of readlink.
60708         Check for ssize_t overflow as well as size_t overflow,
60709         as POSIX says the result of readlink is implementation-defined
60710         when ssize_t overflows.
60711         Remove unnecessary cast to char*.
60712         Use free+malloc instead of realloc, as the storage doesn't need
60713         to be preserved and it's clearer and can be more efficient that way.
60714         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60715         * lib/xreadlink.h (xreadlink): Update prototype.
60716
60717 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60718
60719         * lib/xgetcwd.c: Revert some of the previous change; intead,
60720         fix the HAVE_GETCWD_NULL code to behave more like the
60721         !HAVE_GETCWD_NULL code used to.
60722
60723         Include "xalloc.h".
60724         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60725         invoke xalloc_die.
60726
60727 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60728
60729         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60730         sys/param.h, as pathmax.h includes them.
60731
60732 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60733
60734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60735         (jm_PREREQ_XGETCWD): New macro.
60736
60737         * m4/getcwd.m4: New file.
60738
60739 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60740
60741         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60742         like the HAVE_GETCWD_NULL code.
60743         Include pathmax.h if not HAVE_GETCWD.
60744         Do not include xalloc.h.
60745         (INITIAL_BUFFER_SIZE): New symbol.
60746         Do not use xmalloc / xrealloc, since the caller is responsible for
60747         handling errors.  Preserve errno around `free' during failure.
60748         Do not overrun buffer when using getwd.
60749
60750 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60751
60752         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60753         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60754         getcwd (NULL, 0).
60755
60756 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60757
60758         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60759         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60760         spotted by Jim Meyering.
60761
60762 2001-09-03  Jim Meyering  <meyering@lucent.com>
60763
60764         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60765         failure.
60766
60767 2001-09-02  Jim Meyering  <meyering@lucent.com>
60768
60769         * lib/error.c: Update from GNU libc.
60770
60771 2001-09-01  Jim Meyering  <meyering@lucent.com>
60772
60773         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60774         Used by df.
60775
60776 2001-09-01  Jim Meyering  <meyering@lucent.com>
60777
60778         * lib/xreadlink.c: New file.
60779         * lib/xreadlink.h: New file.
60780         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60781         xreadlink.h.
60782
60783         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60784         doesn't conflict with sparc Solaris 7's definition in
60785         /usr/include/sys/int_types.h.
60786
60787         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60788         files.
60789         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60790         and strncasecmp as r-values.  Unixware didn't have declarations.
60791
60792 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60793
60794         * lib/xstrtol.h: Add copyright notice.
60795         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60796         LONGINT_INVALID_SUFFIX_CHAR.
60797
60798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60799
60800         * lib/xstrtol.c (strtoimax): New decl.
60801
60802 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60803
60804         * lib/xgetcwd.c: Don't include pathmax.h.
60805         Include stdlib.h and unistd.h if available.
60806         Include xalloc.h.
60807         (xmalloc, xstrdup, free): Remove decls.
60808         (xgetcwd): Don't assume sizes fit in unsigned.
60809         Check for overflow when computing sizes.
60810         Simplify reallocation code.
60811
60812 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60813
60814         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60815         a directory's st_size can have an arbitrary value, so the old
60816         usage could waste an arbitrary amount of memory.  All uses
60817         changed.
60818         * lib/savedir.h: Update prototype.
60819
60820 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60821
60822         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60823
60824         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60825         old strtoimax.c.
60826
60827         Also, make the following further changes to make this file's
60828         configuration more similar to that of strtol.c:
60829         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60830         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60831         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60832         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60833         changed to signed values.
60834
60835         And make the following changes as well:
60836         Fix copyright notice, as 1999 was missing.
60837         (verify): New macro.
60838         (strtoimax): Check sizes at compile-time, not run-time.
60839         Prefer strtol to strtoll if both work.
60840         (main): Remove; it was not that useful and was a pain to maintain.
60841
60842         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60843
60844 2001-08-31  Jim Meyering  <meyering@lucent.com>
60845
60846         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60847         Use an initial, malloc'd, buffer of length 128 rather than
60848         a statically allocated one of length 1024.
60849
60850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60851
60852         Simplify code, partly by assuming autoconf 2.52 semantics.
60853
60854         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60855
60856         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60857         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60858         All uses removed.
60859         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60860         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60861         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60862         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60863         jm_AC_HEADER_INTTYPES_H.
60864         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60865
60866         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60867
60868         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60869         Quote first arg of AC_DEFUN.
60870         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60871         since they are needed to parse the include file even if we need
60872         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60873         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60874         but with opposite signedness.
60875
60876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60877
60878         Merge 'exclude' changes from tar 1.13.22.
60879         This fixes one or two unlikely storage allocation overflow bugs,
60880         but doesn't change user-visible behavior otherwise.
60881
60882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60883
60884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60885         (jm_PREREQ_EXCLUDE): New macro.
60886
60887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60888
60889         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60890         tm to be declared.
60891
60892 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60893
60894         * lib/hash.c: Remove '2001' from copyright notice.
60895
60896 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60897
60898         * lib/full-write.h: New file.
60899         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60900         * lib/full-write.c: Correct credits, as cccp.c no longer
60901         exists and anyway it was so heavily changed from the old cccp
60902         code as to be unrecognizable.  Include full-write.h.
60903         (full_write) Return size_t, with short writes meaning failure.
60904         All callers changed.  This fixes a bug with large buffers
60905         on 64-bit hosts.
60906         * lib/utime.c: Include full-write.h.
60907
60908 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60909
60910         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60911         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60912         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60913         Include if available.
60914         (<xalloc.h>): Include
60915         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60916         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60917         collide with FNM macros.
60918         (struct patopts): New struct.
60919         (struct exclude): Use it, as exclude patterns now come with options.
60920         (new_exclude): Support above changes.
60921         (new_exclude, add_exclude_file):
60922         Initial size must now be a power of two to simplify overflow checking.
60923         (free_exclude, fnmatch_no_wildcards): New function.
60924         (excluded_filename): No longer requires options arg, as the options
60925         are determined by add_exclude.  Now returns bool, not int.
60926         (excluded_filename, add_exclude):
60927         Add support for the fancy new exclusion options.
60928         (add_exclude, add_exclude_file): Now takes int options arg.
60929         Check for arithmetic overflow when computing sizes.
60930         (add_exclude_file): xrealloc might modify errno, so don't
60931         realloc until after errno might be used.
60932
60933         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60934         New macros.
60935         (free_exclude): New decl.
60936         (add_exclude, add_exclude_file): Now takes int options arg.
60937         (excluded_filename): No longer requires options arg, as the options
60938         are determined by add_exclude.  Now returns bool, not int.
60939
60940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60941
60942         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60943
60944 2001-08-27  Jim Meyering  <meyering@lucent.com>
60945
60946         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60947
60948         * lib/version-etc.c (N_): Remove definition.
60949         Revert most of last change.
60950         Instead, simply don't mark the `Copyright...' string for translation.
60951         Based on advice from Paul Eggert.
60952
60953         * lib/strtoxmax.c: Tweak comment.
60954
60955 2001-08-26  Jim Meyering  <meyering@lucent.com>
60956
60957         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60958
60959         * m4/xstrtoimax.m4: New file.
60960         * m4/xstrtoumax.m4: Add comments explaining why we
60961         AC_REPLACE_FUNCS(strtol).
60962
60963 2001-08-26  Jim Meyering  <meyering@lucent.com>
60964
60965         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60966         of copyright with `%s' so translators don't get an untranslated
60967         message in 2002.
60968         (COPYRIGHT_YEAR): Define.
60969         (version_etc): Use fprintf rather than fputs.
60970         Suggestion from Ulrich Drepper.
60971
60972         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60973
60974         * lib/strtoll.c: New file, from GNU libc.
60975         * lib/xstrtoimax.c: New file.
60976
60977         * lib/xstrtol.h: Add xstrtoimax.
60978         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60979         * lib/strtoimax.c: New file.  Likewise, but first define
60980         STRTOUXMAX_SIGNED.
60981
60982         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60983         ...
60984         * lib/strtoxmax.c: ... then renamed to this.
60985
60986 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60987
60988         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60989         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60990         (jm_AC_TYPE_INTMAX_T): New macro.
60991         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60992
60993         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60994
60995         * m4/longlong.m4: Renamed from ulonglong.m4.
60996         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60997         * m4/uintmax_t.m4: Removed.
60998
60999 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61000
61001         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61002         Port to Solaris 8, where 'sed' requires a space after the 'r'
61003         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61004         Redirect output to $tmp just once.
61005
61006 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61007
61008         * lib/addext.c (<errno.h>): Include.
61009         (errno): Declare if not defined.
61010         (addext): Work correctly when pathconf returns -1 and leaves
61011         errno alone because there is no limit.  Also, work even if
61012         pathconf returns a value greater than SIZE_MAX.
61013
61014 2001-08-12  Jim Meyering  <meyering@lucent.com>
61015
61016         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61017         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61018         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61019         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61020         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61021         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61022         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61023         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61024         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61025         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61026         utime.m4, utimes.m4, xstrtoumax.m4:
61027         Quote the first argument in each use of AC_DEFUN.
61028
61029 2001-08-12  Jim Meyering  <meyering@lucent.com>
61030
61031         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61032         Simply `return getcwd (NULL, 0);'.
61033         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61034         Use 1300 as initial value for length, not PATH_MAX.
61035
61036         * lib/pathmax.h: Clean up cpp syntax.
61037
61038 2001-08-12  Jim Meyering  <meyering@lucent.com>
61039
61040         * lib/gettimeofday.c: New file.
61041         * lib/gtod.h: New file.
61042         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61043
61044 2001-08-05  Jim Meyering  <meyering@lucent.com>
61045
61046         * m4/jm-macros.m4: Require autoconf-2.52.
61047
61048 2001-08-04  Jim Meyering  <meyering@lucent.com>
61049
61050         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61051         stmt, to get in sync with glibc.
61052
61053 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61054
61055         The following changes are from gettext 0.10.39 as maintained by
61056         Bruno Haible.
61057
61058         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61059         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61060         with inverted sense.  All uses changed.
61061
61062         * lib/mbswidth.c: Don't include <limits.h>.
61063         Include <stdlib.h> and <string.h> unconditionally.
61064         (iswcntrl, mbsinit, ISCNTRL): New macros.
61065         (mbsnwidth): Use K&R style function declarations.
61066         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61067         can optimize it when MB_CUR_MAX == 1.
61068         The width of control characters is zero, not 1.
61069
61070 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61071
61072         The following changes are from gettext 0.10.39 as maintained by
61073         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61074
61075         * m4/codeset.m4: Upgrade to serial AM1.
61076         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61077         all uses changed.  Quote first arg of AC_DEFUN.
61078         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61079
61080         * m4/iconv.m4: Upgrade to serial AM2.
61081         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61082         Add --with-libconv-prefix.
61083         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61084         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61085         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61086         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61087         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61088
61089         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61090         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61091         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61092         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61093         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61094         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61095         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61096         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61097         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61098
61099         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61100         string.h any more.
61101
61102         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61103         not the default value.
61104
61105         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61106         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61107         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61108         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61109         Also check for iswcntrl, used for wcwidth fallback.
61110         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61111         to Autoconf 2.13.
61112
61113 2001-08-03  Jim Meyering  <meyering@lucent.com>
61114
61115         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61116         as it was in the original.  Reported by Paul Eggert.
61117
61118 2001-07-16  Jim Meyering  <meyering@lucent.com>
61119
61120         * m4/gettimeofday.m4: New file.
61121         Prompted by a report from Bernhard Baehr.
61122
61123 2001-07-15  Jim Meyering  <meyering@lucent.com>
61124
61125         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61126         stuff. Now it's in ../Makefile.cfg.
61127
61128 2001-07-15  Jim Meyering  <meyering@lucent.com>
61129
61130         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61131         (BUILT_SOURCES): Add unlocked-io.h.
61132         (io_functions): Define.
61133         (unlocked-io.h): New rule.
61134         (DISTCLEANFILES): Add unlocked-io.h.
61135         (all-local): Depend on unlocked-io.h, to ensure it is created.
61136
61137         * lib/unlocked-io.hin: New file
61138
61139         * lib/regex.c: Update from glibc.
61140
61141 2001-07-05  Jim Meyering  <meyering@lucent.com>
61142
61143         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61144         recommendation.
61145         (libfetish_a_SOURCES): Put all .h files here instead.
61146         Remove a thus-exposed (better checks in automake) duplicate and
61147         two unnecessary .h files.
61148
61149 2001-07-04  Jim Meyering  <meyering@lucent.com>
61150
61151         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61152         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61153         distcheck failure.
61154
61155 2001-07-02  Jim Meyering  <meyering@lucent.com>
61156
61157         The following changes were prompted by suggestions from Bruno Haible.
61158
61159         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61160         is now generated.
61161         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61162         definition of EXTRA_DIST.
61163         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61164         ensure that the generated file is created/updated whenever the list
61165         of $(unlocked_functions) is changed.
61166         (jm-glibc-io.m4): New rule.
61167         (unlocked-io.h): New rule -- currently unused.
61168
61169 2001-06-24  Jim Meyering  <meyering@lucent.com>
61170
61171         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61172         unmatched right bracket, rather than kludging it with an extra,
61173         falsely-matching quote in a comment.  Patch by Akim Demaille.
61174
61175 2001-06-11  Jim Meyering  <meyering@lucent.com>
61176
61177         * lib/regex.c: Update from GNU libc.
61178
61179 2001-05-27  Jim Meyering  <meyering@lucent.com>
61180
61181         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61182         Check for ut_type in struct utmp.
61183
61184 2001-05-27  Jim Meyering  <meyering@lucent.com>
61185
61186         * lib/readutmp.h (UT_TYPE): Define.
61187
61188 2001-05-24  Jim Meyering  <meyering@lucent.com>
61189
61190         * lib/argmatch.c: Include "quote.h".
61191         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61192         quote function.  Reported by Göran Uddeborg.
61193
61194 2001-05-22  Jim Meyering  <meyering@lucent.com>
61195
61196         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61197         now that we use the package-supplied version unconditionally.
61198         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61199
61200 2001-05-21  Jim Meyering  <meyering@lucent.com>
61201
61202         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61203         shell syntax errors.
61204
61205 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61206
61207         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61208
61209 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61210
61211         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61212         Don't bother to check library strftime, since
61213         we'll be using our own my_strftime function anyway.
61214         Define my_strftime instead of strftime.
61215
61216 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61217
61218         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61219         which is not yet declared.
61220
61221 2001-05-15  Jim Meyering  <meyering@lucent.com>
61222
61223         * m4/regex.m4: Use proper quoting so brackets appear in the test
61224         program.
61225         Reported by, and with help from, Bruno Haible.
61226
61227 2001-05-13  Jim Meyering  <meyering@lucent.com>
61228
61229         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61230         undefined.
61231
61232 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61233
61234         dirname code cleanup.  base_name now behaves more compatibly
61235         with POSIX basename when given file names that have trailing
61236         slashes, and similarly for dir_name.  Add new primitives
61237         base_len and dir_len.  Put the directory-name-related decls
61238         into dirname.h.
61239
61240         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61241         * lib/backupfile.c (base_name): Likewise.
61242         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61243         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61244         * lib/makepath.c (strip_trailing_slashes): Likewise.
61245         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61246         ISSLASH): Likewise.
61247         * lib/rename.c (strip_trailing_slashes): Likewise.
61248         * lib/same.c (base_name): Likewise.
61249         * lib/stripslash.c (ISSLASH): Likewise.
61250
61251         * lib/addext.c: Include <dirname.h> after size_t is defined.
61252         * lib/backupfile.c: Likewise.
61253
61254         * lib/addext.c (addext): Use base_len to trim redundant
61255         trailing slashes instead of doing it ourselves.
61256         But do not trim the last slash if it is not redundant.
61257
61258         * lib/backupfile.c (find_backup_file_name,
61259         max_backup_version): Use base_len instead of rolling it ourselves.
61260         Handle the case of "" and (on DOS) "C:" correctly.
61261
61262         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61263         needed. Include <string.h>, <dirname.h>.
61264         (base_name): Allow file names ending in slashes, other than names
61265         that are all slashes.  In this case, return the basename followed
61266         by the slashes.  This is more general, and can be used in places
61267         where the original base_name purposely had an assertion failure.
61268         (base_len): New function.
61269
61270         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61271         Do not include <assert.h>; no longer needed.
61272         Include xalloc.h.
61273         (memrchr): Remove decl.
61274         (dir_name_r): Remove.
61275         (dir_len): Renamed from dirlen.  All callers changed.
61276         Rewrite in terms of base_name, for simplicity and consistency.
61277         (dir_name): Never return NULL.  All callers changed.
61278         Do not include <stdlib.h> in test program; no longer needed.
61279         return 0; is fine for test program.
61280
61281         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61282         New macros.
61283         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61284
61285         * lib/path-concat.c (path_concat): Use base_len to compute
61286         base length, not strlen; this means we cannot rely on memcpy
61287         to null-terminate.
61288
61289         * lib/same.c (STREQ): Remove.
61290         (same_name): Handle the case where the basename ends in trailing '/'.
61291
61292         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61293         a slash was stripped.  Do not strip the last slash after a
61294         file system prefix.
61295
61296 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61297
61298         * lib/Makefile.am (libfetish_a_SOURCES):
61299         Add strftime.c, since we now compile it on all hosts.
61300
61301         * lib/strftime.c (my_strftime):
61302         Define to nstrftime if emacs, but only if my_strftime is not defined.
61303         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61304         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61305         Add one more extra argument: a nanoseconds value.
61306         All uses changed.
61307         (ns): New macro.
61308         (my_strftime function): Add %N format.
61309         (emacs_strftimeu): Renamed from emacs_strftime,
61310         with extra ut argument.
61311
61312 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61313
61314         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61315
61316 2001-04-21  Jim Meyering  <meyering@lucent.com>
61317
61318         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61319         doesn't interfere.
61320
61321 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61322
61323         * m4/ftruncate.m4: Check for chsize.
61324         Link with ftruncate.o unconditionally if ftruncate is missing.
61325         This was required when cross-compiling to i586-mingw32msvc.
61326
61327 2001-04-08  Jim Meyering  <meyering@lucent.com>
61328
61329         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61330         recomputed; that's necessary when the offset spans a DST transition.
61331         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61332
61333 2001-04-02  Jim Meyering  <meyering@lucent.com>
61334
61335         * lib/regex.h, regex.c: Update from GNU libc.
61336
61337 2001-03-24  Jim Meyering  <meyering@lucent.com>
61338
61339         * m4/jm-macros.m4: Require autoconf-2.49d.
61340
61341 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61342
61343         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61344
61345 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61346
61347         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61348
61349 2001-03-17  Jim Meyering  <meyering@lucent.com>
61350
61351         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61352         now that the version in autoconf is equivalent.
61353         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61354
61355         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61356         Suggestion from Akim Demaille.
61357
61358         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61359         (jm_PREREQ_TEMPNAME): New function.
61360
61361 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61362
61363         * lib/tempname.c (uint64_t): Define to uintmax_t if
61364         not defined, and if UINT64_MAX is not defined.
61365         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61366         Reported by John David Anglin.
61367
61368 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61369
61370         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61371         resolve alias if codeset is empty.
61372         * lib/config.charset (BeOS): Use wildcard syntax.
61373
61374 2001-03-13  Jim Meyering  <meyering@lucent.com>
61375
61376         * lib/path-concat.c (path_concat)
61377         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61378         concatenating e.g., `C:' and `foo'.
61379         From Bruno Haible.
61380
61381 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61382
61383         * lib/localcharset.c (locale_charset): Don't use
61384         setlocale(LC_CTYPE,NULL). Don't return NULL.
61385         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61386
61387 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61388
61389         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61390         support for DOS/DJGPP.
61391
61392 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61393
61394         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61395         lacks mkstemp.  Compile our own tempname.c if we compile our own
61396         mkstemp.c, as mkstemp relies on tempname.
61397
61398 2001-03-01  Jim Meyering  <meyering@lucent.com>
61399
61400         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61401         AH_VERBATIM really does output its argument verbatim.
61402
61403 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61404
61405         * lib/Makefile.am (libfetish_a_SOURCES):
61406         Add dup-safer.c, fopen-safer.c.
61407         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61408
61409         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61410         * lib/unistd-safer.h: New files.
61411
61412 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61413
61414         The mkstemp replacement is taken from glibc 2.2.2, with some
61415         portability fixes for use outside glibc, as follows:
61416
61417         * lib/tempname.c (struct_stat64): New macro.
61418         (direxists, __gen_tempname): Use it.
61419         This avoids a portability problem with Solaris 8.
61420
61421         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61422         (<stddef.h>, <stdint.h>, <string.h>):
61423         Include only if STDC_HEADERS || _LIBC.
61424         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61425         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61426         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61427         (__set_errno): Define this macro if <errno.h> doesn't.
61428         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61429         Define these macros if <stdio.h> doesn't.
61430         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61431         Define these macros if <sys/stat.h>
61432         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61433         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61434         __xstat64): Define if not _LIBC.
61435         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61436         (__gen_tempname): Invoke gettimeofday only if
61437         HAVE_GETTIMEOFDAY || _LIBC;
61438         otherwise, fall back on plain "time".
61439         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61440
61441         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61442
61443         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61444
61445 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61446
61447         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61448
61449 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61450
61451         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61452         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61453         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61455
61456 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61457
61458         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61459         Remove workaround macros for hosts that have mbrtowc but not
61460         mbstate_t, as we now insist on proper declarations for both
61461         before using mbrtowc.
61462
61463 2001-02-17  Jim Meyering  <meyering@lucent.com>
61464
61465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61466         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61467         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61468         UnixWare 7.1.1.
61469
61470         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61471         rather than AC_CACHE_VAL.
61472
61473 2001-02-17  Jim Meyering  <meyering@lucent.com>
61474
61475         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61476         around included file name.
61477
61478         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61479
61480         * lib/strftime.c: Update from GNU libc (the only changes were to
61481         comments).
61482
61483 2001-02-17  Jim Meyering  <meyering@lucent.com>
61484
61485         * lib/regex.c: Update from libc.
61486
61487 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61488
61489         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61490         clash.
61491
61492 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61493
61494         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61495         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61496         Reported by Mark Hounschell via Paul Eggert.
61497
61498 2001-02-07  Jim Meyering  <meyering@lucent.com>
61499
61500         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61501
61502 2001-02-05  Jim Meyering  <meyering@lucent.com>
61503
61504         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61505         it includes the patch required for `large file' support with at least
61506         HP-UX's 10.20 /bin/cc.
61507
61508 2001-02-03  Jim Meyering  <meyering@lucent.com>
61509
61510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61511         AS_IF, now that it works once again (mysteriously).
61512         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61513
61514 2001-01-30  Jim Meyering  <meyering@lucent.com>
61515
61516         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61517         * m4/chown.m4: Rename conftestchown to conftest.chown.
61518         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61519         s/conftestdir2/conftest.d2/.
61520         * m4/utimes.m4: s/conftestdata/conftest.data/
61521         Inspired by Pavel Roskin's change in autoconf.
61522
61523 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61524
61525         * lib/config.charset: Update for FreeBSD 4.2.
61526
61527 2001-01-27  Jim Meyering  <meyering@lucent.com>
61528
61529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61530         a use of AS_IF.
61531         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61532
61533 2001-01-26  Jim Meyering  <meyering@lucent.com>
61534
61535         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61536         quotearg.c includes it.
61537
61538 2001-01-26  Jim Meyering  <meyering@lucent.com>
61539
61540         * lib/quotearg.c: Include stddef.h.
61541         * lib/quote.c: Include stddef.h.
61542         Reported by Axel Kittenberger.
61543
61544         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61545         line in double quotes so that it evokes a better diagnostic.
61546         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61547         Reported by Axel Kittenberger.
61548
61549 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61550
61551         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61552         as if it was a `charset'.
61553
61554 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61555
61556         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61557         has const.
61558
61559 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61560
61561         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61562         to avoid a warning.  Add back 'const' to inptr.
61563
61564 2001-01-20  Jim Meyering  <meyering@lucent.com>
61565
61566         Be sure that headers are checked before used in code compiled
61567         for the type checks.
61568         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61569         In place of that, invoke jm_CHECK_ALL_TYPES.
61570         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61571         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61572         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61573         The check for ssize_t was mistakenly run before the test for unistd.h.
61574
61575         The configure-time check for stdbool.h was missing.
61576         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61577         (jm_PREREQ_HASH): New function.
61578
61579 2001-01-17  Jim Meyering  <meyering@lucent.com>
61580
61581         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61582         for autoconf-2.49c.
61583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61584
61585 2001-01-16  Jim Meyering  <meyering@lucent.com>
61586
61587         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61588         From Bruno Haible.
61589
61590 2001-01-14  Jim Meyering  <meyering@lucent.com>
61591
61592         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61593         foo and bar.  Create conftestdir/ in the script, not in the C code.
61594         Remove directories in the script, not in the C code.
61595         Remove conftestdir{,2} before trying to create the directory.
61596         Make the entire configure script fail if the mkdir fails.
61597
61598 2001-01-14  Jim Meyering  <meyering@lucent.com>
61599
61600         * lib/rename.c: New file.  From Volker Borchert.
61601         Include stdlib.h, string.h or strings.h, and xalloc.h.
61602         Use strip_trailing_slashes rather than open-coding it.
61603
61604 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61605
61606         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61607
61608 2001-01-03  Jim Meyering  <meyering@lucent.com>
61609
61610         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61611         of local `inptr' to avoid warning with some system declarations of
61612         iconv.
61613
61614 2001-01-02  Volker Borchert  <bt@teknon.de>
61615
61616         * m4/rename.m4: New file.
61617         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61618
61619 2001-01-01  Jim Meyering  <meyering@lucent.com>
61620
61621         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61622         even on systems with utmpx.h.  It's necessary for the declaration of
61623         utmp's ut_user member.  Reported by Andreas Jaeger.
61624
61625         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61626         available. They are required for the declarations of getgrgid and
61627         getpwuid resp.
61628         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61629         Reported by Andreas Jaeger.
61630
61631 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61632
61633         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61634         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61635         so `make install' also works in VPATH builds.
61636
61637 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61638
61639         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61640         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61641         can be used in subdirectories.
61642
61643 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61644
61645         * lib/modechange.c: Do not assume that mode_t uses the
61646         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61647         the other-execute bit of FOO even if S_IXOTH != 1.
61648
61649         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61650         WOTH, XOTH, ALLM): New macros.
61651         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61652          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61653         Use them.
61654         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61655         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61656         (mode_compile):
61657         No need to use uintmax_t; unsigned long is long enough.
61658         Don't bother to get suffix since we don't use it.
61659
61660 2000-12-26  Jim Meyering  <meyering@lucent.com>
61661
61662         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61663         better with autoheader.
61664
61665 2000-12-24  Jim Meyering  <meyering@lucent.com>
61666
61667         * lib/hash.c (is_prime): Return explicit boolean values.
61668         (hash_get_first): Return NULL to appease Irix5.6's 89.
61669         Reported by Nelson Beebe.
61670
61671 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61672
61673         * lib/localcharset.c (locale_charset): Add support for Win32.
61674
61675 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61676
61677         * lib/physmem.h, lib/physmem.c: New files.
61678
61679         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61680         (noinst_HEADERS): Add physmem.h.
61681
61682         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61683         't' for compatibility with Solaris 8 sort.
61684
61685 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61686
61687         * lib/config.charset: Add support for BeOS.
61688
61689 2000-12-17  Jim Meyering  <meyering@lucent.com>
61690
61691         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61692         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61693
61694 2000-12-16  Jim Meyering  <meyering@lucent.com>
61695
61696         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61697         N and M) would have treated it like `chown N:N FILE'.
61698
61699         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61700
61701 2000-12-16  Jim Meyering  <meyering@lucent.com>
61702
61703         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61704         SHELLS_FILE to a file name that's useful on djgpp systems.
61705         Include stdlib.h.
61706         (ADDITIONAL_DEFAULT_SHELLS): Define.
61707         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61708         Based mostly on a patch from Prashant TR.
61709
61710 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61711
61712         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61713         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61714         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61715
61716 2000-12-08  Andreas Schwab  <schwab@suse.de>
61717
61718         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61719         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61720
61721 2000-12-07  Jim Meyering  <meyering@lucent.com>
61722
61723         * lib/stripslash.c (ISSLASH): Define.
61724         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61725         `/'.
61726         From Prashant TR.
61727
61728         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61729         (dir_name_r): Declare this function as static.
61730         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61731         manifest itself on a name containing a mix of slashes and
61732         backslashes.
61733         Make this function work with names starting with a DOS-style
61734         drive letter and colon prefix.
61735         (dir_name): Append `.' if necessary.
61736         Based mostly on patches from Prashant TR and Eli Zaretskii.
61737
61738         * lib/dirname.h (dir_name_r): Remove prototype.
61739
61740 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61741
61742         * m4/off_t-format.m4: Remove this file.
61743         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61744
61745 2000-12-06  Jim Meyering  <meyering@lucent.com>
61746
61747         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61748         replacement strtoull, we may well need the replacement strtoul, too.
61749         Check for declarations of strtoul and strtoull.
61750         Check for strtol.  Mainly as a cue to cause automake to include
61751         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61752         Check for limits.h -- strtol.c needs it.
61753
61754 2000-12-05  Jim Meyering  <meyering@lucent.com>
61755
61756         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61757
61758 2000-12-04  Jim Meyering  <meyering@lucent.com>
61759
61760         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61761         Also include memory.h, stdlib.h, unistd.h if appropriate.
61762         Reported by Andreas Jaeger (conflicting declaration of malloc).
61763
61764 2000-12-02  Jim Meyering  <meyering@lucent.com>
61765
61766         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61767         * m4/jm-macros.m4 (jm_MACROS): require it.
61768
61769 2000-12-02  Jim Meyering  <meyering@lucent.com>
61770
61771         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61772
61773 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61774
61775         * lib/memrchr.c: Include <config.h> before any system include file.
61776
61777 2000-11-30  Jim Meyering  <meyering@lucent.com>
61778
61779         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61780
61781 2000-11-30  Jim Meyering  <meyering@lucent.com>
61782
61783         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61784
61785 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61786
61787         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61788
61789 2000-11-26  Jim Meyering  <meyering@lucent.com>
61790
61791         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61792
61793 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61794
61795         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61796         size of (size_t) -1; it's not portable.
61797
61798 2000-11-17  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/strstr.c: Update from GNU libc.
61801
61802 2000-11-17  Akim Demaille  <akim@epita.fr>
61803
61804         * lib/obstack.h: Formatting changes.
61805         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61806         prevent type checking.
61807         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61808         cast the value to (void *): assigning a `foo *' to a `void *'
61809         variable is valid.
61810         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61811
61812 2000-11-16  Jim Meyering  <meyering@lucent.com>
61813
61814         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61815
61816 2000-11-11  Jim Meyering  <meyering@lucent.com>
61817
61818         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61819
61820 2000-11-10  Jim Meyering  <meyering@lucent.com>
61821
61822         * lib/obstack.h: Update from GNU libc.
61823         * lib/obstack.c: Likewise.
61824
61825 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61826
61827         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61828
61829 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61830
61831         * lib/getusershell.c (setusershell): Use rewind rather than
61832         fseek/fseeko, to avoid configuration hassles with fseeko.
61833         Don't bother opening SHELLS_FILE if shellstream is NULL;
61834         it's not necessary.
61835
61836 2000-11-05  Jim Meyering  <meyering@lucent.com>
61837
61838         * lib/makepath.h (make_dir): Declare.
61839         * lib/makepath.c (make_dir): Remove `static' attribute.
61840         Tweak a comment.
61841
61842 2000-11-04  Jim Meyering  <meyering@lucent.com>
61843
61844         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61845
61846 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61847
61848         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61849         last one in a bucket, advance to the next bucket.
61850
61851 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61852
61853         * lib/fnmatch.c: Do not comment out all the code if we are using
61854         the GNU C library, because in some cases we are replacing buggy
61855         code in the GNU C library itself.
61856
61857 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61858
61859         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61860         (regex_compile): Catch bogus \(\1\).
61861
61862 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61863
61864         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61865         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61866         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61867
61868 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61869
61870         * lib/error.h, getline.h, modechange.h:
61871         Remove "2000" from Copyright line, as the file hasn't been
61872         changed this year other than in the copyright notice.
61873
61874         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61875         was changed this year.
61876
61877 2000-10-29  Jim Meyering  <meyering@lucent.com>
61878
61879         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61880         renaming.
61881         * m4/ls-mntd-fs.m4: Likewise
61882
61883 2000-10-29  Jim Meyering  <meyering@lucent.com>
61884
61885         * lib/xstat.in: Fix grammar in comment.
61886
61887 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61888
61889         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61890         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61891         doesn't define __restrict_arr.
61892
61893 2000-10-28  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61896         (jm_PREREQ_MEMCHR): New function.
61897
61898 2000-10-28  Jim Meyering  <meyering@lucent.com>
61899
61900         * lib/memchr.c: Update from libc.
61901         Adjust for portability:
61902         [HAVE_STDLIB_H]: Include stdlib.h.
61903         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61904         Undef __memchr, too.
61905         [!weak_alias]: Define __memchr to memchr.
61906
61907         * lib/regex.c: Update from libc.
61908         * lib/regex.h: Likewise.
61909         * lib/getopt1.c: Likewise.
61910         * lib/memcmp.c: Likewise.
61911
61912         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61913         Avoid using fseek, when possible -- it's broken by design.
61914         Patch by Ulrich Drepper.
61915
61916 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61917
61918         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61919         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61920         Giving in to popular pressure to shut up the compiler with casts.
61921
61922 2000-10-26  Jim Meyering  <meyering@lucent.com>
61923
61924         * lib/strftime.c: Update from libc.
61925
61926 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61927
61928         * regex.c: More `unsigned char' -> `re_char' changes.
61929         Also change several `int' into `re_wchar_t'.
61930         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61931         (PUSH_FAILURE_POINTER): Don't cast any more.
61932         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61933         We want GCC to complain, since this piece of code makes
61934         re_match non-reentrant, which *should* be fixed.
61935         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61936         (EXTEND_BUFFER): Use RETALLOC.
61937         (SET_LIST_BIT): Don't cast.
61938         (re_wchar_t): New type.
61939         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61940         that those two functions will always properly return.
61941         (IMMEDIATE_QUIT_CHECK): Cast to void.
61942         (analyse_first): Use recursion rather than an explicit stack.
61943         (re_compile_fastmap): Can't fail anymore.
61944         (re_search_2): Don't check re_compile_fastmap for failure.
61945         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61946         Now also sets the new value (passed in a new argument).
61947         (re_match_2_internal): Use it.
61948         Also, use a new var `reg' of type size_t when looping through regs
61949         rather than reuse the inappropriate `mcnt'.
61950
61951 2000-10-25  Jim Meyering  <meyering@lucent.com>
61952
61953         * lib/obstack.c: Update from libc.
61954
61955 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61956
61957         * regex.c (regex_compile): Change the way of handling a range from
61958         a char less than 256 to a char not less than 256.
61959
61960 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61961
61962         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61963         NT-Emacs only.
61964         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61965         so that re_search functions only quit when callers expect them to.
61966
61967 2000-10-23  Jim Meyering  <meyering@lucent.com>
61968
61969         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61970         wrong.  That set_locale call must not have any side effects.
61971         From Paul Eggert.
61972
61973 2000-10-22  Jim Meyering  <meyering@lucent.com>
61974
61975         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61976         [CYCLIC]: Remove now-unused definition.
61977
61978         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61979         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61980         Suggestion from Ulrich Drepper.
61981
61982 2000-10-21  Jim Meyering  <meyering@lucent.com>
61983
61984         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61985         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61986         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61987
61988 2000-10-21  Jim Meyering  <meyering@lucent.com>
61989
61990         * lib/dirname.c (memrchr): Declare if necessary.
61991         (dir_name): Remove the restriction that there be no
61992         trailing slashes.  Now, this code skips past them, effectively
61993         ignoring them.
61994         [TEST_DIRNAME] (main): New unit tests.
61995
61996         * lib/memrchr.c: New file from GNU libc.
61997         Undef __memrchr, too.
61998         [!weak_alias]: Define __memrchr to memrchr.
61999         Guard weak_alias use with `#ifdef weak_alias'.
62000
62001 2000-10-21  Jim Meyering  <meyering@lucent.com>
62002
62003         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62004         (dir_name): Use dir_name_r.
62005         * lib/dirname.h (dir_name_r): Declare it.
62006
62007 2000-10-17  Jim Meyering  <meyering@lucent.com>
62008
62009         * lib/quote.h (PARAMS): Define and use.
62010         Reported by Akim Demaille.
62011
62012         * lib/getopt.c: Update from libc.
62013
62014 2000-10-16  Jim Meyering  <meyering@lucent.com>
62015
62016         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62017         setlocale.
62018         From Jan Fedak.
62019
62020 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62021
62022         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62023
62024 2000-09-25  Jim Meyering  <meyering@lucent.com>
62025
62026         * lib/md5.h (rol): Define (from GnuPG).
62027
62028         * lib/sha.c: Give credit (GnuPG) where due.
62029         (M): Use rol rather than open-coding it.
62030         Add a FIXME comment.
62031
62032 2000-09-21  Jim Meyering  <meyering@lucent.com>
62033
62034         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62035         Reported by Michael Stone.
62036
62037 2000-09-20  Jim Meyering  <meyering@lucent.com>
62038
62039         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62040         (noinst_HEADERS): Add sha.h.
62041         Based on code from Scott G. Miller and from GnuPG.
62042
62043 2000-09-18  Jim Meyering  <meyering@lucent.com>
62044
62045         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62046         LIBS. Otherwise, everyone ends up linking with -lelf for some
62047         configurations.
62048         Reported by Mike Stone.
62049
62050 2000-09-15  Jim Meyering  <meyering@lucent.com>
62051
62052         * lib/regex.c: Update from libc.
62053
62054 2000-09-10  Jim Meyering  <meyering@lucent.com>
62055
62056         * lib/getopt.c (_getopt_internal): Update from glibc.
62057
62058 2000-09-09  Jim Meyering  <meyering@lucent.com>
62059
62060         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62061         think it should be used as a general replacement for isascii.
62062         * lib/fnmatch.c: Likewise.
62063         * lib/mbswidth.c: Likewise
62064         * lib/regex.c: Likewise.
62065
62066         Don't use atoi.
62067         * lib/userspec.c: Include sys/param.h and limits.h.
62068         Include xstrtol.h.
62069         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62070         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62071         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62072         UID, GID.  Check range.
62073
62074 2000-09-06  Jim Meyering  <meyering@lucent.com>
62075
62076         * lib/getopt.c (_getopt_internal): Update from glibc.
62077
62078 2000-08-30  Jim Meyering  <meyering@lucent.com>
62079
62080         * lib/strftime.c: Merge in changes from GNU libc.
62081
62082 2000-08-26  Jim Meyering  <meyering@lucent.com>
62083
62084         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62085         * m4/fpending.m4: New file.
62086
62087 2000-08-26  Jim Meyering  <meyering@lucent.com>
62088
62089         * lib/closeout.c: Include "__fpending.h".
62090         (close_stdout_status): Return right away if there's nothing to flush.
62091
62092         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62093         * lib/__fpending.c: New file.
62094         * lib/__fpending.h: New file.
62095
62096 2000-08-20  Jim Meyering  <meyering@lucent.com>
62097
62098         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62099         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62100         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62101
62102 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62103
62104         Improve fileutils installation on systems where running
62105         programs (like install) can't be unlinked.
62106         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62107         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62108
62109 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62110
62111         Standardize on "memory exhausted" instead of "Memory exhausted"
62112         or "virtual memory exhausted".
62113         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62114         "virtual memory exhausted".
62115         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62116         our own message.
62117         * lib/userspec.c (parse_user_spec): Likewise.
62118         * lib/bumpalloc.h: comment fix
62119         * lib/same.c, userspec.c: Include xalloc.h.
62120
62121         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62122         not char *const and pointing to a constant array.
62123         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62124         (xrealloc): Comment fix.
62125
62126         * lib/userspec.c (parse_user_spec):
62127         Don't translate a message until just before returning,
62128         to avoid unnecessary translation.
62129
62130 2000-08-07  Jim Meyering  <meyering@lucent.com>
62131
62132         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62133         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62134         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62135         getgroups.c, gethostname.c, getopt.h, group-member.c,
62136         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62137         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62138         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62139         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62140         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62141         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62142         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62143         yesno.c: Back out Copyright date changes for each file with no change
62144         this year.  This eases coordination with other programs using the same
62145         source code modules.  From Paul Eggert.
62146
62147 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62148
62149         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62150         not char, for compatibility with glibc 2.1.3 strftime.c.
62151
62152 2000-08-03  Greg McGary  <greg@mcgary.org>
62153
62154         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62155         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62156         (EXTEND_BUFFER): Use them.
62157
62158 2000-08-01  Jim Meyering  <meyering@lucent.com>
62159
62160         * lib/dirname.c (ISSLASH): Define.
62161         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62162         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62163         both `\' and `/' may be use as path separators.
62164         Based on a patch from Prashant TR.
62165
62166 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62167
62168         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62169         slot vector a constant, since it might get modified.
62170
62171 2000-07-31  Jim Meyering  <meyering@lucent.com>
62172
62173         * lib/xmalloc.c: Use `virtual memory exhausted', not
62174         `Memory exhausted'.
62175         * lib/obstack.c (print_and_abort): Likewise.
62176
62177 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62178
62179         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62180         buffer, so that the caller can always quote one small
62181         component of a "memory exhausted" message in slot 0.
62182         From a suggestion by Jim Meyering.
62183
62184 2000-07-30  Jim Meyering  <meyering@lucent.com>
62185
62186         * lib/makepath.c (make_path): Quote the other instance, too.
62187
62188         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62189         (STATIC_BUF_SIZE): Define.
62190         (quotearg_n_options): Use only statically allocated storage when
62191         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62192         than STATIC_BUF_SIZE.
62193
62194 2000-07-29  Jim Meyering  <meyering@lucent.com>
62195
62196         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62197         * lib/dirname.c (dir_name): Likewise.
62198
62199         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62200         `/'.
62201
62202         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62203         (dir_name): Assert that there are no trailing slashes.
62204
62205 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62206
62207         * lib/mbswidth.h (mbswidth): Add a flags argument.
62208         (mbswidth): New declaration.
62209         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62210         * lib/mbswidth.c (mbswidth): Add a flags argument.
62211         (mbsnwidth): New function.
62212
62213 2000-07-24  Jim Meyering  <meyering@lucent.com>
62214
62215         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62216
62217 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62218
62219         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62220
62221 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62222
62223         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62224         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62225         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62226         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62227         invoke multibyte primitives.
62228
62229 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62230
62231         * lib/quotearg.c:
62232         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62233         so that mbstate_t is always defined.
62234
62235         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62236         be 1 in at least one GCC installation, and this configuration
62237         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62238         performance on hosts that have mbrtowc but have only unibyte
62239         locales, but I assume these hosts are rare.
62240
62241 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62242
62243         * lib/mbswidth.c (_XOPEN_SOURCE):
62244         Don't define; this causes problems on Solaris 7.
62245         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62246
62247 2000-07-23  Jim Meyering  <meyering@lucent.com>
62248
62249         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62250         too: getgrgid, getpwuid, getuid.
62251
62252 2000-07-23  Jim Meyering  <meyering@lucent.com>
62253
62254         * lib/basename.c (base_name): Add an assertion.
62255
62256 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62257
62258         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62259         shadow its mbsinit function.
62260
62261 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62262
62263         * lib/mbswidth.h: New file.
62264         * lib/mbswidth.c: New file.
62265         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62266         (noinst_HEADERS): Add mbswidth.h.
62267
62268 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62269
62270         * lib/config.charset: Add support for FreeBSD. Improve support for
62271         HP-UX and IRIX 6.
62272
62273 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62274
62275         * m4/mbswidth.m4: New file.
62276         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62277
62278 2000-07-15  Jim Meyering  <meyering@lucent.com>
62279
62280         * lib/makepath.c: Include quote.h.
62281         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62282         corresponding argument in a `quote (...)' call.
62283         Give better diagnostics.
62284
62285         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62286         (noinst_HEADERS): Add quote.h.
62287
62288         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62289         from tar's src/misc.c.
62290         * lib/quote.h: New file.  Prototypes for same.
62291
62292 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62293
62294         From a suggestion by Bruno Haible.
62295         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62296         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62297         to decide whether to define the BeOS workaround macro;
62298         this adjusts to the change to AC_MBSTATE_T.
62299
62300 2000-07-14  Jim Meyering  <meyering@lucent.com>
62301
62302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62303         jm_AC_TYPE_UINTMAX_T.
62304
62305 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62306
62307         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62308
62309         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62310         quotearg_buffer_restyled): Add support for
62311         clocale_quoting_style.  Undo previous change to
62312         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62313         and "{RIGHT QUOTATION MARK}" msgids.
62314
62315 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62316
62317         From a suggestion by Bruno Haible.
62318         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62319         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62320         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62321         and mbstate_t, to a single-part test that simply defines mbstate_t.
62322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62323         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62324
62325 2000-07-10  Jim Meyering  <meyering@lucent.com>
62326
62327         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62328
62329         * m4/gnu-source.m4: Output to confdefs.h directly.
62330         Suggestion from Akim Demaille.
62331
62332 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62333
62334         The old behavior of quoting `like this' doesn't look good with
62335         newer, ISO-style fonts.  See:
62336         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62337
62338         Instead, quote "like this" by default.  Let the translator
62339         tailor the locale-specific quoting behavior by providing
62340         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62341
62342         * lib/quotearg.c (N_): New macro.
62343         (gettext_default): New function.
62344         (quotearg_buffer_restyled): Use
62345         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62346         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62347
62348 2000-07-09  Jim Meyering  <meyering@lucent.com>
62349
62350         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62351         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62352
62353         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62354         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62355
62356 2000-07-09  Jim Meyering  <meyering@lucent.com>
62357
62358         * lib/Most files: Update copyright dates to include 2000.
62359
62360 2000-07-08  Jim Meyering  <meyering@lucent.com>
62361
62362         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62363         if not defined.
62364         (xgethostname): Remove now-unnecessary #ifdef.
62365         Move declaration of `err' into loop where it's used.
62366
62367 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62368         and Bruno Haible  <haible@clisp.cons.org>
62369
62370         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62371         only if the test for an object-type mbstate_t fails.  This
62372         prevents us from mistakenly reporting that mbstate_t is a
62373         system object type after we "#define mbstate_t int" to work
62374         around its lack.
62375
62376 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62377         and Bruno Haible  <haible@clisp.cons.org>
62378
62379         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62380
62381 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62382
62383         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62384         to strerror_r.
62385         Include <ctype.h> for use of isalpha.
62386
62387 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62388
62389         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62390         by allocating a larger buffer. Test the gethostname return value for
62391         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62392         returns an error and ENAMETOOLONG isn't defined.
62393
62394 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62395
62396         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62397         dimension.
62398
62399 2000-07-04  Jim Meyering  <meyering@lucent.com>
62400
62401         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62402         of the deprecated AC_CHECKING.
62403
62404 2000-07-04  Jim Meyering  <meyering@lucent.com>
62405
62406         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62407         Reported by Bruno Haible.
62408
62409 2000-07-04  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62412         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62413         lacks mbrtowc.
62414
62415 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62416
62417         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62418         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62419
62420 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62421         and Bruno Haible  <haible@clisp.cons.org>
62422
62423         * lib/quotearg.c (mbrtowc):
62424         Assign to *pwc, and return 1 only if result is nonzero.
62425         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62426
62427 2000-07-03  Jim Meyering  <meyering@lucent.com>
62428
62429         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62430
62431 2000-07-03  Jim Meyering  <meyering@lucent.com>
62432
62433         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62434         This is necessary to get a definition of e.g., UTMP_FILE on
62435         HP-UX 10.20.
62436         From Bob Proulx.
62437
62438 2000-07-02  Jim Meyering  <meyering@lucent.com>
62439
62440         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62441
62442         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62443         AC_LIBOBJ(function_name).
62444         * m4/chown.m4: Likewise.
62445         * m4/fnmatch.m4: Likewise.
62446         * m4/ftruncate.m4: Likewise.
62447         * m4/getgroups.m4: Likewise.
62448         * m4/getline.m4: Likewise.
62449         * m4/group-member.m4: Likewise.
62450         * m4/jm-macros.m4: Likewise.
62451         * m4/lstat.m4: Likewise.
62452         * m4/malloc.m4: Likewise.
62453         * m4/memcmp.m4: Likewise.
62454         * m4/nanosleep.m4: Likewise.
62455         * m4/putenv.m4: Likewise.
62456         * m4/realloc.m4: Likewise.
62457         * m4/regex.m4: Likewise.
62458         * m4/stat.m4: Likewise.
62459         * m4/strftime.m4: Likewise.
62460
62461 2000-07-02  Jim Meyering  <meyering@lucent.com>
62462
62463         * lib/quotearg.c (mbstate_t): Don't define here.
62464
62465 2000-07-02  Jim Meyering  <meyering@lucent.com>
62466
62467         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62468
62469 2000-07-01  Jim Meyering  <meyering@lucent.com>
62470
62471         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62472
62473 2000-07-01  Jim Meyering  <meyering@lucent.com>
62474
62475         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62476         problem.
62477
62478 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62479
62480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62481         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62482
62483 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62484
62485         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62486         per change in ../m4/ls-mntd-fs.m4.
62487         (read_filesystem_list): Ignore symbolic links.
62488
62489 2000-06-29  Jim Meyering  <meyering@lucent.com>
62490
62491         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62492         for declaration of strcmp.
62493
62494         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62495
62496         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62497         Avoid warning by casting result to `char *' to remove `const'.
62498
62499 2000-06-28  Jim Meyering  <meyering@lucent.com>
62500
62501         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62502         included by quotearg.c, for which we perform this test.  From
62503         Bruno Haible.
62504
62505 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62506
62507         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62508         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62509         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62510
62511 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62512
62513         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62514
62515 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62516
62517         savedir now sets errno on failure and invokes xmalloc to get memory.
62518         Fix a couple of other minor bugs while we're at it.
62519
62520         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62521         (NAMLEN): Remove macro.
62522         (malloc, realloc): Remove decls.
62523         (stpcpy): Likewise.
62524         ("xalloc.h"): Include.
62525         (NAME_SIZE_DEFAULT): New macro.
62526         (savedir): Use xmalloc / xrealloc to allocate memory.
62527         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62528         Skip "" directory entries.
62529         Use strlen to calculate directory entry length, since the old method
62530         is rarely used these days and isn't worth supporting.
62531         Don't use a pointer after freeing it.
62532         Check for integer overflow when calculating allocation size.
62533         Use memcpy to copy entries, instead of stpcpy.
62534         Set errno properly when returning NULL.
62535         Check for readdir error.
62536
62537 2000-06-26  Jim Meyering  <meyering@lucent.com>
62538
62539         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62540
62541 2000-06-25  Jim Meyering  <meyering@lucent.com>
62542
62543         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62544         Linux header bug when _XOPEN_SOURCE is defined to 500.
62545
62546 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62547
62548         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62549         deficiency.
62550
62551 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62552
62553         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62554         Include xalloc.h.
62555         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62556
62557 2000-06-24  Jim Meyering  <meyering@lucent.com>
62558
62559         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62560         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62561         for which strerror does return char*, but which lacks a conveniently
62562         accessible declaration of the function.  If the compile-test says
62563         strerror_r doesn't work, then resort to a `run'-test that works on
62564         BeOS and segfaults on DEC Unix.
62565
62566 2000-06-24  Jim Meyering  <meyering@lucent.com>
62567
62568         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62569
62570 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62571
62572         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62574
62575 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62576
62577         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62578         (mbrtowc, mbstate_t): Define substitutes if
62579         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62580         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62581         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62582
62583 2000-06-23  Jim Meyering  <meyering@lucent.com>
62584
62585         * m4/afs.m4: Add missing AC_MSG_RESULT.
62586         Reported by Bruno Haible.
62587
62588         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62589         Suggestion from Bruno Haible.
62590
62591 2000-06-23  Jim Meyering  <meyering@lucent.com>
62592
62593         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62594
62595 2000-06-21  Jim Meyering  <meyering@lucent.com>
62596
62597         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62598
62599 2000-06-21  Jim Meyering  <meyering@lucent.com>
62600
62601         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62602         (noinst_HEADERS): Add getstr.h.
62603
62604         * lib/getline.c (getstr): Move into a separate file.
62605         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62606         the following changes: new parameter, delim2; both delim[12]
62607         parameters have type `int', not `char'.  The latter would lose
62608         with 8-bit delimiters.
62609         * lib/getstr.h: New file.
62610
62611 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62612
62613         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62614         than 1024, return a memory chunk of least possible size, instead
62615         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62616         Use free/xmalloc instead of xrealloc to avoid copying for very long
62617         paths.
62618
62619 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62620
62621         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62622         the empty string.
62623
62624 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62625
62626         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62627         address, not strdup.  Include <stdlib.h> and don't declare free().
62628
62629 2000-06-19  Jim Meyering  <meyering@lucent.com>
62630
62631         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62632
62633 2000-06-18  Jim Meyering  <meyering@lucent.com>
62634
62635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62636
62637         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62638         `checking whether...' message to be consistent with that of the
62639         lstat test.
62640
62641 2000-06-18  Jim Meyering  <meyering@lucent.com>
62642
62643         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62644         Besides, these days every porting target provides a mkdir function.
62645
62646         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62647         needed. (this snippet comes from src/system.h).
62648
62649 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62650
62651         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62652
62653 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62654
62655         * lib/human.c (adjust_value): New function.
62656         (human_readable_inexact): Apply rounding style even when
62657         printing approximate values.
62658
62659 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62660
62661         * lib/human.c (human_readable_inexact): Allow an input block
62662         size that is not a multiple of the output block size, and vice versa.
62663         Reported by Piergiorgio Sartor.
62664
62665 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62666
62667         * lib/getdate.y (get_date): Apply relative times after time
62668         zone indicator, not before.  Reported by Todd A. Jacobs.
62669
62670 2000-06-13  Jim Meyering  <meyering@lucent.com>
62671
62672         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62673
62674         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62675
62676 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62677
62678         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62679
62680 2000-06-12  Jim Meyering  <meyering@lucent.com>
62681
62682         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62683         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62684         optional argument.
62685         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62686         the optional argument, `lib'.
62687
62688 2000-06-08  Jim Meyering  <meyering@lucent.com>
62689
62690         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62691
62692 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62693
62694         Rewrite largefile configuration so that we don't need to run
62695         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62696         AC_CANONICAL_HOST in configure.in -- jmm]
62697
62698         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62699         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62700         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62701         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62702         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62703         All uses changed.
62704         Instead of inspecting the output of getconf, try to compile the
62705         test program without and with the macro definition.
62706         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62707         for getconf.  Instead, check for the needed flags by compiling
62708         test programs.
62709
62710 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62711
62712         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62713
62714 2000-06-04  Jim Meyering  <meyering@lucent.com>
62715
62716         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62717         SunOS 4.1.4 for which gid_t is an unsigned type.
62718
62719 2000-06-03  Jim Meyering  <meyering@lucent.com>
62720
62721         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62722         now that autoconf requires that.
62723
62724         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62725         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62726         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62727
62728 2000-06-03  Jim Meyering  <meyering@lucent.com>
62729
62730         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62731
62732 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62733
62734         * m4/glibc21.m4: New file.
62735         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62736
62737 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62738
62739         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62740         newer, don't install charset.alias.
62741         * lib/config.charset: Change the Linux/glibc rules so they become empty
62742         on glibc-2.1 or newer.
62743
62744 2000-06-02  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/mountlist.c: Back out last change.  Instead, do this...
62747         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62748         me_dummy member using the same `ignore'-testing code.
62749         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62750         fs_type strings.
62751         From Mark D. Roth.
62752
62753 2000-05-29  Jim Meyering  <meyering@lucent.com>
62754
62755         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62756         mounts with the `ignore' attribute.  Based on a patch from
62757         Mark D. Roth.
62758
62759 2000-05-28  Jim Meyering  <meyering@lucent.com>
62760
62761         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62762         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62763         * m4/stat.m4: Likewise.
62764         * m4/lstat.m4: Likewise.
62765         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62766
62767         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62768         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62769
62770 2000-05-26  Jim Meyering  <meyering@lucent.com>
62771
62772         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62773
62774 2000-05-24  Jim Meyering  <meyering@lucent.com>
62775
62776         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62777         autoconf requires that.
62778         * m4/lib-check.m4: Likewise.
62779         * m4/jm-macros.m4: Likewise.
62780         * m4/strftime.m4: Likewise.
62781
62782         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62783         AC_CHECK_DECLS, now that autoconf requires that.
62784
62785 2000-05-22  Jim Meyering  <meyering@lucent.com>
62786
62787         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62788         * m4/lstat.m4: Likewise.
62789
62790 2000-05-22  Jim Meyering  <meyering@lucent.com>
62791
62792         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62793
62794 2000-05-20  Jim Meyering  <meyering@lucent.com>
62795
62796         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62797         (jm_PREREQ): Use it.
62798
62799 2000-05-18  Jim Meyering  <meyering@lucent.com>
62800
62801         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62802         back, too, since it may have been modified by allocate_entry.
62803         (hash_delete): Rewrite to use neither the assignment operator
62804         nor the comma operator in an if-expression.
62805
62806 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62807
62808         * lib/closeout.c:
62809         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62810         Remove; no longer needed.
62811         "quotearg.h": Add include.
62812         (file_name): Do not bother to explicitly initialize to NULL; it's less
62813         efficient on some hosts.
62814         (close_stdout_status): Remove test as to whether stdout was already
62815         closed; it breaks for the case "echo x | sort >&-".
62816         Quote file name colons.
62817         Do not assume that _("write error") lacks format strings.
62818
62819 2000-05-15  Jim Meyering  <meyering@lucent.com>
62820
62821         * lib/version-etc.c (version_etc_copyright): Update the copyright
62822         string used in all --version output.
62823
62824 2000-05-14  Jim Meyering  <meyering@lucent.com>
62825
62826         * lib/closeout.c (close_stdout_set_file_name): New function.
62827         (close_stdout_status): Use new file-scoped global.
62828         Return right away if fstat says the stdout file descriptor is invalid.
62829         * lib/closeout.h (close_stdout_set_file_name): Declare.
62830
62831 2000-05-10  Jim Meyering  <meyering@lucent.com>
62832
62833         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62834         (close_stdout_set_status): New function.
62835         * lib/closeout.h (close_stdout_set_status): Declare.
62836
62837 2000-05-09  Jim Meyering  <meyering@lucent.com>
62838
62839         * m4/gettext.m4: Rename this...
62840         * m4/libintl.m4: ...to this.
62841
62842 2000-05-08  Jim Meyering  <meyering@lucent.com>
62843
62844         * lib/long-options.c: Don't include closeout.h.
62845         (parse_long_options): Don't call close_stdout for --version.
62846
62847 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62848
62849         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62850         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62851         2.1.3 bug.  This avoids a clash when files like regex.c define
62852         _GNU_SOURCE.
62853
62854 2000-05-06  Jim Meyering  <meyering@lucent.com>
62855
62856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62857         (AC_REPLACE_FUNCS): Add strnlen.
62858
62859         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62860         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62861
62862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62863         AC_SEARCH_LIBS call for nanosleep.
62864         (LIB_NANOSLEEP): Set and AC_SUBST.
62865
62866 2000-05-06  Jim Meyering  <meyering@lucent.com>
62867
62868         * lib/strnlen.c: Undefine __strnlen and strnlen.
62869         [!weak_alias]: Define __strnlen to strnlen.
62870
62871         * lib/atexit.c: New file, from libiberty.
62872
62873 2000-05-06  Jim Meyering  <meyering@lucent.com>
62874
62875         * lib/closeout.c (close_stdout_status): Also check for errors on the
62876         stderr stream.
62877
62878 2000-05-05  Jim Meyering  <meyering@lucent.com>
62879
62880         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62881         AC_SEARCH_LIBS call for clock_gettime.
62882         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62883
62884         * m4/search-libs.m4: Update from autoconf.
62885
62886         su doesn't work on Solaris 2.6.
62887         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62888         <shadow.h>.  Reported by Dragos Harabor.
62889
62890 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62891
62892         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62893         memcpy instead of xmalloc, xrealloc, path_concat.
62894         (locale_charset): Treat empty environment variables as absent.
62895         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62896
62897 2000-05-04  Jim Meyering  <meyering@lucent.com>
62898
62899         * lib/getopt.c: Update from glibc.
62900         * lib/obstack.c: Likewise.
62901         * lib/obstack.h: Likewise.
62902         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62903         file
62904
62905         * lib/regex.h: Likewise.
62906         * lib/strndup.c: Likewise.
62907         * lib/strnlen.c: New file, from glibc.
62908
62909 2000-05-03  Jim Meyering  <meyering@lucent.com>
62910
62911         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62912
62913 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62914
62915         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62916         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62917         compile-time test, rather than inspecting host and OS, to
62918         decide whether to define _LARGEFILE_SOURCE.
62919
62920 2000-05-01  Jim Meyering  <meyering@lucent.com>
62921
62922         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62923
62924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62925         Based on a patch from Bruno Haible.
62926
62927 2000-05-01  Jim Meyering  <meyering@lucent.com>
62928
62929         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62930
62931 2000-04-29  Jim Meyering  <meyering@lucent.com>
62932
62933         * lib/path-concat.c: Declare strdup only if it's not defined.
62934         * lib/canon-host.c: Likewise.
62935
62936 2000-04-28  Jim Meyering  <meyering@lucent.com>
62937
62938         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62939         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62940         is included first, then limits.h is included by locale.h by libintl.h.
62941         From John David Anglin.
62942
62943 2000-04-25  Jim Meyering  <meyering@lucent.com>
62944
62945         * lib/makepath.c (S_IRWXUGO): Define.
62946         (make_path): Always perform explicit chmod if MODE specifies any
62947         of the `special' permission bits.  Prompted by a bug report against
62948         install from Mate Wierdl and Joost van Baal.
62949
62950 2000-04-18  Jim Meyering  <meyering@lucent.com>
62951
62952         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62953         (jm_PREREQ): Use it.
62954
62955 2000-04-18  Jim Meyering  <meyering@lucent.com>
62956
62957         * lib/README: New file.
62958
62959         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62960         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62961
62962 2000-04-17  Jim Meyering  <meyering@lucent.com>
62963
62964         Get it right :-)
62965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62966         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62967         Suggestion from Akim Demaille.
62968
62969 2000-04-17  Jim Meyering  <meyering@lucent.com>
62970
62971         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62972         the definition of it to rpl_strftime also defined-away the system's
62973         declaration.
62974
62975 2000-04-15  Jim Meyering  <meyering@lucent.com>
62976
62977         Use `C' to denote so-called `contiguous' files, the same way
62978         that tar does.
62979         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62980         (ftypelet): Use S_ISCTG.
62981         From Michael Deutschmann.
62982
62983 2000-04-14  Jim Meyering  <meyering@lucent.com>
62984
62985         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62986         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62987         clobbered.
62988
62989 2000-04-14  Jim Meyering  <meyering@lucent.com>
62990
62991         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62992
62993 2000-04-13  Jim Meyering  <meyering@lucent.com>
62994
62995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62996         AH_VERBATIM to insert required #ifndef into config.h.in.
62997         Suggestion from Akim Demaille.
62998
62999 2000-04-12  Jim Meyering  <meyering@lucent.com>
63000
63001         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63002         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63003         Christian Krackowizer.
63004
63005         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63006         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63007         (AC_SYS_LARGEFILE): Require.
63008         (AM_C_PROTOTYPES): Require.
63009
63010 2000-04-08  Jim Meyering  <meyering@lucent.com>
63011
63012         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63013         names don't conflict.  Reported by Eli Zaretskii.
63014
63015 2000-04-07  Jim Meyering  <meyering@lucent.com>
63016
63017         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63018         sys/types.h, to work around system header problems on AIX 3.2.5.
63019         From Bruno Haible.
63020
63021 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63022
63023         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63024         bug.  Deal with the different error behavior of Irix iconv.
63025
63026 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63027
63028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63029         IRIX if the installer said otherwise.
63030
63031 2000-04-05  Jim Meyering  <meyering@lucent.com>
63032
63033         Portability tweaks required for ultrix4.3.
63034         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63035         (jm_CHECK_DECLS): Add getutent to the list of functions.
63036         (_jm_DECL_HEADERS): Add utmpx.h.
63037         From John David Anglin.
63038
63039         * m4/strftime.m4: Back out the 2000-04-02 change.
63040         Instead of that change, simply undefine putenv in the test program.
63041
63042 2000-04-05  Jim Meyering  <meyering@lucent.com>
63043
63044         Portability tweaks required for ultrix4.3.
63045         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63046         getutent.
63047         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63048         * lib/canon-host.c: Declare strdup.
63049         * lib/path-concat.c: Likewise.
63050         From John David Anglin.
63051
63052 2000-04-04  Jim Meyering  <meyering@lucent.com>
63053
63054         Be more DOS 8.3-friendly.
63055         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63056         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63057         * lib/Makefile.am: Reflect renaming.
63058         Reported by Eli Zaretskii.
63059
63060         Use a temporary file name that won't clash with `charset.alias'
63061         in the DOS 8.3 name space.
63062         * lib/Makefile.am (charset_tmp): Define.
63063         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63064         (uninstall-local): Likewise.
63065         Reported by Eli Zaretskii.
63066
63067 2000-04-03  Jim Meyering  <meyering@lucent.com>
63068
63069         * m4/gettext.m4: Fix typo in comment.
63070
63071         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63072         textutils/configure.in).  Suggestion from Paul Eggert.
63073         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63074
63075 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63076
63077         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63078         variable in the shell rather than using putenv, which isn't
63079         portable.  This avoids the configure-time inter-test dependency
63080         on the potentially-renamed putenv function.
63081
63082 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63083
63084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63085         before checking struct stat.st_blksize, so that
63086         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63087
63088 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63089
63090         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63091         since strftime.c uses HAVE_STRFTIME to decide whether to use
63092         the underlying strftime.
63093
63094 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63095
63096         * lib/time/strftime.c (my_strftime): Make sure we call the system
63097         strftime, not ourselves, when invoking the underlying strftime.
63098
63099 2000-03-24  Jim Meyering  <meyering@lucent.com>
63100
63101         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63102         (charset_alias): Define.
63103         (install-exec-local): Factor out common code.
63104         (uninstall-local): Split lines longer than 80.
63105         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63106         (SUFFIXES): Define.
63107         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63108         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63109
63110 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63111
63112         * lib/config.charset: Output a line containing "Packages using this
63113         file".
63114         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63115         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63116         ref-del.sed): New rules.
63117
63118 2000-03-17  Jim Meyering  <meyering@lucent.com>
63119
63120         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63121         Otherwise, include <strings.h>
63122
63123 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63124
63125         * lib/unicodeio.c (utf8_wctomb): New function.
63126         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63127         format instead of in UCS-4 with platform dependent endianness.
63128
63129 2000-03-10  Jim Meyering  <meyering@lucent.com>
63130
63131         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63132         From Marco Franzen.
63133
63134 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63135
63136         * lib/savedir.c (savedir): Work even if directory size is
63137         negative; this can happen with some screwy NFS configurations.
63138
63139 2000-03-06  Jim Meyering  <meyering@lucent.com>
63140
63141         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63142         if it's NULL (because we ran out of memory).  From Bruno Haible.
63143
63144 2000-03-05  Jim Meyering  <meyering@lucent.com>
63145
63146         * lib/localcharset.c ("path-concat.h"): Include.
63147         (get_charset_aliases): Use path_concat instead of ANSI string
63148         concatenation.
63149
63150         * lib/unicodeio.h (PARAMS): Define.
63151         Use it to guard prototype.
63152
63153 2000-03-04  Jim Meyering  <meyering@lucent.com>
63154
63155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63156         for lib/localcharset.c.
63157
63158 2000-03-04  Jim Meyering  <meyering@lucent.com>
63159
63160         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63161         installing into it.
63162         (uninstall-local): Uncomment this rule so `make distcheck' works
63163         once again.
63164
63165         * lib/unicodeio.c (<errno.h>): Include it.
63166         (errno): Declare if not defined.
63167
63168         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63169
63170         * lib/config.charset: New version, incorporating remarks from a linux
63171         i18n mailing list.  From Bruno Haible.
63172
63173 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63174
63175         * m4/codeset.m4: New file.
63176         * m4/iconv.m4: New file.
63177         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63178
63179 2000-03-03  Jim Meyering  <meyering@lucent.com>
63180
63181         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63182
63183 2000-03-02  Jim Meyering  <meyering@lucent.com>
63184
63185         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63186         the messages come out on separate lines.
63187
63188         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63189         rather than jm_CHECK_DECLARATIONS.
63190         * m4/decl.m4: Remove now-unused file.
63191
63192         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63193         geteuid.
63194
63195 2000-03-02  Jim Meyering  <meyering@lucent.com>
63196
63197         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63198
63199 2000-03-01  Jim Meyering  <meyering@lucent.com>
63200
63201         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63202         * lib/unicodeio.c: Likewise.
63203
63204 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63205
63206         * lib/config.charset: New file.
63207         * lib/localcharset.c: New file.
63208         * lib/unicodeio.h, lib/unicodeio.c: New files.
63209         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63210         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63211         (noinst_HEADERS): Add unicodeio.h.
63212         (all-local, install-exec-local, charset.alias): New targets.
63213
63214 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63215
63216         * lib/quotearg.c (ALERT_CHAR): New macro.
63217         (quotearg_buffer_restyled): Use it.
63218
63219 2000-02-27  Jim Meyering  <meyering@lucent.com>
63220
63221         * m4/check-decl.m4: Add getenv to the list.
63222
63223 2000-02-27  Jim Meyering  <meyering@lucent.com>
63224
63225         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63226         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63227
63228         * lib/backupfile.c: Guard inclusion of stdlib.h with
63229         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63230         Declare malloc if needed.
63231
63232         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63233         `#ifndef HAVE_DECL..'
63234         now that autoconf always defines the HAVE_DECL_ symbols.
63235         * lib/human.c: Likewise.
63236         * lib/same.c: Likewise.
63237         * lib/strtoumax.c: Likewise.
63238
63239         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63240         declaration check was not run.
63241         * lib/hash.c: Likewise.
63242         * lib/human.c: Likewise.
63243         * lib/same.c: Likewise.
63244         * lib/strtoumax.c: Likewise.
63245
63246         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63247         `.', then first look up the entire `.'-containing string as a login
63248         name.
63249
63250 2000-02-23  Jim Meyering  <meyering@lucent.com>
63251
63252         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63253         in place of my hack.
63254
63255 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63256
63257         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63258         (textint): New typedef.
63259         (parser_control): Member year changed from int to textint.
63260         All uses changed.
63261         (YYSTYPE): Removed; replaced by %union with int and textint members.
63262         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63263         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63264         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63265         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63266         (date, number, to_year): Use width of number in digits, not its value,
63267         to determine whether it's a 2-digit year, or a 2-digit time.
63268         (yylex): Store number of digits of numeric tokens.
63269         Reported by John Kendall.
63270
63271         (parser_control): Changed from struct parser_control to typedef (for
63272         consistency).  All uses changed.
63273
63274         (tID): Removed; not used.
63275         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63276
63277 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63278
63279         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63280         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63281
63282 2000-02-12  Jim Meyering  <meyering@lucent.com>
63283
63284         * lib/userspec.c (ISDIGIT): Define it.
63285         (isdigit): Remove definition.
63286         (is_number): Use ISDIGIT, not isdigit.
63287         <libintl.h>: Include.
63288         (_ and N_): Define.
63289         (parse_user_spec): Mark translatable strings.
63290
63291 2000-02-10  Jim Meyering  <meyering@lucent.com>
63292
63293         With these changes, nanosleep.[ch] are finally enough like the other
63294         lib/* replacement files to compile on a few more losing systems.
63295
63296         * lib/nanosleep.h: Don't include config.h.
63297         Remove prototype from declaration of nanosleep.
63298         (PARAMS): Remove now-unneeded definition.
63299         * lib/nanosleep.c: #undef nanosleep.
63300         (rpl_nanosleep): Rename from nanosleep.
63301
63302 2000-02-10  Jim Meyering  <meyering@lucent.com>
63303
63304         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63305         gnu_nanosleep to rpl_nanosleep.
63306
63307 2000-02-09  Jim Meyering  <meyering@lucent.com>
63308
63309         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63310         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63311
63312 2000-02-08  Akim Demaille  <akim@epita.fr>
63313
63314         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63315         `[' and `]' and remove uses of `changequote'.
63316         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63317         (AC_SYS_LARGEFILE): Likewise.
63318         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63319         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63320         of changequote.
63321         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63322         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63323         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63324         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63325
63326 2000-02-05  Jim Meyering  <meyering@lucent.com>
63327
63328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63329         Remove explicit use of AC_HEADER_TIME.  It is required by
63330         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63331         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63332         in autoconf whereby the expansion of the latter ended up preceding
63333         the expansion of its prerequisite, AC_HEADER_TIME.
63334         Reported by Volker Borchert.
63335
63336 2000-02-03  Jim Meyering  <meyering@lucent.com>
63337
63338         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63339
63340 2000-02-03  Jim Meyering  <meyering@lucent.com>
63341
63342         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63343         rather than with `#if HAVE_UTMPNAME'.
63344
63345 2000-02-02  Jim Meyering  <meyering@lucent.com>
63346
63347         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63348         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63349         Reported by Eli Zaretskii.
63350
63351 2000-02-01  Jim Meyering  <meyering@lucent.com>
63352
63353         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63354
63355 2000-01-31  Jim Meyering  <meyering@lucent.com>
63356
63357         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63358         functions.  Add the time.h and sys/time.h headers along with the
63359         AC_REQUIRE'ment of AC_HEADER_TIME.
63360
63361 2000-01-31  Jim Meyering  <meyering@lucent.com>
63362
63363         * lib/nanosleep.h (nanosleep): Guard declaration with
63364         `#if ! HAVE_DECL_NANOSLEEP'.
63365         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63366         the declaration in that vendor's sys/timers.h.
63367         Reported by Christian Krackowizer.
63368
63369         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63370         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63371         (ISPRINT): Likewise.
63372         Reported by Tom Tromey.
63373
63374 2000-01-30  Jim Meyering  <meyering@lucent.com>
63375
63376         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63377
63378         * m4/prereq.m4 (utmp_includes): Define.
63379         Check for ut_user and ut_name members in both struct utmpx
63380         and struct utmp.
63381
63382 2000-01-30  Jim Meyering  <meyering@lucent.com>
63383
63384         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63385         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63386         header files where only utmpx.ut_user is declared.
63387
63388         * lib/readutmp.h (UT_USER): Define.
63389
63390 2000-01-29  Jim Meyering  <meyering@lucent.com>
63391
63392         * m4/lib-check.m4: New file containing library-related checks from
63393         fileutils and sh-utils (textutils had none).
63394
63395 2000-01-28  Jim Meyering  <meyering@lucent.com>
63396
63397         * m4/perl.m4: Change format of warning message to look more like that
63398         from the missing script.  Suggestion from François Pinard.
63399
63400 2000-01-25  Jim Meyering  <meyering@lucent.com>
63401
63402         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63403         well as time.h in the compile check.
63404         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63405         Fix typo in cross-compiling case: s/yes/no/.
63406
63407 2000-01-23  Jim Meyering  <meyering@lucent.com>
63408
63409         * m4/jm-macros.m4: Move df-related tests here from
63410         fileutils/configure.in
63411
63412         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63413         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63414
63415         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63416         s/space/ac_fsusage_space/.
63417         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63418
63419         * m4/ftruncate.m4: New file (derived from part of
63420         fileutils/configure.in).
63421         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63422         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63423
63424         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63425         AC_SUBST these here, rather than just in sh-util/configure.in, so
63426         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63427         all the same.
63428         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63429         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63430         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63431         (AC_SUBST(POW_LIBM)): Likewise.
63432         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63433
63434 2000-01-23  Jim Meyering  <meyering@lucent.com>
63435
63436         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63437         obstack.c.
63438
63439 2000-01-22  Jim Meyering  <meyering@lucent.com>
63440
63441         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63442
63443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63444
63445         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63446         configure.in
63447         (AC_CHECK_HEADERS): Likewise for sh-utils.
63448         (AC_CHECK_HEADERS): Likewise for textutils.
63449         Merge the three lists of headers.
63450
63451         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63452         from fileutils' configure.in.
63453
63454         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63455         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63456         check-decl.m4.
63457
63458         * m4/check-decl.m4: Use #if rather than #ifdef.
63459         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63460         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63461         (_jm_DECL_HEADERS): Define new function.
63462         (jm_CHECK_DECLARATIONS): Require it.
63463
63464 2000-01-22  Jim Meyering  <meyering@lucent.com>
63465
63466         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63467         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63468         Required for some AIX systems.  Reported by Christian Krackowizer.
63469         [TESTING] (main): New function.
63470
63471         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63472         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63473         letters.
63474
63475         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63476         iswprint.
63477
63478         * lib/strverscmp.c (ISDIGIT): Define.
63479         (strverscmp): Use ISDIGIT, not isdigit.
63480
63481 2000-01-19  Jim Meyering  <meyering@lucent.com>
63482
63483         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63484         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63485         defines `struct timespec' in <sys/time.h>
63486
63487         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63488         Thanks to Akim for explaining.
63489
63490 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63491
63492         * lib/nanosleep.c (nanosleep):
63493         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63494         POSIX.1 doesn't require SA_INTERRUPT and some systems
63495         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63496         it's been part of POSIX.1 since day 1 (in 1988).
63497
63498 2000-01-17  Jim Meyering  <meyering@lucent.com>
63499
63500         * lib/interlock: Remove unused file.  Reported by François Pinard.
63501
63502 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63503
63504         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63505         alert, backslash, formfeed, and vertical tab unnecessarily in
63506         shell quoting style.
63507
63508 2000-01-16  Jim Meyering  <meyering@lucent.com>
63509
63510         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63511         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63512         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63513         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63514
63515 2000-01-16  Jim Meyering  <meyering@lucent.com>
63516
63517         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63518         because the latter didn't work.
63519
63520 2000-01-15  Jim Meyering  <meyering@lucent.com>
63521
63522         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63523         (AC_REPLACE_FUNCS): Add memcpy and memset.
63524         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63525         Add strpbrk.
63526         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63527
63528 2000-01-12  Jim Meyering  <meyering@lucent.com>
63529
63530         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63531         (jm_PREREQ): Use it.
63532         (jm_PREREQ_READUTMP): New macro.
63533         (jm_PREREQ): Use it.
63534
63535 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63536
63537         Quote multibyte characters correctly.
63538         * m4/c-bs-a.m4: New file.
63539         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63540         (jm_PREREQ): Use it.
63541
63542 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63543
63544         * m4/uintmax_t.m4: Port to autoconf 2.13.
63545
63546 2000-01-08  Jim Meyering  <meyering@ascend.com>
63547
63548         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63549         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63550
63551 2000-01-04  Jim Meyering  <meyering@ascend.com>
63552
63553         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63554         jm_STRUCT_DIRENT_D_TYPE.
63555         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63556         jm_STRUCT_DIRENT_D_INO.
63557         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63558         jm_STRUCT_UTIMBUF.
63559         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63560         renamings.
63561         * m4/utime.m4: Likewise.
63562
63563         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63564         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63565
63566 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63567
63568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63569         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63570
63571 2000-01-02  Jim Meyering  <meyering@ascend.com>
63572
63573         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63574         remember if this is necessary.
63575
63576 1999-12-26  Jim Meyering  <meyering@ascend.com>
63577
63578         * m4/jm-macros.m4: Use it here.
63579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63580
63581 1999-12-23  Jim Meyering  <meyering@ascend.com>
63582
63583         * m4/jm-macros.m4: Check for clock_gettime (moved from
63584         fileutils/configure.in)
63585         Check for gettimeofday.
63586
63587 1999-12-20  Jim Meyering  <meyering@ascend.com>
63588
63589         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63590         autoconf-2.14a-1999-12-20.
63591
63592 1999-12-19  Jim Meyering  <meyering@ascend.com>
63593
63594         * m4/lstat-slash.m4: New file.
63595         * m4/jm-macros.m4: Use the new macro:
63596         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63597
63598 1999-12-07  Jim Meyering  <meyering@ascend.com>
63599
63600         * m4/perl.m4: Require that File::Compare be available, too.
63601         Too many systems seem to lack it.
63602
63603         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63604         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63605
63606 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63607
63608         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63609         problem with the QNX 4.25 shell, which doesn't propagate exit
63610         status of failed commands inside shell assignments.
63611
63612 1999-11-17  Jim Meyering  <meyering@ascend.com>
63613
63614         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63615
63616 1999-11-07  Jim Meyering  <meyering@ascend.com>
63617
63618         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63619
63620 1999-11-06  Jim Meyering  <meyering@ascend.com>
63621
63622         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63623         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63624
63625 1999-11-05  Jim Meyering  <meyering@ascend.com>
63626
63627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63628         configure.in of textutils, fileutils, and sh-utils into this one
63629         (shared between those packages) file.
63630         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63631         AC_STRUCT_ST_BLKSIZE.
63632
63633 1999-11-03  Jim Meyering  <meyering@ascend.com>
63634
63635         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63636         of AC_CHECK_TYPE checks includes unistd.h.
63637         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63638         Suggestion from Akim Demaille.
63639
63640 1999-10-30  Jim Meyering  <meyering@ascend.com>
63641
63642         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63643         m4-quoted string.
63644         * m4/ls-mntd-fs.m4: Likewise.
63645         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63646         * m4/jm-winsz1.m4: Likewise.
63647
63648         * m4/const.m4: Remove file, since the fix made it into the experimental
63649         version of autoconf.
63650         * m4/mktime.m4: Likewise.
63651
63652         * m4/check-type.m4: Remove file, now that the latest version of
63653         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63654
63655         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63656         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63657         AC_CHECK_TYPE.
63658
63659 1999-10-04  Jim Meyering  <meyering@ascend.com>
63660
63661         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63662
63663 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63664
63665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63666         2.95.1 bug with HP-UX 10.20.
63667
63668 1999-09-17  Jim Meyering  <meyering@ascend.com>
63669
63670         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63671         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63672         due to missing strdup (against sh-utils-2.0).
63673
63674 1999-08-29  Jim Meyering  <meyering@ascend.com>
63675
63676         * m4/jm-macros.m4: Require jm_BISON.
63677         * m4/bison.m4: New file.
63678
63679 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63680
63681         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63682         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63683
63684 1999-08-05  Jim Meyering  <meyering@ascend.com>
63685
63686         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63687         to avoid conflicts with `conftest' on 8+3 filesystems.
63688         Suggestion from Eli Zaretskii.
63689
63690 1999-08-04  Jim Meyering  <meyering@ascend.com>
63691
63692         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63693         fileutils and sh-utils (textutils's getline test was inadequate).
63694         (AM_FUNC_GETLINE): Run this test.
63695         (AC_CHECK_FUNCS): Check for getdelim.
63696         Reported by Bob Proulx.
63697
63698 1999-08-02  Jim Meyering  <meyering@ascend.com>
63699
63700         * m4/jm-macros.m4: Add a comment.
63701
63702 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63703
63704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63705         <inttypes.h> defines strtoumax as a macro (and not as a
63706         function).
63707
63708 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63709
63710         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63711         that we can shift, multiply and divide unsigned long long
63712         values; Ultrix cc can't do it.
63713
63714 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63715
63716         * m4/mktime.m4: New file, which is a preview of what should appear
63717         in the next public autoconf release.
63718
63719 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63720
63721         * m4/lfs.m4: Remove this file.
63722         * m4/largefile.m4: New file.  It contains the old contents of
63723         lfs.m4, except that all names with prefix AC_LFS have been
63724         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63725         compatible with future autoconf versions.  Also, some minor m4
63726         quoting problems have been fixed.
63727
63728 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63729
63730         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63731         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63732         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63733         and simplify the shell code.
63734
63735 1999-08-01  Jim Meyering  <meyering@ascend.com>
63736
63737         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63738         m4.
63739
63740 1999-07-20  Jim Meyering  <meyering@ascend.com>
63741
63742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63743
63744 1999-07-15  Jim Meyering  <meyering@ascend.com>
63745
63746         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63747
63748 1999-05-22  Jim Meyering  <meyering@ascend.com>
63749
63750         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63751
63752 1999-05-20  Jim Meyering  <meyering@ascend.com>
63753
63754         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63755         Add a colon after each `then' in case $4 is empty.
63756
63757 1999-05-16  Jim Meyering  <meyering@ascend.com>
63758
63759         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63760
63761 1999-05-10  Jim Meyering  <meyering@ascend.com>
63762
63763         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63764
63765         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63766         AC_FUNC_MKTIME.
63767
63768 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63769
63770         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63771
63772 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63773
63774         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63775         not CPPFLAGS, so that linking works correctly in IRIX.
63776
63777 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63778
63779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63780
63781 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63782
63783         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63784         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63786         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63787         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63788
63789         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63790
63791 1999-04-20  Jim Meyering  <meyering@ascend.com>
63792
63793         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63794         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63795         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63796
63797 1999-04-18  Jim Meyering  <meyering@ascend.com>
63798
63799         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63800         * m4/jm-macros.m4: Use it.
63801
63802 1999-04-06  Jim Meyering  <meyering@ascend.com>
63803
63804         * m4/strftime.m4: Remove test for %f.
63805
63806 1999-03-29  Jim Meyering  <meyering@ascend.com>
63807
63808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63809         superset of the AC_TYPE_* checks in the textutils, fileutils,
63810         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63811         AC_TYPE_PID_T.
63812
63813 1999-03-28  Jim Meyering  <meyering@ascend.com>
63814
63815         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63816         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63817         replaced e.g., in the *.sh files of the sh-utils.
63818
63819 1999-03-20  Jim Meyering  <meyering@ascend.com>
63820
63821         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63822         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63823         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63824
63825 1999-03-19  Jim Meyering  <meyering@ascend.com>
63826
63827         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63828
63829 1999-03-12  Jim Meyering  <meyering@ascend.com>
63830
63831         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63832
63833 1999-03-07  Jim Meyering  <meyering@ascend.com>
63834
63835         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63836         declared.
63837
63838 1999-02-17  Jim Meyering  <meyering@ascend.com>
63839
63840         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63841         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63842
63843 1999-02-07  Jim Meyering  <meyering@ascend.com>
63844
63845         * m4/group-member.m4: New file -- extracted from sh-utils'
63846         configure.in.
63847
63848         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63849         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63850
63851 1999-02-06  Jim Meyering  <meyering@ascend.com>
63852
63853         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63854         * m4/fnmatch.m4: Likewise.
63855         * m4/getgroups.m4: Likewise.
63856         * m4/lstat.m4: Likewise.
63857         * m4/malloc.m4: Likewise.
63858         * m4/putenv.m4: Likewise.
63859         * m4/realloc.m4: Likewise.
63860         * m4/regex.m4: Likewise.
63861         * m4/stat.m4: Likewise.
63862         * m4/strftime.m4: Likewise.
63863         Suggestion from Alain Magloire.
63864
63865         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63866         * m4/fnmatch.m4: Likewise.
63867         * m4/getgroups.m4: Likewise.
63868         * m4/getline.m4: Likewise.
63869         * m4/lstat.m4: Likewise.
63870         * m4/malloc.m4: Likewise.
63871         * m4/memcmp.m4: Likewise.
63872         * m4/putenv.m4: Likewise.
63873         * m4/realloc.m4: Likewise.
63874         * m4/regex.m4: Likewise.
63875         * m4/stat.m4: Likewise.
63876         * m4/strftime.m4: Likewise.
63877         Suggestion from Alain Magloire.
63878
63879         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63880         an argument.
63881
63882         * m4/regex.m4: Add a run-time Test for proper operation of
63883         re_compile_pattern.
63884
63885 1999-01-31  Jim Meyering  <meyering@ascend.com>
63886
63887         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63888
63889 1999-01-30  Jim Meyering  <meyering@ascend.com>
63890
63891         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63892
63893         * m4/jm-mktime.m4: Make this a wrapper around the official
63894         AM_FUNC_MKTIME rather than my private copy, now that the official one
63895         is up to date.
63896         * m4/mktime.m4: Remove file.
63897
63898         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63899         * m4/uptime.m4: Likewise.
63900         * m4/uintmax_t.m4: Likewise.
63901
63902 1999-01-28  Jim Meyering  <meyering@ascend.com>
63903
63904         * m4/jm-macros.m4: Use jm_AFS.
63905         * m4/afs.m4: New file (from fileutils' configure.in).
63906
63907         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63908         * m4/chown.m4: Likewise.
63909         * m4/d-ino.m4: Likewise.
63910         * m4/d-type.m4: Likewise.
63911         * m4/fnmatch.m4: Likewise.
63912         * m4/getgroups.m4: Likewise.
63913         * m4/gettext.m4: Likewise.
63914         * m4/jm-mktime.m4: Likewise.
63915         * m4/jm-winsz2.m4: Likewise.
63916         * m4/lcmessage.m4: Likewise.
63917         * m4/ls-mntd-fs.m4: Likewise.
63918         * m4/malloc.m4: Likewise.
63919         * m4/memcmp.m4: Likewise.
63920         * m4/putenv.m4: Likewise.
63921         * m4/realloc.m4: Likewise.
63922         * m4/st_mtim.m4: Likewise.
63923         * m4/strftime.m4: Likewise.
63924
63925 1999-01-16  Jim Meyering  <meyering@ascend.com>
63926
63927         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63928         (ARGMATCH_DIE_DECL): Define.
63929
63930 1999-01-12  Jim Meyering  <meyering@ascend.com>
63931
63932         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63933         Reported by Lars Hecking.
63934
63935 1999-01-10  Jim Meyering  <meyering@ascend.com>
63936
63937         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63938         gross kludge.
63939         * m4/inttypes_h.m4: Likewise.
63940         * m4/lstat.m4: Likewise.
63941         * m4/malloc.m4: Likewise.
63942         * m4/readdir.m4: Likewise.
63943         * m4/realloc.m4: Likewise.
63944         * m4/st_dm_mode.m4: Likewise.
63945         * m4/stat.m4: Likewise.
63946         * m4/utimbuf.m4: Likewise.
63947         * m4/utimes.m4: Likewise.
63948
63949         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63950         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63951         comments in config.h.in are meaningful.
63952
63953         * m4/jm-macros.m4: Require autoconf-2.13 here.
63954
63955         * m4/regex.m4: By default, don't use the included regex.c on systems
63956         with glibc 2.  Suggestion from Uli Drepper.
63957
63958 1999-01-02  Jim Meyering  <meyering@ascend.com>
63959
63960         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63961
63962 1998-12-18  Jim Meyering  <meyering@ascend.com>
63963
63964         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63965         Based on a suggestion from Lars Hecking.
63966
63967 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63968
63969         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63970
63971 1998-11-16  Jim Meyering  <meyering@ascend.com>
63972
63973         * m4/lfs.m4: Double-quote the `uname...` expression.
63974
63975 1998-11-14  Jim Meyering  <meyering@ascend.com>
63976
63977         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63978         * m4/stat.m4: Likewise.
63979
63980 1998-11-03  Jim Meyering  <meyering@ascend.com>
63981
63982         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63983         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63984
63985 1998-10-18  Jim Meyering  <meyering@ascend.com>
63986
63987         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63988
63989 1998-10-17  Jim Meyering  <meyering@ascend.com>
63990
63991         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63992         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63993         calls for those previously hard-coded headers.  Instead, take a new
63994         parameter.
63995         (jm_CHECK_DECLARATIONS): Reflect interface change.
63996         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63997         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63998
63999         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64000
64001 1998-10-14  Jim Meyering  <meyering@ascend.com>
64002
64003         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64004         instead of "TZ=America/Vancouver".  From Paul Eggert.
64005
64006 1998-10-11  Jim Meyering  <meyering@ascend.com>
64007
64008         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64009         This adds a test for a recently added compatibility fix for mktime.c.
64010         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64011
64012 1998-09-27  Jim Meyering  <meyering@ascend.com>
64013
64014         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64015
64016         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64017         ../configure.in, including a change from Gordon Matzigkeit to allow
64018         cross-compiling for the Hurd.
64019
64020         * m4/glibc.m4: New file/macro to test for the GNU C Library
64021         versions 1 and 2.  From Gordon Matzigkeit.
64022         Indent.
64023
64024 1998-09-21  Jim Meyering  <meyering@ascend.com>
64025
64026         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64027
64028 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64029
64030         Port nanosecond-resolution times to UnixWare 2.1.2 and
64031         pedantic Solaris 2.6.
64032
64033         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64034         AC_STRUCT_ST_MTIM.
64035         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64036         Generate name of ns member, instead of just 1 or undef.
64037         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64038
64039 1998-08-15  Jim Meyering  <meyering@ascend.com>
64040
64041         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64042         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64043         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64044         instead of jm_TYPE_SSIZE_T.
64045
64046 1998-08-12  Jim Meyering  <meyering@ascend.com>
64047
64048         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64049
64050 1998-08-02  Jim Meyering  <meyering@ascend.com>
64051
64052         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64053         in acconfig.h manually.
64054
64055 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64056
64057         * m4/st_mtim.m4: New file.
64058
64059 1998-07-28  Jim Meyering  <meyering@ascend.com>
64060
64061         * m4/utimes.m4: Undef stat.
64062
64063 1998-07-25  Jim Meyering  <meyering@ascend.com>
64064
64065         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64066         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64067
64068 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64069
64070         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64071         uid and gid actually remain unchanged.
64072
64073 1998-07-07  Jim Meyering  <meyering@ascend.com>
64074
64075         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64076
64077 1998-07-04  Jim Meyering  <meyering@ascend.com>
64078
64079         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64080         to prove that this macro can be used in packages without regex.c.
64081
64082 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64083
64084         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64085         is to be used.
64086
64087 1998-07-03  Jim Meyering  <meyering@ascend.com>
64088
64089         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64090
64091         * m4/gettext.m4: New file -- from gettext-0.10.35.
64092         * m4/lcmessage.m4: Likewise.
64093         * m4/progtest.m4: Likewise.
64094
64095         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64096         * m4/jm-macros.m4: Require the new macro.
64097
64098 1998-06-29  Jim Meyering  <meyering@ascend.com>
64099
64100         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64101         for the definition of NGROUPS (used in a system header included
64102         by sys/mount.h).
64103
64104 1998-06-28  Jim Meyering  <meyering@ascend.com>
64105
64106         * m4/ls-mntd-fs.m4: New file.
64107         * m4/fstypename.m4: New file.
64108
64109         * m4/jm-macros.m4: Require the new macro.
64110         * m4/jm-glibc-io.m4: New file.
64111
64112 1998-05-19  Jim Meyering  <meyering@ascend.com>
64113
64114         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64115         * m4/lchown.m4: New file.
64116
64117         * m4/Makefile.am.in: New file.
64118         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64119
64120 1998-05-14  Jim Meyering  <meyering@ascend.com>
64121
64122         * m4/Makefile.am (EXTRA_DIST): Add them.
64123         * m4/jm-macros.m4: New file.
64124         * m4/utimbuf.m4: New file.
64125
64126 1998-05-12  Jim Meyering  <meyering@ascend.com>
64127
64128         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64129
64130 1998-05-11  Jim Meyering  <meyering@ascend.com>
64131
64132         * m4/isc-posix.m4: New file.
64133
64134 1998-05-10  Jim Meyering  <meyering@ascend.com>
64135
64136         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64137
64138 1998-05-09  Jim Meyering  <meyering@ascend.com>
64139
64140         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64141         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64142         with automake.
64143
64144         * m4/ssize_t.m4: New file.
64145         * m4/mktime.m4: Remove file -- the new automake has this now.
64146
64147 1998-04-26  Jim Meyering  <meyering@ascend.com>
64148
64149         * m4/assert.m4: New file.
64150         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64151
64152 1998-04-05  Jim Meyering  <meyering@ascend.com>
64153
64154         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64155         (jm_PREREQ): Use it here.
64156
64157 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64158
64159         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64160         in acconfig.h.
64161
64162 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64163
64164         * m4/prereq.m4: New file.
64165         * m4/error.m4: New file.
64166         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64167
64168 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64169
64170         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64171         cache-check for the same variable -- that defeated the purpose of
64172         the test; the test program was never run.  This was a problem only
64173         on systems with losing getline functions -- HP-UX 10.20 is one.
64174         Reported by Bjorn Helgaas.
64175
64176 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64177
64178         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64179
64180 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64181
64182         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64183
64184         * m4/const.m4: New file.  Use an initializer in this declaration
64185         typedef int charset[2]; const charset x;
64186         Reported by Bob Glickstein.
64187
64188 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64189
64190         * m4/chown.m4: Fix reversed types on -1 args to chown.
64191         From Kaveh Ghazi.
64192
64193 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64194
64195         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64196         Add lseek and memchr.
64197
64198         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64199         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64200         have a 20-character limit on names.
64201
64202 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64203
64204         * m4/inttypes_h.m4: New file.
64205         * m4/uintmax_t.m4: New file.
64206         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64207
64208
64209         -----
64210
64211         Local Variables:
64212         coding: utf-8
64213         End:
64214
64215         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64216
64217         Copying and distribution of this file, with or without
64218         modification, are permitted provided the copyright notice
64219         and this notice are preserved.