forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
[gnulib.git] / ChangeLog
1 2010-03-21  Bruno Haible  <bruno@clisp.org>
2
3         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5         modifications.
6         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8         provide the replacement.
9         * modules/forkpty (Depends-on): Add openpty, login_tty.
10         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
12         * doc/glibc-functions/forkpty.texi: More supported platforms.
13         * config/srclist.txt: Add forkpty.c (commented).
14
15 2010-03-21  Bruno Haible  <bruno@clisp.org>
16
17         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18         (Makefile.am): Verify that PTY_LIB is defined.
19
20         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21
22 2010-03-21  Bruno Haible  <bruno@clisp.org>
23
24         Tests for module 'login_tty'.
25         * modules/login_tty-tests: New file.
26         * tests/test-login_tty.c: New file.
27
28         New module 'login_tty'.
29         * lib/login_tty.c: New file.
30         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31         * modules/login_tty: New file.
32         * doc/glibc-functions/login_tty.texi: Mention the new module.
33
34 2010-03-21  Bruno Haible  <bruno@clisp.org>
35
36         login_tty: Documentation.
37         * doc/glibc-functions/login_tty.texi: New file.
38         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
39
40 2010-03-21  Bruno Haible  <bruno@clisp.org>
41
42         pty: Consistent macro naming.
43         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
44         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
45         * modules/pty (configure.ac): Update.
46
47 2010-03-21  Bruno Haible  <bruno@clisp.org>
48
49         Tests for openpty: Make stricter.
50         * tests/test-openpty.c (main): Add test of canonical processing and
51         erase.
52         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
53
54         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
55         * lib/openpty.c (openpty): New replacement function.
56         * lib/pty.in.h: Include <termios.h>.
57         (openpty): Update declaration. Add comments.
58         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
59         is not declared, arrange to provide the replacement. Check for _getpty
60         and posix_openpt.
61         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
62         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
63         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
64         * modules/pty-tests (test_pty_c___LDADD): New variable.
65         * doc/glibc-functions/openpty.texi: More supported platforms.
66
67 2010-03-21  Bruno Haible  <bruno@clisp.org>
68
69         setenv: Tweaks.
70         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71         the test program.
72         * doc/posix-functions/setenv.texi: Update platforms list.
73
74 2010-03-21  Bruno Haible  <bruno@clisp.org>
75
76         New module 'unlockpt'.
77         * lib/unlockpt.c: New file, from glibc with modifications.
78         * m4/unlockpt.m4: New file.
79         * modules/unlockpt: New file.
80         * lib/stdlib.in.h (unlockpt): New declaration.
81         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
82         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
83         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
84         HAVE_UNLOCKPT.
85         * doc/posix-functions/unlockpt.texi: Mention the new module.
86         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
87         * config/srclist.txt: Add unlockpt.c (commented).
88
89 2010-03-21  Jim Meyering  <meyering@redhat.com>
90
91         maint.mk: prohibit inclusion of "intprops.h" without use
92         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
93
94 2010-03-21  Bruno Haible  <bruno@clisp.org>
95
96         New module 'grantpt'.
97         * lib/grantpt.c: New file, from glibc with modifications.
98         * m4/grantpt.m4: New file.
99         * modules/grantpt: New file.
100         * lib/stdlib.in.h (grantpt): New declaration.
101         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
102         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
103         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
104         HAVE_GRANTPT.
105         * doc/posix-functions/grantpt.texi: Mention the new module.
106         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
107         * config/srclist.txt: Add grantpt.c (commented).
108
109 2010-03-21  Bruno Haible  <bruno@clisp.org>
110
111         New module 'pt_chown'.
112         * lib/pt_chown.c: New file, from glibc with modifications.
113         * lib/pty-private.h: New file, from glibc with modifications.
114         * modules/pt_chown: New file.
115         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
116
117 2010-03-21  Bruno Haible  <bruno@clisp.org>
118
119         Tests for module 'ptsname'.
120         * modules/ptsname-tests: New file.
121         * tests/test-ptsname.c: New file.
122
123         New module 'ptsname'.
124         * lib/ptsname.c: New file, from glibc with modifications.
125         * m4/ptsname.m4: New file.
126         * modules/ptsname: New file.
127         * lib/stdlib.in.h (ptsname): New declaration.
128         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
129         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
130         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
131         HAVE_PTSNAME.
132         * doc/posix-functions/ptsname.texi: Mention the new module.
133         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
134         * config/srclist.txt: Add ptsname.c (commented).
135
136 2010-03-21  Bruno Haible  <bruno@clisp.org>
137
138         Tests for module 'ttyname_r'.
139         * modules/ttyname_r-tests: New file.
140         * tests/test-ttyname_r.c: New file.
141
142         New module 'ttyname_r'.
143         * lib/ttyname_r.c: New file.
144         * m4/ttyname_r.m4: New file.
145         * modules/ttyname_r: New file.
146         * lib/unistd.in.h (ttyname_r): New declaration.
147         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
148         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
149         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
150         HAVE_TTYNAME_R.
151         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
152         * doc/posix-functions/ttyname_r.texi: Mention the new module.
153
154 2010-03-20  Bruno Haible  <bruno@clisp.org>
155
156         signal: Undefine macro definitions in C++ mode.
157         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
158         sigfillset): Undefine macro definitions from the system header in C++
159         mode.
160         Reported by John W. Eaton <jwe@gnu.org>.
161
162 2010-03-20  Bruno Haible  <bruno@clisp.org>
163
164         Ensure no #include statements inside extern "C" { ... }.
165         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
166         contain #include statements.
167         * lib/time.in.h: Likewise.
168
169 2010-03-20  Bruno Haible  <bruno@clisp.org>
170
171         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
172         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
173         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
174         Reported by John W. Eaton <jwe@gnu.org>.
175
176 2010-03-20  Bruno Haible  <bruno@clisp.org>
177
178         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
179         Reported by Jim Meyering.
180
181 2010-03-20  Bruno Haible  <bruno@clisp.org>
182
183         pipe: Set errno upon failure.
184         * lib/pipe.h: Specify that when -1 is returned, errno is set.
185         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
186         errno value in error message.
187
188 2010-03-20  Bruno Haible  <bruno@clisp.org>
189             Jim Meyering  <meyering@redhat.com>
190
191         lchown: Avoid "unused variable" warning.
192         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
193
194 2010-03-20  Bruno Haible  <bruno@clisp.org>
195
196         Work around unlink() bug on MacOS X 10.5.6.
197         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
198         attempting to unlink a parent directory.
199         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
200         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
201         activate for the replacement function.
202         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
203
204 2010-03-20  Bruno Haible  <bruno@clisp.org>
205
206         Fix link errors on Solaris 8.
207         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
208         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
209
210 2010-03-19  Jim Meyering  <meyering@redhat.com>
211
212         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
213         The _LIBC implementation of build_range_exp correctly honors the
214         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
215         However, the non-_LIBC implementation would ignore that syntax-bit
216         flag and return REG_ERANGE unconditionally.
217         This change makes it honor that flag.
218         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
219         Make two pointer parameters "const".
220         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
221         (parse_bracket_exp): Update caller.
222
223         regex.m4: correct the reversed range endpoint ([b-a]) test
224         * m4/regex.m4: When requiring that [b-a] evoke failure,
225         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
226         test pass once again for x86-based systems.
227
228 2010-03-19  Bruno Haible  <bruno@clisp.org>
229
230         scandir: Fix link error on Solaris 8.
231         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
232         macros.
233
234 2010-03-19  Bruno Haible  <bruno@clisp.org>
235
236         getusershell: Fix documentation.
237         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
238         module.
239         * doc/glibc-functions/setusershell.texi: Likewise.
240
241         getusershell: Provide declaration, missing on Solaris 9.
242         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
243         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
244         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
245         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
247         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
248         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
249         HAVE_GETUSERSHELL.
250         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
251
252 2010-03-19  Bruno Haible  <bruno@clisp.org>
253
254         wctype: Provide iswblank function.
255         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
256         exists and is fine.
257         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
258         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
259         * tests/test-wctype.c (main): Re-enable the iswblank tests.
260         * doc/posix-functions/iswblank.texi: Update.
261
262 2010-03-19  Bruno Haible  <bruno@clisp.org>
263
264         Tests of module 'pty' in C++ mode.
265         * modules/pty-tests: New file.
266         * tests/test-pty-c++.cc: New file.
267         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
268
269 2010-03-19  Eric Blake  <eblake@redhat.com>
270
271         logb: fix documentation
272         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
273         1.5 declaration bug.
274
275         forkpty, openpty: prefer glibc's const-safe prototype
276         * lib/forkpty.c (rpl_forkpty): New file.
277         * lib/openpty.c (rpl_openpty): Likewise.
278         * modules/forkpty (Files): Distribute it.
279         * modules/openpty (Files): Likewise.
280         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
281         check...
282         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
283         replacement for for non-const BSD signature.
284         * modules/pty (Makefile.am): Substitute witnesses.
285         * lib/pty.in.h (forkpty, openpty): Declare replacements.
286         * tests/test-forkpty.c: Update signature check.
287         * tests/test-openpty.c: Likewise.
288         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
289         * doc/glibc-functions/openpty.texi (openpty): Likewise.
290
291         forkpty, openpty: split functions into new modules
292         * modules/pty (Makefile.am): Substitute new witnesses.
293         (Libraries): Move library detection...
294         * modules/forkpty: ...into new module.
295         * modules/openpty: Another new module.
296         * modules/pty-tests: Rename and split...
297         * modules/forkpty-tests: ...to this...
298         * modules/openpty-tests: ...and this.
299         * tests/test-pty.c: Rename and split...
300         * tests/test-forkpty.c: ...to this...
301         * tests/test-openpty.c: ...and this.
302         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
303         (gl_PTY): Split library searching...
304         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
305         (gl_FORKPTY, gl_OPENPTY): New macros.
306         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
307         * NEWS: Mention the split.
308         * MODULES.html.sh (Misc): Document the modules.
309         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
310         * doc/glibc-functions/openpty.texi (openpty): Likewise.
311
312         pty: improve replacement header
313         * lib/pty.in.h: New file.
314         * modules/pty (Files): Ship it.
315         (Makefile.am): Always build replacement.
316         * m4/pty.m4: Rename...
317         * m4/pty_h.m4: ...to this.
318         (gl_PTY): Modernize setting of witness macros; update check of
319         forkpty to take proper advantage of cache.
320         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
321
322         getopt: avoid compiler warning
323         * lib/getopt.c (attribute_hidden): Remove unused macro.
324
325 2010-03-18  Bruno Haible  <bruno@clisp.org>
326
327         Fix link errors on Solaris 8.
328         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
329         * modules/search-tests (test_search_c___LDADD): Likewise.
330         * modules/signal-tests (test_signal_c___LDADD): Likewise.
331         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
332         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
333         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
334         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
335         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
336         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
337
338 2010-03-18  Bruno Haible  <bruno@clisp.org>
339
340         Fix bug introduced on 2010-03-14.
341         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
342         (gl_SPAWN_H): Require it.
343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
344         Reported by Simon Josefsson.
345
346 2010-03-18  Bruno Haible  <bruno@clisp.org>
347
348         Fix typo introduced on 2009-12-31.
349         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
350         posix_spawn_file_actions_adddup2.
351
352 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
353         and Eric Blake  <eblake@redhat.com>
354
355         test-vc-list-files-git: make more robust
356         * tests/test-vc-list-files-git.sh: Unset problematic environment
357         variables.  Chain commands together.
358
359 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
360
361         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
362         `AC_CHECK_DECL' invocation.
363
364 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
365
366         * lib/inttostr.c (inttostr): Make sure the invocation of verify
367         appears before executable statements. Suggested by Petr Sumbera
368         <Petr.Sumbera@Sun.COM>.
369
370 2010-03-14  Bruno Haible  <bruno@clisp.org>
371
372         * tests/test-flock.c (test_exclusive): Comment out a test that causes
373         portability problems. Instead use a simpler test.
374         (main): Check that invalid arguments are rejected only on Linux.
375
376 2010-03-14  Bruno Haible  <bruno@clisp.org>
377
378         Fix bug introduced on 2009-12-31.
379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
380         gl_PREREQ_SYS_H_WINSOCK2 always.
381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
382         SYS_SOCKET_H variable.
383         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
384         Update comments.
385         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
386         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
388         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
389         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
390
391 2010-03-14  Bruno Haible  <bruno@clisp.org>
392
393         Fix values returned by sinl, cosl.
394         * lib/trigl.h: Add specification comments.
395         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
396         that combines the values from the precomputed table with the values of
397         the Chebyshev polynomials.
398
399 2010-03-14  Bruno Haible  <bruno@clisp.org>
400
401         Fix compilation error when modules 'posix_spawn[p]' are not used.
402         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
404
405 2010-03-14  Bruno Haible  <bruno@clisp.org>
406
407         Fix compilation error on mingw when module 'time_r' is not used.
408         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
409         is 1.
410         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
411         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
412         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
413         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
414
415 2010-03-14  Bruno Haible  <bruno@clisp.org>
416
417         Fix compilation error with Sun C.
418         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
419         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
420         instead of GCC specific ULONG_LONG_MAX.
421         * lib/xstrtoll.c: Likewise.
422         * lib/xstrtoull.c: Likewise.
423
424 2010-03-13  Bruno Haible  <bruno@clisp.org>
425
426         Allow the user to disable C++ code and tests.
427         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
428         (gl_PROG_ANSI_CXX): Require it.
429
430 2010-03-13  Bruno Haible  <bruno@clisp.org>
431
432         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
433         cases.
434
435 2010-03-13  Bruno Haible  <bruno@clisp.org>
436
437         Test that gnulib does not break the standard C++ headers.
438         * tests/test-locale-c++2.cc: New file.
439         * modules/locale-tests (Files): Add it.
440         (Makefile.am): Compile it for test-locale-c++.
441         * tests/test-math-c++2.cc: New file.
442         * modules/math-tests (Files): Add it.
443         (Makefile.am): Compile it for test-math-c++.
444         * tests/test-signal-c++2.cc: New file.
445         * modules/signal-tests (Files): Add it.
446         (Makefile.am): Compile it for test-signal-c++.
447         * tests/test-stdio-c++2.cc: New file.
448         * modules/stdio-tests (Files): Add it.
449         (Makefile.am): Compile it for test-stdio-c++.
450         * tests/test-stdlib-c++2.cc: New file.
451         * modules/stdlib-tests (Files): Add it.
452         (Makefile.am): Compile it for test-stdlib-c++.
453         * tests/test-string-c++2.cc: New file.
454         * modules/string-tests (Files): Add it.
455         (Makefile.am): Compile it for test-string-c++.
456         * tests/test-time-c++2.cc: New file.
457         * modules/time-tests (Files): Add it.
458         (Makefile.am): Compile it for test-time-c++.
459         Reported by John W. Eaton <jwe@gnu.org>.
460
461 2010-03-13  Bruno Haible  <bruno@clisp.org>
462
463         * gnulib-tool (func_usage): Clarify which options are available for
464         --create-testdir and --create-megatestdir.
465
466 2010-03-13  Bruno Haible  <bruno@clisp.org>
467
468         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
469         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
470         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
471         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
472         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
473         when appropriate.
474         Reported by Jim Meyering.
475
476 2010-03-12  Simon Josefsson  <simon@josefsson.org>
477
478         * gnulib-tool (func_import): Explain origin of code.
479
480 2010-03-12  Bruno Haible  <bruno@clisp.org>
481
482         Fix problem with automake's definition of CXXLINK.
483         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
484         Reported by Simon Josefsson and Ludovic Courtès.
485
486 2010-03-12  Bruno Haible  <bruno@clisp.org>
487
488         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
489         stable releases.
490
491 2010-03-11  Bruno Haible  <bruno@clisp.org>
492
493         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
494         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
495         whether the system provides one variant or multiple variants of the
496         function.
497         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
498         C++ compilers.
499         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
500         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
501         Reported by Jim Meyering.
502
503 2010-03-09  Simon Josefsson  <simon@josefsson.org>
504
505         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
506
507 2010-03-08  Bruno Haible  <bruno@clisp.org>
508
509         gnulib-tool: Add support for --libtool in --create-testdir.
510         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
511         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
512
513 2010-03-08  Eric Blake  <eblake@redhat.com>
514
515         gnulib-tool.texi: mention possibility of git submodule
516         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
517         submodules.
518         * doc/.gitignore: Ignore another generated file.
519
520 2010-03-08  Karl Berry  <karl@gnu.org>
521
522         * doc/gnulib-tool.texi (VCS Issues): Mention third option
523         of committing gnulib files while skipping others.
524
525 2010-03-07  Bruno Haible  <bruno@clisp.org>
526
527         Tests of module 'wctype' in C++ mode.
528         * tests/test-wctype-c++.cc: New file.
529         * modules/wctype-tests (Files): Add it and tests/signature.h.
530         (Depends-on): Add ansi-c++-opt.
531         (Makefile.am): Arrange to compile and run test-wctype-c++.
532
533         Tests of module 'wchar' in C++ mode.
534         * tests/test-wchar-c++.cc: New file.
535         * modules/wchar-tests (Files): Add it and tests/signature.h.
536         (Depends-on): Add ansi-c++-opt.
537         (Makefile.am): Arrange to compile and run test-wchar-c++.
538         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
539         gl_MODULE_INDICATOR.
540
541         Tests of module 'unistd' in C++ mode.
542         * tests/test-unistd-c++.cc: New file.
543         * modules/unistd-tests (Files): Add it and tests/signature.h.
544         (Depends-on): Add ansi-c++-opt.
545         (Makefile.am): Arrange to compile and run test-unistd-c++.
546         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
547         gl_MODULE_INDICATOR.
548
549         Tests of module 'time' in C++ mode.
550         * tests/test-time-c++.cc: New file.
551         * modules/time-tests (Files): Add it and tests/signature.h.
552         (Depends-on): Add ansi-c++-opt.
553         (Makefile.am): Arrange to compile and run test-time-c++.
554         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
555
556         Tests of module 'sys_time' in C++ mode.
557         * tests/test-sys_time-c++.cc: New file.
558         * modules/sys_time-tests (Files): Add it and tests/signature.h.
559         (Depends-on): Add ansi-c++-opt.
560         (Makefile.am): Arrange to compile and run test-sys_time-c++.
561         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
562         gl_MODULE_INDICATOR.
563
564         Tests of module 'sys_stat' in C++ mode.
565         * tests/test-sys_stat-c++.cc: New file.
566         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
567         (Depends-on): Add ansi-c++-opt.
568         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
570         gl_MODULE_INDICATOR.
571
572         Tests of module 'sys_socket' in C++ mode.
573         * tests/test-sys_socket-c++.cc: New file.
574         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
575         (Depends-on): Add ansi-c++-opt.
576         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
578         gl_MODULE_INDICATOR.
579
580         Tests of module 'sys_select' in C++ mode.
581         * tests/test-sys_select-c++.cc: New file.
582         * modules/sys_select-tests (Files): Add it and tests/signature.h.
583         (Depends-on): Add ansi-c++-opt.
584         (Makefile.am): Arrange to compile and run test-sys_select-c++.
585         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
586         gl_MODULE_INDICATOR.
587
588         Tests of module 'sys_ioctl' in C++ mode.
589         * tests/test-sys_ioctl-c++.cc: New file.
590         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
591         (Depends-on): Add ansi-c++-opt.
592         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
594         gl_MODULE_INDICATOR.
595
596         Tests of module 'string' in C++ mode.
597         * tests/test-string-c++.cc: New file.
598         * modules/string-tests (Files): Add it and tests/signature.h.
599         (Depends-on): Add ansi-c++-opt.
600         (Makefile.am): Arrange to compile and run test-string-c++.
601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
602         gl_MODULE_INDICATOR.
603
604         Tests of module 'stdlib' in C++ mode.
605         * tests/test-stdlib-c++.cc: New file.
606         * modules/stdlib-tests (Files): Add it and tests/signature.h.
607         (Depends-on): Add ansi-c++-opt.
608         (Makefile.am): Arrange to compile and run test-stdlib-c++.
609         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
610         gl_MODULE_INDICATOR.
611
612         Tests of module 'stdio' in C++ mode.
613         * tests/test-stdio-c++.cc: New file.
614         * modules/stdio-tests (Files): Add it and tests/signature.h.
615         (Depends-on): Add ansi-c++-opt.
616         (Makefile.am): Arrange to compile and run test-stdio-c++.
617         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
618         gl_MODULE_INDICATOR.
619
620         Tests of module 'spawn' in C++ mode.
621         * tests/test-spawn-c++.cc: New file.
622         * modules/spawn-tests (Files): Add it and tests/signature.h.
623         (Depends-on): Add ansi-c++-opt.
624         (Makefile.am): Arrange to compile and run test-spawn-c++.
625         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
626         gl_MODULE_INDICATOR.
627
628         Tests of module 'signal' in C++ mode.
629         * tests/test-signal-c++.cc: New file.
630         * modules/signal-tests (Files): Add it and tests/signature.h.
631         (Depends-on): Add ansi-c++-opt.
632         (Makefile.am): Arrange to compile and run test-signal-c++.
633         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
634         gl_MODULE_INDICATOR.
635
636         Tests of module 'search' in C++ mode.
637         * tests/test-search-c++.cc: New file.
638         * modules/search-tests (Files): Add it and tests/signature.h.
639         (Depends-on): Add ansi-c++-opt.
640         (Makefile.am): Arrange to compile and run test-search-c++.
641         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
642         gl_MODULE_INDICATOR.
643
644         Tests of module 'math' in C++ mode.
645         * tests/test-math-c++.cc: New file.
646         * modules/math-tests (Files): Add it and tests/signature.h.
647         (Depends-on): Add ansi-c++-opt.
648         (Makefile.am): Arrange to compile and run test-math-c++.
649         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
650
651         Tests of module 'locale' in C++ mode.
652         * tests/test-locale-c++.cc: New file.
653         * modules/locale-tests (Files): Add it and tests/signature.h.
654         (Depends-on): Add ansi-c++-opt.
655         (Makefile.am): Arrange to compile and run test-locale-c++.
656         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
657         gl_MODULE_INDICATOR.
658
659         Tests of module 'langinfo' in C++ mode.
660         * tests/test-langinfo-c++.cc: New file.
661         * modules/langinfo-tests (Files): Add it and tests/signature.h.
662         (Depends-on): Add ansi-c++-opt.
663         (Makefile.am): Arrange to compile and run test-langinfo-c++.
664         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
665         gl_MODULE_INDICATOR.
666
667         Tests of module 'iconv-h' in C++ mode.
668         * tests/test-iconv-h-c++.cc: New file.
669         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
670         (Depends-on): Add ansi-c++-opt.
671         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
672
673         Tests of module 'glob' in C++ mode.
674         * tests/test-glob-c++.cc: New file.
675         * modules/glob-tests (Files): Add it.
676         (Depends-on): Add ansi-c++-opt.
677         (Makefile.am): Arrange to compile and run test-glob-c++.
678
679         Tests of module 'fcntl-h' in C++ mode.
680         * tests/test-fcntl-h-c++.cc: New file.
681         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
682         (Depends-on): Add ansi-c++-opt.
683         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
684         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
685         gl_MODULE_INDICATOR.
686
687         Tests of module 'dirent' in C++ mode.
688         * tests/test-dirent-c++.cc: New file.
689         * modules/dirent-tests (Files): Add it and tests/signature.h.
690         (Depends-on): Add ansi-c++-opt.
691         (Makefile.am): Arrange to compile and run test-dirent-c++.
692         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
693         gl_MODULE_INDICATOR.
694
695         New module 'ansi-c++-opt'.
696         * modules/ansi-c++-opt: New file.
697         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
698
699         Document C++ namespace mode.
700         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
701
702         wctype: Avoid #define replacements in C++ mode.
703         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
704         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
705         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
706         In C++, define a namespaced alias symbol.
707         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
708         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
709         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
710         rule.
711
712         wchar: Avoid #define replacements in C++ mode.
713         * lib/wchar.in.h: Include c++defs.h.
714         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
715         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
716         symbol.
717         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
718         * modules/wchar (Depends-on): Add c++defs.
719         (Makefile.am): Update wchar.h rule.
720
721         unistd: Avoid #define replacements in C++ mode.
722         * lib/unistd.in.h: Include c++defs.h.
723         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
724         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
725         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
726         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
727         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
728         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
729         symbol.
730         (environ): Update.
731         * modules/unistd (Depends-on): Add c++defs.
732         (Makefile.am): Update unistd.h rule.
733
734         time: Avoid #define replacements in C++ mode.
735         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
736         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
737         define a namespaced alias symbol.
738         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
739         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
740         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
741         * modules/time (Depends-on): Add c++defs, warn-on-use.
742         (Makefile.am): Update time.h rule.
743         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
744         * modules/nanosleep (configure.ac): Likewise.
745         * modules/strptime (configure.ac): Likewise.
746         * modules/timegm (configure.ac): Likewise.
747
748         sys_time: Avoid #define replacements in C++ mode.
749         * lib/sys_time.in.h: Include c++defs.h.
750         (gettimeofday): In C++, define a namespaced alias symbol.
751         * modules/sys_time (Depends-on): Add c++defs.
752         (Makefile.am): Update sys/time.h rule.
753
754         sys_stat: Avoid #define replacements in C++ mode.
755         * lib/sys_stat.in.h: Include c++defs.h.
756         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
757         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
758         namespaced alias symbol.
759         In C++, define a namespaced alias symbol.
760         * modules/sys_stat (Depends-on): Add c++defs.
761         (Makefile.am): Update sys/stat.h rule.
762
763         sys_socket: Avoid #define replacements in C++ mode.
764         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
765         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
766         definitions also when the system has a <sys/socket.h>.
767         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
768         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
769         In C++, define a namespaced alias symbol.
770         * modules/sys_socket (Depends-on): Add c++defs.
771         (Makefile.am): Update sys/socket.h rule.
772
773         sys_select: Avoid #define replacements in C++ mode.
774         * lib/sys_select.in.h: Include c++defs.h. Enable the function
775         definitions also when the system has a <sys/select.h>.
776         (select): In C++, define a namespaced alias symbol.
777         * modules/sys_select (Depends-on): Add c++defs.
778         (Makefile.am): Update sys/select.h rule.
779
780         sys_ioctl: Avoid #define replacements in C++ mode.
781         * lib/sys_ioctl.in.h: Include c++defs.h.
782         (ioctl): In C++, define a namespaced alias symbol.
783         * modules/sys_ioctl (Depends-on): Add c++defs.
784         (Makefile.am): Update sys/ioctl.h rule.
785
786         string: Avoid #define replacements in C++ mode.
787         * lib/string.in.h: Include c++defs.h.
788         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
789         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
790         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
791         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
792         strsignal, strverscmp): In C++, define a namespaced alias symbol.
793         * modules/string (Depends-on): Add c++defs.
794         (Makefile.am): Update string.h rule.
795
796         stdlib: Avoid #define replacements in C++ mode.
797         * lib/stdlib.in.h: Include c++defs.h.
798         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
799         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
800         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
801         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
802         symbol.
803         * modules/stdlib (Depends-on): Add c++defs.
804         (Makefile.am): Update stdlib.h rule.
805
806         stdio: Avoid #define replacements in C++ mode.
807         * lib/stdio.in.h: Include c++defs.h.
808         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
809         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
810         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
811         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
812         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
813         namespaced alias symbol.
814         * modules/stdio (Depends-on): Add c++defs.
815         (Makefile.am): Update stdio.h rule.
816
817         spawn: Avoid #define replacements in C++ mode.
818         * lib/spawn.in.h: Include c++defs.h.
819         (posix_spawn, posix_spawnp, posix_spawnattr_init,
820         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
821         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
822         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
823         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
824         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
825         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
826         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
827         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
828         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
829         In C++, define a namespaced alias symbol.
830         * modules/spawn (Depends-on): Add c++defs.
831         (Makefile.am): Update spawn.h rule.
832
833         signal: Avoid #define replacements in C++ mode.
834         * lib/signal.in.h: Include c++defs.h.
835         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
836         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
837         namespaced alias symbol.
838         * modules/signal (Depends-on): Add c++defs.
839         (Makefile.am): Update signal.h rule.
840
841         search: Avoid #define replacements in C++ mode.
842         * lib/search.in.h: Include c++defs.h.
843         (_gl_search_compar_fn, _gl_search_action_fn): New types.
844         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
845         symbol.
846         * modules/search (Depends-on): Add c++defs.
847         (Makefile.am): Update search.h rule.
848
849         math: Avoid #define replacements in C++ mode.
850         * lib/math.in.h: Include c++defs.h.
851         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
852         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
853         trunc, truncl): In C++, define a namespaced alias symbol.
854         * modules/math (Depends-on): Add c++defs.
855         (Makefile.am): Update math.h rule.
856
857         locale: Avoid #define replacements in C++ mode.
858         * lib/locale.in.h: Include c++defs.h.
859         (duplocale): In C++, define a namespaced alias symbol.
860         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
861         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
862         * modules/locale (Depends-on): Add c++defs.
863         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
864
865         langinfo: Avoid #define replacements in C++ mode.
866         * lib/langinfo.in.h: Include c++defs.h.
867         (nl_langinfo): In C++, define a namespaced alias symbol.
868         * modules/langinfo (Depends-on): Add c++defs.
869         (Makefile.am): Update langinfo.h rule.
870
871         iconv-h: Avoid #define replacements in C++ mode.
872         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
873         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
874         symbol.
875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
876         whenever iconv is present.
877         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
878         (Makefile.am): Update iconv.h rule.
879
880         glob: Avoid #define replacements in C++ mode.
881         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
882         (_gl_glob_errfunc_fn): New type.
883         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
884         symbol.
885         * modules/glob (Depends-on): Add c++defs, warn-on-use.
886         (Makefile.am): Update glob.h rule.
887
888         fcntl-h: Avoid #define replacements in C++ mode.
889         * lib/fcntl.in.h: Include c++defs.h.
890         (fcntl, open, openat): In C++, define a namespaced alias symbol.
891         * modules/fcntl-h (Depends-on): Add c++defs.
892         (Makefile.am): Update fcntl.h rule.
893
894         dirent: Avoid #define replacements in C++ mode.
895         * lib/dirent.in.h: Include c++defs.h.
896         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
897         namespaced alias symbol.
898         (dirfd): Update declaration.
899         * modules/dirent (Depends-on): Add c++defs.
900         (Makefile.am): Update dirent.h rule.
901
902         ctype: Make it usable in C++ code.
903         * lib/ctype.in.h: Include c++defs.h.
904         (isblank): Declare as extern "C".
905         * modules/ctype (Depends-on): Add c++defs.
906         (Makefile.am): Update ctype.h rule.
907
908         New module 'c++defs'.
909         * modules/c++defs: New file.
910         * build-aux/c++defs.h: New file.
911         Reported by John W. Eaton <jwe@gnu.org>.
912
913 2010-03-07  Bruno Haible  <bruno@clisp.org>
914
915         logb: Provide missing declaration for Cygwin.
916         * lib/math.in.h (logb): New declaration.
917         * m4/logb.m4: New file.
918         * modules/logb (Files): Add m4/logb.m4.
919         (Depends-on): Add math.
920         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
921         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
923         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
924         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
925
926 2010-03-07  Bruno Haible  <bruno@clisp.org>
927
928         Fix test-cond link error.
929         * tests/test-cond.c: Include <stdio.h>.
930
931 2010-03-07  Bruno Haible  <bruno@clisp.org>
932
933         Fix test-dirent-safer link error.
934         * modules/dirent-safer-tests (Makefile.am): Define
935         test_dirent_safer_LDADD.
936
937 2010-03-07  Bruno Haible  <bruno@clisp.org>
938
939         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
940         among default module list.
941
942 2010-03-07  Bruno Haible  <bruno@clisp.org>
943
944         Fix link error on platforms with GNU libiconv.
945         * modules/unistr/u8-strcoll-tests (Makefile): Define
946         test_u8_strcoll_LDADD.
947         * modules/unistr/u16-strcoll-tests (Makefile): Define
948         test_u16_strcoll_LDADD.
949         * modules/unistr/u32-strcoll-tests (Makefile): Define
950         test_u32_strcoll_LDADD.
951
952 2010-03-07  Bruno Haible  <bruno@clisp.org>
953
954         Use POSIX declarations for socket functions.
955         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
956         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
957         rpl_sendto): Change declaration to match POSIX.
958         * lib/connect.c (rpl_connect): Likewise.
959         * lib/accept.c (rpl_accept): Likewise.
960         * lib/bind.c (rpl_bind): Likewise.
961         * lib/getpeername.c (rpl_getpeername): Likewise.
962         * lib/getsockname.c (rpl_getsockname): Likewise.
963         * lib/recv.c (rpl_recv): Likewise.
964         * lib/send.c (rpl_send): Likewise.
965         * lib/recvfrom.c (rpl_recvfrom): Likewise.
966         * lib/sendto.c (rpl_sendto): Likewise.
967
968 2010-03-06  Bruno Haible  <bruno@clisp.org>
969
970         Clarify access, euidaccess, faccessat.
971         * doc/posix-functions/faccessat.texi: Mention security problem under
972         "Other problems", not "Portability problems".
973         * doc/posix-functions/access.texi: Likewise. Mention a related security
974         problem.
975         * doc/glibc-functions/euidaccess.texi: Mention security problems.
976         * lib/euidaccess.c: Add comments about platforms.
977         * lib/unistd.in.h (access, euidaccess): Add warnings.
978
979 2010-03-07  Bruno Haible  <bruno@clisp.org>
980
981         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
982         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
983         (POSIX_SPAWN_SETSCHEDULER): Likewise.
984         (POSIX_SPAWN_USEVFORK): Define in a way that works when
985         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
986         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
987         declare when POSIX_SPAWN_SETSCHEDULER is zero.
988         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
989         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
991         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
992         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
993         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
994         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
995         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
996         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
997         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
998         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
999         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1000         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1001         Likewise.
1002         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1003         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1004         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1005         Likewise.
1006         * tests/test-spawn.c (main): Make it work when
1007         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1008
1009 2010-03-07  Bruno Haible  <bruno@clisp.org>
1010
1011         Fix incorrect Makefile.am generation in German locale.
1012         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1013         Execute sed command with character range in C locale.
1014
1015 2010-03-06  Bruno Haible  <bruno@clisp.org>
1016
1017         Tests for module 'iconv-h'.
1018         * modules/iconv-h-tests: New file.
1019         * tests/test-iconv-h.c: New file.
1020
1021         New module 'iconv-h'.
1022         * modules/iconv-h: New file.
1023         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1024         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1025         (configure.ac): Remove gl_ICONV_H.
1026         (Makefile.am): Remove rule for iconv.h.
1027
1028 2010-03-06  Bruno Haible  <bruno@clisp.org>
1029
1030         More consistent naming of *.m4 files.
1031         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1032         * modules/wctype (Files): Update.
1033
1034         More consistent naming of *.m4 files.
1035         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1036         * modules/wchar (Files): Update.
1037
1038 2010-03-06  Jim Meyering  <meyering@redhat.com>
1039
1040         euidaccess: relax license to LGPLv2+
1041         * modules/euidaccess (License): Relax to LGPLv2+.
1042
1043 2010-03-06  Bruno Haible  <bruno@clisp.org>
1044
1045         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1046         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1047         (Makefile.am): Augment lib_SOURCES instead.
1048
1049 2010-03-04  Jim Meyering  <meyering@redhat.com>
1050
1051         utime: remove obsolete module
1052         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1053         unnecessary for years, and has been marked as obsolete for 10 months.
1054         * modules/utime: Remove file.
1055         * lib/utime.c: Remove file.
1056         * m4/utime.m4: Remove file.
1057         * m4/utimes-null.m4: Remove file.
1058         * doc/posix-functions/utime.texi (utime): Remove reference to
1059         the module.  Move the sole "fixed by gnulib" item into the
1060         "problems not fixed by Gnulib" list.
1061         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1062
1063 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1064
1065         * modules/exit (License): Relax license to LGPLv2+.
1066         (Status): Mark as obsolete.
1067         * NEWS: Mention deprecated 'exit' module.
1068         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1069         of now obsolete 'exit'.
1070
1071 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1072
1073         fts-lgpl: remove unused module
1074         * modules/fts-lgpl: Remove.
1075         * MODULES.html.sh (func_all_modules): Adjust.
1076         * check-module (find_included_lib_files): Adjust.
1077         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1078
1079 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1080
1081         copy-acl: enhance Solaris ACL error handling
1082         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1083         * lib/set-mode-acl.c (qset_acl): Likewise.
1084
1085 2010-03-02  Bruno Haible  <bruno@clisp.org>
1086
1087         spawn: Don't override the system defined values on FreeBSD 8.
1088         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1089         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1090         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1091         if HAVE_POSIX_SPAWN is 1.
1092         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1093
1094 2010-03-01  Bruno Haible  <bruno@clisp.org>
1095
1096         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1097         regarding Automake.
1098
1099 2010-02-25  Bruno Haible  <bruno@clisp.org>
1100
1101         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1102         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1103         setting, not afterwards.
1104         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1105
1106 2010-02-24  Eric Blake  <eblake@redhat.com>
1107
1108         bootstrap, git-version-gen: use timestamp
1109         * build-aux/git-version-gen (scriptversion): Force UTC.
1110         * build-aux/bootstrap (scriptversion): New variable.
1111
1112         bootstrap: allow older git
1113         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1114         older than 1.6.4.  Requested by the libvirt project.
1115
1116 2010-02-23  Eric Blake  <eblake@redhat.com>
1117
1118         warn-on-use: work with old autoconf
1119         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1120         AS_VAR semantics of autoconf 2.60.
1121         Reported by Bruno Haible.
1122
1123         bootstrap: improve some comments
1124         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1125         clarification comments.
1126
1127         gettimeofday: provide correct function
1128         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1129         when replacement is declared, otherwise provide gettimeofday.
1130         Reported by Michael Goffioul.
1131
1132 2010-02-23  Jim Meyering  <meyering@redhat.com>
1133
1134         lib-ignore: relax license to "unlimited", not LGPLv2+
1135         * modules/lib-ignore (License): Relax to "unlimited".
1136
1137 2010-02-23  Jim Meyering  <meyering@redhat.com>
1138
1139         lib-ignore: relax license to LGPLv2+
1140         * modules/lib-ignore (License): Relax to LGPLv2+.
1141
1142 2010-02-22  Eric Blake  <eblake@redhat.com>
1143
1144         lseek: avoid bash 3.2 broken pipe bug
1145         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1146         warning from bash 3.2.
1147         Reported by Ben Pfaff, with analysis from Bruno Haible.
1148
1149         bootstrap: support non-FSF copyright holder
1150         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1151         bootstrap.conf override of COPYRIGHT_HOLDER.
1152         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1153
1154         bootstrap: interoperate with gettext 0.14.1
1155         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1156
1157         bootstrap: allow for alternate submodule location
1158         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1159         hardcoding submodule location.
1160         (gnulib_mk): Allow direct use of Makefile.am.
1161
1162         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1163         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1164         rather than reconfiguring where the submodule points.
1165
1166         gettimeofday: restore support for platforms that lack function
1167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1168         replacement if function is missing.
1169         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1170         * modules/sys_time (Makefile.am): Substitute it.
1171         * lib/sys_time.in.h (gettimeofday): Check it.
1172         Reported by Michael Goffioul.
1173
1174 2010-02-21  Bruno Haible  <bruno@clisp.org>
1175
1176         * lib/stdio.in.h (obstack_printf): Fix typo.
1177
1178 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1179
1180         vc-list-files: use bzr ls's -R option
1181         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1182         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1183
1184 2010-02-21  Jim Meyering  <meyering@redhat.com>
1185
1186         init.sh: fix EXEEXT shims to work also for names like test-prog
1187         * tests/init.sh: Re-exec a better shell, when needed.
1188         If the current shell lacks support for posix $(...), an init.sh-using
1189         test will now try to find a shell that supports that.  If EXEEXT is
1190         nonempty, we also require support for hyphen-in-alias-name and shell
1191         substitutions like ${var#glob}.  Failure to find such a shell results
1192         in a skipped test.
1193
1194 2010-02-21  Bruno Haible  <bruno@clisp.org>
1195
1196         Really work around around "broken pipe" error message from bash 3.2.
1197         * gnulib-tool (func_reset_sigpipe): Remove function.
1198         (echo): In bash 3.2, define to a function that uses printf.
1199         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1200
1201 2010-02-20  Bruno Haible  <bruno@clisp.org>
1202
1203         Restore support for automake 1.9.6 with autoconf 2.61.
1204         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1205         Reported by James Youngman <jay@gnu.org>.
1206
1207 2010-02-20  Bruno Haible  <bruno@clisp.org>
1208
1209         Improve *printf warning condition.
1210         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1211         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1212         and the function is overridden due to SIGPIPE emulation.
1213
1214 2010-02-20  Bruno Haible  <bruno@clisp.org>
1215
1216         * lib/stdio.in.h: Tweak comments.
1217
1218 2010-02-19  Bruno Haible  <bruno@clisp.org>
1219
1220         Make it easier to find modules. New gnulib-tool option '--find'.
1221         * gnulib-tool: New option --find.
1222         (func_usage): Document it.
1223         (func_sanitize_modulelist): New function, extracted from
1224         func_all_modules.
1225         (func_all_modules): Invoke it.
1226         * doc/gnulib-tool.texi (Which modules?): New node.
1227
1228 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1229
1230         * lib/sys_select.in.h: Provide select replacement even if
1231         sys/select.h exists on a system, for Interix.
1232
1233 2010-02-18  Jim Meyering  <meyering@redhat.com>
1234
1235         init.sh: don't use $(...) just yet
1236         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1237         to accommodate e.g., Solaris' /bin/sh.
1238
1239 2010-02-17  Bruno Haible  <bruno@clisp.org>
1240
1241         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1242         Reported by Ludovic Courtès <ludo@gnu.org>.
1243
1244 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1245
1246         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1247         linking with -lintl.
1248
1249 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1250
1251         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1252         if not provided by the system's netdb.h.  Reported by
1253         ludo@gnu.org (Ludovic Courtès).
1254
1255 2010-02-15  Jim Meyering  <meyering@redhat.com>
1256
1257         init.sh: improve portability and efficiency
1258         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1259         "dummy" in a for loop.
1260         Use '!', not '^' to select the complement of a character set used
1261         in a "case" statement.
1262         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1263         Suggestions from Eric Blake.
1264
1265         init.sh: automatically accommodate programs with the .exe suffix
1266         Automatically arrange for an invocation of "prog" to execute the
1267         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1268         may use the simpler "prog", yet still work when built on a system
1269         that requires specifying the added suffix.
1270         Do this by constructing a function named "prog" that invokes
1271         "prog.exe" for each .exe file in selected directories.
1272         * tests/init.sh (find_exe_basenames_): New function.
1273         (create_exe_shim_functions_): New function.
1274         (path_prepend_): Use it.
1275
1276         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1277         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1278         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1279
1280 2010-02-14  Jim Meyering  <meyering@redhat.com>
1281
1282         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1283         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1284         (sc_prohibit_hash_pjw_without_use): New rule.
1285
1286         maint.mk: allow the default upload destination dir to be overridden
1287         * top/maint.mk (upload_dest_dir_): Define with a default that
1288         preserves the status quo.
1289         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1290         Reported by Peter Simons.
1291
1292         maint.mk: prohibit inclusion of "hash.h" without_use
1293         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1294
1295 2010-02-10  Jim Meyering  <meyering@redhat.com>
1296
1297         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1298         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1299
1300 2010-02-09  Eric Blake  <ebb9@byu.net>
1301         and Bruno Haible  <bruno@clisp.org>
1302
1303         obstack-printf-posix: ensure declaration
1304         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1305         extracted from gl_FUNC_OBSTACK_PRINTF.
1306         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1307         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1308         Likewise.
1309         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1310         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1311         0.
1312
1313 2010-02-08  Bruno Haible  <bruno@clisp.org>
1314
1315         gnulib-tool: Fix typo in 2010-02-07 commit.
1316         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1317         Reported by Eric Blake.
1318
1319 2010-02-07  Bruno Haible  <bruno@clisp.org>
1320
1321         gnulib-tool: Fix up caching patches.
1322         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1323         option --no-cache. Use associative arrays when supported by the shell.
1324         (sed_comments): New variable.
1325         (modcache): Renamed from do_cache.
1326         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1327         abbreviate unnecessarily.
1328         (have_associative): New variable.
1329         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1330         way also for ksh and zsh.
1331         (func_init_sed_convert_to_cache_statements): New function, extracted
1332         from func_cache_lookup_module. Add support for associative arrays.
1333         Don't set the c_MODULE_cached variable here. Ignore all lines before
1334         the first field header. Remove only the final newline, not all trailing
1335         newlines. Support empty fields correctly. Limit the use of 'eval' to
1336         assignments.
1337         (func_get_description, func_get_status, func_get_notice,
1338         func_get_applicability, func_get_filelist, func_get_dependencies,
1339         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1340         func_get_automake_snippet, func_get_include_directive,
1341         func_get_link_directive, func_get_license, func_get_maintainer):
1342         Update documentation. List the unoptimized code first. Add support for
1343         associative arrays. Limit the use of 'eval' to assignments.
1344         (func_get_applicability): Undo stylistic pessimisations.
1345         (func_get_automake_snippet, func_get_include_directive): Reduce code
1346         duplication.
1347         (func_modules_transitive_closure, func_modules_add_dummy,
1348         func_modules_notice, func_modules_to_filelist, func_add_file,
1349         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1350         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1351         func_create_testdir, func_create_megatestdir): Update documentation.
1352
1353 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1354
1355         * gnulib-tool (func_cache_lookup_module): Store the module name
1356         belonging to the cache variable; error out if two different
1357         module names map to the same cache variable name.
1358
1359 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1360
1361         gnulib-tool: Make caching optional.
1362         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1363         Update matching short versions of --no-changelog.
1364         (func_usage): Update.
1365         (sed_extract_cache_prog): Renamed from ...
1366         (sed_extract_prog): ... this; revert to old extraction script.
1367         (func_get_description, func_get_status)
1368         (func_get_notice, func_get_applicability, func_get_filelist)
1369         (func_get_dependencies, func_get_autoconf_early_snippet)
1370         (func_get_autoconf_snippet, func_get_automake_snippet)
1371         (func_get_include_directive, func_get_link_directive)
1372         (func_get_license, func_get_maintainer): If $do_cache is false,
1373         use old, non-caching extraction scripts.
1374         Suggestion by Bruno Haible.
1375
1376 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1377
1378         gnulib-tool: cache module metainformation.
1379         * gnulib-tool (sed_extract_prog): Match newline before each
1380         header, and rewrite header to a shell variable suffix.
1381         (func_cache_var, func_cache_lookup_module): New functions,
1382         to turn a module name into a cache variable prefix, and to
1383         look up and cache module metainformation.
1384         (func_get_description, func_get_status)
1385         (func_get_notice, func_get_applicability, func_get_filelist)
1386         (func_get_dependencies, func_get_autoconf_early_snippet)
1387         (func_get_autoconf_snippet, func_get_automake_snippet)
1388         (func_get_include_directive, func_get_link_directive)
1389         (func_get_license, func_get_maintainer): Use
1390         func_cache_lookup_module.
1391
1392 2010-02-07  Bruno Haible  <bruno@clisp.org>
1393
1394         fnctl: Fix missing dependency.
1395         * modules/fcntl (Depends-on): Add getdtablesize.
1396         Reported by John W. Eaton <jwe@gnu.org>.
1397
1398 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1399
1400         Argp: fix recognition of short alias options.
1401
1402         * lib/argp-parse.c (convert_options): Fix improper use of
1403         `|' between character values.
1404         * tests/test-argp.c (group1_option): New alias option
1405         --read (-r).
1406         (group1_parser): Special handling for 'r'.
1407         (test15): New test case.
1408         (test_fun): Add test15.
1409         * tests/test-argp-2.sh: Update expected --help and --usage
1410         outputs.
1411
1412 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1413
1414         * tests/test-argp.c: Fix indentation.
1415
1416 2010-02-04  Eric Blake  <ebb9@byu.net>
1417
1418         gettimeofday: expose type of second argument
1419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1420         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1421         * tests/test-gettimeofday.c: Use it to silence warning.
1422         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1423         the issue.
1424
1425 2010-02-03  Jim Meyering  <meyering@redhat.com>
1426
1427         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1428         * lib/regcomp.c (TYPE_SIGNED): Define.
1429         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1430
1431         regcomp.c: avoid a new -Wshadow warning
1432         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1433
1434 2010-02-01  Jim Meyering  <meyering@redhat.com>
1435
1436         removing useless parentheses in cpp #define directives
1437         For motivation, see commit c0221df4, "define STREQ(a,b)
1438         consistently, removing useless parentheses"
1439         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1440         * lib/mountlist.c (MNT_IGNORE): Likewise.
1441         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1442
1443 2010-02-01  Eric Blake  <ebb9@byu.net>
1444
1445         sys_time: use link-warning
1446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1447         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1448         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1449         * modules/sys_time (Depends-on): Add warn-on-use.
1450         (Makefile.am): Always build replacement.
1451         (configure.ac): Update substitutions.
1452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1453         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1454         bother with SYS_TIME_H.
1455         * modules/gettimeofday (configure.ac): Declare indicator.
1456         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1457         in use.
1458
1459         closein-tests: silence compiler warning
1460         * tests/test-closein.c (main): Ignore fread result.
1461         * modules/closein-tests (Depends-on): Add ignore-value.
1462
1463         tests: silence warning about system return
1464         * tests/test-areadlink-with-size.c (main): Ignore system result.
1465         * tests/test-areadlink.c (main): Likewise.
1466         * tests/test-areadlinkat-with-size.c (main): Likewise.
1467         * tests/test-areadlinkat.c (main): Likewise.
1468         * tests/test-canonicalize-lgpl.c (main): Likewise.
1469         * tests/test-canonicalize.c (main): Likewise.
1470         * tests/test-chown.c (main): Likewise.
1471         * tests/test-fchownat.c (main): Likewise.
1472         * tests/test-fdutimensat.c (main): Likewise.
1473         * tests/test-fstatat.c (main): Likewise.
1474         * tests/test-futimens.c (main): Likewise.
1475         * tests/test-lchown.c (main): Likewise.
1476         * tests/test-link.c (main): Likewise.
1477         * tests/test-linkat.c (main): Likewise.
1478         * tests/test-lstat.c (main): Likewise.
1479         * tests/test-mkdir.c (main): Likewise.
1480         * tests/test-mkdirat.c (main): Likewise.
1481         * tests/test-mkfifo.c (main): Likewise.
1482         * tests/test-mkfifoat.c (main): Likewise.
1483         * tests/test-mknod.c (main): Likewise.
1484         * tests/test-readlink.c (main): Likewise.
1485         * tests/test-remove.c (main): Likewise.
1486         * tests/test-rename.c (main): Likewise.
1487         * tests/test-renameat.c (main): Likewise.
1488         * tests/test-rmdir.c (main): Likewise.
1489         * tests/test-symlink.c (main): Likewise.
1490         * tests/test-symlinkat.c (main): Likewise.
1491         * tests/test-unlink.c (main): Likewise.
1492         * tests/test-unlinkat.c (main): Likewise.
1493         * tests/test-utimens.c (main): Likewise.
1494         * tests/test-utimensat.c (main): Likewise.
1495         * modules/areadlink-tests (Depends-on): Add ignore-value.
1496         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1497         * modules/areadlinkat-tests (Depends-on): Likewise.
1498         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1499         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1500         * modules/canonicalize-tests (Depends-on): Likewise.
1501         * modules/chown-tests (Depends-on): Likewise.
1502         * modules/fdutimensat-tests (Depends-on): Likewise.
1503         * modules/futimens-tests (Depends-on): Likewise.
1504         * modules/lchown-tests (Depends-on): Likewise.
1505         * modules/link-tests (Depends-on): Likewise.
1506         * modules/linkat-tests (Depends-on): Likewise.
1507         * modules/lstat-tests (Depends-on): Likewise.
1508         * modules/mkdir-tests (Depends-on): Likewise.
1509         * modules/mkfifo-tests (Depends-on): Likewise.
1510         * modules/mkfifoat-tests (Depends-on): Likewise.
1511         * modules/mknod-tests (Depends-on): Likewise.
1512         * modules/openat-tests (Depends-on): Likewise.
1513         * modules/readlink-tests (Depends-on): Likewise.
1514         * modules/remove-tests (Depends-on): Likewise.
1515         * modules/rename-tests (Depends-on): Likewise.
1516         * modules/renameat-tests (Depends-on): Likewise.
1517         * modules/rmdir-tests (Depends-on): Likewise.
1518         * modules/symlink-tests (Depends-on): Likewise.
1519         * modules/symlinkat-tests (Depends-on): Likewise.
1520         * modules/unlink-tests (Depends-on): Likewise.
1521         * modules/utimens-tests (Depends-on): Likewise.
1522         * modules/utimensat-tests (Depends-on): Likewise.
1523
1524 2010-01-31  Bruno Haible  <bruno@clisp.org>
1525
1526         Perform the same test for many <math.h> functions.
1527         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1528         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1529         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1530         of gl_MATHFUNC.
1531         * modules/acos (configure.ac): Likewise.
1532         * modules/asin (configure.ac): Likewise.
1533         * modules/atan (configure.ac): Likewise.
1534         * modules/atan2 (configure.ac): Likewise.
1535         * modules/cbrt (configure.ac): Likewise.
1536         * modules/copysign (configure.ac): Likewise.
1537         * modules/cos (configure.ac): Likewise.
1538         * modules/cosh (configure.ac): Likewise.
1539         * modules/erf (configure.ac): Likewise.
1540         * modules/erfc (configure.ac): Likewise.
1541         * modules/exp (configure.ac): Likewise.
1542         * modules/fmod (configure.ac): Likewise.
1543         * modules/hypot (configure.ac): Likewise.
1544         * modules/j0 (configure.ac): Likewise.
1545         * modules/j1 (configure.ac): Likewise.
1546         * modules/jn (configure.ac): Likewise.
1547         * modules/lgamma (configure.ac): Likewise.
1548         * modules/log (configure.ac): Likewise.
1549         * modules/log10 (configure.ac): Likewise.
1550         * modules/log1p (configure.ac): Likewise.
1551         * modules/pow (configure.ac): Likewise.
1552         * modules/remainder (configure.ac): Likewise.
1553         * modules/sin (configure.ac): Likewise.
1554         * modules/sinh (configure.ac): Likewise.
1555         * modules/tan (configure.ac): Likewise.
1556         * modules/tanh (configure.ac): Likewise.
1557         * modules/y0 (configure.ac): Likewise.
1558         * modules/y1 (configure.ac): Likewise.
1559         * modules/yn (configure.ac): Likewise.
1560         Suggested by Paolo Bonzini.
1561
1562 2010-01-31  Bruno Haible  <bruno@clisp.org>
1563
1564         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1565
1566 2010-01-31  Bruno Haible  <bruno@clisp.org>
1567
1568         Work around getdelim() bug on FreeBSD 8.0.
1569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1570         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1571         not work.
1572         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1573         is 1.
1574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1575         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1576         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1577         a non-zero size.
1578         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1579
1580 2010-01-31  Bruno Haible  <bruno@clisp.org>
1581
1582         Work around getline() bug on FreeBSD 8.0.
1583         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1584         and a non-zero size.
1585         * tests/test-getline.c (main): Likewise.
1586         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1587         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1588
1589 2010-01-28  Eric Blake  <ebb9@byu.net>
1590
1591         regex: fix build failure
1592         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1593         platforms.
1594
1595 2010-01-28  Jim Meyering  <meyering@redhat.com>
1596
1597         regex: do not ignore memory allocation failure
1598         * lib/regex_internal.c (create_cd_newstate): Detect
1599         re_node_set_init_copy failure.   Extracted from glibc commit
1600         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1601
1602         regex: sync more white-space changes from libc
1603         * lib/regex_internal.c: White-space only changes.
1604         * lib/regexec.c: Likewise.
1605
1606         regex: add many uses of __attribute_warn_unused_result__
1607         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1608         * lib/regexec.c: Likewise.
1609         Extracted from a messy glibc commit.
1610
1611         regcomp.c: spelling and merge-artifact from glibc
1612         * lib/regcomp.c: Merge remainder of glibc's
1613         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1614
1615         regcomp.c: sync white-space changes from glibc
1616         * lib/regcomp.c: Merge to accommodate white space
1617         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1618
1619         regcomp.c: do not ignore internal return values
1620         * lib/regcomp.c: Do not ignore internal return values.
1621         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1622         but without its white-space changes and spelling fixes.
1623
1624         regex_internal.h: define __attribute_warn_unused_result__
1625         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1626
1627         maint: add a syntax-check rule to check for vulnerable Makefile.in
1628         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1629
1630 2010-01-27  Jim Meyering  <meyering@redhat.com>
1631
1632         ncftpput-ftp: clean up spaces
1633         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1634         Remove trailing blanks.
1635
1636 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1637
1638         * build-aux/git-version-gen: Fix copyright statement.
1639         * build-aux/gnupload: Likewise.
1640         * tests/test-arcfour.c: Likewise.
1641         * tests/test-arctwo.c: Likewise.
1642         * tests/test-count-one-bits.c: Likewise.
1643         * tests/test-crc.c: Likewise.
1644         * tests/test-des.c: Likewise.
1645         * tests/test-gc-arcfour.c: Likewise.
1646         * tests/test-gc-arctwo.c: Likewise.
1647         * tests/test-gc-des.c: Likewise.
1648         * tests/test-gc-hmac-md5.c: Likewise.
1649         * tests/test-gc-hmac-sha1.c: Likewise.
1650         * tests/test-gc-md2.c: Likewise.
1651         * tests/test-gc-md4.c: Likewise.
1652         * tests/test-gc-md5.c: Likewise.
1653         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1654         * tests/test-gc-rijndael.c: Likewise.
1655         * tests/test-gc-sha1.c: Likewise.
1656         * tests/test-gc.c: Likewise.
1657         * tests/test-gethostname.c: Likewise.
1658         * tests/test-gettimeofday.c: Likewise.
1659         * tests/test-hash.c: Likewise.
1660         * tests/test-hmac-md5.c: Likewise.
1661         * tests/test-hmac-sha1.c: Likewise.
1662         * tests/test-md2.c: Likewise.
1663         * tests/test-md4.c: Likewise.
1664         * tests/test-md5.c: Likewise.
1665         * tests/test-memchr.c: Likewise.
1666         * tests/test-memchr2.c: Likewise.
1667         * tests/test-memcmp.c: Likewise.
1668         * tests/test-memmem.c: Likewise.
1669         * tests/test-memrchr.c: Likewise.
1670         * tests/test-rawmemchr.c: Likewise.
1671         * tests/test-read-file.c: Likewise.
1672         * tests/test-rijndael.c: Likewise.
1673         * tests/test-sockets.c: Likewise.
1674         * tests/test-strchrnul.c: Likewise.
1675         * tests/test-strstr.c: Likewise.
1676         * tests/test-strtod.c: Likewise.
1677         * build-aux/ncftpput-ftp: Likewise.
1678
1679 2010-01-26  Eric Blake  <ebb9@byu.net>
1680
1681         ignore-value: update recommended header name
1682         * modules/ignore-value (Include): Only use <> for headers that
1683         exist in glibc.
1684
1685 2010-01-26  Jim Meyering  <meyering@redhat.com>
1686
1687         test-userspec.c: avoid compiler warnings
1688         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1689         and "initialization discards qualifiers..." warnings.
1690         Put the first "uid" in its own scope, and make char* members "const".
1691
1692 2010-01-25  Bruno Haible  <bruno@clisp.org>
1693
1694         gnulib-tool: Make warning diagnostics consistent.
1695         * gnulib-tool (func_warning): New function.
1696         Use it everywhere where gnulib-tool produces output to stderr and it is
1697         not a fatal error.
1698
1699 2010-01-25  Bruno Haible  <bruno@clisp.org>
1700
1701         Fix test dependencies.
1702         * modules/xstrtol-tests (Depends-on): Add inttypes.
1703         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1704
1705 2010-01-25 Pádraig Brady <P@draigBrady.com>
1706
1707         syntax-check: detect incorrect boolean macro values in config.h
1708         * modules/maintainer-makefile (configure.ac): Parameterize the location
1709         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1710         The logic is from Eric Blake and the location indicated by Jim Meyering.
1711         Note the more natural CONFIG_HEADER name is prohibited by automake
1712         for backwards compatibility reasons.
1713         * top/maint.mk (sc_Wundef_boolean): New rule.
1714
1715 2010-01-25  Jim Meyering  <meyering@redhat.com>
1716
1717         bootstrap: detect MacOS 10.6's shasum, too
1718         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1719         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1720
1721 2010-01-23  Jim Meyering  <meyering@redhat.com>
1722
1723         xstrtoll: new module
1724         * modules/xstrtoll: New file.
1725         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1726         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1727         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1728         ./configure fails if you use this module and lack "long long".
1729         * modules/xstrtoll-tests: New module.
1730         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1731         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1732         new init.sh-based test framework.
1733
1734 2010-01-24  Bruno Haible  <bruno@clisp.org>
1735
1736         Tests for module 'yn'.
1737         * modules/yn-tests: New file.
1738         * tests/test-yn.c: New file.
1739
1740         Tests for module 'y1'.
1741         * modules/y1-tests: New file.
1742         * tests/test-y1.c: New file.
1743
1744         Tests for module 'y0'.
1745         * modules/y0-tests: New file.
1746         * tests/test-y0.c: New file.
1747
1748         Tests for module 'tanh'.
1749         * modules/tanh-tests: New file.
1750         * tests/test-tanh.c: New file.
1751
1752         Tests for module 'tan'.
1753         * modules/tan-tests: New file.
1754         * tests/test-tan.c: New file.
1755
1756         Tests for module 'sqrt'.
1757         * modules/sqrt-tests: New file.
1758         * tests/test-sqrt.c: New file.
1759
1760         Tests for module 'sinh'.
1761         * modules/sinh-tests: New file.
1762         * tests/test-sinh.c: New file.
1763
1764         Tests for module 'sin'.
1765         * modules/sin-tests: New file.
1766         * tests/test-sin.c: New file.
1767
1768         Tests for module 'rint'.
1769         * modules/rint-tests: New file.
1770         * tests/test-rint.c: New file.
1771
1772         Tests for module 'remainder'.
1773         * modules/remainder-tests: New file.
1774         * tests/test-remainder.c: New file.
1775
1776         Tests for module 'pow'.
1777         * modules/pow-tests: New file.
1778         * tests/test-pow.c: New file.
1779
1780         Tests for module 'nextafter'.
1781         * modules/nextafter-tests: New file.
1782         * tests/test-nextafter.c: New file.
1783
1784         Tests for module 'modf'.
1785         * modules/modf-tests: New file.
1786         * tests/test-modf.c: New file.
1787
1788         Tests for module 'logb'.
1789         * modules/logb-tests: New file.
1790         * tests/test-logb.c: New file.
1791
1792         Tests for module 'log1p'.
1793         * modules/log1p-tests: New file.
1794         * tests/test-log1p.c: New file.
1795
1796         Tests for module 'log10'.
1797         * modules/log10-tests: New file.
1798         * tests/test-log10.c: New file.
1799
1800         Tests for module 'log'.
1801         * modules/log-tests: New file.
1802         * tests/test-log.c: New file.
1803
1804         Tests for module 'lgamma'.
1805         * modules/lgamma-tests: New file.
1806         * tests/test-lgamma.c: New file.
1807
1808         Tests for module 'ldexp'.
1809         * modules/ldexp-tests: New file.
1810         * tests/test-ldexp.c: New file.
1811
1812         Tests for module 'jn'.
1813         * modules/jn-tests: New file.
1814         * tests/test-jn.c: New file.
1815
1816         Tests for module 'j1'.
1817         * modules/j1-tests: New file.
1818         * tests/test-j1.c: New file.
1819
1820         Tests for module 'j0'.
1821         * modules/j0-tests: New file.
1822         * tests/test-j0.c: New file.
1823
1824         Tests for module 'hypot'.
1825         * modules/hypot-tests: New file.
1826         * tests/test-hypot.c: New file.
1827
1828         Tests for module 'fmod'.
1829         * modules/fmod-tests: New file.
1830         * tests/test-fmod.c: New file.
1831
1832         Tests for module 'fabs'.
1833         * modules/fabs-tests: New file.
1834         * tests/test-fabs.c: New file.
1835
1836         Tests for module 'exp'.
1837         * modules/exp-tests: New file.
1838         * tests/test-exp.c: New file.
1839
1840         Tests for module 'erfc'.
1841         * modules/erfc-tests: New file.
1842         * tests/test-erfc.c: New file.
1843
1844         Tests for module 'erf'.
1845         * modules/erf-tests: New file.
1846         * tests/test-erf.c: New file.
1847
1848         Tests for module 'cosh'.
1849         * modules/cosh-tests: New file.
1850         * tests/test-cosh.c: New file.
1851
1852         Tests for module 'cos'.
1853         * modules/cos-tests: New file.
1854         * tests/test-cos.c: New file.
1855
1856         Tests for module 'copysign'.
1857         * modules/copysign-tests: New file.
1858         * tests/test-copysign.c: New file.
1859
1860         Tests for module 'cbrt'.
1861         * modules/cbrt-tests: New file.
1862         * tests/test-cbrt.c: New file.
1863
1864         Tests for module 'atan2'.
1865         * modules/atan2-tests: New file.
1866         * tests/test-atan2.c: New file.
1867
1868         Tests for module 'atan'.
1869         * modules/atan-tests: New file.
1870         * tests/test-atan.c: New file.
1871
1872         Tests for module 'asin'.
1873         * modules/asin-tests: New file.
1874         * tests/test-asin.c: New file.
1875
1876         Tests for module 'acos'.
1877         * modules/acos-tests: New file.
1878         * tests/test-acos.c: New file.
1879
1880 2010-01-24  Bruno Haible  <bruno@clisp.org>
1881
1882         Fix tests for common <math.h> functions.
1883         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1884         code snippet that references the function pointer, rather than merely
1885         calling the function. Substitute the FUNC_LIBM variable.
1886         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1887         * modules/acos (configure.ac): Likewise.
1888         * modules/asin (configure.ac): Likewise.
1889         * modules/atan (configure.ac): Likewise.
1890         * modules/atan2 (configure.ac): Likewise.
1891         * modules/cbrt (configure.ac): Likewise.
1892         * modules/copysign (configure.ac): Likewise.
1893         * modules/cos (configure.ac): Likewise.
1894         * modules/cosh (configure.ac): Likewise.
1895         * modules/erf (configure.ac): Likewise.
1896         * modules/erfc (configure.ac): Likewise.
1897         * modules/exp (configure.ac): Likewise.
1898         * modules/fabs (configure.ac): Likewise.
1899         * modules/fmod (configure.ac): Likewise.
1900         * modules/hypot (configure.ac): Likewise.
1901         * modules/j0 (configure.ac): Likewise.
1902         * modules/j1 (configure.ac): Likewise.
1903         * modules/jn (configure.ac): Likewise.
1904         * modules/ldexp (configure.ac): Likewise.
1905         * modules/lgamma (configure.ac): Likewise.
1906         * modules/log (configure.ac): Likewise.
1907         * modules/log10 (configure.ac): Likewise.
1908         * modules/log1p (configure.ac): Likewise.
1909         * modules/logb (configure.ac): Likewise.
1910         * modules/modf (configure.ac): Likewise.
1911         * modules/nextafter (configure.ac): Likewise.
1912         * modules/pow (configure.ac): Likewise.
1913         * modules/remainder (configure.ac): Likewise.
1914         * modules/rint (configure.ac): Likewise.
1915         * modules/sin (configure.ac): Likewise.
1916         * modules/sinh (configure.ac): Likewise.
1917         * modules/tan (configure.ac): Likewise.
1918         * modules/tanh (configure.ac): Likewise.
1919         * modules/y0 (configure.ac): Likewise.
1920         * modules/y1 (configure.ac): Likewise.
1921         * modules/yn (configure.ac): Likewise.
1922
1923 2010-01-24  Bruno Haible  <bruno@clisp.org>
1924
1925         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1926         * tests/test-acosl.c (x): New variable.
1927         (main): Store argument in x and fetch it from x.
1928         * tests/test-asinl.c (x): New variable.
1929         (main): Store argument in x and fetch it from x.
1930         * tests/test-atanl.c (x): New variable.
1931         (main): Store argument in x and fetch it from x.
1932         * tests/test-cosl.c (x): New variable.
1933         (main): Store argument in x and fetch it from x.
1934         * tests/test-expl.c (x): New variable.
1935         (main): Store argument in x and fetch it from x.
1936         * tests/test-logl.c (x): New variable.
1937         (main): Store argument in x and fetch it from x.
1938         * tests/test-sinl.c (x): New variable.
1939         (main): Store argument in x and fetch it from x.
1940         * tests/test-sqrtl.c (x): New variable.
1941         (main): Store argument in x and fetch it from x.
1942         * tests/test-tanl.c (x): New variable.
1943         (main): Store argument in x and fetch it from x.
1944
1945 2010-01-24  Bruno Haible  <bruno@clisp.org>
1946
1947         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1948         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1949         assignments to the initial TESTS_ENVIRONMENT.
1950         * doc/gnulib.texi (Unit test modules): Document it.
1951         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1952         TESTS_ENVIRONMENT.
1953         * modules/btowc-tests (Makefile.am): Likewise.
1954         * modules/c-stack-tests (Makefile.am): Likewise.
1955         * modules/c-strcase-tests (Makefile.am): Likewise.
1956         * modules/copy-file-tests (Makefile.am): Likewise.
1957         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1958         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1959         * modules/mbrtowc-tests (Makefile.am): Likewise.
1960         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1961         * modules/mbscasestr-tests (Makefile.am): Likewise.
1962         * modules/mbschr-tests (Makefile.am): Likewise.
1963         * modules/mbscspn-tests (Makefile.am): Likewise.
1964         * modules/mbsinit-tests (Makefile.am): Likewise.
1965         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1966         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1967         * modules/mbspbrk-tests (Makefile.am): Likewise.
1968         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1969         * modules/mbsrchr-tests (Makefile.am): Likewise.
1970         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1971         * modules/mbsspn-tests (Makefile.am): Likewise.
1972         * modules/mbsstr-tests (Makefile.am): Likewise.
1973         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1974         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1975         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1976         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1977         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1978         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1979         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1980         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1981         * modules/wcrtomb-tests (Makefile.am): Likewise.
1982         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1983         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1984         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1985         assignments from TESTS_ENVIRONMENT.
1986         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1987         augmentation.
1988         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1989         * modules/atexit-tests (Makefile.am): Likewise.
1990         * modules/binary-io-tests (Makefile.am): Likewise.
1991         * modules/closein-tests (Makefile.am): Likewise.
1992         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1993         * modules/exclude-tests (Makefile.am): Likewise.
1994         * modules/fflush-tests (Makefile.am): Likewise.
1995         * modules/fpending-tests (Makefile.am): Likewise.
1996         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1997         * modules/freadahead-tests (Makefile.am): Likewise.
1998         * modules/freadptr-tests (Makefile.am): Likewise.
1999         * modules/freadseek-tests (Makefile.am): Likewise.
2000         * modules/fseek-tests (Makefile.am): Likewise.
2001         * modules/fseeko-tests (Makefile.am): Likewise.
2002         * modules/ftell-tests (Makefile.am): Likewise.
2003         * modules/ftello-tests (Makefile.am): Likewise.
2004         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2005         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2006         * modules/lseek-tests (Makefile.am): Likewise.
2007         * modules/parse-duration-tests (Makefile.am): Likewise.
2008         * modules/perror-tests (Makefile.am): Likewise.
2009         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2010         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2011         * modules/pipe-tests (Makefile.am): Likewise.
2012         * modules/pread-tests (Makefile.am): Likewise.
2013         * modules/printf-posix-tests (Makefile.am): Likewise.
2014         * modules/select-tests (Makefile.am): Likewise.
2015         * modules/sigpipe-tests (Makefile.am): Likewise.
2016         * modules/tsearch-tests (Makefile.am): Likewise.
2017         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2018         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2019         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2020         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2021         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2022         * modules/version-etc-tests (Makefile.am): Likewise.
2023         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2024         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2025         * modules/xalloc-die-tests (Makefile.am): Likewise.
2026         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2027         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2028         * modules/xstrtol-tests (Makefile.am): Likewise.
2029         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2030         * modules/yesno-tests (Makefile.am): Likewise.
2031         Suggested by Jim Meyering.
2032
2033 2010-01-24  Bruno Haible  <bruno@clisp.org>
2034
2035         More documentation.
2036         * doc/gnulib.texi (Writing modules): New chapter.
2037         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2038         the new chapter.
2039
2040 2010-01-24  Jim Meyering  <meyering@redhat.com>
2041
2042         maint.mk: do not prepend "./" after filtering
2043         * top/maint.mk (_prepend_srcdir_prefix): New variable
2044         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2045         "./" when $(srcdir) is ".".
2046
2047         define STREQ(a,b) consistently, removing useless parentheses
2048         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2049         since the only risk is that "a" or "b" contains an unparenthesized
2050         comma, but if either did that, STREQ would have 3 or more arguments.
2051         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2052         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2053         * lib/hash-triple.c (STREQ): Likewise.
2054         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2055         * lib/getugroups.c (STREQ): Likewise.
2056
2057 2010-01-23  Jim Meyering  <meyering@redhat.com>
2058
2059         maint.mk: fix syntax-check in a non-srcdir build directory
2060         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2061         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2062
2063 2010-01-22  Jim Meyering  <meyering@redhat.com>
2064
2065         userspec: add unit tests
2066         * tests/test-userspec.c: New file.
2067         * modules/userspec-tests: Likewise.
2068
2069 2010-01-21  Jim Meyering  <meyering@redhat.com>
2070
2071         maint.mk: handle source file names containing "." robustly
2072         * top/maint.mk (_dot_escaped_srcdir): Define.
2073         (VC_LIST): Use it in LHS of sed substitution.
2074
2075 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2076
2077         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2078         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2079         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2080         from a non-srcdir build.
2081
2082 2010-01-20  Eric Blake  <ebb9@byu.net>
2083
2084         warn-on-use: use instead of link-warning
2085         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2086         * modules/unistd (Depends-on, Makefile.am): Likewise.
2087         * modules/arpa_inet (Depends-on): Replace link-warning with
2088         warn-on-use.
2089         (Makefile.am): Update rules accordingly.
2090         * modules/ctype (Depends-on, Makefile.am): Likewise.
2091         * modules/dirent (Depends-on, Makefile.am): Likewise.
2092         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2093         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2094         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2095         * modules/locale (Depends-on, Makefile.am): Likewise.
2096         * modules/math (Depends-on, Makefile.am): Likewise.
2097         * modules/search (Depends-on, Makefile.am): Likewise.
2098         * modules/signal (Depends-on, Makefile.am): Likewise.
2099         * modules/spawn (Depends-on, Makefile.am): Likewise.
2100         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2101         * modules/string (Depends-on, Makefile.am): Likewise.
2102         * modules/strings (Depends-on, Makefile.am): Likewise.
2103         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2104         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2105         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2106         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2107         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2108         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2109         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2110         * modules/wchar (Depends-on, Makefile.am): Likewise.
2111         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2112         should be poisoned.
2113         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2114         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2115         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2119         * m4/math_h.m4 (gl_MATH_H): Likewise.
2120         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2121         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2122         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2123         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2124         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2126         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2131         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2132         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2133         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2134         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2135         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2136         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2137         GL_LINK_WARNING.
2138         * lib/ctype.in.h: Likewise.
2139         * lib/dirent.in.h: Likewise.
2140         * lib/fcntl.in.h: Likewise.
2141         * lib/inttypes.in.h: Likewise.
2142         * lib/langinfo.in.h: Likewise.
2143         * lib/locale.in.h: Likewise.
2144         * lib/math.in.h: Likewise.
2145         * lib/search.in.h: Likewise.
2146         * lib/signal.in.h: Likewise.
2147         * lib/spawn.in.h: Likewise.
2148         * lib/stdio.in.h: Likewise.
2149         * lib/stdlib.in.h: Likewise.
2150         * lib/string.in.h: Likewise.
2151         * lib/strings.in.h: Likewise.
2152         * lib/sys_file.in.h: Likewise.
2153         * lib/sys_ioctl.in.h: Likewise.
2154         * lib/sys_select.in.h: Likewise.
2155         * lib/sys_socket.in.h: Likewise.
2156         * lib/sys_stat.in.h: Likewise.
2157         * lib/sys_times.in.h: Likewise.
2158         * lib/sys_utsname.in.h: Likewise.
2159         * lib/unistd.in.h: Likewise.
2160         * lib/wchar.in.h: Likewise.
2161
2162 2010-01-20  Bruno Haible  <bruno@clisp.org>
2163
2164         Avoid duplicate -lm.
2165         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2166         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2167         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2169         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2170         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2171         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2172         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2173         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2174         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2175         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2176         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2177         Reported by Paolo Bonzini.
2178
2179 2010-01-19  Bruno Haible  <bruno@clisp.org>
2180
2181         langinfo, nl_langinfo: Relicense under LGPLv2+.
2182         * modules/langinfo (License): Change to LGPLv2+.
2183         * modules/nl_langinfo (License): Likewise.
2184         Patch by David Lutterkort <lutter@redhat.com>.
2185
2186 2010-01-19  Bruno Haible  <bruno@clisp.org>
2187
2188         Avoid compilation error with cc on OSF/1 5.1.
2189         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2190         statement, not before.
2191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2192
2193 2010-01-18  Bruno Haible  <bruno@clisp.org>
2194
2195         Avoid a link error due to the __printf__ symbol.
2196         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2197         and 2.6.x.
2198         (__format__, __printf__): Remove definitions.
2199         * lib/argp-fmtstream.h: Likewise.
2200         * lib/argp.h: Likewise.
2201         * lib/error.h: Likewise.
2202         * lib/vasnprintf.h: Likewise.
2203         * lib/xprintf.h: Likewise.
2204         * lib/xvasprintf.h: Likewise.
2205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2206
2207 2010-01-18  Bruno Haible  <bruno@clisp.org>
2208
2209         Tests for module 'tanl'.
2210         * modules/tanl-tests: New file.
2211         * tests/test-tanl.c: New file.
2212
2213         Tests for module 'sqrtl'.
2214         * modules/sqrtl-tests: New file.
2215         * tests/test-sqrtl.c: New file.
2216
2217         Tests for module 'sinl'.
2218         * modules/sinl-tests: New file.
2219         * tests/test-sinl.c: New file.
2220
2221         Tests for module 'logl'.
2222         * modules/logl-tests: New file.
2223         * tests/test-logl.c: New file.
2224
2225         Tests for module 'expl'.
2226         * modules/expl-tests: New file.
2227         * tests/test-expl.c: New file.
2228
2229         Tests for module 'cosl'.
2230         * modules/cosl-tests: New file.
2231         * tests/test-cosl.c: New file.
2232
2233         Tests for module 'atanl'.
2234         * modules/atanl-tests: New file.
2235         * tests/test-atanl.c: New file.
2236
2237         Tests for module 'asinl'.
2238         * modules/asinl-tests: New file.
2239         * tests/test-asinl.c: New file.
2240
2241         Tests for module 'acosl'.
2242         * modules/acosl-tests: New file.
2243         * tests/test-acosl.c: New file.
2244
2245         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2246         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2247         tanl): Use the standard gnulib idiom.
2248         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2249         * lib/sinl.c: Likewise.
2250         * lib/tanl.c: Don't include trigl.c.
2251         (kernel_tanl): Make static.
2252         * lib/sincosl.c: Include trigl.h first.
2253         * lib/trigl.c: Likewise.
2254         * m4/acosl.m4: New file.
2255         * m4/asinl.m4: New file.
2256         * m4/atanl.m4: New file.
2257         * m4/cosl.m4: New file.
2258         * m4/expl.m4: New file.
2259         * m4/logl.m4: New file.
2260         * m4/sinl.m4: New file.
2261         * m4/sqrtl.m4: New file.
2262         * m4/tanl.m4: New file.
2263         * m4/mathl.m4: Remove file.
2264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2265         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2266         Don't initialize GNULIB_MATHL.
2267         * modules/acosl: New file.
2268         * modules/asinl: New file.
2269         * modules/atanl: New file.
2270         * modules/cosl: New file.
2271         * modules/expl: New file.
2272         * modules/logl: New file.
2273         * modules/sinl: New file.
2274         * modules/sqrtl: New file.
2275         * modules/tanl: New file.
2276         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2277         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2278         substitute GNULIB_MATHL.
2279         * modules/mathl: Rewritten.
2280         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2281         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2282         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2283         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2284         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2285         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2286         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2287         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2288         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2289
2290 2010-01-18  Bruno Haible  <bruno@clisp.org>
2291
2292         sqrt: Make gl_FUNC_SQRT requirable.
2293         * m4/sqrt.m4: New file.
2294         * modules/sqrt (Files): Add it.
2295         (configure.ac): Invoke gl_FUNC_SQRT.
2296
2297 2010-01-18  Bruno Haible  <bruno@clisp.org>
2298
2299         New modules for common <math.h> functions.
2300         * m4/mathfunc.m4: New file.
2301         * modules/acos: New file.
2302         * modules/asin: New file.
2303         * modules/atan: New file.
2304         * modules/atan2: New file.
2305         * modules/cbrt: New file.
2306         * modules/copysign: New file.
2307         * modules/cos: New file.
2308         * modules/cosh: New file.
2309         * modules/erf: New file.
2310         * modules/erfc: New file.
2311         * modules/exp: New file.
2312         * modules/fabs: New file.
2313         * modules/fmod: New file.
2314         * modules/hypot: New file.
2315         * modules/j0: New file.
2316         * modules/j1: New file.
2317         * modules/jn: New file.
2318         * modules/ldexp: New file.
2319         * modules/lgamma: New file.
2320         * modules/log: New file.
2321         * modules/log10: New file.
2322         * modules/log1p: New file.
2323         * modules/logb: New file.
2324         * modules/modf: New file.
2325         * modules/nextafter: New file.
2326         * modules/pow: New file.
2327         * modules/remainder: New file.
2328         * modules/rint: New file.
2329         * modules/sin: New file.
2330         * modules/sinh: New file.
2331         * modules/sqrt: New file.
2332         * modules/tan: New file.
2333         * modules/tanh: New file.
2334         * modules/y0: New file.
2335         * modules/y1: New file.
2336         * modules/yn: New file.
2337         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2338         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2339         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2340         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2341         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2342         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2343         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2344         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2345         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2346         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2347         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2348         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2349         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2350         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2351         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2352         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2353         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2354         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2355         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2356         * doc/posix-functions/log.texi: Mention the 'log' module.
2357         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2358         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2359         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2360         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2361         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2362         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2363         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2364         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2365         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2366         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2367         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2368         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2369         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2370         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2371         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2372         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2373
2374 2010-01-18  Jim Meyering  <meyering@redhat.com>
2375
2376         ignore-value: relax license to LGPLv2+
2377         * modules/ignore-value (License): Relax to LGPLv2+.
2378
2379         getdate: don't leak when TZ contains two or more '"'s
2380         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2381         double quote in TZ after the first one.
2382
2383         readtokens: do not leak internal token_lengths buffer
2384         * lib/readtokens.c (readtokens): Free the local, lengths,
2385         when the supplied "token_lengths" parameter is NULL.
2386
2387 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2388
2389         Fix a couple of missing LIBTHREAD link failures on AIX.
2390         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2391         $(LIBTHREAD).
2392         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2393
2394         Link test-poll against INET_PTON_LIB.
2395         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2396         for inet_pton on Solaris 10.
2397
2398 2010-01-17  Bruno Haible  <bruno@clisp.org>
2399
2400         unistdio/*-sprintf: Fix typo in module description.
2401         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2402         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2403         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2404         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2405         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2406         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2407         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2409
2410 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2411
2412         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2413         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2414         variables in shell case patterns, for AIX and HP-UX ksh.
2415
2416         Split large sed scripts, for HP-UX sed.
2417         * modules/stdio: Split sed scripts around 50 sed commands,
2418         to avoid HP-UX limit of 99 commands, in the near future.
2419         * modules/string: Likewise.
2420         * modules/unistd: Likewise.
2421
2422         gnulib-tool: avoid writing in the current directory.
2423         * gnulib-tool (func_emit_lib_Makefile_am)
2424         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2425         not in the current directory, so concurrent gnulib-tool
2426         instances do not interfere.
2427
2428 2010-01-16  Jim Meyering  <meyering@redhat.com>
2429
2430         doc: update users.txt
2431         * users.txt: Add grep.
2432         (diffutils, gzip): Update URLs.
2433
2434 2010-01-12  Bruno Haible  <bruno@clisp.org>
2435
2436         posix_spawn: Avoid test failure on Cygwin.
2437         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2438         characters.
2439         Reported by Simon Josefsson.
2440
2441 2010-01-12  Bruno Haible  <bruno@clisp.org>
2442
2443         * tests/test-cond.c (main): When skipping the test, show the reason.
2444
2445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2446
2447         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2448
2449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2450
2451         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2452         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2453
2454 2010-01-12  Eric Blake  <ebb9@byu.net>
2455
2456         build: guarantee AS_VAR_IF
2457         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2458         (gl_AS_VAR_IF): Move...
2459         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2460         Reported by Simon Josefsson.
2461
2462 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2463
2464         * lib/stdio.in.h: Fix typo.
2465
2466 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2467
2468         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2469         libgpg-error.
2470
2471 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2472
2473         * tests/test-xalloc-die.sh: Use $EXEEXT.
2474
2475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2476             Bruno Haible  <bruno@clisp.org>
2477
2478         getlogin, getlogin_r: Avoid test failure.
2479         * tests/test-getlogin.c: Include <stdio.h>.
2480         (main): Skip the test when the function fails because stdin is not a
2481         tty.
2482         * tests/test-getlogin_r.c: Include <stdio.h>.
2483         (main): Skip the test when the function fails because stdin is not a
2484         tty.
2485
2486 2010-01-11  Eric Blake  <ebb9@byu.net>
2487
2488         tests: avoid more large file warnings
2489         * tests/test-fflush.c: Avoid warning about ftell use.
2490         * tests/test-fseek.c: Avoid warning about fseek use.
2491
2492 2010-01-10  Bruno Haible  <bruno@clisp.org>
2493
2494         nproc: Work better on Linux when /proc and /sys are not mounted.
2495         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2496         as lower bound when, on glibc/Linux systems,
2497         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2498         Suggested by Pádraig Brady <P@draigbrady.com>.
2499         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2500
2501         nproc: Refactor.
2502         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2503         extracted from num_processors.
2504         (num_processors): Call it.
2505
2506 2010-01-11  Jim Meyering  <meyering@redhat.com>
2507
2508         utimecmp: avoid new warning from upcoming gcc-4.5.0
2509         * lib/utimecmp.c (BILLION): Define using #define rather than an
2510         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2511
2512 2010-01-11  Eric Blake  <ebb9@byu.net>
2513
2514         math: add portability warnings for classification macros
2515         * modules/math (Depends-on): Add warn-on-use.
2516         (Makefile.am): Provide new substitutions.
2517         * m4/math_h.m4 (gl_MATH_H): Require inline.
2518         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2519         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2520         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2521         implement warnings.
2522
2523         unistd: warn on use of environ without module
2524         * modules/unistd (Depends-on): Add warn-on-use.
2525         (Makefile.am): Provide new substitutions.
2526         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2527         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2528
2529         stdio: warn on suspicious uses
2530         * modules/stdio (Depends-on): Add warn-on-use.
2531         (Makefile.am): Provide new substitutions.
2532         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2533         fseeko.
2534         * lib/stdio.in.h (gets): Always warn on use.
2535         (fseek, ftell): Adjust when warnings are issued, and honor
2536         _GL_NO_LARGE_FILES as a way to silence the warning.
2537         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2538         any warning about large file offsets.
2539         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2540         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2541         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2542         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2543         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2544         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2545         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2546         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2547
2548         warn-on-use: new module
2549         * modules/warn-on-use: New file.
2550         * build-aux/warn-on-use.h: Likewise.
2551         * m4/warn-on-use.m4: Likewise.
2552         * MODULES.html.sh (Support for building): Mention it.
2553
2554 2010-01-10  Bruno Haible  <bruno@clisp.org>
2555
2556         Tests for module 'unistr/u32-strdup'.
2557         * modules/unistr/u32-strdup-tests: New file.
2558         * tests/unistr/test-u32-strdup.c: New file.
2559
2560         Tests for module 'unistr/u16-strdup'.
2561         * modules/unistr/u16-strdup-tests: New file.
2562         * tests/unistr/test-u16-strdup.c: New file.
2563
2564         Tests for module 'unistr/u8-strdup'.
2565         * modules/unistr/u8-strdup-tests: New file.
2566         * tests/unistr/test-u8-strdup.c: New file.
2567         * tests/unistr/test-strdup.h: New file.
2568
2569         Tests for module 'unistr/u32-strncmp'.
2570         * modules/unistr/u32-strncmp-tests: New file.
2571         * tests/unistr/test-u32-strncmp.c: New file.
2572
2573         Tests for module 'unistr/u16-strncmp'.
2574         * modules/unistr/u16-strncmp-tests: New file.
2575         * tests/unistr/test-u16-strncmp.c: New file.
2576
2577         Tests for module 'unistr/u8-strncmp'.
2578         * modules/unistr/u8-strncmp-tests: New file.
2579         * tests/unistr/test-u8-strncmp.c: New file.
2580         * tests/unistr/test-strncmp.h: New file.
2581
2582         Tests for module 'unistr/u32-strcoll'.
2583         * modules/unistr/u32-strcoll-tests: New file.
2584         * tests/unistr/test-u32-strcoll.c: New file.
2585
2586         Tests for module 'unistr/u16-strcoll'.
2587         * modules/unistr/u16-strcoll-tests: New file.
2588         * tests/unistr/test-u16-strcoll.c: New file.
2589
2590         Tests for module 'unistr/u8-strcoll'.
2591         * modules/unistr/u8-strcoll-tests: New file.
2592         * tests/unistr/test-u8-strcoll.c: New file.
2593
2594         Tests for module 'unistr/u32-strcmp'.
2595         * modules/unistr/u32-strcmp-tests: New file.
2596         * tests/unistr/test-u32-strcmp.c: New file.
2597         * tests/unistr/test-u32-strcmp.h: New file.
2598
2599         Tests for module 'unistr/u16-strcmp'.
2600         * modules/unistr/u16-strcmp-tests: New file.
2601         * tests/unistr/test-u16-strcmp.c: New file.
2602         * tests/unistr/test-u16-strcmp.h: New file.
2603
2604         Tests for module 'unistr/u8-strcmp'.
2605         * modules/unistr/u8-strcmp-tests: New file.
2606         * tests/unistr/test-u8-strcmp.c: New file.
2607         * tests/unistr/test-u8-strcmp.h: New file.
2608         * tests/unistr/test-strcmp.h: New file.
2609
2610         Tests for module 'unistr/u32-strncat'.
2611         * modules/unistr/u32-strncat-tests: New file.
2612         * tests/unistr/test-u32-strncat.c: New file.
2613
2614         Tests for module 'unistr/u16-strncat'.
2615         * modules/unistr/u16-strncat-tests: New file.
2616         * tests/unistr/test-u16-strncat.c: New file.
2617
2618         Tests for module 'unistr/u8-strncat'.
2619         * modules/unistr/u8-strncat-tests: New file.
2620         * tests/unistr/test-u8-strncat.c: New file.
2621         * tests/unistr/test-strncat.h: New file.
2622
2623         Tests for module 'unistr/u32-strcat'.
2624         * modules/unistr/u32-strcat-tests: New file.
2625         * tests/unistr/test-u32-strcat.c: New file.
2626
2627         Tests for module 'unistr/u16-strcat'.
2628         * modules/unistr/u16-strcat-tests: New file.
2629         * tests/unistr/test-u16-strcat.c: New file.
2630
2631         Tests for module 'unistr/u8-strcat'.
2632         * modules/unistr/u8-strcat-tests: New file.
2633         * tests/unistr/test-u8-strcat.c: New file.
2634         * tests/unistr/test-strcat.h: New file.
2635
2636         Tests for module 'unistr/u32-stpncpy'.
2637         * modules/unistr/u32-stpncpy-tests: New file.
2638         * tests/unistr/test-u32-stpncpy.c: New file.
2639
2640         Tests for module 'unistr/u16-stpncpy'.
2641         * modules/unistr/u16-stpncpy-tests: New file.
2642         * tests/unistr/test-u16-stpncpy.c: New file.
2643
2644         Tests for module 'unistr/u8-stpncpy'.
2645         * modules/unistr/u8-stpncpy-tests: New file.
2646         * tests/unistr/test-u8-stpncpy.c: New file.
2647         * tests/unistr/test-stpncpy.h: New file.
2648
2649         Tests for module 'unistr/u32-strncpy'.
2650         * modules/unistr/u32-strncpy-tests: New file.
2651         * tests/unistr/test-u32-strncpy.c: New file.
2652
2653         Tests for module 'unistr/u16-strncpy'.
2654         * modules/unistr/u16-strncpy-tests: New file.
2655         * tests/unistr/test-u16-strncpy.c: New file.
2656
2657         Tests for module 'unistr/u8-strncpy'.
2658         * modules/unistr/u8-strncpy-tests: New file.
2659         * tests/unistr/test-u8-strncpy.c: New file.
2660         * tests/unistr/test-strncpy.h: New file.
2661
2662         Tests for module 'unistr/u32-stpcpy'.
2663         * modules/unistr/u32-stpcpy-tests: New file.
2664         * tests/unistr/test-u32-stpcpy.c: New file.
2665
2666         Tests for module 'unistr/u16-stpcpy'.
2667         * modules/unistr/u16-stpcpy-tests: New file.
2668         * tests/unistr/test-u16-stpcpy.c: New file.
2669
2670         Tests for module 'unistr/u8-stpcpy'.
2671         * modules/unistr/u8-stpcpy-tests: New file.
2672         * tests/unistr/test-u8-stpcpy.c: New file.
2673         * tests/unistr/test-stpcpy.h: New file.
2674
2675         Tests for module 'unistr/u32-strcpy'.
2676         * modules/unistr/u32-strcpy-tests: New file.
2677         * tests/unistr/test-u32-strcpy.c: New file.
2678
2679         Tests for module 'unistr/u16-strcpy'.
2680         * modules/unistr/u16-strcpy-tests: New file.
2681         * tests/unistr/test-u16-strcpy.c: New file.
2682
2683         Tests for module 'unistr/u8-strcpy'.
2684         * modules/unistr/u8-strcpy-tests: New file.
2685         * tests/unistr/test-u8-strcpy.c: New file.
2686         * tests/unistr/test-strcpy.h: New file.
2687
2688         Tests for module 'unistr/u32-strnlen'.
2689         * modules/unistr/u32-strnlen-tests: New file.
2690         * tests/unistr/test-u32-strnlen.c: New file.
2691
2692         Tests for module 'unistr/u16-strnlen'.
2693         * modules/unistr/u16-strnlen-tests: New file.
2694         * tests/unistr/test-u16-strnlen.c: New file.
2695
2696         Tests for module 'unistr/u8-strnlen'.
2697         * modules/unistr/u8-strnlen-tests: New file.
2698         * tests/unistr/test-u8-strnlen.c: New file.
2699         * tests/unistr/test-strnlen.h: New file.
2700
2701         Tests for module 'unistr/u32-strlen'.
2702         * modules/unistr/u32-strlen-tests: New file.
2703         * tests/unistr/test-u32-strlen.c: New file.
2704
2705         Tests for module 'unistr/u16-strlen'.
2706         * modules/unistr/u16-strlen-tests: New file.
2707         * tests/unistr/test-u16-strlen.c: New file.
2708
2709         Tests for module 'unistr/u8-strlen'.
2710         * modules/unistr/u8-strlen-tests: New file.
2711         * tests/unistr/test-u8-strlen.c: New file.
2712
2713         Tests for module 'unistr/u32-prev'.
2714         * modules/unistr/u32-prev-tests: New file.
2715         * tests/unistr/test-u32-prev.c: New file.
2716
2717         Tests for module 'unistr/u16-prev'.
2718         * modules/unistr/u16-prev-tests: New file.
2719         * tests/unistr/test-u16-prev.c: New file.
2720
2721         Tests for module 'unistr/u8-prev'.
2722         * modules/unistr/u8-prev-tests: New file.
2723         * tests/unistr/test-u8-prev.c: New file.
2724
2725         Tests for module 'unistr/u32-next'.
2726         * modules/unistr/u32-next-tests: New file.
2727         * tests/unistr/test-u32-next.c: New file.
2728
2729         Tests for module 'unistr/u16-next'.
2730         * modules/unistr/u16-next-tests: New file.
2731         * tests/unistr/test-u16-next.c: New file.
2732
2733         Tests for module 'unistr/u8-next'.
2734         * modules/unistr/u8-next-tests: New file.
2735         * tests/unistr/test-u8-next.c: New file.
2736
2737         Tests for module 'unistr/u32-strmbtouc'.
2738         * modules/unistr/u32-strmbtouc-tests: New file.
2739         * tests/unistr/test-u32-strmbtouc.c: New file.
2740
2741         Tests for module 'unistr/u16-strmbtouc'.
2742         * modules/unistr/u16-strmbtouc-tests: New file.
2743         * tests/unistr/test-u16-strmbtouc.c: New file.
2744
2745         Tests for module 'unistr/u8-strmbtouc'.
2746         * modules/unistr/u8-strmbtouc-tests: New file.
2747         * tests/unistr/test-u8-strmbtouc.c: New file.
2748
2749         Tests for module 'unistr/u32-strmblen'.
2750         * modules/unistr/u32-strmblen-tests: New file.
2751         * tests/unistr/test-u32-strmblen.c: New file.
2752
2753         Tests for module 'unistr/u16-strmblen'.
2754         * modules/unistr/u16-strmblen-tests: New file.
2755         * tests/unistr/test-u16-strmblen.c: New file.
2756
2757         Tests for module 'unistr/u8-strmblen'.
2758         * modules/unistr/u8-strmblen-tests: New file.
2759         * tests/unistr/test-u8-strmblen.c: New file.
2760
2761         Tests for module 'unistr/u32-cpy-alloc'.
2762         * modules/unistr/u32-cpy-alloc-tests: New file.
2763         * tests/unistr/test-u32-cpy-alloc.c: New file.
2764
2765         Tests for module 'unistr/u16-cpy-alloc'.
2766         * modules/unistr/u16-cpy-alloc-tests: New file.
2767         * tests/unistr/test-u16-cpy-alloc.c: New file.
2768
2769         Tests for module 'unistr/u8-cpy-alloc'.
2770         * modules/unistr/u8-cpy-alloc-tests: New file.
2771         * tests/unistr/test-u8-cpy-alloc.c: New file.
2772         * tests/unistr/test-cpy-alloc.h: New file.
2773
2774         Tests for module 'unistr/u32-mbsnlen'.
2775         * modules/unistr/u32-mbsnlen-tests: New file.
2776         * tests/unistr/test-u32-mbsnlen.c: New file.
2777
2778         Tests for module 'unistr/u16-mbsnlen'.
2779         * modules/unistr/u16-mbsnlen-tests: New file.
2780         * tests/unistr/test-u16-mbsnlen.c: New file.
2781
2782         Tests for module 'unistr/u8-mbsnlen'.
2783         * modules/unistr/u8-mbsnlen-tests: New file.
2784         * tests/unistr/test-u8-mbsnlen.c: New file.
2785
2786         Tests for module 'unistr/u32-chr'.
2787         * modules/unistr/u32-chr-tests: New file.
2788         * tests/unistr/test-u32-chr.c: New file.
2789
2790         Tests for module 'unistr/u16-chr'.
2791         * modules/unistr/u16-chr-tests: New file.
2792         * tests/unistr/test-u16-chr.c: New file.
2793
2794         Tests for module 'unistr/u8-chr'.
2795         * modules/unistr/u8-chr-tests: New file.
2796         * tests/unistr/test-u8-chr.c: New file.
2797         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2798
2799         Tests for module 'unistr/u32-cmp2'.
2800         * modules/unistr/u32-cmp2-tests: New file.
2801         * tests/unistr/test-u32-cmp2.c: New file.
2802
2803         Tests for module 'unistr/u16-cmp2'.
2804         * modules/unistr/u16-cmp2-tests: New file.
2805         * tests/unistr/test-u16-cmp2.c: New file.
2806
2807         Tests for module 'unistr/u8-cmp2'.
2808         * modules/unistr/u8-cmp2-tests: New file.
2809         * tests/unistr/test-u8-cmp2.c: New file.
2810         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2811
2812         Tests for module 'unistr/u32-cmp'.
2813         * modules/unistr/u32-cmp-tests: New file.
2814         * tests/unistr/test-u32-cmp.c: New file.
2815
2816         Tests for module 'unistr/u16-cmp'.
2817         * modules/unistr/u16-cmp-tests: New file.
2818         * tests/unistr/test-u16-cmp.c: New file.
2819
2820         Tests for module 'unistr/u8-cmp'.
2821         * modules/unistr/u8-cmp-tests: New file.
2822         * tests/unistr/test-u8-cmp.c: New file.
2823         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2824
2825         Tests for module 'unistr/u32-set'.
2826         * modules/unistr/u32-set-tests: New file.
2827         * tests/unistr/test-u32-set.c: New file.
2828
2829         Tests for module 'unistr/u16-set'.
2830         * modules/unistr/u16-set-tests: New file.
2831         * tests/unistr/test-u16-set.c: New file.
2832
2833         Tests for module 'unistr/u8-set'.
2834         * modules/unistr/u8-set-tests: New file.
2835         * tests/unistr/test-u8-set.c: New file.
2836         * tests/unistr/test-set.h: New file.
2837
2838         Tests for module 'unistr/u32-move'.
2839         * modules/unistr/u32-move-tests: New file.
2840         * tests/unistr/test-u32-move.c: New file.
2841
2842         Tests for module 'unistr/u16-move'.
2843         * modules/unistr/u16-move-tests: New file.
2844         * tests/unistr/test-u16-move.c: New file.
2845
2846         Tests for module 'unistr/u8-move'.
2847         * modules/unistr/u8-move-tests: New file.
2848         * tests/unistr/test-u8-move.c: New file.
2849         * tests/unistr/test-move.h: New file.
2850
2851         Tests for module 'unistr/u32-cpy'.
2852         * modules/unistr/u32-cpy-tests: New file.
2853         * tests/unistr/test-u32-cpy.c: New file.
2854
2855         Tests for module 'unistr/u16-cpy'.
2856         * modules/unistr/u16-cpy-tests: New file.
2857         * tests/unistr/test-u16-cpy.c: New file.
2858
2859         Tests for module 'unistr/u8-cpy'.
2860         * modules/unistr/u8-cpy-tests: New file.
2861         * tests/unistr/test-u8-cpy.c: New file.
2862         * tests/unistr/test-cpy.h: New file.
2863
2864 2010-01-09  Bruno Haible  <bruno@clisp.org>
2865
2866         Tests for module 'unistr/u32-uctomb'.
2867         * modules/unistr/u32-uctomb-tests: New file.
2868         * tests/unistr/test-u32-uctomb.c: New file.
2869
2870         Tests for module 'unistr/u16-uctomb'.
2871         * modules/unistr/u16-uctomb-tests: New file.
2872         * tests/unistr/test-u16-uctomb.c: New file.
2873
2874         Tests for module 'unistr/u8-uctomb'.
2875         * modules/unistr/u8-uctomb-tests: New file.
2876         * tests/unistr/test-u8-uctomb.c: New file.
2877
2878         Tests for module 'unistr/u32-mbtoucr'.
2879         * modules/unistr/u32-mbtoucr-tests: New file.
2880         * tests/unistr/test-u32-mbtoucr.c: New file.
2881
2882         Tests for module 'unistr/u16-mbtoucr'.
2883         * modules/unistr/u16-mbtoucr-tests: New file.
2884         * tests/unistr/test-u16-mbtoucr.c: New file.
2885
2886         Tests for module 'unistr/u8-mbtoucr'.
2887         * modules/unistr/u8-mbtoucr-tests: New file.
2888         * tests/unistr/test-u8-mbtoucr.c: New file.
2889
2890         Tests for module 'unistr/u32-mbtouc'.
2891         * modules/unistr/u32-mbtouc-tests: New file.
2892         * tests/unistr/test-u32-mbtouc.c: New file.
2893
2894         Tests for module 'unistr/u16-mbtouc'.
2895         * modules/unistr/u16-mbtouc-tests: New file.
2896         * tests/unistr/test-u16-mbtouc.c: New file.
2897
2898         Tests for module 'unistr/u8-mbtouc'.
2899         * modules/unistr/u8-mbtouc-tests: New file.
2900         * tests/unistr/test-u8-mbtouc.c: New file.
2901
2902         Tests for module 'unistr/u32-mbtouc-unsafe'.
2903         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2904         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2905         * tests/unistr/test-u32-mbtouc.h: New file.
2906
2907         Tests for module 'unistr/u16-mbtouc-unsafe'.
2908         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2909         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2910         * tests/unistr/test-u16-mbtouc.h: New file.
2911
2912         Tests for module 'unistr/u8-mbtouc-unsafe'.
2913         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2914         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2915         * tests/unistr/test-u8-mbtouc.h: New file.
2916
2917         Tests for module 'unistr/u32-mblen'.
2918         * modules/unistr/u32-mblen-tests: New file.
2919         * tests/unistr/test-u32-mblen.c: New file.
2920
2921         Tests for module 'unistr/u16-mblen'.
2922         * modules/unistr/u16-mblen-tests: New file.
2923         * tests/unistr/test-u16-mblen.c: New file.
2924
2925         Tests for module 'unistr/u8-mblen'.
2926         * modules/unistr/u8-mblen-tests: New file.
2927         * tests/unistr/test-u8-mblen.c: New file.
2928
2929         Tests for module 'unistr/u32-to-u16'.
2930         * modules/unistr/u32-to-u16-tests: New file.
2931         * tests/unistr/test-u32-to-u16.c: New file.
2932
2933         Tests for module 'unistr/u32-to-u8'.
2934         * modules/unistr/u32-to-u8-tests: New file.
2935         * tests/unistr/test-u32-to-u8.c: New file.
2936
2937         Tests for module 'unistr/u16-to-u32'.
2938         * modules/unistr/u16-to-u32-tests: New file.
2939         * tests/unistr/test-u16-to-u32.c: New file.
2940
2941         Tests for module 'unistr/u16-to-u8'.
2942         * modules/unistr/u16-to-u8-tests: New file.
2943         * tests/unistr/test-u16-to-u8.c: New file.
2944
2945         Tests for module 'unistr/u8-to-u32'.
2946         * modules/unistr/u8-to-u32-tests: New file.
2947         * tests/unistr/test-u8-to-u32.c: New file.
2948
2949         Tests for module 'unistr/u8-to-u16'.
2950         * modules/unistr/u8-to-u16-tests: New file.
2951         * tests/unistr/test-u8-to-u16.c: New file.
2952
2953         Tests for module 'unistr/u32-check'.
2954         * modules/unistr/u32-check-tests: New file.
2955         * tests/unistr/test-u32-check.c: New file.
2956
2957         Tests for module 'unistr/u16-check'.
2958         * modules/unistr/u16-check-tests: New file.
2959         * tests/unistr/test-u16-check.c: New file.
2960
2961         Tests for module 'unistr/u8-check'.
2962         * modules/unistr/u8-check-tests: New file.
2963         * tests/unistr/test-u8-check.c: New file.
2964
2965         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2966         (category_equals): New function.
2967         (main): Add more tests.
2968         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2969
2970         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2971
2972 2010-01-10  Bruno Haible  <bruno@clisp.org>
2973
2974         unistr/u*-strcoll: Try harder to distinguish different strings.
2975         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2976         compare s1 and s2 to see if they are different.
2977
2978 2010-01-10  Bruno Haible  <bruno@clisp.org>
2979
2980         unistr/u*-stpncpy: Fix the return value.
2981         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2982         description of the return value consistent with stpncpy in glibc.
2983         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2984         written non-NUL unit.
2985
2986 2010-01-10  Bruno Haible  <bruno@clisp.org>
2987
2988         unistr/u*-next: Add missing dependencies.
2989         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2990         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2991         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2992
2993 2010-01-10  Bruno Haible  <bruno@clisp.org>
2994
2995         unistr/u8-mbsnlen: Fix return value for incomplete character.
2996         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2997         u8_mblen.
2998         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2999         Remove unistr/u8-mblen.
3000         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3001         u16_mblen.
3002         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3003         Remove unistr/u16-mblen.
3004
3005 2010-01-10  Bruno Haible  <bruno@clisp.org>
3006
3007         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3008         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3009         Reported by Brian Gough <bjg@gnu.org> and
3010         Chris Clayton <chris2553@googlemail.com> via
3011         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3012
3013 2010-01-09  Bruno Haible  <bruno@clisp.org>
3014
3015         unistr/u16-to-u32: Reject invalid input.
3016         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3017         u16_mbtouc.
3018         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3019         Remove unistr/u16-mbtouc.
3020
3021         unistr/u16-to-u8: Reject invalid input.
3022         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3023         u16_mbtouc.
3024         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3025         Remove unistr/u16-mbtouc.
3026
3027         unistr/u8-to-u32: Reject invalid input.
3028         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3029         u8_mbtouc.
3030         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3031         Remove unistr/u8-mbtouc.
3032
3033         unistr/u8-to-u16: Reject invalid input.
3034         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3035         u8_mbtouc.
3036         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3037         Remove unistr/u8-mbtouc.
3038
3039 2010-01-09  Bruno Haible  <bruno@clisp.org>
3040
3041         Tests for module 'getlogin'.
3042         * modules/getlogin-tests: New file.
3043         * tests/test-getlogin.c: New file.
3044
3045         New module 'getlogin'.
3046         * lib/unistd.in.h (getlogin): New declaration.
3047         * lib/getlogin.c: New file.
3048         * m4/getlogin.m4: New file.
3049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3050         HAVE_GETLOGIN.
3051         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3052         HAVE_GETLOGIN.
3053         * modules/getlogin: New file.
3054         * doc/posix-functions/getlogin.texi: Mention the new module.
3055         Reported by John W. Eaton <jwe@gnu.org>.
3056
3057 2010-01-09  Bruno Haible  <bruno@clisp.org>
3058
3059         getlogin_r: Support for native Windows.
3060         * lib/getlogin_r.c: Include <windows.h>
3061         (getlogin_r): Implement for native Windows.
3062         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3063         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3064         via John W. Eaton <jwe@gnu.org>.
3065
3066 2010-01-09  Bruno Haible  <bruno@clisp.org>
3067
3068         getlogin_r: Small fixes.
3069         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3070         succeeds.
3071         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3072         before testing whether getlogin_r is declared. No need to set
3073         HAVE_DECL_GETLOGIN_R to 1.
3074         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3075
3076 2010-01-09  Bruno Haible  <bruno@clisp.org>
3077
3078         * lib/unistd.in.h (getlogin_r): Add comment.
3079
3080 2010-01-09  Bruno Haible  <bruno@clisp.org>
3081
3082         Tests for module 'getlogin_r'.
3083         * modules/getlogin_r-tests: New file.
3084         * tests/test-getlogin_r.c: New file.
3085
3086 2010-01-09  Jim Meyering  <meyering@redhat.com>
3087
3088         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3089         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3090         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3091
3092 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3093
3094         * lib/dup2.c (rpl_dup2): Improve comment.
3095
3096 2010-01-08  Eric Blake  <ebb9@byu.net>
3097
3098         maint.mk: allow packages to add makefile @@ exceptions
3099         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3100         (sc_makefile_check): Rename...
3101         (sc_makefile_at_at_check): ...to this, and use hook.
3102
3103         dup2: work around mingw bug
3104         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3105         Reported by Simon Josefsson.
3106
3107 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3108
3109         glob: Fix C++ compilation.
3110         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3111         C++.
3112
3113 2010-01-07  Bruno Haible  <bruno@clisp.org>
3114
3115         Fix indentation of wctype.in.h, broken since 2007-01-06.
3116         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3117
3118 2010-01-07  Bruno Haible  <bruno@clisp.org>
3119
3120         mbslen: Avoid collision with system function.
3121         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3122         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3123         * m4/mbslen.m4: New file.
3124         * modules/mbslen (Files): Add it.
3125         (configure.ac): Invoke gl_MBSLEN.
3126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3127         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3128         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3129         via Ian Beckwith <ianb@erislabs.net>.
3130
3131 2010-01-07  Bruno Haible  <bruno@clisp.org>
3132
3133         dirent: Document the last fix.
3134         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3135
3136 2010-01-07  Bruno Haible  <bruno@clisp.org>
3137
3138         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3139         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3140         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3141         va_list are defined.
3142         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3143         Reported by Eric Blake.
3144
3145 2010-01-07  Bruno Haible  <bruno@clisp.org>
3146
3147         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3148         * modules/xlist (Depends-on): Add 'list',
3149         * modules/xoset (Depends-on): Add 'oset'.
3150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3151
3152 2010-01-07  Bruno Haible  <bruno@clisp.org>
3153
3154         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3155         * doc/posix-functions/strncasecmp.texi: Likewise.
3156
3157 2010-01-07  Bruno Haible  <bruno@clisp.org>
3158
3159         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3160
3161 2010-01-07  John W. Eaton  <jwe@octave.org>
3162
3163         wctype: allow C++ use
3164         * lib/wctype.in.h: Add extern "C" block for C++.
3165
3166 2010-01-06  Eric Blake  <ebb9@byu.net>
3167
3168         maint.mk: detect incorrect GFDL usage
3169         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3170
3171 2010-01-06  Jim Meyering  <meyering@redhat.com>
3172         and Eric Blake  <ebb9@byu.net>
3173
3174         maint.mk: ignore multi-line copyright in NEWS
3175         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3176
3177 2010-01-06  Eric Blake  <ebb9@byu.net>
3178
3179         select: add missing dependency
3180         * modules/select-tests (Depends-on): Move sockets dependency...
3181         * modules/select (Depends-on): ...here.
3182         Reported by Ian Beckwith.
3183
3184         doc: regenerate INSTALL
3185         * doc/INSTALL: Reflect recent autoconf update.
3186         * doc/INSTALL.ISO: Likewise.
3187         * doc/INSTALL.UTF-8: Likewise.
3188
3189         pread: fix compilation on glibc
3190         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3191         Reported by Ralf Wildenhues.
3192
3193         dirent: fix test failure
3194         * lib/dirent.in.h (includes): Guarantee ino_t.
3195         Reported by Ralf Wildenhues.
3196
3197 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3198
3199         linkat, renameat: avoid bad free
3200         * lib/at-func2.c (at_func2): Fix typo.
3201         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3202
3203 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3204
3205         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3206         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3207         to avoid failure of symlink test later.
3208
3209 2010-01-06  Eric Blake  <ebb9@byu.net>
3210
3211         stdio, unistd: guarantee ssize_t
3212         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3213         2008 are exposed when needed.
3214         * lib/stdio.in.h (includes): Likewise.
3215         Reported by Ralf Wildenhues.
3216
3217 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3218
3219         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3220         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3221         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3222
3223 2010-01-06  Jim Meyering  <meyering@redhat.com>
3224
3225         readtokens: this module *does* require xalloc.h
3226         It uses only functions that were omitted by the old syntax-check rule.
3227         * lib/readtokens.c: Include "xalloc.h" once again.
3228         * modules/readtokens (Depends-on): Add xalloc.
3229         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3230
3231 2010-01-05  Eric Blake  <ebb9@byu.net>
3232
3233         maint: support 'make announcement' from a VPATH build
3234         * top/maint.mk (announcement): Look for correct NEWS file.
3235
3236 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3237
3238         utimens (fdutimens): ignore a negative FD, per contract
3239         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3240         when we have a valid file descriptor.  Otherwise, using a brand
3241         new glibc (with just-patched futimens that now fails with EBADF)
3242         would cause this function to fail with ENOSYS.
3243         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3244         See also http://bugzilla.redhat.com/552320.
3245
3246 2010-01-05  Eric Blake  <ebb9@byu.net>
3247
3248         strcase: document what it provides
3249         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3250         gnulib module.
3251         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3252         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3253
3254 2010-01-05  Jim Meyering  <meyering@redhat.com>
3255
3256         maint: remove useless inclusions of "xalloc.h"
3257         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3258         * lib/readtokens.c: Likewise.
3259         * lib/same.c: Likewise.
3260         * modules/getloadavg (Depends-on): Remove xalloc.
3261         * modules/readtokens: Likewise.
3262         * modules/same: Likewise.
3263
3264         maint.mk: include 4 more function names in alloca.h-checking regexp
3265         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3266         regexp.  Before, we would give a false-positive (saying alloca.h
3267         is included unnecessarily) when the only uses involved omitted symbols.
3268
3269         xalloc.h: use consistent formatting
3270         * lib/xalloc.h: Move declarations to start in the first column.
3271
3272 2010-01-05  Eric Blake  <ebb9@byu.net>
3273
3274         mkdir: avoid xalloc
3275         * lib/mkdir.c (includes): Drop unused header.
3276         Reported by John W. Eaton.
3277
3278 2010-01-04  Jim Meyering  <meyering@redhat.com>
3279
3280         nl_langinfo: avoid configure-time syntax error
3281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3282         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3283         the empty string.  Don't let that provoke a shell syntax error.
3284
3285         regcomp, regexec, fnmatch: avoid array bounds read error
3286         * lib/regcomp.c (build_equiv_class): From glibc:
3287         Use only the low 24 bits of a findidx return value as an index
3288         into the weights array.  Patch by Ulrich Drepper:
3289         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3290         * lib/regexec.c (check_node_accept_bytes): Likewise.
3291         * lib/fnmatch_loop.c (FCT): Likewise.
3292
3293         regcomp: skip collseq lookup when there are no rules
3294         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3295         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3296
3297         regcomp: recognize ill-formed { } expressions
3298         * lib/regcomp.c (parse_dup_op): From glibc:
3299         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3300
3301         regcomp: fix typo in comment
3302         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3303         s/satisfy/satisfies/.
3304
3305         regcomp: sync from glibc: remove dead store
3306         * lib/regcomp.c (duplicate_node_closure): Remove useless
3307         search_duplicated_node call and dead store.
3308
3309         regcomp: sync from glibc; always use nl_langinfo
3310         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3311         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3312         * modules/regex (Depends-on): Add nl_langinfo.
3313
3314 2010-01-04  Eric Blake  <ebb9@byu.net>
3315
3316         fdopendir: fix configure test
3317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3318
3319 2010-01-01  Bruno Haible  <bruno@clisp.org>
3320
3321         wchar: Remove unused configure check.
3322         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3323
3324 2010-01-01  Eric Blake  <ebb9@byu.net>
3325
3326         headers: make check of system header explicit
3327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3328         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3329         ourselves.
3330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3333         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3334         internals.
3335         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3336         missing.
3337         Suggested by Bruno Haible.
3338
3339 2010-01-01  Jim Meyering  <meyering@redhat.com>
3340
3341         ChangeLog: tweak to eliminate unnecessary copyright line
3342         * ChangeLog: Remove a copyright line that was mistakenly updated
3343         by today's update-copyright run.  Reported by Eric Blake.
3344
3345         test-update-copyright: don't let envvar setting cause test failure
3346         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3347
3348 2010-01-01  Bruno Haible  <bruno@clisp.org>
3349
3350         localename: Avoid gcc warning.
3351         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3352         function if it is not used.
3353
3354 2010-01-01  Jim Meyering  <meyering@redhat.com>
3355
3356         update nearly all FSF copyright year lists to include 2010
3357         Use the same procedure as for 2009, outlined in
3358         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3359
3360         version-etc: set COPYRIGHT_YEAR to 2010
3361         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3362
3363 2009-12-31  Eric Blake  <ebb9@byu.net>
3364
3365         doc: correct availability of cygwin 1.5.x getopt
3366         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3367         variables.
3368         * doc/posix-functions/opterr.texi (opterr): Likewise.
3369         * doc/posix-functions/optind.texi (optind): Likewise.
3370         * doc/posix-functions/optopt.texi (optopt): Likewise.
3371         * doc/posix-functions/tzname.texi (tzname): Likewise.
3372
3373         openat: update maintainer
3374         * modules/openat (Maintainer): Add myself.
3375
3376         utimens: avoid shadowing warning
3377         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3378         buffers into one, to avoid shadowing, as well as avoiding a
3379         redundant stat.
3380         Reported by Jim Meyering.
3381
3382         test-dup2: avoid compiler warning
3383         * tests/test-dup2.c (is_inheritable): Only define if used.
3384
3385 2010-01-01  Bruno Haible  <bruno@clisp.org>
3386
3387         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3388         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3389         defined, use wctomb instead of wcrtomb.
3390
3391 2010-01-01  Bruno Haible  <bruno@clisp.org>
3392
3393         iconv: Reject native Solaris iconv.
3394         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3395         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3396
3397 2009-12-31  Bruno Haible  <bruno@clisp.org>
3398
3399         * tests/test-signal.c (main): Remove test of 'SIG'.
3400
3401 2009-12-31  Bruno Haible  <bruno@clisp.org>
3402
3403         spawn: Fix incomplete fix.
3404         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3405         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3406         warnings for GNULIB_POSIXCHECK again.
3407         Reported by Eric Blake.
3408
3409 2009-12-31  Bruno Haible  <bruno@clisp.org>
3410
3411         Avoid namespace pollution on glibc systems.
3412         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3413         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3414         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3415         glibc systems.
3416
3417 2009-12-31  Bruno Haible  <bruno@clisp.org>
3418
3419         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3420         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3421         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3422         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3423         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3424         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3425         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3426
3427 2009-12-31  Bruno Haible  <bruno@clisp.org>
3428
3429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3430         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3431         afterwards.
3432
3433 2009-12-31  Bruno Haible  <bruno@clisp.org>
3434
3435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3436         SYS_UTSNAME_H.
3437
3438 2009-12-31  Bruno Haible  <bruno@clisp.org>
3439
3440         spawn: Fix misapplied patch.
3441         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3442         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3443         warnings for GNULIB_POSIXCHECK.
3444
3445 2009-12-31  Bruno Haible  <bruno@clisp.org>
3446
3447         times: Update after sys_times changed.
3448         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3449         * modules/times (Files): Add it.
3450         (configure.ac): Invoke gl_FUNC_TIMES.
3451
3452 2009-12-31  Bruno Haible  <bruno@clisp.org>
3453
3454         Use AC_C_INLINE where necessary.
3455         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3457         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3458         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3459         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3460         * m4/mbiter.m4 (gl_MBITER): Likewise.
3461         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3462         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3463         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3464         * modules/u64 (configure.ac): Likewise.
3465
3466 2009-12-31  Bruno Haible  <bruno@clisp.org>
3467
3468         Use AC_C_INLINE instead of module 'inline' where possible.
3469         * modules/inline (Description): Clarify purpose.
3470         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3471         * modules/count-one-bits (Depends-on): Remove inline.
3472         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3473         * modules/openat (Depends-on): Remove inline.
3474         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3475         instead of depending on module 'inline'.
3476         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3477         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3478         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3479         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3480         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3481         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3482         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3483         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3484         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3485         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3486         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3487         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3488         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3489         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3490         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3491         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3492         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3493         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3494         Likewise.
3495         * modules/unictype/property-ascii-hex-digit (Depends-on,
3496         configure.ac): Likewise.
3497         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3498         configure.ac): Likewise.
3499         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3500         configure.ac): Likewise.
3501         * modules/unictype/property-bidi-block-separator (Depends-on,
3502         configure.ac): Likewise.
3503         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3504         configure.ac): Likewise.
3505         * modules/unictype/property-bidi-common-separator (Depends-on,
3506         configure.ac): Likewise.
3507         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3508         Likewise.
3509         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3510         configure.ac): Likewise.
3511         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3512         configure.ac): Likewise.
3513         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3514         configure.ac): Likewise.
3515         * modules/unictype/property-bidi-european-digit (Depends-on,
3516         configure.ac): Likewise.
3517         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3518         configure.ac): Likewise.
3519         * modules/unictype/property-bidi-left-to-right (Depends-on,
3520         configure.ac): Likewise.
3521         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3522         configure.ac): Likewise.
3523         * modules/unictype/property-bidi-other-neutral (Depends-on,
3524         configure.ac): Likewise.
3525         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3526         Likewise.
3527         * modules/unictype/property-bidi-segment-separator (Depends-on,
3528         configure.ac): Likewise.
3529         * modules/unictype/property-bidi-whitespace (Depends-on,
3530         configure.ac): Likewise.
3531         * modules/unictype/property-combining (Depends-on, configure.ac):
3532         Likewise.
3533         * modules/unictype/property-composite (Depends-on, configure.ac):
3534         Likewise.
3535         * modules/unictype/property-currency-symbol (Depends-on,
3536         configure.ac): Likewise.
3537         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3538         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3539         Likewise.
3540         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3541         configure.ac): Likewise.
3542         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3543         Likewise.
3544         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3545         Likewise.
3546         * modules/unictype/property-extender (Depends-on, configure.ac):
3547         Likewise.
3548         * modules/unictype/property-format-control (Depends-on, configure.ac):
3549         Likewise.
3550         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3551         Likewise.
3552         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3553         Likewise.
3554         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3555         Likewise.
3556         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3557         Likewise.
3558         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3559         Likewise.
3560         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3561         Likewise.
3562         * modules/unictype/property-id-start (Depends-on, configure.ac):
3563         Likewise.
3564         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3565         Likewise.
3566         * modules/unictype/property-ids-binary-operator (Depends-on,
3567         configure.ac): Likewise.
3568         * modules/unictype/property-ids-trinary-operator (Depends-on,
3569         configure.ac): Likewise.
3570         * modules/unictype/property-ignorable-control (Depends-on,
3571         configure.ac): Likewise.
3572         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3573         Likewise.
3574         * modules/unictype/property-join-control (Depends-on, configure.ac):
3575         Likewise.
3576         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3577         Likewise.
3578         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3579         Likewise.
3580         * modules/unictype/property-logical-order-exception (Depends-on,
3581         configure.ac): Likewise.
3582         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3583         Likewise.
3584         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3585         * modules/unictype/property-non-break (Depends-on, configure.ac):
3586         Likewise.
3587         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3588         Likewise.
3589         * modules/unictype/property-numeric (Depends-on, configure.ac):
3590         Likewise.
3591         * modules/unictype/property-other-alphabetic (Depends-on,
3592         configure.ac): Likewise.
3593         * modules/unictype/property-other-default-ignorable-code-point
3594         (Depends-on, configure.ac): Likewise.
3595         * modules/unictype/property-other-grapheme-extend (Depends-on,
3596         configure.ac): Likewise.
3597         * modules/unictype/property-other-id-continue (Depends-on,
3598         configure.ac): Likewise.
3599         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3600         Likewise.
3601         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3602         Likewise.
3603         * modules/unictype/property-other-math (Depends-on, configure.ac):
3604         Likewise.
3605         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3606         Likewise.
3607         * modules/unictype/property-paired-punctuation (Depends-on,
3608         configure.ac): Likewise.
3609         * modules/unictype/property-paragraph-separator (Depends-on,
3610         configure.ac): Likewise.
3611         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3612         Likewise.
3613         * modules/unictype/property-pattern-white-space (Depends-on,
3614         configure.ac): Likewise.
3615         * modules/unictype/property-private-use (Depends-on, configure.ac):
3616         Likewise.
3617         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3618         Likewise.
3619         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3620         Likewise.
3621         * modules/unictype/property-radical (Depends-on, configure.ac):
3622         Likewise.
3623         * modules/unictype/property-sentence-terminal (Depends-on,
3624         configure.ac): Likewise.
3625         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3626         Likewise.
3627         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3628         * modules/unictype/property-terminal-punctuation (Depends-on,
3629         configure.ac): Likewise.
3630         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3631         Likewise.
3632         * modules/unictype/property-unassigned-code-value (Depends-on,
3633         configure.ac): Likewise.
3634         * modules/unictype/property-unified-ideograph (Depends-on,
3635         configure.ac): Likewise.
3636         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3637         Likewise.
3638         * modules/unictype/property-variation-selector (Depends-on,
3639         configure.ac): Likewise.
3640         * modules/unictype/property-white-space (Depends-on, configure.ac):
3641         Likewise.
3642         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3643         Likewise.
3644         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3645         Likewise.
3646         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3647         Likewise.
3648         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3649         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3650         Likewise.
3651
3652 2009-12-31  Bruno Haible  <bruno@clisp.org>
3653
3654         Remove unnecessary AC_C_INLINE invocation.
3655         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3656         since 2009-08-21.
3657
3658 2009-12-31  Jim Meyering  <meyering@redhat.com>
3659
3660         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3661         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3662         With this change, we can all remove the gpg_key_ID = ... definition
3663         from our respective cfg.mk files.
3664
3665         maint.mk: create announcement template in ~/, not in /tmp
3666         * top/maint.mk (emit_upload_commands): Adjust.
3667         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3668         Remove temporary file, .ci-msg.
3669
3670 2009-12-31  Eric Blake  <ebb9@byu.net>
3671
3672         link-warning: always build headers with link warnings
3673         * modules/arpa_inet (Makefile.am): Always build replacement
3674         header.
3675         * modules/ctype (Makefile.am): Likewise.
3676         * modules/dirent (Makefile.am): Likewise.
3677         * modules/inttypes (Makefile.am): Likewise.
3678         * modules/langinfo (Makefile.am): Likewise.
3679         * modules/locale (Makefile.am): Likewise.
3680         * modules/spawn (Makefile.am): Likewise.
3681         * modules/sys_file (Makefile.am): Likewise.
3682         * modules/sys_ioctl (Makefile.am): Likewise.
3683         * modules/sys_select (Makefile.am): Likewise.
3684         * modules/sys_socket (Makefile.am): Likewise.
3685         * modules/sys_times (Makefile.am): Likewise.
3686         * modules/sys_utsname (Makefile.am): Likewise.
3687         * modules/sys_wait (Makefile.am): Likewise.
3688         * modules/wchar (Makefile.am): Likewise.
3689         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3690         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3691         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3692         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3693         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3694         Likewise.
3695         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3696         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3698         Likewise.
3699         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3700         Likewise.
3701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3703         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3705         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3706         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3707         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3708         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3709         (gl_WCHAR_H_DEFAULTS): Likewise.
3710
3711 2009-12-31  Eric Blake  <ebb9@byu.net>
3712
3713         signal, spawn: use link warnings
3714         * lib/signal.in.h (sigset_t): Make unconditional.
3715         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3716         (sigpending, sigprocmask, sigaction): Add link warnings.
3717         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3718         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3719         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3720         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3721         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3722         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3723         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3724         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3725         (posix_spawn_file_actions_destroy)
3726         (posix_spawn_file_actions_addopen)
3727         (posix_spawn_file_actions_addclose)
3728         (posix_spawn_file_actions_adddup2): Likewise.
3729         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3730         * tests/test-signal.c (main): Enhance test.
3731
3732         spawn: improve wrapper support
3733         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3734         (gl_SPAWN_H_DEFAULTS): New defaults.
3735         * modules/spawn (Makefile.am): Substitute them.
3736         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3737         Only declare if missing or broken.
3738
3739         sys_times, sys_utsname: use include_next
3740         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3741         header.
3742         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3743         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3744         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3745         * modules/sys_times (Depends-on): Add include_next.
3746         (Makefile.am): Substitute additional values.
3747         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3748         * lib/sys_times.in.h (includes): Include native header, if
3749         available.
3750         * lib/sys_utsname.in.h (includes): Likewise.
3751         * tests/test-sys_times.c (main): Enhance test.
3752
3753         fdutimensat: revert prior patch
3754         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3755         utimens.h.
3756         Reported by Bruno Haible.
3757
3758 2009-12-30  Eric Blake  <ebb9@byu.net>
3759
3760         sys_wait: drop link-warning dependency
3761         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3762         link-warning efforts.
3763         * lib/sys_wait.in.h: Likewise.
3764
3765         fdutimensat: remove bogus dependency
3766         * modules/fdutimensat (Depends-on): Drop inline.
3767
3768         unistd: fix typo
3769         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3770
3771 2009-12-30  Bruno Haible  <bruno@clisp.org>
3772
3773         Fix compilation error with Solaris cc.
3774         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3775         * lib/unicase/u16-is-invariant.c: Likewise.
3776         * lib/unicase/u32-is-invariant.c: Likewise.
3777         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3778
3779 2009-12-30  Bruno Haible  <bruno@clisp.org>
3780
3781         Fix test crash.
3782         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3783         locales.
3784         Reported by Simon Josefsson <simon@josefsson.org>.
3785
3786 2009-12-30  Bruno Haible  <bruno@clisp.org>
3787
3788         Fix compilation error on most platforms.
3789         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3790         Reported by Simon Josefsson <simon@josefsson.org>
3791         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3792
3793 2009-12-30  Eric Blake  <ebb9@byu.net>
3794
3795         futimens, utimensat: work around ntfs-3g bug
3796         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3797         a ctime bug is present, and expand workaround to cover ntfs-3g.
3798         * lib/utimens.c (fdutimens, lutimens): Likewise.
3799         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3800         (validate_timespec): Adjust return value.
3801         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3802         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3803         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3804
3805 2009-12-29  Eric Blake  <ebb9@byu.net>
3806
3807         link-warning: make usage consistent
3808         * modules/ctype (Depends-on): Add link-warning.
3809         (Makefile.am): Update rules accordingly.
3810         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3811         * modules/locale (Depends-on, Makefile.am): Likewise.
3812         * modules/sys_file (Makefile.am): Likewise.
3813         * modules/getopt-posix (Makefile.am): Delete unused link warning
3814         efforts.
3815         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3816         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3817         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3818         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3819
3820         stdio: remove unused variables
3821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3823         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3824
3825         tests: test more substitute headers
3826         * modules/ctype-tests: New file.
3827         * modules/dirent-tests: Likewise.
3828         * modules/spawn-tests: Likewise.
3829         * modules/sys_file-tests: Likewise.
3830         * modules/sys_ioctl-tests: Likewise.
3831         * modules/sys_wait-tests: Likewise.
3832         * tests/test-ctype.c: Likewise.
3833         * tests/test-dirent.c: Likewise.
3834         * tests/test-spawn.c: Likewise.
3835         * tests/test-sys_file.c: Likewise.
3836         * tests/test-sys_ioctl.c: Likewise.
3837         * tests/test-sys_wait.c: Likewise.
3838         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3839         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3840         whether or not flock is in use.
3841
3842         tests: remove License section from module
3843         * modules/arpa_inet-tests: Remove unneeded section.
3844         * modules/byteswap-tests: Likewise.
3845         * modules/ceilf-tests: Likewise.
3846         * modules/ceill-tests: Likewise.
3847         * modules/crypto/des-tests: Likewise.
3848         * modules/crypto/gc-arcfour-tests: Likewise.
3849         * modules/crypto/gc-arctwo-tests: Likewise.
3850         * modules/crypto/gc-des-tests: Likewise.
3851         * modules/crypto/gc-hmac-md5-tests: Likewise.
3852         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3853         * modules/crypto/gc-md2-tests: Likewise.
3854         * modules/crypto/gc-md4-tests: Likewise.
3855         * modules/crypto/gc-md5-tests: Likewise.
3856         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3857         * modules/crypto/gc-rijndael-tests: Likewise.
3858         * modules/crypto/gc-sha1-tests: Likewise.
3859         * modules/crypto/gc-tests: Likewise.
3860         * modules/crypto/md2-tests: Likewise.
3861         * modules/crypto/md4-tests: Likewise.
3862         * modules/fcntl-h-tests: Likewise.
3863         * modules/floorf-tests: Likewise.
3864         * modules/floorl-tests: Likewise.
3865         * modules/frexp-nolibm-tests: Likewise.
3866         * modules/frexp-tests: Likewise.
3867         * modules/frexpl-nolibm-tests: Likewise.
3868         * modules/frexpl-tests: Likewise.
3869         * modules/getaddrinfo-tests: Likewise.
3870         * modules/inttypes-tests: Likewise.
3871         * modules/isfinite-tests: Likewise.
3872         * modules/isinf-tests: Likewise.
3873         * modules/ldexpl-tests: Likewise.
3874         * modules/locale-tests: Likewise.
3875         * modules/math-tests: Likewise.
3876         * modules/netdb-tests: Likewise.
3877         * modules/netinet_in-tests: Likewise.
3878         * modules/printf-frexp-tests: Likewise.
3879         * modules/printf-frexpl-tests: Likewise.
3880         * modules/priv-set-tests: Likewise.
3881         * modules/random_r-tests: Likewise.
3882         * modules/round-tests: Likewise.
3883         * modules/roundf-tests: Likewise.
3884         * modules/roundl-tests: Likewise.
3885         * modules/search-tests: Likewise.
3886         * modules/select-tests: Likewise.
3887         * modules/signal-tests: Likewise.
3888         * modules/stdbool-tests: Likewise.
3889         * modules/stddef-tests: Likewise.
3890         * modules/stdint-tests: Likewise.
3891         * modules/stdio-tests: Likewise.
3892         * modules/stdlib-tests: Likewise.
3893         * modules/string-tests: Likewise.
3894         * modules/strings-tests: Likewise.
3895         * modules/sys_select-tests: Likewise.
3896         * modules/sys_socket-tests: Likewise.
3897         * modules/sys_stat-tests: Likewise.
3898         * modules/sys_time-tests: Likewise.
3899         * modules/sys_utsname-tests: Likewise.
3900         * modules/sysexits-tests: Likewise.
3901         * modules/time-tests: Likewise.
3902         * modules/trunc-tests: Likewise.
3903         * modules/truncf-tests: Likewise.
3904         * modules/truncl-tests: Likewise.
3905         * modules/tsearch-tests: Likewise.
3906         * modules/unistd-tests: Likewise.
3907         * modules/wchar-tests: Likewise.
3908         * modules/wctype-tests: Likewise.
3909
3910         tests: fix license on several tests
3911         * tests/test-des.c: Update to GPLv3+.
3912         * tests/test-flock.c: Likewise.
3913         * tests/test-fsync.c: Likewise.
3914         * tests/test-futimens.h: Likewise.
3915         * tests/test-gc-arcfour.c: Likewise.
3916         * tests/test-gc-arctwo.c: Likewise.
3917         * tests/test-gc-des.c: Likewise.
3918         * tests/test-gc-hmac-md5.c: Likewise.
3919         * tests/test-gc-hmac-sha1.c: Likewise.
3920         * tests/test-gc-md2.c: Likewise.
3921         * tests/test-gc-md4.c: Likewise.
3922         * tests/test-gc-md5.c: Likewise.
3923         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3924         * tests/test-gc-rijndael.c: Likewise.
3925         * tests/test-gc-sha1.c: Likewise.
3926         * tests/test-gc.c: Likewise.
3927         * tests/test-getcwd.c: Likewise.
3928         * tests/test-link.c: Likewise.
3929         * tests/test-link.h: Likewise.
3930         * tests/test-lutimens.h: Likewise.
3931         * tests/test-md2.c: Likewise.
3932         * tests/test-md4.c: Likewise.
3933         * tests/test-mkdir.h: Likewise.
3934         * tests/test-rename.c: Likewise.
3935         * tests/test-rename.h: Likewise.
3936         * tests/test-safe-alloc.c: Likewise.
3937         * tests/test-utimens-common.h: Likewise.
3938         * tests/test-utimens.h: Likewise.
3939
3940         maint: sync license texts
3941         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3942         * doc/gpl-3.0.texi: Revert copyright year update.
3943         * doc/lgpl-3.0.texi: Likewise.
3944
3945 2009-12-29  Jim Meyering  <meyering@redhat.com>
3946
3947         update nearly all FSF copyright year lists to include 2009
3948         The files named by the following are exempted:
3949             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3950               test -f "$dst" && { echo "$dst"; continue; }
3951               test -d "$dst" || continue
3952               echo "$dst"/$(basename "$src")
3953             done > exempt
3954             git ls-files tests/unictype >> exempt
3955         In the remaining files, convert to all-interval notation if
3956         - there is already at least one year interval like 2000-2003
3957         - the file is maintained by me
3958         - the file is in lib/uni*/, where that style already prevails
3959         Otherwise, use update-copyright's default.
3960
3961 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3962         and Eric Blake  <ebb9@byu.net>
3963
3964         tests: don't require debug system() to pass
3965         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3966         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3967         * tests/test-unlink.h (test_unlink_func): Likewise.
3968         * tests/test-fstatat.c (main): ...into callers.
3969         * tests/test-lstat.c (main): Likewise.
3970         * tests/test-rmdir.c (main): Likewise.
3971         * tests/test-unlink.c (main): Likewise.
3972         * tests/test-unlinkat.c (main): Likewise.
3973         * tests/test-areadlink-with-size.c (main): Don't require a
3974         debug-only system call to pass, aiding cross-testing to mingw.
3975         * tests/test-areadlink.c (main): Likewise.
3976         * tests/test-areadlinkat-with-size.c (main): Likewise.
3977         * tests/test-areadlinkat.c (main): Likewise.
3978         * tests/test-canonicalize-lgpl.c (main): Likewise.
3979         * tests/test-canonicalize.c (main): Likewise.
3980         * tests/test-chown.c (main): Likewise.
3981         * tests/test-fchownat.c (main): Likewise.
3982         * tests/test-lchown.c (main): Likewise.
3983         * tests/test-fdutimensat.c (main): Likewise.
3984         * tests/test-futimens.c (main): Likewise.
3985         * tests/test-link.c (main): Likewise.
3986         * tests/test-linkat.c (main): Likewise.
3987         * tests/test-mkdir.c (main): Likewise.
3988         * tests/test-mkdirat.c (main): Likewise.
3989         * tests/test-mkfifo.c (main): Likewise.
3990         * tests/test-mkfifoat.c (main): Likewise.
3991         * tests/test-mknod.c (main): Likewise.
3992         * tests/test-readlink.c (main): Likewise.
3993         * tests/test-remove.c (main): Likewise.
3994         * tests/test-rename.c (main): Likewise.
3995         * tests/test-renameat.c (main): Likewise.
3996         * tests/test-symlink.c (main): Likewise.
3997         * tests/test-symlinkat.c (main): Likewise.
3998         * tests/test-utimens.c (main): Likewise.
3999         * tests/test-utimensat.c (main): Likewise.
4000
4001 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4002
4003         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4004         on $(UNUSED_PARAMETER_H) to avoid build failure.
4005
4006 2009-12-28  Jim Meyering  <meyering@redhat.com>
4007
4008         update-copyright: you may specify a max. line length other than 72
4009         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4010
4011         maint: use consistent FSF copyright line syntax
4012         * lib/posixtm.c: Add missing comma in FSF copyright line.
4013         * lib/posixtm.h: Likewise.
4014         * lib/getugroups.c: Add missing ", Inc.".
4015
4016         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4017         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4018         FSF copyright line.  Remove trailing blanks.
4019
4020 2009-12-28  Eric Blake  <ebb9@byu.net>
4021
4022         test-dup2: reduce dependencies
4023         * modules/cloexec (Configure.ac): Set witness.
4024         * modules/dup2-tests (Depends-on): Drop cloexec.
4025         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4026         not present.
4027         Suggested by Bruno Haible.
4028
4029 2009-12-26  Bruno Haible  <bruno@clisp.org>
4030
4031         Remove an unneeded dependency.
4032         * modules/fseterr (Depends-on): Remove dup2.
4033
4034 2009-12-26  Eric Blake  <ebb9@byu.net>
4035
4036         tests: use macros.h in more places
4037         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4038         (ASSERT_STREAM): Provide default of stderr.
4039         * tests/test-dirent-safer.c: Include macros.h, using alternate
4040         stream for assertions.
4041         * tests/test-dup-safer.c: Likewise.
4042         * tests/test-freopen-safer.c: Likewise.
4043         * tests/test-getopt.c: Likewise.
4044         * tests/test-openat-safer.c: Likewise.
4045         * tests/test-pipe.c: Likewise.
4046         * tests/test-popen-safer.c: Likewise.
4047         * modules/dirent-safer-tests (Files): Include macros.h.
4048         * modules/unistd-safer-tests (Files): Likewise.
4049         * modules/freopen-safer-tests (Files): Likewise.
4050         * modules/getopt-posix-tests (Files): Likewise.
4051         * modules/openat-safer-tests (Files): Likewise.
4052         * modules/pipe-tests (Files): Likewise.
4053
4054 2009-12-26  Bruno Haible  <bruno@clisp.org>
4055
4056         javacomp: Portability fix.
4057         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4058         that it also works on Solaris.
4059
4060 2009-12-26  Bruno Haible  <bruno@clisp.org>
4061
4062         localename: Fix storage allocation of gl_locale_name_thread's result.
4063         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4064         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4065         all platforms that have 'uselocale'.
4066         (gl_locale_name_thread_unsafe): New function, extracted from
4067         gl_locale_name_thread.
4068         (gl_locale_name_thread): Call struniq on all platforms that have
4069         'uselocale'.
4070         * tests/test-localename.c (test_locale_name_thread): Check that the
4071         resulting strings are permanently allocated.
4072         * modules/localename-tests (Depends-on): Add strdup.
4073
4074 2009-12-26  Bruno Haible  <bruno@clisp.org>
4075
4076         * tests/test-localename.c (categories): Fill in the strings.
4077
4078 2009-12-26  Jim Meyering  <meyering@redhat.com>
4079
4080         isdir: complete the removal of m4/isdir.m4
4081         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4082
4083         isdir: clean up, since at least grep still uses it
4084         * lib/isdir.c: Include "isdir.h".
4085         (S_ISDIR): Remove now-unneeded definition.
4086         * modules/isdir (Files): Add lib/isdir.h.
4087         * lib/isdir.h: New file, with declaration.
4088         * m4/isdir.m4: Remove file -- unneeded.
4089
4090 2009-12-25  Bruno Haible  <bruno@clisp.org>
4091
4092         selinux-h: Make generated .h files standalone.
4093         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4094         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4095         * lib/se-selinux.in.h: Likewise.
4096         * modules/selinux-h (Depends-on): Add unused-parameter.
4097         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4098         selinux/selinux.h and selinux/context.h.
4099         Suggested by Eric Blake.
4100
4101 2009-12-25  Bruno Haible  <bruno@clisp.org>
4102
4103         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4104         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4105         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4106         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4107         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4108
4109 2009-12-24  Bruno Haible  <bruno@clisp.org>
4110
4111         openat: Fix warning.
4112         * lib/openat-proc.c: Include <unistd.h>.
4113
4114 2009-12-24  Bruno Haible  <bruno@clisp.org>
4115
4116         New module 'unused-parameter'.
4117         * build-aux/unused-parameter.h: New file, extracted from earlier
4118         gnulib-common.m4.
4119         * modules/unused-parameter: New file.
4120         * lib/unistr.h: Include unused-parameter.h.
4121         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4122         _GL_UNUSED.
4123         * modules/unistr/base (Depends-on): Add unused-parameter.
4124
4125 2009-12-24  Bruno Haible  <bruno@clisp.org>
4126
4127         Add missing dependencies to 'extensions' module.
4128         * m4/extensions.m4: Add comment.
4129         * modules/accept4 (Depends-on): Add extensions.
4130         * modules/dup3 (Depends-on): Likewise.
4131         * modules/fcntl (Depends-on): Likewise.
4132         * modules/futimens (Depends-on): Likewise.
4133         * modules/mknod (Depends-on): Likewise.
4134         * modules/pipe2 (Depends-on): Likewise.
4135         * modules/stat-time (Depends-on): Likewise.
4136         * modules/strcasestr-simple (Depends-on): Likewise.
4137         * modules/strsignal (Depends-on): Likewise.
4138         * modules/utimensat (Depends-on): Likewise.
4139         * modules/localcharset (Depends-on): Likewise. Needed because of
4140         gl_FCNTL_O_FLAGS.
4141         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4142         AC_TYPE_MBSTATE_T.
4143         * modules/wcsnrtombs (Depends-on): Likewise.
4144         * modules/wcsrtombs (Depends-on): Likewise.
4145
4146 2009-12-24  Bruno Haible  <bruno@clisp.org>
4147
4148         binary-io: Avoid gcc warning due to SET_BINARY.
4149         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4150         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4151
4152 2009-12-24  Bruno Haible  <bruno@clisp.org>
4153
4154         Avoid future namespace pollution on glibc systems.
4155         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4156         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4157         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4158         glibc systems.
4159
4160 2009-12-24  Bruno Haible  <bruno@clisp.org>
4161
4162         Refactor common macros used in tests.
4163         * tests/macros.h: New file.
4164         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4165         and/or <stdlib.h>, if appropriate.
4166         (ASSERT, SIZEOF): Remove macros.
4167         * tests/test-areadlink-with-size.c: Likewise.
4168         * tests/test-areadlinkat.c: Likewise.
4169         * tests/test-areadlinkat-with-size.c: Likewise.
4170         * tests/test-argmatch.c: Likewise.
4171         * tests/test-argv-iter.c: Likewise.
4172         * tests/test-array-mergesort.c: Likewise.
4173         * tests/test-array_list.c: Likewise.
4174         * tests/test-array_oset.c: Likewise.
4175         * tests/test-avltree_list.c: Likewise.
4176         * tests/test-avltree_oset.c: Likewise.
4177         * tests/test-avltreehash_list.c: Likewise.
4178         * tests/test-base64.c: Likewise.
4179         * tests/test-binary-io.c: Likewise.
4180         * tests/test-bitrotate.c: Likewise.
4181         * tests/test-btowc.c: Likewise.
4182         * tests/test-byteswap.c: Likewise.
4183         * tests/test-c-ctype.c: Likewise.
4184         * tests/test-c-stack.c: Likewise.
4185         * tests/test-c-strcasecmp.c: Likewise.
4186         * tests/test-c-strcasestr.c: Likewise.
4187         * tests/test-c-strncasecmp.c: Likewise.
4188         * tests/test-c-strstr.c: Likewise.
4189         * tests/test-canonicalize-lgpl.c: Likewise.
4190         * tests/test-canonicalize.c: Likewise.
4191         * tests/test-carray_list.c: Likewise.
4192         * tests/test-ceilf1.c: Likewise.
4193         * tests/test-ceilf2.c: Likewise.
4194         * tests/test-ceill.c: Likewise.
4195         * tests/test-chown.c: Likewise.
4196         * tests/test-cloexec.c: Likewise.
4197         * tests/test-copy-acl.c: Likewise.
4198         * tests/test-copy-file.c: Likewise.
4199         * tests/test-count-one-bits.c: Likewise.
4200         * tests/test-dprintf-posix.c: Likewise.
4201         * tests/test-dup2.c: Likewise.
4202         * tests/test-dup3.c: Likewise.
4203         * tests/test-duplocale.c: Likewise.
4204         * tests/test-fbufmode.c: Likewise.
4205         * tests/test-fchdir.c: Likewise.
4206         * tests/test-fchownat.c: Likewise.
4207         * tests/test-fcntl-safer.c: Likewise.
4208         * tests/test-fcntl.c: Likewise.
4209         * tests/test-fdopendir.c: Likewise.
4210         * tests/test-fdutimensat.c: Likewise.
4211         * tests/test-fflush2.c: Likewise.
4212         * tests/test-file-has-acl.c: Likewise.
4213         * tests/test-filevercmp.c: Likewise.
4214         * tests/test-flock.c: Likewise.
4215         * tests/test-floorf1.c: Likewise.
4216         * tests/test-floorf2.c: Likewise.
4217         * tests/test-floorl.c: Likewise.
4218         * tests/test-fnmatch.c: Likewise.
4219         * tests/test-fopen.h: Likewise.
4220         * tests/test-fpending.c: Likewise.
4221         * tests/test-fprintf-posix.c: Likewise.
4222         * tests/test-fpurge.c: Likewise.
4223         * tests/test-freadable.c: Likewise.
4224         * tests/test-freadahead.c: Likewise.
4225         * tests/test-freading.c: Likewise.
4226         * tests/test-freadptr.c: Likewise.
4227         * tests/test-freadptr2.c: Likewise.
4228         * tests/test-freadseek.c: Likewise.
4229         * tests/test-freopen.c: Likewise.
4230         * tests/test-frexp.c: Likewise.
4231         * tests/test-frexpl.c: Likewise.
4232         * tests/test-fseek.c: Likewise.
4233         * tests/test-fseeko.c: Likewise.
4234         * tests/test-fstatat.c: Likewise.
4235         * tests/test-fstrcmp.c: Likewise.
4236         * tests/test-fsync.c: Likewise.
4237         * tests/test-ftell.c: Likewise.
4238         * tests/test-ftello.c: Likewise.
4239         * tests/test-func.c: Likewise.
4240         * tests/test-futimens.c: Likewise.
4241         * tests/test-fwritable.c: Likewise.
4242         * tests/test-fwriting.c: Likewise.
4243         * tests/test-getcwd.c: Likewise.
4244         * tests/test-getdate.c: Likewise.
4245         * tests/test-getdelim.c: Likewise.
4246         * tests/test-getdtablesize.c: Likewise.
4247         * tests/test-getgroups.c: Likewise.
4248         * tests/test-getline.c: Likewise.
4249         * tests/test-getndelim2.c: Likewise.
4250         * tests/test-glob.c: Likewise.
4251         * tests/test-hash.c: Likewise.
4252         * tests/test-i-ring.c: Likewise.
4253         * tests/test-iconv-utf.c: Likewise.
4254         * tests/test-iconv.c: Likewise.
4255         * tests/test-idpriv-drop.c: Likewise.
4256         * tests/test-idpriv-droptemp.c: Likewise.
4257         * tests/test-inet_ntop.c: Likewise.
4258         * tests/test-inet_pton.c: Likewise.
4259         * tests/test-isblank.c: Likewise.
4260         * tests/test-isfinite.c: Likewise.
4261         * tests/test-isinf.c: Likewise.
4262         * tests/test-isnan.c: Likewise.
4263         * tests/test-isnand.h: Likewise.
4264         * tests/test-isnanf.h: Likewise.
4265         * tests/test-isnanl.h: Likewise.
4266         * tests/test-lchown.c: Likewise.
4267         * tests/test-ldexpl.c: Likewise.
4268         * tests/test-link.c: Likewise.
4269         * tests/test-linkat.c: Likewise.
4270         * tests/test-linked_list.c: Likewise.
4271         * tests/test-linkedhash_list.c: Likewise.
4272         * tests/test-localename.c: Likewise.
4273         * tests/test-lseek.c: Likewise.
4274         * tests/test-lstat.c: Likewise.
4275         * tests/test-mbmemcasecmp.c: Likewise.
4276         * tests/test-mbmemcasecoll.c: Likewise.
4277         * tests/test-mbrtowc.c: Likewise.
4278         * tests/test-mbscasecmp.c: Likewise.
4279         * tests/test-mbscasestr1.c: Likewise.
4280         * tests/test-mbscasestr2.c: Likewise.
4281         * tests/test-mbscasestr3.c: Likewise.
4282         * tests/test-mbscasestr4.c: Likewise.
4283         * tests/test-mbschr.c: Likewise.
4284         * tests/test-mbscspn.c: Likewise.
4285         * tests/test-mbsinit.c: Likewise.
4286         * tests/test-mbsncasecmp.c: Likewise.
4287         * tests/test-mbsnrtowcs.c: Likewise.
4288         * tests/test-mbspbrk.c: Likewise.
4289         * tests/test-mbspcasecmp.c: Likewise.
4290         * tests/test-mbsrchr.c: Likewise.
4291         * tests/test-mbsrtowcs.c: Likewise.
4292         * tests/test-mbsspn.c: Likewise.
4293         * tests/test-mbsstr1.c: Likewise.
4294         * tests/test-mbsstr2.c: Likewise.
4295         * tests/test-mbsstr3.c: Likewise.
4296         * tests/test-memchr.c: Likewise.
4297         * tests/test-memchr2.c: Likewise.
4298         * tests/test-memcmp.c: Likewise.
4299         * tests/test-memmem.c: Likewise.
4300         * tests/test-memrchr.c: Likewise.
4301         * tests/test-mkdir.c: Likewise.
4302         * tests/test-mkdirat.c: Likewise.
4303         * tests/test-mkfifo.c: Likewise.
4304         * tests/test-mkfifoat.c: Likewise.
4305         * tests/test-mknod.c: Likewise.
4306         * tests/test-nanosleep.c: Likewise.
4307         * tests/test-nl_langinfo.c: Likewise.
4308         * tests/test-obstack-printf.c: Likewise.
4309         * tests/test-open.c: Likewise.
4310         * tests/test-openat.c: Likewise.
4311         * tests/test-pipe-filter-gi1.c: Likewise.
4312         * tests/test-pipe-filter-gi2-main.c: Likewise.
4313         * tests/test-pipe-filter-ii1.c: Likewise.
4314         * tests/test-pipe-filter-ii2-main.c: Likewise.
4315         * tests/test-pipe2.c: Likewise.
4316         * tests/test-popen.h: Likewise.
4317         * tests/test-posixtm.c: Likewise.
4318         * tests/test-pread.c: Likewise.
4319         * tests/test-printf-frexp.c: Likewise.
4320         * tests/test-printf-frexpl.c: Likewise.
4321         * tests/test-printf-posix.c: Likewise.
4322         * tests/test-priv-set.c: Likewise.
4323         * tests/test-quotearg.c: Likewise.
4324         * tests/test-random_r.c: Likewise.
4325         * tests/test-rawmemchr.c: Likewise.
4326         * tests/test-rbtree_list.c: Likewise.
4327         * tests/test-rbtree_oset.c: Likewise.
4328         * tests/test-rbtreehash_list.c: Likewise.
4329         * tests/test-readlink.c: Likewise.
4330         * tests/test-remove.c: Likewise.
4331         * tests/test-rename.c: Likewise.
4332         * tests/test-renameat.c: Likewise.
4333         * tests/test-rmdir.c: Likewise.
4334         * tests/test-round1.c: Likewise.
4335         * tests/test-roundf1.c: Likewise.
4336         * tests/test-roundl.c: Likewise.
4337         * tests/test-safe-alloc.c: Likewise.
4338         * tests/test-sameacls.c: Likewise.
4339         * tests/test-set-mode-acl.c: Likewise.
4340         * tests/test-setenv.c: Likewise.
4341         * tests/test-sigaction.c: Likewise.
4342         * tests/test-signbit.c: Likewise.
4343         * tests/test-sleep.c: Likewise.
4344         * tests/test-snprintf-posix.c: Likewise.
4345         * tests/test-snprintf.c: Likewise.
4346         * tests/test-sprintf-posix.c: Likewise.
4347         * tests/test-stat-time.c: Likewise.
4348         * tests/test-stat.c: Likewise.
4349         * tests/test-strcasestr.c: Likewise.
4350         * tests/test-strchrnul.c: Likewise.
4351         * tests/test-strerror.c: Likewise.
4352         * tests/test-striconv.c: Likewise.
4353         * tests/test-striconveh.c: Likewise.
4354         * tests/test-striconveha.c: Likewise.
4355         * tests/test-strsignal.c: Likewise.
4356         * tests/test-strstr.c: Likewise.
4357         * tests/test-strtod.c: Likewise.
4358         * tests/test-strverscmp.c: Likewise.
4359         * tests/test-symlink.c: Likewise.
4360         * tests/test-symlinkat.c: Likewise.
4361         * tests/test-trunc1.c: Likewise.
4362         * tests/test-trunc2.c: Likewise.
4363         * tests/test-truncf1.c: Likewise.
4364         * tests/test-truncf2.c: Likewise.
4365         * tests/test-truncl.c: Likewise.
4366         * tests/test-uname.c: Likewise.
4367         * tests/test-unlink.c: Likewise.
4368         * tests/test-unlinkat.c: Likewise.
4369         * tests/test-unsetenv.c: Likewise.
4370         * tests/test-usleep.c: Likewise.
4371         * tests/test-utimens.c: Likewise.
4372         * tests/test-utimensat.c: Likewise.
4373         * tests/test-vasnprintf-posix.c: Likewise.
4374         * tests/test-vasnprintf-posix2.c: Likewise.
4375         * tests/test-vasnprintf.c: Likewise.
4376         * tests/test-vasprintf-posix.c: Likewise.
4377         * tests/test-vasprintf.c: Likewise.
4378         * tests/test-vdprintf-posix.c: Likewise.
4379         * tests/test-vfprintf-posix.c: Likewise.
4380         * tests/test-vprintf-posix.c: Likewise.
4381         * tests/test-vsnprintf-posix.c: Likewise.
4382         * tests/test-vsnprintf.c: Likewise.
4383         * tests/test-vsprintf-posix.c: Likewise.
4384         * tests/test-wcrtomb.c: Likewise.
4385         * tests/test-wcsnrtombs.c: Likewise.
4386         * tests/test-wcsrtombs.c: Likewise.
4387         * tests/test-wctype.c: Likewise.
4388         * tests/test-wcwidth.c: Likewise.
4389         * tests/test-xfprintf-posix.c: Likewise.
4390         * tests/test-xmemdup0.c: Likewise.
4391         * tests/test-xprintf-posix.c: Likewise.
4392         * tests/test-xvasprintf.c: Likewise.
4393         * tests/unicase/test-locale-language.c: Likewise.
4394         * tests/unicase/test-mapping-part1.h: Likewise.
4395         * tests/unicase/test-predicate-part1.h: Likewise.
4396         * tests/unicase/test-u8-casecmp.c: Likewise.
4397         * tests/unicase/test-u8-casecoll.c: Likewise.
4398         * tests/unicase/test-u8-casefold.c: Likewise.
4399         * tests/unicase/test-u8-is-cased.c: Likewise.
4400         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4401         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4402         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4403         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4404         * tests/unicase/test-u8-tolower.c: Likewise.
4405         * tests/unicase/test-u8-totitle.c: Likewise.
4406         * tests/unicase/test-u8-toupper.c: Likewise.
4407         * tests/unicase/test-u16-casecmp.c: Likewise.
4408         * tests/unicase/test-u16-casecoll.c: Likewise.
4409         * tests/unicase/test-u16-casefold.c: Likewise.
4410         * tests/unicase/test-u16-is-cased.c: Likewise.
4411         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4412         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4413         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4414         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4415         * tests/unicase/test-u16-tolower.c: Likewise.
4416         * tests/unicase/test-u16-totitle.c: Likewise.
4417         * tests/unicase/test-u16-toupper.c: Likewise.
4418         * tests/unicase/test-u32-casecmp.c: Likewise.
4419         * tests/unicase/test-u32-casecoll.c: Likewise.
4420         * tests/unicase/test-u32-casefold.c: Likewise.
4421         * tests/unicase/test-u32-is-cased.c: Likewise.
4422         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4423         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4424         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4425         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4426         * tests/unicase/test-u32-tolower.c: Likewise.
4427         * tests/unicase/test-u32-totitle.c: Likewise.
4428         * tests/unicase/test-u32-toupper.c: Likewise.
4429         * tests/unicase/test-ulc-casecmp.c: Likewise.
4430         * tests/unicase/test-ulc-casecoll.c: Likewise.
4431         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4432         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4433         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4434         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4435         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4436         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4437         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4438         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4439         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4440         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4441         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4442         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4443         * tests/unictype/test-bidi_byname.c: Likewise.
4444         * tests/unictype/test-bidi_name.c: Likewise.
4445         * tests/unictype/test-bidi_of.c: Likewise.
4446         * tests/unictype/test-bidi_test.c: Likewise.
4447         * tests/unictype/test-block_list.c: Likewise.
4448         * tests/unictype/test-block_of.c: Likewise.
4449         * tests/unictype/test-block_test.c: Likewise.
4450         * tests/unictype/test-categ_and.c: Likewise.
4451         * tests/unictype/test-categ_and_not.c: Likewise.
4452         * tests/unictype/test-categ_byname.c: Likewise.
4453         * tests/unictype/test-categ_name.c: Likewise.
4454         * tests/unictype/test-categ_none.c: Likewise.
4455         * tests/unictype/test-categ_of.c: Likewise.
4456         * tests/unictype/test-categ_or.c: Likewise.
4457         * tests/unictype/test-categ_test_withtable.c: Likewise.
4458         * tests/unictype/test-combining.c: Likewise.
4459         * tests/unictype/test-decdigit.c: Likewise.
4460         * tests/unictype/test-digit.c: Likewise.
4461         * tests/unictype/test-mirror.c: Likewise.
4462         * tests/unictype/test-numeric.c: Likewise.
4463         * tests/unictype/test-pr_byname.c: Likewise.
4464         * tests/unictype/test-pr_test.c: Likewise.
4465         * tests/unictype/test-predicate-part1.h: Likewise.
4466         * tests/unictype/test-scripts.c: Likewise.
4467         * tests/unictype/test-sy_c_ident.c: Likewise.
4468         * tests/unictype/test-sy_java_ident.c: Likewise.
4469         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4470         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4471         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4472         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4473         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4474         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4475         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4476         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4477         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4478         * tests/uninorm/test-compat-decomposition.c: Likewise.
4479         * tests/uninorm/test-composition.c: Likewise.
4480         * tests/uninorm/test-decomposing-form.c: Likewise.
4481         * tests/uninorm/test-decomposition.c: Likewise.
4482         * tests/uninorm/test-u8-nfc.c: Likewise.
4483         * tests/uninorm/test-u8-nfd.c: Likewise.
4484         * tests/uninorm/test-u8-nfkc.c: Likewise.
4485         * tests/uninorm/test-u8-nfkd.c: Likewise.
4486         * tests/uninorm/test-u8-normcmp.c: Likewise.
4487         * tests/uninorm/test-u8-normcoll.c: Likewise.
4488         * tests/uninorm/test-u16-nfc.c: Likewise.
4489         * tests/uninorm/test-u16-nfd.c: Likewise.
4490         * tests/uninorm/test-u16-nfkc.c: Likewise.
4491         * tests/uninorm/test-u16-nfkd.c: Likewise.
4492         * tests/uninorm/test-u16-normcmp.c: Likewise.
4493         * tests/uninorm/test-u16-normcoll.c: Likewise.
4494         * tests/uninorm/test-u32-nfc.c: Likewise.
4495         * tests/uninorm/test-u32-nfd.c: Likewise.
4496         * tests/uninorm/test-u32-nfkc.c: Likewise.
4497         * tests/uninorm/test-u32-nfkd.c: Likewise.
4498         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4499         * tests/uninorm/test-u32-normcmp.c: Likewise.
4500         * tests/uninorm/test-u32-normcoll.c: Likewise.
4501         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4502         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4503         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4504         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4505         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4506         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4507         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4508         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4509         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4510         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4511         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4512         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4513         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4514         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4515         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4516         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4517         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4518         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4519         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4520         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4521         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4522         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4523         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4524         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4525         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4526         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4527         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4528         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4529         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4530         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4531         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4532         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4533         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4534         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4535         * tests/uniwidth/test-u8-width.c: Likewise.
4536         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4537         * tests/uniwidth/test-u16-width.c: Likewise.
4538         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4539         * tests/uniwidth/test-u32-width.c: Likewise.
4540         * tests/uniwidth/test-uc_width.c: Likewise.
4541         * tests/uniwidth/test-uc_width2.c: Likewise.
4542         * modules/acl-tests (Files): Add tests/macros.h.
4543         * modules/areadlink-tests (Files): Likewise.
4544         * modules/areadlink-with-size-tests (Files): Likewise.
4545         * modules/areadlinkat-tests (Files): Likewise.
4546         * modules/areadlinkat-with-size-tests (Files): Likewise.
4547         * modules/argmatch-tests (Files): Likewise.
4548         * modules/argv-iter-tests (Files): Likewise.
4549         * modules/array-list-tests (Files): Likewise.
4550         * modules/array-mergesort-tests (Files): Likewise.
4551         * modules/array-oset-tests (Files): Likewise.
4552         * modules/avltree-list-tests (Files): Likewise.
4553         * modules/avltree-oset-tests (Files): Likewise.
4554         * modules/avltreehash-list-tests (Files): Likewise.
4555         * modules/base64-tests (Files): Likewise.
4556         * modules/binary-io-tests (Files): Likewise.
4557         * modules/bitrotate-tests (Files): Likewise.
4558         * modules/btowc-tests (Files): Likewise.
4559         * modules/byteswap-tests (Files): Likewise.
4560         * modules/c-ctype-tests (Files): Likewise.
4561         * modules/c-stack-tests (Files): Likewise.
4562         * modules/c-strcase-tests (Files): Likewise.
4563         * modules/c-strcasestr-tests (Files): Likewise.
4564         * modules/c-strstr-tests (Files): Likewise.
4565         * modules/canonicalize-lgpl-tests (Files): Likewise.
4566         * modules/canonicalize-tests (Files): Likewise.
4567         * modules/carray-list-tests (Files): Likewise.
4568         * modules/ceilf-tests (Files): Likewise.
4569         * modules/ceill-tests (Files): Likewise.
4570         * modules/chown-tests (Files): Likewise.
4571         * modules/cloexec-tests (Files): Likewise.
4572         * modules/copy-file-tests (Files): Likewise.
4573         * modules/count-one-bits-tests (Files): Likewise.
4574         * modules/dprintf-posix-tests (Files): Likewise.
4575         * modules/dup2-tests (Files): Likewise.
4576         * modules/dup3-tests (Files): Likewise.
4577         * modules/duplocale-tests (Files): Likewise.
4578         * modules/fbufmode-tests (Files): Likewise.
4579         * modules/fchdir-tests (Files): Likewise.
4580         * modules/fcntl-safer-tests (Files): Likewise.
4581         * modules/fcntl-tests (Files): Likewise.
4582         * modules/fdopendir-tests (Files): Likewise.
4583         * modules/fdutimensat-tests (Files): Likewise.
4584         * modules/fflush-tests (Files): Likewise.
4585         * modules/filevercmp-tests (Files): Likewise.
4586         * modules/flock-tests (Files): Likewise.
4587         * modules/floorf-tests (Files): Likewise.
4588         * modules/floorl-tests (Files): Likewise.
4589         * modules/fnmatch-tests (Files): Likewise.
4590         * modules/fopen-safer-tests (Files): Likewise.
4591         * modules/fopen-tests (Files): Likewise.
4592         * modules/fpending-tests (Files): Likewise.
4593         * modules/fprintf-posix-tests (Files): Likewise.
4594         * modules/fpurge-tests (Files): Likewise.
4595         * modules/freadable-tests (Files): Likewise.
4596         * modules/freadahead-tests (Files): Likewise.
4597         * modules/freading-tests (Files): Likewise.
4598         * modules/freadptr-tests (Files): Likewise.
4599         * modules/freadseek-tests (Files): Likewise.
4600         * modules/freopen-tests (Files): Likewise.
4601         * modules/frexp-nolibm-tests (Files): Likewise.
4602         * modules/frexp-tests (Files): Likewise.
4603         * modules/frexpl-nolibm-tests (Files): Likewise.
4604         * modules/frexpl-tests (Files): Likewise.
4605         * modules/fseek-tests (Files): Likewise.
4606         * modules/fseeko-tests (Files): Likewise.
4607         * modules/fstrcmp-tests (Files): Likewise.
4608         * modules/fsync-tests (Files): Likewise.
4609         * modules/ftell-tests (Files): Likewise.
4610         * modules/ftello-tests (Files): Likewise.
4611         * modules/func-tests (Files): Likewise.
4612         * modules/futimens-tests (Files): Likewise.
4613         * modules/fwritable-tests (Files): Likewise.
4614         * modules/fwriting-tests (Files): Likewise.
4615         * modules/getcwd-tests (Files): Likewise.
4616         * modules/getdate-tests (Files): Likewise.
4617         * modules/getdelim-tests (Files): Likewise.
4618         * modules/getdtablesize-tests (Files): Likewise.
4619         * modules/getgroups-tests (Files): Likewise.
4620         * modules/getline-tests (Files): Likewise.
4621         * modules/getndelim2-tests (Files): Likewise.
4622         * modules/glob-tests (Files): Likewise.
4623         * modules/hash-tests (Files): Likewise.
4624         * modules/i-ring-tests (Files): Likewise.
4625         * modules/iconv-tests (Files): Likewise.
4626         * modules/iconv_open-utf-tests (Files): Likewise.
4627         * modules/idpriv-drop-tests (Files): Likewise.
4628         * modules/idpriv-droptemp-tests (Files): Likewise.
4629         * modules/inet_ntop-tests (Files): Likewise.
4630         * modules/inet_pton-tests (Files): Likewise.
4631         * modules/isblank-tests (Files): Likewise.
4632         * modules/isfinite-tests (Files): Likewise.
4633         * modules/isinf-tests (Files): Likewise.
4634         * modules/isnan-tests (Files): Likewise.
4635         * modules/isnand-nolibm-tests (Files): Likewise.
4636         * modules/isnand-tests (Files): Likewise.
4637         * modules/isnanf-nolibm-tests (Files): Likewise.
4638         * modules/isnanf-tests (Files): Likewise.
4639         * modules/isnanl-nolibm-tests (Files): Likewise.
4640         * modules/isnanl-tests (Files): Likewise.
4641         * modules/lchown-tests (Files): Likewise.
4642         * modules/ldexpl-tests (Files): Likewise.
4643         * modules/link-tests (Files): Likewise.
4644         * modules/linkat-tests (Files): Likewise.
4645         * modules/linked-list-tests (Files): Likewise.
4646         * modules/linkedhash-list-tests (Files): Likewise.
4647         * modules/localename-tests (Files): Likewise.
4648         * modules/lseek-tests (Files): Likewise.
4649         * modules/lstat-tests (Files): Likewise.
4650         * modules/mbmemcasecmp-tests (Files): Likewise.
4651         * modules/mbmemcasecoll-tests (Files): Likewise.
4652         * modules/mbrtowc-tests (Files): Likewise.
4653         * modules/mbscasecmp-tests (Files): Likewise.
4654         * modules/mbscasestr-tests (Files): Likewise.
4655         * modules/mbschr-tests (Files): Likewise.
4656         * modules/mbscspn-tests (Files): Likewise.
4657         * modules/mbsinit-tests (Files): Likewise.
4658         * modules/mbsncasecmp-tests (Files): Likewise.
4659         * modules/mbsnrtowcs-tests (Files): Likewise.
4660         * modules/mbspbrk-tests (Files): Likewise.
4661         * modules/mbspcasecmp-tests (Files): Likewise.
4662         * modules/mbsrchr-tests (Files): Likewise.
4663         * modules/mbsrtowcs-tests (Files): Likewise.
4664         * modules/mbsspn-tests (Files): Likewise.
4665         * modules/mbsstr-tests (Files): Likewise.
4666         * modules/memchr-tests (Files): Likewise.
4667         * modules/memchr2-tests (Files): Likewise.
4668         * modules/memcmp-tests (Files): Likewise.
4669         * modules/memmem-tests (Files): Likewise.
4670         * modules/memrchr-tests (Files): Likewise.
4671         * modules/mkdir-tests (Files): Likewise.
4672         * modules/mkfifo-tests (Files): Likewise.
4673         * modules/mkfifoat-tests (Files): Likewise.
4674         * modules/mknod-tests (Files): Likewise.
4675         * modules/nanosleep-tests (Files): Likewise.
4676         * modules/nl_langinfo-tests (Files): Likewise.
4677         * modules/obstack-printf-tests (Files): Likewise.
4678         * modules/open-tests (Files): Likewise.
4679         * modules/openat-tests (Files): Likewise.
4680         * modules/pipe-filter-gi-tests (Files): Likewise.
4681         * modules/pipe-filter-ii-tests (Files): Likewise.
4682         * modules/pipe2-tests (Files): Likewise.
4683         * modules/popen-safer-tests (Files): Likewise.
4684         * modules/popen-tests (Files): Likewise.
4685         * modules/posixtm-tests (Files): Likewise.
4686         * modules/pread-tests (Files): Likewise.
4687         * modules/printf-frexp-tests (Files): Likewise.
4688         * modules/printf-frexpl-tests (Files): Likewise.
4689         * modules/printf-posix-tests (Files): Likewise.
4690         * modules/priv-set-tests (Files): Likewise.
4691         * modules/quotearg-tests (Files): Likewise.
4692         * modules/random_r-tests (Files): Likewise.
4693         * modules/rawmemchr-tests (Files): Likewise.
4694         * modules/rbtree-list-tests (Files): Likewise.
4695         * modules/rbtree-oset-tests (Files): Likewise.
4696         * modules/rbtreehash-list-tests (Files): Likewise.
4697         * modules/readlink-tests (Files): Likewise.
4698         * modules/remove-tests (Files): Likewise.
4699         * modules/rename-tests (Files): Likewise.
4700         * modules/renameat-tests (Files): Likewise.
4701         * modules/rmdir-tests (Files): Likewise.
4702         * modules/round-tests (Files): Likewise.
4703         * modules/roundf-tests (Files): Likewise.
4704         * modules/roundl-tests (Files): Likewise.
4705         * modules/safe-alloc-tests (Files): Likewise.
4706         * modules/setenv-tests (Files): Likewise.
4707         * modules/sigaction-tests (Files): Likewise.
4708         * modules/signbit-tests (Files): Likewise.
4709         * modules/sleep-tests (Files): Likewise.
4710         * modules/snprintf-posix-tests (Files): Likewise.
4711         * modules/snprintf-tests (Files): Likewise.
4712         * modules/sprintf-posix-tests (Files): Likewise.
4713         * modules/stat-tests (Files): Likewise.
4714         * modules/stat-time-tests (Files): Likewise.
4715         * modules/strcasestr-tests (Files): Likewise.
4716         * modules/strchrnul-tests (Files): Likewise.
4717         * modules/strerror-tests (Files): Likewise.
4718         * modules/striconv-tests (Files): Likewise.
4719         * modules/striconveh-tests (Files): Likewise.
4720         * modules/striconveha-tests (Files): Likewise.
4721         * modules/strsignal-tests (Files): Likewise.
4722         * modules/strstr-tests (Files): Likewise.
4723         * modules/strtod-tests (Files): Likewise.
4724         * modules/strverscmp-tests (Files): Likewise.
4725         * modules/symlink-tests (Files): Likewise.
4726         * modules/symlinkat-tests (Files): Likewise.
4727         * modules/trunc-tests (Files): Likewise.
4728         * modules/truncf-tests (Files): Likewise.
4729         * modules/truncl-tests (Files): Likewise.
4730         * modules/uname-tests (Files): Likewise.
4731         * modules/unicase/cased-tests (Files): Likewise.
4732         * modules/unicase/ignorable-tests (Files): Likewise.
4733         * modules/unicase/locale-language-tests (Files): Likewise.
4734         * modules/unicase/tolower-tests (Files): Likewise.
4735         * modules/unicase/totitle-tests (Files): Likewise.
4736         * modules/unicase/toupper-tests (Files): Likewise.
4737         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4738         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4739         * modules/unicase/u8-casefold-tests (Files): Likewise.
4740         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4741         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4742         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4743         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4744         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4745         * modules/unicase/u8-tolower-tests (Files): Likewise.
4746         * modules/unicase/u8-totitle-tests (Files): Likewise.
4747         * modules/unicase/u8-toupper-tests (Files): Likewise.
4748         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4749         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4750         * modules/unicase/u16-casefold-tests (Files): Likewise.
4751         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4752         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4753         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4754         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4755         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4756         * modules/unicase/u16-tolower-tests (Files): Likewise.
4757         * modules/unicase/u16-totitle-tests (Files): Likewise.
4758         * modules/unicase/u16-toupper-tests (Files): Likewise.
4759         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4760         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4761         * modules/unicase/u32-casefold-tests (Files): Likewise.
4762         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4763         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4764         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4765         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4766         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4767         * modules/unicase/u32-tolower-tests (Files): Likewise.
4768         * modules/unicase/u32-totitle-tests (Files): Likewise.
4769         * modules/unicase/u32-toupper-tests (Files): Likewise.
4770         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4771         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4772         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4773         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4774         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4775         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4776         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4777         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4778         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4779         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4780         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4781         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4782         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4783         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4784         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4785         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4786         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4787         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4788         * modules/unictype/block-list-tests (Files): Likewise.
4789         * modules/unictype/block-of-tests (Files): Likewise.
4790         * modules/unictype/block-test-tests (Files): Likewise.
4791         * modules/unictype/category-C-tests (Files): Likewise.
4792         * modules/unictype/category-Cc-tests (Files): Likewise.
4793         * modules/unictype/category-Cf-tests (Files): Likewise.
4794         * modules/unictype/category-Cn-tests (Files): Likewise.
4795         * modules/unictype/category-Co-tests (Files): Likewise.
4796         * modules/unictype/category-Cs-tests (Files): Likewise.
4797         * modules/unictype/category-L-tests (Files): Likewise.
4798         * modules/unictype/category-Ll-tests (Files): Likewise.
4799         * modules/unictype/category-Lm-tests (Files): Likewise.
4800         * modules/unictype/category-Lo-tests (Files): Likewise.
4801         * modules/unictype/category-Lt-tests (Files): Likewise.
4802         * modules/unictype/category-Lu-tests (Files): Likewise.
4803         * modules/unictype/category-M-tests (Files): Likewise.
4804         * modules/unictype/category-Mc-tests (Files): Likewise.
4805         * modules/unictype/category-Me-tests (Files): Likewise.
4806         * modules/unictype/category-Mn-tests (Files): Likewise.
4807         * modules/unictype/category-N-tests (Files): Likewise.
4808         * modules/unictype/category-Nd-tests (Files): Likewise.
4809         * modules/unictype/category-Nl-tests (Files): Likewise.
4810         * modules/unictype/category-No-tests (Files): Likewise.
4811         * modules/unictype/category-P-tests (Files): Likewise.
4812         * modules/unictype/category-Pc-tests (Files): Likewise.
4813         * modules/unictype/category-Pd-tests (Files): Likewise.
4814         * modules/unictype/category-Pe-tests (Files): Likewise.
4815         * modules/unictype/category-Pf-tests (Files): Likewise.
4816         * modules/unictype/category-Pi-tests (Files): Likewise.
4817         * modules/unictype/category-Po-tests (Files): Likewise.
4818         * modules/unictype/category-Ps-tests (Files): Likewise.
4819         * modules/unictype/category-S-tests (Files): Likewise.
4820         * modules/unictype/category-Sc-tests (Files): Likewise.
4821         * modules/unictype/category-Sk-tests (Files): Likewise.
4822         * modules/unictype/category-Sm-tests (Files): Likewise.
4823         * modules/unictype/category-So-tests (Files): Likewise.
4824         * modules/unictype/category-Z-tests (Files): Likewise.
4825         * modules/unictype/category-Zl-tests (Files): Likewise.
4826         * modules/unictype/category-Zp-tests (Files): Likewise.
4827         * modules/unictype/category-Zs-tests (Files): Likewise.
4828         * modules/unictype/category-and-not-tests (Files): Likewise.
4829         * modules/unictype/category-and-tests (Files): Likewise.
4830         * modules/unictype/category-byname-tests (Files): Likewise.
4831         * modules/unictype/category-name-tests (Files): Likewise.
4832         * modules/unictype/category-none-tests (Files): Likewise.
4833         * modules/unictype/category-of-tests (Files): Likewise.
4834         * modules/unictype/category-or-tests (Files): Likewise.
4835         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4836         * modules/unictype/combining-class-tests (Files): Likewise.
4837         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4838         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4839         * modules/unictype/ctype-blank-tests (Files): Likewise.
4840         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4841         * modules/unictype/ctype-digit-tests (Files): Likewise.
4842         * modules/unictype/ctype-graph-tests (Files): Likewise.
4843         * modules/unictype/ctype-lower-tests (Files): Likewise.
4844         * modules/unictype/ctype-print-tests (Files): Likewise.
4845         * modules/unictype/ctype-punct-tests (Files): Likewise.
4846         * modules/unictype/ctype-space-tests (Files): Likewise.
4847         * modules/unictype/ctype-upper-tests (Files): Likewise.
4848         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4849         * modules/unictype/decimal-digit-tests (Files): Likewise.
4850         * modules/unictype/digit-tests (Files): Likewise.
4851         * modules/unictype/mirror-tests (Files): Likewise.
4852         * modules/unictype/numeric-tests (Files): Likewise.
4853         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4854         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4855         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4856         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4857         Likewise.
4858         * modules/unictype/property-bidi-block-separator-tests (Files):
4859         Likewise.
4860         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4861         Likewise.
4862         * modules/unictype/property-bidi-common-separator-tests (Files):
4863         Likewise.
4864         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4865         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4866         Likewise.
4867         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4868         Likewise.
4869         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4870         Likewise.
4871         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4872         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4873         Likewise.
4874         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4875         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4876         Likewise.
4877         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4878         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4879         * modules/unictype/property-bidi-segment-separator-tests (Files):
4880         Likewise.
4881         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4882         * modules/unictype/property-byname-tests (Files): Likewise.
4883         * modules/unictype/property-combining-tests (Files): Likewise.
4884         * modules/unictype/property-composite-tests (Files): Likewise.
4885         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4886         * modules/unictype/property-dash-tests (Files): Likewise.
4887         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4888         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4889         Likewise.
4890         * modules/unictype/property-deprecated-tests (Files): Likewise.
4891         * modules/unictype/property-diacritic-tests (Files): Likewise.
4892         * modules/unictype/property-extender-tests (Files): Likewise.
4893         * modules/unictype/property-format-control-tests (Files): Likewise.
4894         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4895         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4896         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4897         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4898         * modules/unictype/property-hyphen-tests (Files): Likewise.
4899         * modules/unictype/property-id-continue-tests (Files): Likewise.
4900         * modules/unictype/property-id-start-tests (Files): Likewise.
4901         * modules/unictype/property-ideographic-tests (Files): Likewise.
4902         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4903         * modules/unictype/property-ids-trinary-operator-tests (Files):
4904         Likewise.
4905         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4906         * modules/unictype/property-iso-control-tests (Files): Likewise.
4907         * modules/unictype/property-join-control-tests (Files): Likewise.
4908         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4909         * modules/unictype/property-line-separator-tests (Files): Likewise.
4910         * modules/unictype/property-logical-order-exception-tests (Files):
4911         Likewise.
4912         * modules/unictype/property-lowercase-tests (Files): Likewise.
4913         * modules/unictype/property-math-tests (Files): Likewise.
4914         * modules/unictype/property-non-break-tests (Files): Likewise.
4915         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4916         * modules/unictype/property-numeric-tests (Files): Likewise.
4917         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4918         * modules/unictype/property-other-default-ignorable-code-point-tests
4919         (Files): Likewise.
4920         * modules/unictype/property-other-grapheme-extend-tests (Files):
4921         Likewise.
4922         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4923         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4924         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4925         * modules/unictype/property-other-math-tests (Files): Likewise.
4926         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4927         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4928         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4929         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4930         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4931         * modules/unictype/property-private-use-tests (Files): Likewise.
4932         * modules/unictype/property-punctuation-tests (Files): Likewise.
4933         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4934         * modules/unictype/property-radical-tests (Files): Likewise.
4935         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4936         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4937         * modules/unictype/property-space-tests (Files): Likewise.
4938         * modules/unictype/property-terminal-punctuation-tests (Files):
4939         Likewise.
4940         * modules/unictype/property-test-tests (Files): Likewise.
4941         * modules/unictype/property-titlecase-tests (Files): Likewise.
4942         * modules/unictype/property-unassigned-code-value-tests (Files):
4943         Likewise.
4944         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4945         * modules/unictype/property-uppercase-tests (Files): Likewise.
4946         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4947         * modules/unictype/property-white-space-tests (Files): Likewise.
4948         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4949         * modules/unictype/property-xid-start-tests (Files): Likewise.
4950         * modules/unictype/property-zero-width-tests (Files): Likewise.
4951         * modules/unictype/scripts-tests (Files): Likewise.
4952         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4953         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4954         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4955         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4956         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4957         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4958         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4959         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4960         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4961         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4962         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4963         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4964         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4965         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4966         * modules/uninorm/composition-tests (Files): Likewise.
4967         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4968         * modules/uninorm/decomposition-tests (Files): Likewise.
4969         * modules/uninorm/filter-tests (Files): Likewise.
4970         * modules/uninorm/nfc-tests (Files): Likewise.
4971         * modules/uninorm/nfd-tests (Files): Likewise.
4972         * modules/uninorm/nfkc-tests (Files): Likewise.
4973         * modules/uninorm/nfkd-tests (Files): Likewise.
4974         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4975         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4976         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4977         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4978         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4979         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4980         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4981         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4982         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4983         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4984         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4985         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4986         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4987         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4988         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4989         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4990         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4991         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4992         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4993         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4994         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4995         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4996         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4997         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4998         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4999         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5000         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5001         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5002         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5003         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5004         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5005         * modules/uniwidth/u8-width-tests (Files): Likewise.
5006         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5007         * modules/uniwidth/u16-width-tests (Files): Likewise.
5008         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5009         * modules/uniwidth/u32-width-tests (Files): Likewise.
5010         * modules/uniwidth/width-tests (Files): Likewise.
5011         * modules/unlink-tests (Files): Likewise.
5012         * modules/unsetenv-tests (Files): Likewise.
5013         * modules/usleep-tests (Files): Likewise.
5014         * modules/utimens-tests (Files): Likewise.
5015         * modules/utimensat-tests (Files): Likewise.
5016         * modules/vasnprintf-posix-tests (Files): Likewise.
5017         * modules/vasnprintf-tests (Files): Likewise.
5018         * modules/vasprintf-posix-tests (Files): Likewise.
5019         * modules/vasprintf-tests (Files): Likewise.
5020         * modules/vdprintf-posix-tests (Files): Likewise.
5021         * modules/vfprintf-posix-tests (Files): Likewise.
5022         * modules/vprintf-posix-tests (Files): Likewise.
5023         * modules/vsnprintf-posix-tests (Files): Likewise.
5024         * modules/vsnprintf-tests (Files): Likewise.
5025         * modules/vsprintf-posix-tests (Files): Likewise.
5026         * modules/wcrtomb-tests (Files): Likewise.
5027         * modules/wcsnrtombs-tests (Files): Likewise.
5028         * modules/wcsrtombs-tests (Files): Likewise.
5029         * modules/wctype-tests (Files): Likewise.
5030         * modules/wcwidth-tests (Files): Likewise.
5031         * modules/xmemdup0-tests (Files): Likewise.
5032         * modules/xprintf-posix-tests (Files): Likewise.
5033         * modules/xvasprintf-tests (Files): Likewise.
5034
5035 2009-12-24  Eric Blake  <ebb9@byu.net>
5036
5037         test-nanosleep: fix typo
5038         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5039         patch.
5040         Reported by Bruno Haible.
5041
5042 2009-12-24  Bruno Haible  <bruno@clisp.org>
5043
5044         Reduce namespace pollution on glibc systems.
5045         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5046         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5047         systems.
5048         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5049         <getopt.h> on glibc systems.
5050         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5051         systems.
5052         * lib/fcntl.c: Include <unistd.h> here instead.
5053
5054 2009-12-24  Bruno Haible  <bruno@clisp.org>
5055
5056         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5057
5058 2009-12-24  Eric Blake  <ebb9@byu.net>
5059
5060         tests: add signature checks
5061         * tests/signature.h (SIGNATURE_CHECK): New file.
5062         * modules/atexit-tests (Files): Use it.
5063         * modules/btowc-tests (Files): Likewise.
5064         * modules/canonicalize-lgpl-tests (Files): Likewise.
5065         * modules/ceilf-tests (Files): Likewise.
5066         * modules/ceill-tests (Files): Likewise.
5067         * modules/chown-tests (Files): Likewise.
5068         * modules/dprintf-posix-tests (Files): Likewise.
5069         * modules/dup2-tests (Files): Likewise.
5070         * modules/dup3-tests (Files): Likewise.
5071         * modules/duplocale-tests (Files): Likewise.
5072         * modules/fchdir-tests (Files): Likewise.
5073         * modules/fcntl-tests (Files): Likewise.
5074         * modules/fdopendir-tests (Files): Likewise.
5075         * modules/fflush-tests (Files): Likewise.
5076         * modules/flock-tests (Files): Likewise.
5077         * modules/floorf-tests (Files): Likewise.
5078         * modules/floorl-tests (Files): Likewise.
5079         * modules/fnmatch-tests (Files): Likewise.
5080         * modules/fopen-tests (Files): Likewise.
5081         * modules/fprintf-posix-tests (Files): Likewise.
5082         * modules/freopen-tests (Files): Likewise.
5083         * modules/frexp-nolibm-tests (Files): Likewise.
5084         * modules/frexp-tests (Files): Likewise.
5085         * modules/frexpl-nolibm-tests (Files): Likewise.
5086         * modules/frexpl-tests (Files): Likewise.
5087         * modules/fseek-tests (Files): Likewise.
5088         * modules/fseeko-tests (Files): Likewise.
5089         * modules/fsync-tests (Files): Likewise.
5090         * modules/ftell-tests (Files): Likewise.
5091         * modules/ftello-tests (Files): Likewise.
5092         * modules/futimens-tests (Files): Likewise.
5093         * modules/getaddrinfo-tests (Files): Likewise.
5094         * modules/getcwd-tests (Files): Likewise.
5095         * modules/getdelim-tests (Files): Likewise.
5096         * modules/getdtablesize-tests (Files): Likewise.
5097         * modules/getgroups-tests (Files): Likewise.
5098         * modules/gethostname-tests (Files): Likewise.
5099         * modules/getline-tests (Files): Likewise.
5100         * modules/getopt-posix-tests (Files): Likewise.
5101         * modules/gettimeofday-tests (Files): Likewise.
5102         * modules/glob-tests (Files): Likewise.
5103         * modules/iconv-tests (Files): Likewise.
5104         * modules/inet_ntop-tests (Files): Likewise.
5105         * modules/inet_pton-tests (Files): Likewise.
5106         * modules/isblank-tests (Files): Likewise.
5107         * modules/lchown-tests (Files): Likewise.
5108         * modules/ldexpl-tests (Files): Likewise.
5109         * modules/link-tests (Files): Likewise.
5110         * modules/linkat-tests (Files): Likewise.
5111         * modules/lseek-tests (Files): Likewise.
5112         * modules/lstat-tests (Files): Likewise.
5113         * modules/mbrtowc-tests (Files): Likewise.
5114         * modules/mbsinit-tests (Files): Likewise.
5115         * modules/mbsnrtowcs-tests (Files): Likewise.
5116         * modules/mbsrtowcs-tests (Files): Likewise.
5117         * modules/memchr-tests (Files): Likewise.
5118         * modules/memcmp-tests (Files): Likewise.
5119         * modules/memmem-tests (Files): Likewise.
5120         * modules/memrchr-tests (Files): Likewise.
5121         * modules/mkdir-tests (Files): Likewise.
5122         * modules/mkfifo-tests (Files): Likewise.
5123         * modules/mkfifoat-tests (Files): Likewise.
5124         * modules/mknod-tests (Files): Likewise.
5125         * modules/nanosleep-tests (Files): Likewise.
5126         * modules/nl_langinfo-tests (Files): Likewise.
5127         * modules/obstack-printf-tests (Files): Likewise.
5128         * modules/open-tests (Files): Likewise.
5129         * modules/openat-tests (Files): Likewise.
5130         * modules/perror-tests (Files): Likewise.
5131         * modules/pipe2-tests (Files): Likewise.
5132         * modules/poll-tests (Files): Likewise.
5133         * modules/popen-tests (Files): Likewise.
5134         * modules/posix_spawn-tests (Files): Likewise.
5135         * modules/posix_spawnp-tests (Files): Likewise.
5136         * modules/pread-tests (Files): Likewise.
5137         * modules/printf-posix-tests (Files): Likewise.
5138         * modules/pty-tests (Files): Likewise.
5139         * modules/random_r-tests (Files): Likewise.
5140         * modules/rawmemchr-tests (Files): Likewise.
5141         * modules/readlink-tests (Files): Likewise.
5142         * modules/remove-tests (Files): Likewise.
5143         * modules/rename-tests (Files): Likewise.
5144         * modules/renameat-tests (Files): Likewise.
5145         * modules/rmdir-tests (Files): Likewise.
5146         * modules/round-tests (Files): Likewise.
5147         * modules/roundf-tests (Files): Likewise.
5148         * modules/roundl-tests (Files): Likewise.
5149         * modules/select-tests (Files): Likewise.
5150         * modules/setenv-tests (Files): Likewise.
5151         * modules/sigaction-tests (Files): Likewise.
5152         * modules/sleep-tests (Files): Likewise.
5153         * modules/snprintf-posix-tests (Files): Likewise.
5154         * modules/snprintf-tests (Files): Likewise.
5155         * modules/sprintf-posix-tests (Files): Likewise.
5156         * modules/stat-tests (Files): Likewise.
5157         * modules/strcasestr-tests (Files): Likewise.
5158         * modules/strchrnul-tests (Files): Likewise.
5159         * modules/strerror-tests (Files): Likewise.
5160         * modules/strsignal-tests (Files): Likewise.
5161         * modules/strstr-tests (Files): Likewise.
5162         * modules/strtod-tests (Files): Likewise.
5163         * modules/strverscmp-tests (Files): Likewise.
5164         * modules/symlink-tests (Files): Likewise.
5165         * modules/symlinkat-tests (Files): Likewise.
5166         * modules/times-tests (Files): Likewise.
5167         * modules/trunc-tests (Files): Likewise.
5168         * modules/truncf-tests (Files): Likewise.
5169         * modules/truncl-tests (Files): Likewise.
5170         * modules/tsearch-tests (Files): Likewise.
5171         * modules/uname-tests (Files): Likewise.
5172         * modules/unlink-tests (Files): Likewise.
5173         * modules/unsetenv-tests (Files): Likewise.
5174         * modules/usleep-tests (Files): Likewise.
5175         * modules/utimensat-tests (Files): Likewise.
5176         * modules/vasprintf-tests (Files): Likewise.
5177         * modules/vdprintf-posix-tests (Files): Likewise.
5178         * modules/vfprintf-posix-tests (Files): Likewise.
5179         * modules/vprintf-posix-tests (Files): Likewise.
5180         * modules/vsnprintf-posix-tests (Files): Likewise.
5181         * modules/vsnprintf-tests (Files): Likewise.
5182         * modules/vsprintf-posix-tests (Files): Likewise.
5183         * modules/wcrtomb-tests (Files): Likewise.
5184         * modules/wcsnrtombs-tests (Files): Likewise.
5185         * modules/wcsrtombs-tests (Files): Likewise.
5186         * modules/wcwidth-tests (Files): Likewise.
5187         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5188         * tests/test-isinf.c (isinf): Likewise.
5189         * tests/test-isnan.c (isnan): Likewise.
5190         * tests/test-signbit.c (signbit): Likewise.
5191         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5192         declaration, either as macro or with correct signature.
5193         (select): Ensure function under test is declared with correct
5194         signature in correct header.
5195         * tests/test-atexit.c (atexit): Likewise.
5196         * tests/test-btowc.c (btowc): Likewise.
5197         * tests/test-canonicalize-lgpl.c (realpath)
5198         (canonicalize_file_name): Likewise.
5199         * tests/test-ceilf1.c (ceilf): Likewise.
5200         * tests/test-ceill.c (ceill): Likewise.
5201         * tests/test-chown.c (chown): Likewise.
5202         * tests/test-dprintf-posix.c (dprintf): Likewise.
5203         * tests/test-dup2.c (dup2): Likewise.
5204         * tests/test-dup3.c (dup3): Likewise.
5205         * tests/test-duplocale.c (duplocale): Likewise.
5206         * tests/test-fchdir.c (fchdir): Likewise.
5207         * tests/test-fchownat.c (fchownat): Likewise.
5208         * tests/test-fcntl.c (fcntl): Likewise.
5209         * tests/test-fdopendir.c (fdopendir): Likewise.
5210         * tests/test-fflush.c (fflush): Likewise.
5211         * tests/test-flock.c (flock): Likewise.
5212         * tests/test-floorf1.c (floorf): Likewise.
5213         * tests/test-floorl.c (floorl): Likewise.
5214         * tests/test-fnmatch.c (fnmatch): Likewise.
5215         * tests/test-fopen.c (fopen): Likewise.
5216         * tests/test-fprintf-posix.c (fprintf): Likewise.
5217         * tests/test-freopen.c (freopen): Likewise.
5218         * tests/test-frexp.c (frexp): Likewise.
5219         * tests/test-frexpl.c (frexpl): Likewise.
5220         * tests/test-fseek.c (fseek): Likewise.
5221         * tests/test-fseeko.c (fseeko): Likewise.
5222         * tests/test-fstatat.c (fstatat): Likewise.
5223         * tests/test-fsync.c (fsync): Likewise.
5224         * tests/test-ftell.c (ftell): Likewise.
5225         * tests/test-ftello.c (ftello): Likewise.
5226         * tests/test-futimens.c (futimens): Likewise.
5227         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5228         (gai_strerror): Likewise.
5229         * tests/test-getcwd.c (getcwd): Likewise.
5230         * tests/test-getdelim.c (getdelim): Likewise.
5231         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5232         * tests/test-getgroups.c (getgroups): Likewise.
5233         * tests/test-gethostname.c (gethostname): Likewise.
5234         * tests/test-getline.c (getline): Likewise.
5235         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5236         Likewise.
5237         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5238         * tests/test-glob.c (glob, globfree): Likewise.
5239         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5240         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5241         * tests/test-inet_pton.c (inet_pton): Likewise.
5242         * tests/test-isblank.c (isblank): Likewise.
5243         * tests/test-lchown.c (lchown): Likewise.
5244         * tests/test-ldexpl.c (ldexpl): Likewise.
5245         * tests/test-link.c (link): Likewise.
5246         * tests/test-linkat.c (linkat): Likewise.
5247         * tests/test-lseek.c (lseek): Likewise.
5248         * tests/test-lstat.c (lstat): Likewise.
5249         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5250         * tests/test-mbsinit.c (mbsinit): Likewise.
5251         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5252         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5253         * tests/test-memchr.c (memchr): Likewise.
5254         * tests/test-memcmp.c (memcmp): Likewise.
5255         * tests/test-memmem.c (memmem): Likewise.
5256         * tests/test-memrchr.c (memrchr): Likewise.
5257         * tests/test-mkdir.c (mkdir): Likewise.
5258         * tests/test-mkdirat.c (mkdirat): Likewise.
5259         * tests/test-mkfifo.c (mkfifo): Likewise.
5260         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5261         * tests/test-mknod.c (mknod): Likewise.
5262         * tests/test-nanosleep.c (nanosleep): Likewise.
5263         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5264         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5265         Likewise.
5266         * tests/test-open.c (open): Likewise.
5267         * tests/test-openat.c (openat): Likewise.
5268         * tests/test-perror.c (perror): Likewise.
5269         * tests/test-pipe2.c (pipe2): Likewise.
5270         * tests/test-poll.c (poll): Likewise.
5271         * tests/test-popen.c (popen, pclose): Likewise.
5272         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5273         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5274         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5275         (posix_spawn_file_actions_destroy)
5276         (posix_spawn_file_actions_addclose)
5277         (posix_spawn_file_actions_addopen)
5278         (posix_spawn_file_actions_adddup2): Likewise.
5279         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5280         * tests/test-pread.c (pread): Likewise.
5281         * tests/test-printf-posix.c (printf): Likewise.
5282         * tests/test-pty.c (openpty, forkpty): Likewise.
5283         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5284         (random_r): Likewise.
5285         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5286         * tests/test-readlink.c (readlink): Likewise.
5287         * tests/test-remove.c (remove): Likewise.
5288         * tests/test-rename.c (rename): Likewise.
5289         * tests/test-renameat.c (renameat): Likewise.
5290         * tests/test-rmdir.c (rmdir): Likewise.
5291         * tests/test-round1.c (round): Likewise.
5292         * tests/test-roundf1.c (roundf): Likewise.
5293         * tests/test-roundl.c (roundl): Likewise.
5294         * tests/test-setenv.c (setenv): Likewise.
5295         * tests/test-sigaction.c (sigaction): Likewise.
5296         * tests/test-sleep.c (sleep): Likewise.
5297         * tests/test-snprintf.c (snprintf): Likewise.
5298         * tests/test-sprintf-posix.c (sprintf): Likewise.
5299         * tests/test-stat.c (stat): Likewise.
5300         * tests/test-stpncpy.c (stpncpy): Likewise.
5301         * tests/test-strcasestr.c (strcasestr): Likewise.
5302         * tests/test-strchrnul.c (strchrnul): Likewise.
5303         * tests/test-strerror.c (strerror): Likewise.
5304         * tests/test-strsignal.c (strsignal): Likewise.
5305         * tests/test-strstr.c (strstr): Likewise.
5306         * tests/test-strtod.c (strtod): Likewise.
5307         * tests/test-strverscmp.c (strverscmp): Likewise.
5308         * tests/test-symlink.c (symlink): Likewise.
5309         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5310         * tests/test-times.c (times): Likewise.
5311         * tests/test-trunc1.c (trunc): Likewise.
5312         * tests/test-truncf1.c (truncf): Likewise.
5313         * tests/test-truncl.c (truncl): Likewise.
5314         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5315         Likewise.
5316         * tests/test-uname.c (uname): Likewise.
5317         * tests/test-unlink.c (unlink): Likewise.
5318         * tests/test-unlinkat.c (unlinkat): Likewise.
5319         * tests/test-unsetenv.c (unsetenv): Likewise.
5320         * tests/test-usleep.c (usleep): Likewise.
5321         * tests/test-utimensat.c (utimensat): Likewise.
5322         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5323         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5324         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5325         * tests/test-vprintf-posix.c (vprintf): Likewise.
5326         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5327         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5328         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5329         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5330         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5331         * tests/test-wcwidth.c (wcwidth): Likewise.
5332
5333         build: pull in conditional headers during GNULIB_POSIXCHECK
5334         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5335         definitions from any conditionally-included headers.
5336         * lib/stdlib.in.h (includes): Likewise.
5337         * lib/unistd.in.h (includes): Likewise.
5338
5339 2009-12-24  Bruno Haible  <bruno@clisp.org>
5340
5341         * tests/test-argv-iter.c: Include header file being tested immediately
5342         after config.h.
5343         * tests/test-base64.c: Likewise.
5344         * tests/test-flock.c: Likewise.
5345         * tests/test-fsync.c: Likewise.
5346         * tests/test-getdate.c: Likewise.
5347         * tests/test-getndelim2.c: Likewise.
5348         * tests/test-isfinite.c: Likewise.
5349         * tests/test-isinf.c: Likewise.
5350         * tests/test-strerror.c: Likewise.
5351         * tests/test-strsignal.c: Likewise.
5352
5353 2009-12-23  Eric Blake  <ebb9@byu.net>
5354
5355         unistd: work around cygwin bug
5356         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5357         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5358         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5359
5360 2009-12-23  Bruno Haible  <bruno@clisp.org>
5361
5362         localename: More tests.
5363         * tests/test-localename.c (SIZEOF): New macro.
5364         (categories): New variable.
5365         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5366         test_locale_name_default): Add test w.r.t. thread locale.
5367         (test_locale_name_thread): New function.
5368         (main): Invoke it.
5369
5370         localename: Make aware of thread locale.
5371         * lib/localename.h (gl_locale_name_thread): New declaration.
5372         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5373         behaviour with respect to thread locale.
5374         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5375         <langinfo.h>, glthread/lock.h.
5376         (SIZE_BITS): New macro.
5377         (string_hash): New function.
5378         (struct hash_node): New type.
5379         (HASH_TABLE_SIZE): New macro.
5380         (struniq_hash_table, struniq_lock): New variables.
5381         (struniq): New function.
5382         (gl_locale_name_thread): New function.
5383         (gl_locale_name): Invoke it.
5384         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5385         * modules/localename (Depends-on): Add lock.
5386         Reported by Mike Gran <spk121@yahoo.com>.
5387
5388 2009-12-23  Eric Blake  <ebb9@byu.net>
5389
5390         va-args: new module
5391         * modules/va-args: New file.
5392         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5393         * MODULES.html.sh (Core language properties): Mention it.
5394
5395         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5396         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5397         named alias for __attribute__((__unused__)).
5398         * lib/chown.c: Update client.
5399         * lib/fchmodat.c: Likewise.
5400         * lib/fts.c: Likewise.
5401         * lib/getdate.y: Likewise.
5402         * lib/getgroups.c: Likewise.
5403         * lib/getopt.c: Likewise.
5404         * lib/getugroups.c: Likewise.
5405         * lib/mkdir.c: Likewise.
5406         * lib/mkfifo.c: Likewise.
5407         * lib/mkfifoat.c: Likewise.
5408         * lib/mknod.c: Likewise.
5409         * lib/mknodat.c: Likewise.
5410         * lib/readlink.c: Likewise.
5411         * lib/se-context.in.h: Likewise.
5412         * lib/se-selinux.in.h: Likewise.
5413         * lib/sockets.c: Likewise.
5414         * lib/symlink.c: Likewise.
5415         * lib/symlinkat.c: Likewise.
5416         * lib/unicodeio.c: Likewise.
5417         * lib/unistr.h: Likewise.
5418         * tests/test-areadlink.c: Likewise.
5419         * tests/test-areadlinkat.c: Likewise.
5420         * tests/test-filenamecat.c: Likewise.
5421         * tests/test-fseeko.c: Likewise.
5422         * tests/test-ftello.c: Likewise.
5423         * tests/test-getdate.c: Likewise.
5424         * tests/test-getgroups.c: Likewise.
5425         * tests/test-gethostname.c: Likewise.
5426         * tests/test-quotearg.c: Likewise.
5427         * tests/test-version-etc.c: Likewise.
5428         * tests/test-xalloc-die.c: Likewise.
5429         * tests/test-xfprintf-posix.c: Likewise.
5430         * tests/test-xprintf-posix.c: Likewise.
5431         * tests/test-xvasprintf.c: Likewise.
5432
5433         tests: avoid compiler warnings
5434         * tests/test-fcntl.c (main): Delete unused parameters.
5435         * tests/test-freopen-safer.c (main): Likewise.
5436         * tests/test-xalloc-die.c (main): Mark unused parameters.
5437         * tests/test-fseeko.c (main): Likewise.
5438         * tests/test-ftello.c (main): Likewise.
5439         * tests/test-nanosleep.c (main): Avoid declaration warning.
5440         * tests/test-sleep.c (main): Likewise.
5441         * tests/test-unsetenv.c (main): Silence warning about string
5442         literal.
5443         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5444
5445 2009-12-23  Bruno Haible  <bruno@clisp.org>
5446
5447         * tests/test-localename.c (test_locale_name): New function, extracted
5448         from main. Also test mixed situations.
5449         (test_locale_name_posix, test_locale_name_environ,
5450         test_locale_name_default): New functions.
5451         (main): Invoke them all.
5452         * modules/localename-tests (configure.ac): Test for newlocale.
5453
5454 2009-12-23  Bruno Haible  <bruno@clisp.org>
5455
5456         unistd: Ensure getcwd gets declared before being overridden.
5457         * lib/unistd.in.h: Conditionally include <io.h>.
5458
5459 2009-12-22  Bruno Haible  <bruno@clisp.org>
5460
5461         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5462         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5463         (gl_WCHAR_H): Invoke it.
5464         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5465         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5466         Reported by Karl Berry <karl@freefriends.org>.
5467
5468 2009-12-22  Eric Blake  <ebb9@byu.net>
5469
5470         math, unistd: avoid redundant includes
5471         * lib/math.in.h (isnan): No need to re-include <math.h>.
5472         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5473
5474         getsubopt: work around cygwin bug
5475         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5476         avoid conflicting with system getsubopt.
5477         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5478         bug.
5479
5480         getopt: synchronize from glibc
5481         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5482         parameter order.  Adjust all callers.
5483         (_getopt_internal_r, main): Adjust quoting in error messages.
5484         Drop considerations for outdated POSIX 1003.2 error message.
5485         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5486         callers.
5487         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5488
5489         test-getopt: test stderr behavior
5490         * modules/getopt-posix-tests (Depends-on): Add dup2.
5491         * tests/test-getopt.c (ASSERT): Avoid stderr.
5492         (main): Move stderr to a temporary file.
5493         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5494         Instead, add parameter to inform caller if output occurred.
5495         (test_getopt): Adjust all existing tests to expect silence, and
5496         add new tests of leading ":".
5497         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5498         glibc shortcomings with leading "-:" or "+:" in optstring.
5499         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5500         Likewise.
5501         * doc/posix-functions/getopt.texi (getopt): Likewise.
5502
5503         test-getopt: enhance test
5504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5505         supports optind=0.
5506         * tests/test-getopt.c (OPTIND_MIN): Move...
5507         * tests/test-getopt.h (OPTIND_MIN): ...here.
5508         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5509         Require that optind=0 works, since modern BSD supports it in
5510         addition to optreset, and since coreutils expects it.
5511         (test_getopt_long_only): New test.
5512         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5513         glibc shortcomings with 'W;', and enforcement of optind=0.
5514         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5515         Likewise.
5516
5517 2009-12-21  Bruno Haible  <bruno@clisp.org>
5518
5519         localename: Improvements for MacOS X and Cygwin.
5520         * lib/localename.h (gl_locale_name_environ): New declaration.
5521         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5522         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5523         (gl_locale_name_posix): Invoke it.
5524         (gl_locale_name_default): Add comments. Use Windows native API also on
5525         Cygwin.
5526
5527 2009-12-21  Bruno Haible  <bruno@clisp.org>
5528
5529         Update list of Win32 locale ids.
5530         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5531         (LANG_SAMI): Renamed from LANG_SAAMI.
5532         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5533         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5534         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5535         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5536         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5537         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5538         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5539         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5540         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5541         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5542         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5543         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5544         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5545         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5546         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5547         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5548         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5549         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5550         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5551         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5552         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5553         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5554         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5555         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5556         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5557         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5558         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5559         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5560         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5561         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5562         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5563         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5564         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5565         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5566         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5567         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5568         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5569         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5570         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5571         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5572         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5573         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5574         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5575         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5576         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5577         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5578         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5579         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5580         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5581         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5582         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5583         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5584         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5585         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5586         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5587         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5588         Add more languages and countries for Sami, Sorbian. Add more countries
5589         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5590         for Pashto. Change country for Syriac, Tswana.
5591
5592 2009-12-21  Eric Blake  <ebb9@byu.net>
5593
5594         test-utimens: avoid spurious failure
5595         * tests/test-chown.h (nap): Factor...
5596         * tests/nap.h: ...into new file.
5597         * tests/test-lchown.h (nap): Avoid duplication.
5598         * tests/test-utimens-common.h (nap): Use shared implementation,
5599         necessary on file systems with 1-second resolution.
5600         * modules/chown-tests (Files): Include new file.
5601         * modules/fdutimensat-tests (Files): Likewise.
5602         * modules/futimens-tests (Files): Likewise.
5603         * modules/lchown-tests (Files): Likewise.
5604         * modules/openat-tests (Files): Likewise.
5605         * modules/utimens-tests (Files): Likewise.
5606         * modules/utimensat-tests (Files): Likewise.
5607
5608 2009-12-19  Eric Blake  <ebb9@byu.net>
5609
5610         futimens, utimensat: work around Linux bug
5611         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5613         * lib/utimensat.c (rpl_utimensat): Work around it.
5614         * lib/futimens.c (rpl_futimens): Adjust comment.
5615
5616         utimens: work around Linux ctime bug
5617         * lib/utimens.c (detect_ctime_bug): New helper function.
5618         (update_timespec): Differentiate between workaround needed for
5619         this bug vs. what is needed for systems that lack utimensat.
5620         (fdutimens, lutimens): Work around bug.
5621
5622         utimens: check for ctime update
5623         * tests/test-utimens-common.h (check_ctime): Define.
5624         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5625         * tests/test-futimens.h (test_futimens): Likewise.
5626         * tests/test-lutimens.h (test_lutimens): Likewise.
5627         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5628         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5629
5630 2009-12-19  Bruno Haible  <bruno@clisp.org>
5631
5632         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5633         * tests/test-dprintf-posix2.sh: New file.
5634         * tests/test-dprintf-posix2.c: New file.
5635         * modules/dprintf-posix-tests (Files): Add them.
5636         (configure.ac): Check for getrlimit and setrlimit.
5637         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5638
5639 2009-12-19  Bruno Haible  <bruno@clisp.org>
5640
5641         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5642         * tests/test-fprintf-posix3.sh: New file.
5643         * tests/test-fprintf-posix3.c: New file.
5644         * modules/fprintf-posix-tests (Files): Add them.
5645         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5646
5647 2009-12-19  Eric Blake  <ebb9@byu.net>
5648
5649         dirfd: fix prototype
5650         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5651         * lib/dirfd.c (dirfd): Likewise.
5652
5653         canonicalize: reduce memory usage
5654         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5655         allocation to size.
5656         Reported by Solar Designer <solar@openwall.com>.
5657
5658 2009-12-19  Bruno Haible  <bruno@clisp.org>
5659
5660         New module attribute 'Applicability'.
5661         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5662         * gnulib-tool: New option --extract-applicability.
5663         (func_usage): Document it.
5664         (sed_extract_prog): Recognize it.
5665         (func_get_applicability): New function.
5666         (func_import): Generalize handling of 'link-warning' module.
5667         * modules/link-warning (Applicability): New section.
5668         * modules/arg-nonnull (Applicability): New section.
5669         Repoted by Simon Josefsson <simon@josefsson.org>.
5670
5671 2009-12-19  Bruno Haible  <bruno@clisp.org>
5672
5673         fflush: tweak
5674         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5675         * lib/fseeko.c (rpl_fseeko): Likewise.
5676
5677 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5678
5679         * lib/gl_list.h: Fix typo in comment.
5680
5681 2009-12-16  Eric Blake  <ebb9@byu.net>
5682
5683         fcntl: use to simplify other modules
5684         * modules/cloexec (Depends-on): Add fcntl.
5685         * modules/fchdir (Depends-on): Likewise.
5686         * modules/fd-safer-flag (Depends-on): Likewise.
5687         * modules/unistd-safer (Depends-on): Likewise.
5688         * modules/dup3 (configure.ac): Set module indicator.
5689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5690         missing.
5691         * lib/fchdir.c (_gl_register_dup): Fix comment.
5692         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5693         * lib/dup-safer.c (dup_safer): Likewise.
5694         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5695         * lib/dup3.c (dup3): Likewise.
5696         * tests/test-fchdir.c (main): Enhance test.
5697         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
5698
5699         fcntl: port portions of fcntl to mingw
5700         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5701         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5702         replacement for mingw.
5703         * modules/fcntl (Description): Update.
5704         (Depends-on): Add dup2.
5705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5706         * modules/fcntl-h (Makefile.am): Substitute it.
5707         * lib/fcntl.in.h (fcntl): Update declaration.
5708         (F_DUPFD, F_GETFD): New macros, when needed.
5709         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5710         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5711         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5712         we now guarantee.
5713
5714         fcntl: work around cygwin bug in F_DUPFD
5715         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5716         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5717         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5718         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5719         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5720
5721         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5722         * modules/fcntl (Files): List new files.
5723         (configure.ac): Run a test.
5724         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5725         * lib/fcntl.c (rpl_fcntl): Likewise.
5726         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5727         (gl_FCNTL_H): Always replace fcntl.h.
5728         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5729         * lib/fcntl.in.h (fcntl): Declare replacement.
5730         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5731         needed, plus a witness.
5732         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5733         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5734         * tests/test-fcntl.c: New file.
5735         * modules/fcntl-tests: Likewise.
5736
5737         binary-io: avoid potential compilation warning
5738         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5739         directives.
5740
5741         fflush: avoid compilation error on NetBSD
5742         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5743         between off_t and fpos_t, since the latter is sometimes a struct.
5744         * lib/fseeko.c (rpl_fseeko): Likewise.
5745         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5746
5747 2009-12-15  Eric Blake  <ebb9@byu.net>
5748
5749         fcntl-h, stdio, sys_ioctl: fix declarations
5750         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5751         function must not take arguments.
5752         * lib/sys_ioctl.in.h (ioctl): Likewise.
5753         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5754         (open): Add a link warning.
5755
5756 2009-12-15  Jim Meyering  <meyering@redhat.com>
5757
5758         areadlink, areadlink-with-size: relax license to LGPLv2+
5759         * modules/areadlink (License): Relax to LGPLv2+.
5760         * modules/areadlink-with-size (License): Likewise.
5761
5762 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5763             Bruno Haible  <bruno@clisp.org>
5764
5765         *printf: Fix memory leak.
5766         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5767         * lib/vfprintf.c (vfprintf): Likewise.
5768         * lib/dprintf.c (dprintf): Likewise.
5769         * lib/vdprintf.c (vdprintf): Likewise.
5770
5771 2009-12-14  Eric Blake  <ebb9@byu.net>
5772
5773         accept4: adjust module dependencies
5774         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5775
5776         utimens: one more try at avoiding compiler warning
5777         * lib/utimens.c (lutimens): Lower scope of result.
5778
5779 2009-12-13  Bruno Haible  <bruno@clisp.org>
5780
5781         Move the malloc checking from module 'list' to new module 'xlist'.
5782         * modules/xlist: New file.
5783         * lib/gl_xlist.h: New file.
5784         * lib/gl_xlist.c: New file.
5785         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5786         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5787         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5788         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5789         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5790         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5791         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5792         gl_sortedlist_nx_add): New declarations.
5793         (struct gl_list_implementation): Rename and change methods accordingly.
5794         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5795         (gl_list_nx_create): Renamed from gl_list_create.
5796         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5797         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5798         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5799         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5800         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5801         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5802         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5803         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5804         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5805         gl_list_create_empty.
5806         (gl_list_nx_create): Renamed from gl_list_create.
5807         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5808         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5809         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5810         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5811         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5812         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5813         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5814         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5815         * lib/gl_array_list.c: Don't include xalloc.h.
5816         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5817         NULL upon out-of-memory.
5818         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5819         out-of-memory.
5820         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5821         Change return type to 'int'.
5822         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5823         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5824         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5825         upon out-of-memory.
5826         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5827         upon out-of-memory.
5828         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5829         upon out-of-memory.
5830         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5831         upon out-of-memory.
5832         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5833         out-of-memory.
5834         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5835         Update.
5836         (gl_array_list_implementation): Update.
5837         * lib/gl_carray_list.c: Don't include xalloc.h.
5838         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5839         Return NULL upon out-of-memory.
5840         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5841         out-of-memory.
5842         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5843         Change return type to 'int'.
5844         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5845         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5846         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5847         upon out-of-memory.
5848         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5849         upon out-of-memory.
5850         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5851         out-of-memory.
5852         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5853         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5854         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5855         Update.
5856         (gl_carray_list_implementation): Update.
5857         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5858         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5859         gl_linked_create_empty. Return NULL upon out-of-memory.
5860         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5861         out-of-memory.
5862         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5863         Change return type to 'int'. Return -1 upon out-of-memory.
5864         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5865         out-of-memory.
5866         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5867         upon out-of-memory.
5868         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5869         upon out-of-memory.
5870         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5871         NULL upon out-of-memory.
5872         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5873         upon out-of-memory.
5874         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5875         out-of-memory.
5876         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5877         Update.
5878         * lib/gl_linked_list.c: Don't include xalloc.h.
5879         (gl_linked_list_implementation): Update.
5880         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5881         (add_to_bucket): Change return type to 'int'.
5882         (gl_linkedhash_list_implementation): Update.
5883         * lib/gl_anytree_list1.h (free_subtree): New function.
5884         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5885         gl_tree_create_empty. Return NULL upon out-of-memory.
5886         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5887         Change return type to 'int'. Return -1 upon out-of-memory.
5888         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5889         out-of-memory.
5890         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5891         (gl_tree_remove_node): New function, moved here from
5892         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5893         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5894         Update.
5895         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5896         malloc, not xmalloc. Return NULL upon out-of-memory.
5897         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5898         out-of-memory.
5899         (gl_tree_remove_node_from_tree): New function, extracted from
5900         gl_tree_remove_node.
5901         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5902         upon out-of-memory.
5903         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5904         out-of-memory.
5905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5906         upon out-of-memory.
5907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5908         upon out-of-memory.
5909         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5910         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5911         not xmalloc. Return NULL upon out-of-memory.
5912         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5913         out-of-memory.
5914         (gl_tree_remove_node_from_tree): New function, extracted from
5915         gl_tree_remove_node.
5916         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5917         upon out-of-memory.
5918         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5919         out-of-memory.
5920         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5921         upon out-of-memory.
5922         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5923         upon out-of-memory.
5924         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5925         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5926         gl_anytree_list1.h before gl_anyavltree_list2.h.
5927         (gl_avltree_list_implementation): Update.
5928         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5929         gl_anytree_list1.h before gl_anyavltree_list2.h.
5930         (gl_rbtree_list_implementation): Update.
5931         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5932         Change return type to 'int'. Return -1 upon out-of-memory. Use
5933         __builtin_expect.
5934         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5935         (gl_avltreehash_list_implementation): Update.
5936         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5937         (gl_rbtreehash_list_implementation): Update.
5938         * modules/array-list (Depends-on): Remove xalloc.
5939         * modules/carray-list (Depends-on): Likewise.
5940         * modules/linked-list (Depends-on): Likewise.
5941         * modules/linkedhash-list (Depends-on): Likewise.
5942         * modules/avltree-list (Depends-on): Likewise.
5943         * modules/rbtree-list (Depends-on): Likewise.
5944         * modules/avltreehash-list (Depends-on): Likewise.
5945         * modules/rbtreehash-list (Depends-on): Likewise.
5946
5947         * modules/xsublist: New file.
5948         * lib/gl_xsublist.h: New file.
5949         * lib/gl_xsublist.c: New file.
5950         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5951         (gl_sublist_nx_create): New declaration.
5952         * lib/gl_sublist.c: Don't include xalloc.h.
5953         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5954         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5955         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5956         Change return type to 'int'. Return -1 upon out-of-memory.
5957         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5958         upon out-of-memory.
5959         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5960         NULL upon out-of-memory.
5961         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5962         upon out-of-memory.
5963         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5964         NULL upon out-of-memory.
5965         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5966         NULL upon out-of-memory.
5967         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5968         upon out-of-memory.
5969         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5970         (gl_sublist_list_implementation): Update.
5971         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5972         upon out-of-memory.
5973         * modules/sublist (Depends-on): Remove xalloc.
5974
5975         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5976         * tests/test-carray_list.c: Likewise.
5977         * tests/test-linked_list.c: Likewise.
5978         * tests/test-linkedhash_list.c: Likewise.
5979         * tests/test-avltree_list.c: Likewise.
5980         * tests/test-rbtree_list.c: Likewise.
5981         * tests/test-avltreehash_list.c: Likewise.
5982         * tests/test-rbtreehash_list.c: Likewise.
5983         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5984         * modules/carray-list-tests (Makefile.am): Likewise.
5985         * modules/linked-list-tests (Makefile.am): Likewise.
5986         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5987         * modules/avltree-list-tests (Makefile.am): Likewise.
5988         * modules/rbtree-list-tests (Makefile.am): Likewise.
5989         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5990         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5991
5992         * NEWS: Mention the changes.
5993
5994         * lib/clean-temp.c: Include gl_xlist.h.
5995         * modules/clean-temp (Depends-on): Add xlist.
5996
5997         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5998         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5999
6000         * tests/test-array_oset.c: Include gl_xlist.h.
6001         * modules/array-oset-tests (Depends-on): Add xlist.
6002
6003         Reported by José E. Marchesi <jemarch@gnu.org>.
6004
6005 2009-12-13  Bruno Haible  <bruno@clisp.org>
6006
6007         Move the malloc checking from module 'oset' to new module 'xoset'.
6008         * modules/xoset: New file.
6009         * lib/gl_xoset.h: New file.
6010         * lib/gl_xoset.c: New file.
6011         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6012         declarations.
6013         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6014         (struct gl_oset_implementation): Rename and change methods accordingly.
6015         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6016         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6017         'int'. Mark as __warn_unused_result__.
6018         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6019         gl_oset_create_empty.
6020         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6021         'int'.
6022         * lib/gl_array_oset.c: Don't include xalloc.h.
6023         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6024         malloc, not xmalloc.
6025         (grow): Change return type to 'int'. Don't call xalloc_die.
6026         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6027         to 'int'.
6028         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6029         'int'.
6030         (gl_array_oset_implementation): Update.
6031         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6032         gl_tree_create_empty.
6033         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6034         'int'.
6035         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6036         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6037         xmalloc.
6038         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6039         not xmalloc.
6040         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6041         xmalloc.
6042         (gl_avltree_oset_implementation): Update.
6043         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6044         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6045         xmalloc.
6046         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6047         not xmalloc.
6048         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6049         xmalloc.
6050         (gl_rbtree_oset_implementation): Update.
6051         * modules/array-oset (Depends-on): Remove xalloc.
6052         * modules/avltree-oset (Depends-on): Likewise.
6053         * modules/rbtree-oset (Depends-on): Likewise.
6054         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6055         * tests/test-avltree_oset.c: Likewise.
6056         * tests/test-rbtree_oset.c: Likewise.
6057         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6058         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6059         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6060         * NEWS: Mention the change.
6061
6062 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6063
6064         maint.mk: allow a project to override release-prep commands
6065         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6066         commands into a new rule.
6067         (release-prep): New rule.
6068         (release-prep-hook): New overridable variable.
6069
6070 2009-12-13  Bruno Haible  <bruno@clisp.org>
6071
6072         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6073
6074 2009-12-13  Jim Meyering  <meyering@redhat.com>
6075
6076         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6077         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6078
6079 2009-12-12  Bruno Haible  <bruno@clisp.org>
6080
6081         duplocale: Tweak.
6082         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6083
6084 2009-12-12  Karl Berry  <karl@gnu.org>
6085
6086         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6087
6088 2009-12-12  Bruno Haible  <bruno@clisp.org>
6089
6090         * m4/po.m4: Undo incorrect untabification.
6091
6092 2009-12-12  Bruno Haible  <bruno@clisp.org>
6093
6094         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6095         * modules/c-strtod (Depends-on): Add locale.
6096         * modules/c-strtold (Depends-on): Likewise.
6097
6098 2009-12-12  Bruno Haible  <bruno@clisp.org>
6099
6100         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6101
6102 2009-12-11  Eric Blake  <ebb9@byu.net>
6103
6104         setenv: relax requirement in light of POSIX ruling
6105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6106         not NULL.
6107         * tests/test-setenv.c (main): Relax test.
6108         * tests/test-unsetenv.c (main): Likewise.
6109         * doc/posix-functions/setenv.texi (setenv): Document this.
6110         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6111
6112 2009-12-11  Bruno Haible  <bruno@clisp.org>
6113
6114         New module 'fd-safer-flag'.
6115         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6116         * lib/dup-safer.c (dup_safer_flag): Remove function.
6117         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6118         * lib/fd-safer.c (fd_safer_flag): Remove function.
6119         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6120         * modules/cloexec (configure.ac): Drop indicator macro.
6121         * modules/fd-safer-flag: New file.
6122         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6123         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6124         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6125
6126 2009-12-11  Bruno Haible  <bruno@clisp.org>
6127
6128         Tests for module 'nl_langinfo'.
6129         * modules/nl_langinfo-tests: New file.
6130         * tests/test-nl_langinfo.sh: New file.
6131         * tests/test-nl_langinfo.c: New file.
6132
6133         New module 'nl_langinfo'.
6134         * lib/nl_langinfo.c: New file.
6135         * m4/nl_langinfo.m4: New file.
6136         * modules/nl_langinfo: New file.
6137         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6138
6139 2009-12-11  Bruno Haible  <bruno@clisp.org>
6140
6141         Tests for module 'langinfo'.
6142         * modules/langinfo-tests: New file.
6143         * tests/test-langinfo.c: New file.
6144
6145         New module 'langinfo'.
6146         * lib/langinfo.in.h: New file.
6147         * m4/langinfo_h.m4: New file.
6148         * modules/langinfo: New file.
6149         * doc/posix-headers/langinfo.texi: Mention the new module.
6150
6151 2009-12-11  Bruno Haible  <bruno@clisp.org>
6152
6153         * lib/config.charset: Untabify.
6154
6155 2009-12-11  Bruno Haible  <bruno@clisp.org>
6156
6157         * modules/unistd-safer (configure.ac): Drop indicator macro.
6158
6159 2009-12-11  Bruno Haible  <bruno@clisp.org>
6160
6161         Move pipe2-safer code to its own file.
6162         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6163         * lib/pipe-safer.c (pipe2_safer): Remove function.
6164         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6165         (Makefile.am): Add it to lib_SOURCES.
6166
6167 2009-12-10  Bruno Haible  <bruno@clisp.org>
6168
6169         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6170
6171 2009-12-10  Bruno Haible  <bruno@clisp.org>
6172
6173         Declare which arguments expect non-NULL values, for GCC and clang.
6174         * build-aux/arg-nonnull.h: New file.
6175         * modules/arg-nonnull: New file.
6176         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6177         (inet_ntop, inet_pton): Use it.
6178         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6179         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6180         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6181         (open, openat): Use it.
6182         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6183         (fnmatch): Use it.
6184         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6185         (getopt, getopt_long, getopt_long_only): Use it.
6186         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6187         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6188         Use it.
6189         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6190         (iconv_open): Use it.
6191         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6192         (strtoimax, strtoumax): Use it.
6193         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6194         (duplocale): Use it.
6195         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6196         (frexp, frexpl): Use it.
6197         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6198         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6199         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6200         (tsearch, tfind, tdelete, twalk): Use it.
6201         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6202         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6203         sigpending): Use it.
6204         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6205         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6206         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6207         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6208         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6209         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6210         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6211         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6212         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6213         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6214         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6215         Use it.
6216         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6217         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6218         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6219         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6220         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6221         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6222         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6223         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6224         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6225         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6226         strtoull, unsetenv): Use it.
6227         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6228         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6229         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6230         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6231         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6232         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6233         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6234         (strcasecmp, strncasecmp): Use it.
6235         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6236         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6237         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6238         rpl_setsockopt): Use it.
6239         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6240         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6241         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6242         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6243         (gettimeofday): Use it.
6244         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6245         (times): Use it.
6246         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6247         (uname): Use it.
6248         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6249         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6250         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6251         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6252         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6253         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6254         unlinkat, write): Use it.
6255         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6256         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6257         * lib/argv-iter.h: Include arg-nonnull.h.
6258         (_ATTRIBUTE_NONNULL_): Remove macro.
6259         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6260         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6261         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6262         optimization.
6263         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6264         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6265         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6266         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6267         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6268         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6269         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6270         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6271         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6272         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6273         * modules/dirent (Depends-on): Add arg-nonnull.
6274         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6275         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6276         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6277         * modules/fnmatch (Depends-on): Add arg-nonnull.
6278         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6279         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6280         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6281         * modules/glob (Depends-on): Add arg-nonnull.
6282         (Makefile.am): Insert arg-nonnull.h into glob.h.
6283         * modules/iconv_open (Depends-on): Add arg-nonnull.
6284         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6285         * modules/inttypes (Depends-on): Add arg-nonnull.
6286         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6287         * modules/locale (Depends-on): Add arg-nonnull.
6288         (Makefile.am): Insert arg-nonnull.h into locale.h.
6289         * modules/math (Depends-on): Add arg-nonnull.
6290         (Makefile.am): Insert arg-nonnull.h into math.h.
6291         * modules/netdb (Depends-on): Add arg-nonnull.
6292         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6293         * modules/search (Depends-on): Add arg-nonnull.
6294         (Makefile.am): Insert arg-nonnull.h into search.h.
6295         * modules/signal (Depends-on): Add arg-nonnull.
6296         (Makefile.am): Insert arg-nonnull.h into signal.h.
6297         * modules/spawn (Depends-on): Add arg-nonnull.
6298         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6299         * modules/stdio (Depends-on): Add arg-nonnull.
6300         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6301         * modules/stdlib (Depends-on): Add arg-nonnull.
6302         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6303         * modules/string (Depends-on): Add arg-nonnull.
6304         (Makefile.am): Insert arg-nonnull.h into string.h.
6305         * modules/strings (Depends-on): Add arg-nonnull.
6306         (Makefile.am): Insert arg-nonnull.h into strings.h.
6307         * modules/sys_socket (Depends-on): Add arg-nonnull.
6308         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6309         * modules/sys_stat (Depends-on): Add arg-nonnull.
6310         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6311         * modules/sys_time (Depends-on): Add arg-nonnull.
6312         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6313         * modules/sys_times (Depends-on): Add arg-nonnull.
6314         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6315         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6316         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6317         * modules/time (Depends-on): Add arg-nonnull.
6318         (Makefile.am): Insert arg-nonnull.h into time.h.
6319         * modules/unistd (Depends-on): Add arg-nonnull.
6320         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6321         * modules/wchar (Depends-on): Add arg-nonnull.
6322         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6323         * modules/argv-iter (Depends-on): Add arg-nonnull.
6324         * tests/test-canonicalize.c (null_ptr): New function.
6325         (main): Use it.
6326         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6327         (main): Use it.
6328         * tests/test-memmem.c (null_ptr): New function.
6329         (main): Use it.
6330         Reported by Jim Meyering.
6331
6332 2009-12-10  Bruno Haible  <bruno@clisp.org>
6333
6334         Use spaces for indentation, not tabs.
6335         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6336         * m4/*.m4: Untabify.
6337         * build-aux/*.h: Untabify.
6338         * tests/**/*.[hc]: Untabify.
6339         * README: New section "Indent with spaces, not TABs", based on
6340         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6341         * NEWS: Mention the change.
6342
6343 2009-12-10  Bruno Haible  <bruno@clisp.org>
6344
6345         pty test: Fix link error.
6346         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6347         test_pty_LDADD.
6348
6349 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6350
6351         * modules/pty: New file.
6352         * modules/pty-tests: New file.
6353         * m4/pty.m4: New file.
6354         * tests/test-pty.c: New file.
6355         * doc/glibc-headers/pty.texi: Modified.
6356         * doc/glibc-functions/forkpty.texi: Modified.
6357         * doc/glibc-functions/openpty.texi: Modified.
6358
6359 2009-12-10  Bruno Haible  <bruno@clisp.org>
6360
6361         Avoid syntax error in C++ mode.
6362         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6363
6364 2009-12-10  Bruno Haible  <bruno@clisp.org>
6365
6366         Use sed with option -e.
6367         * gnulib-tool (func_version, func_emit_copyright_notice,
6368         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6369         option -e to sed.
6370         * modules/link-warning (Makefile.am): Likewise.
6371
6372 2009-12-10  Jim Meyering  <meyering@redhat.com>
6373
6374         mgetgroups: do not write bytes beyond end of malloc'd buffer
6375         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6376         username, we call getgroups with a one-element-shorter buffer,
6377         but still told it the length was original, max_n_groups.
6378
6379 2009-12-09  Eric Blake  <ebb9@byu.net>
6380
6381         cloexec: relax license
6382         * modules/cloexec (Maintainer): Add myself.
6383         (License): Use LGPL, not GPL.
6384
6385         link-warning: optimize generation
6386         * modules/link-warning (Makefile.am): Reduce process usage.
6387
6388 2009-12-09  Bruno Haible  <bruno@clisp.org>
6389
6390         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6391         workaround was added on 2009-11-17.
6392
6393 2009-12-09  Jim Meyering  <meyering@redhat.com>
6394             Bruno Haible  <bruno@clisp.org>
6395
6396         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6397         * modules/link-warning (Makefile.am): Make the comment-removing sed
6398         command more robust in the face of bootstrap-prepended comment lines.
6399
6400 2009-12-09  Bruno Haible  <bruno@clisp.org>
6401
6402         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6403         most one group.
6404
6405 2009-12-09  Simon Josefsson <simon@josefsson.org>
6406             Bruno Haible  <bruno@clisp.org>
6407
6408         * build-aux/link-warning.h: Add copyright notice.
6409         * modules/link-warning (Makefile.am): Generate link-warning.h from
6410         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6411         * NEWS: Mention change in link-warning module.
6412         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6413         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6414         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6415         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6416         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6417         * modules/math (Makefile.am): Add dependency to math.h.
6418         * modules/search (Makefile.am): Add dependency to search.h.
6419         * modules/signal (Makefile.am): Add dependency to signal.h.
6420         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6421         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6422         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6423         * modules/string (Makefile.am): Add dependency to string.h.
6424         * modules/strings (Makefile.am): Add dependency to strings.h.
6425         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6426         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6427         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6428         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6429         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6430         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6431         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6432         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6433         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6434
6435 2009-12-09  Bruno Haible  <bruno@clisp.org>
6436
6437         fchdir: Optimize away rpl_fstat when possible.
6438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6439         REPLACE_OPEN_DIRECTORY.
6440         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6441
6442 2009-12-09  Bruno Haible  <bruno@clisp.org>
6443
6444         * lib/fchdir.c: Update comment.
6445
6446 2009-12-09  Bruno Haible  <bruno@clisp.org>
6447
6448         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6449
6450 2009-12-08  Eric Blake  <ebb9@byu.net>
6451
6452         fchdir: avoid memory leak on re-registration.
6453         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6454
6455 2009-12-08  Jim Meyering  <meyering@redhat.com>
6456
6457         init.sh: avoid Solaris 10 /bin/sh portability problem
6458         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6459         sourced script:
6460           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6461           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6462           bar
6463         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6464         and two tests used that idiom.
6465         * tests/init.sh: Update suggested usage comments.
6466         (path_prepend_): New function, to be used in place
6467         of the --src-path=DIR option.
6468         (setup_): Move PATH-prepending code into path_prepend_.
6469         * tests/test-pread.sh: Adapt to new usage.
6470         * tests/test-xalloc-die.sh: Likewise.
6471
6472 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6473
6474         * doc/gnulib.texi (Glibc pty.h): Add.
6475         * doc/glibc-functions/forkpty.texi: Add.
6476         * doc/glibc-functions/openpty.texi: Add.
6477         Suggested by Bruno Haible.
6478
6479 2009-12-08  Eric Blake  <ebb9@byu.net>
6480
6481         fchdir: fix logic bugs
6482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6483         * tests/test-fchdir.c (main): Enhance test.
6484         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6485         is in use.
6486
6487         dup2: fix logic bugs
6488         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6489         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6490         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6491         exists.
6492         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6493
6494 2009-12-07  Eric Blake  <ebb9@byu.net>
6495
6496         unlink: fix m4 detection
6497         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6498
6499         unistd-safer: add unit test
6500         * modules/unistd-safer-tests: New file.
6501         * tests/test-dup-safer.c: Likewise.
6502         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6503         * tests/test-dup2.c (setmode): Likewise.
6504         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6505
6506         cloexec: preserve text vs. binary across dup_cloexec
6507         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6508         mode.
6509         * modules/dup2-tests (Depends-on): Add binary-io.
6510         * modules/cloexec-tests (Depends-on): Likewise.
6511         * tests/test-dup2.c (setmode, is_mode): New helpers.
6512         (main): Add tests that translation mode is preserved.
6513         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6514         Reported by Bruno Haible.
6515
6516         mgetgroups: reduce duplicate listings
6517         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6518         resulting array.
6519         * tests/test-chown.h (test_chown): Simplify client.
6520         * tests/test-lchown.h (test_lchown): Likewise.
6521
6522 2009-12-06  Bruno Haible  <bruno@clisp.org>
6523
6524         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6525         value.
6526
6527 2009-12-06  Bruno Haible  <bruno@clisp.org>
6528
6529         * lib/progname.c: Include stdio.h, stdlib.h.
6530         (set_program_name): Reject a NULL argument.
6531
6532 2009-12-05  Eric Blake  <ebb9@byu.net>
6533
6534         pipe2-safer: new module
6535         * modules/pipe2-safer: New file.
6536         * lib/unistd-safer.h (pipe2_safer): New prototype.
6537         * lib/unistd--.h (pipe2): New wrapper.
6538         * lib/pipe-safer.c (pipe2_safer): New function.
6539         * modules/pipe (Depends-on): Add pipe2-safer.
6540         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6541
6542         stdlib-safer: preserve cloexec flag for mkostemp[s]
6543         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6544         fd_safer_flag.
6545
6546         unistd-safer: allow preservation of cloexec status via flag
6547         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6548         prototypes.
6549         * lib/dup-safer.c (dup_safer_flag): New function.
6550         * lib/fd-safer.c (fd_safer_flag): Likewise.
6551         * modules/cloexec (configure.ac): Set witness.
6552
6553         test-dup2: enhance test
6554         * modules/dup2-tests (Depends-on): Add cloexec.
6555         * tests/test-dup2.c (main): Enhance test.
6556
6557         cloexec: add dup_cloexec
6558         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6559         header and comments.
6560         * lib/cloexec.c (set_cloexec_flag): Add comments.
6561         (dup_cloexec): New function, with mingw implementation borrowed
6562         from...
6563         * lib/w32spawn.h (dup_noinherit): ...here.
6564         * modules/execute (Depends-on): Add cloexec.
6565         * modules/pipe (Depends-on): Likewise.
6566         * modules/cloexec (Depends-on): Add dup2.
6567         * modules/cloexec-tests (Files): New file.
6568         * tests/test-cloexec.c: Likewise.
6569
6570         test-xalloc-die: fix test for mingw
6571         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6572         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6573         directory and .exe suffix off argv[0] output.
6574
6575         test-fseeko: fix test for mingw
6576         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6577         than undefining fseek, so test will pass on mingw.
6578
6579 2009-12-05  Bruno Haible  <bruno@clisp.org>
6580
6581         * lib/progname.h (set_program_name): Clarify specification.
6582         * lib/progname.c (set_program_name): Likewise.
6583         Reported by Jim Meyering.
6584
6585 2009-12-05  Jim Meyering  <meyering@redhat.com>
6586
6587         maint.mk: backslash-escape parens in default regexp
6588         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6589         backslash-escape the literal parentheses.
6590
6591         maint.mk: news-date-check: use grep -E
6592         * top/maint.mk (today): Define a Make variable, not a...
6593         (news-date-check): ...shell variable.
6594         (news-date-regexp): Use the Make variable.
6595         Use grep's -E option.  Change the failing diagnostic to mention
6596         the variable, $(news-date-regexp).
6597
6598 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6599
6600         maintainer-makefile: allow customization of NEWS entry format
6601         * top/maint.mk (news-date-regexp): New overridable variable.
6602         (news-date-check): Use it.
6603
6604 2009-12-04  Eric Blake  <ebb9@byu.net>
6605
6606         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6607         * lib/mgetgroups.h (xgetgroups): New prototype.
6608         * lib/mgetgroups.c (xgetgroups): New wrapper.
6609         (mgetgroups): Handle ENOSYS.
6610         * modules/mgetgroups (Depends-on): Add realloc.
6611         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6612
6613         mgetgroups: avoid argument promotion issues with -1
6614         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6615         for invalid gid_t.
6616         * tests/test-chown.h (getegid, test_chown): Likewise.
6617         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6618
6619 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6620
6621         exclude: Fix header file problems.
6622         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6623
6624 2009-12-01  Jim Meyering  <meyering@redhat.com>
6625
6626         fts: fts_open: do not let an empty string cause immediate failure
6627         This is required in support of GNU rm, for which the command
6628         "rm A '' B" must process and remove both A and B, in spite of
6629         the empty string argument.
6630         * lib/fts.c (fts_open): Do not let the presence of an empty string
6631         cause fts_open to fail immediately.  Most fts-using tools must be
6632         able to process all arguments, in order, and can be expected to
6633         diagnose such arguments themselves.
6634
6635 2009-11-30  Eric Blake  <ebb9@byu.net>
6636
6637         utimens: fix compilation error
6638         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6639         Declare variable at right scope.
6640
6641 2009-11-29  Jim Meyering  <meyering@redhat.com>
6642
6643         bootstrap: handle perl-5.11's changed --version output
6644         * build-aux/bootstrap (get_version): Handle perl separately,
6645         since perl-5.11's --version output is different.
6646
6647 2009-11-28  Jim Meyering  <meyering@redhat.com>
6648
6649         userspec: depend on the inttostr module, too
6650         * modules/userspec (Depends-on): Add inttostr.
6651
6652         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6653         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6654         number of MAXUID when it evaluates to (uid_t) -1.
6655         Likewise for group ID.  Reported by Matt McCutchen in
6656         <http://savannah.gnu.org/bugs/?28113>
6657
6658         userspec: reformat to use spaces, not TABs
6659         * lib/userspec.c: Expand TABs to spaces.
6660         Add Emacs' "indent-tabs-mode: nil" hint.
6661
6662 2009-11-27  Eric Blake  <ebb9@byu.net>
6663
6664         getopt-gnu: flush out another BSD bug
6665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6666         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6667         flush out BSD bug.
6668         * tests/test-getopt.h (test_getopt): End lists with NULL.
6669         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6670         (test_getopt_long_posix): Enhance test.
6671         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6672         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6673         getopt-gnu.
6674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6675         Likewise.
6676
6677 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6678
6679         * modules/idpriv-droptemp-tests (Notice): Fix text.
6680
6681 2009-11-27  Jim Meyering  <meyering@redhat.com>
6682
6683         test-xalloc-die: avoid spurious failure due to libtool argv difference
6684         In a libtool-enabled project, this test would fail due to a difference
6685         in the emitted program name, e.g.,
6686         -test-xalloc-die: memory exhausted
6687         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6688         Use program to avoid that.
6689         * modules/xalloc-die-tests (Depends-on): Add progname.
6690         * tests/test-xalloc-die.c: Include progname.h".
6691         (program_name): Remove decl.
6692         (main): Call set_program_name.
6693         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6694
6695 2009-11-26  Richard Jones  <rjones@redhat.com>
6696
6697         w32sock: leave win32 error in place.
6698         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6699
6700 2009-11-26  Eric Blake  <ebb9@byu.net>
6701
6702         init.sh: suggest to use skip_ and fail_ functions in comments
6703         * tests/init.sh: Add a sentence.
6704
6705 2009-11-25  Bruno Haible  <bruno@clisp.org>
6706
6707         init.sh: add documentation in comments
6708         * tests/init.sh: Add some developer and user documentation.
6709
6710 2009-11-26  Jim Meyering  <meyering@redhat.com>
6711
6712         init.sh: accommodate even those who specify bogus srcdir manually
6713         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6714         configure-time tests to be sanitized, so that there is no need to
6715         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6716         (with no double quotes) suffices.  However, since tests may be
6717         invoked manually, and since you may explicitly set srcdir to the
6718         name of a directory containing spaces, do quote its uses here.
6719         * tests/test-pread.sh: Likewise.
6720         Suggested by Bruno Haible.
6721
6722         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6723         * tests/test-pread.sh: Write no data into the pipe, because
6724         test-pread actually reads none.  This avoids a diagnostic,
6725         "bash: echo: write error: Broken pipe", that arises in the unusual
6726         event something is ignoring SIGPIPE, and might be interpreted
6727         as some sort of failure.  Reported by Bruno Haible.
6728
6729 2009-11-25  Jim Meyering  <meyering@redhat.com>
6730
6731         test-pread: cover failure with ESPIPE and EINVAL
6732         * tests/test-pread.c (main): Test for failure, too.
6733         * tests/test-pread.sh: Invoke with stdin on a pipe.
6734         Suggested by Eric Blake.
6735
6736         pread: improvement and fix
6737         * modules/pread (Depends-on): Depend on lseek, for portability to
6738         e.g., mingw.  Suggested by Eric Blake.
6739         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6740
6741         unistd.in.h: correct declaration of pread
6742         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6743         Reported by Richard W.M. Jones.
6744
6745         test-pread.sh: distribute the test script
6746         * modules/pread-tests (Files): Include test-pread.sh.
6747
6748         test-pread.sh: clean up
6749         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6750         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6751         That is unnecessary, since it's always ".".
6752         Suggestion from Eric Blake.
6753
6754         test-pread.sh: make executable
6755         * tests/test-pread.sh: Set executable bit.
6756         Reported by Eric Blake.
6757
6758         correct typo in test-pread.sh
6759         * tests/test-pread.sh: Add #! line.
6760
6761         test pread
6762         * tests/test-pread.c: New file.
6763         * tests/test-pread.sh: Likewise.
6764         * modules/pread-tests: Likewise.
6765
6766         pread: new module
6767         * modules/pread: New file.
6768         * lib/unistd.in.h (pread): Define/declare.
6769         * lib/pread.c (pread): New file.
6770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6771         * modules/unistd (Makefile.am): Substitute witnesses.
6772         * doc/posix-functions/pread.texi (pread): Update.
6773         * MODULES.html.sh: Add pread.
6774
6775 2009-11-25  Jim Meyering  <meyering@redhat.com>
6776
6777         tests/init.sh: new file to be used via most *.sh tests
6778         * tests/init.sh: New file.
6779
6780 2009-11-25  Eric Blake  <ebb9@byu.net>
6781
6782         utimens: work around older Linux failure with symlinks
6783         * lib/utimens.c (lutimensat_works_really): New variable.
6784         (fdutimens, lutimens): Use it to manage kernels that support
6785         nanosecond times on files, but not on symlinks.
6786         Reported by OndÅ™ej Vašík.
6787
6788         utimes: fix configure grammar
6789         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6790
6791 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6792
6793         regex: Fix fastmap for multibyte character ranges.
6794         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6795         characters when a multibyte character range is included.
6796
6797 2009-11-22  Andy Wingo  <wingo@pobox.com>
6798
6799         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6800         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6801
6802 2009-11-24  Bruno Haible  <bruno@clisp.org>
6803
6804         doc: Most *_l functions exist in MacOS X 10.5.
6805         * doc/posix-functions/duplocale.texi: Update platforms list.
6806         * doc/posix-functions/freelocale.texi: Likewise.
6807         * doc/posix-functions/newlocale.texi: Likewise.
6808         * doc/posix-functions/uselocale.texi: Likewise.
6809         * doc/posix-functions/isalnum_l.texi: Likewise.
6810         * doc/posix-functions/isalpha_l.texi: Likewise.
6811         * doc/posix-functions/isblank_l.texi: Likewise.
6812         * doc/posix-functions/iscntrl_l.texi: Likewise.
6813         * doc/posix-functions/isdigit_l.texi: Likewise.
6814         * doc/posix-functions/isgraph_l.texi: Likewise.
6815         * doc/posix-functions/islower_l.texi: Likewise.
6816         * doc/posix-functions/isprint_l.texi: Likewise.
6817         * doc/posix-functions/ispunct_l.texi: Likewise.
6818         * doc/posix-functions/isspace_l.texi: Likewise.
6819         * doc/posix-functions/isupper_l.texi: Likewise.
6820         * doc/posix-functions/iswalnum_l.texi: Likewise.
6821         * doc/posix-functions/iswalpha_l.texi: Likewise.
6822         * doc/posix-functions/iswblank_l.texi: Likewise.
6823         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6824         * doc/posix-functions/iswctype_l.texi: Likewise.
6825         * doc/posix-functions/iswdigit_l.texi: Likewise.
6826         * doc/posix-functions/iswgraph_l.texi: Likewise.
6827         * doc/posix-functions/iswlower_l.texi: Likewise.
6828         * doc/posix-functions/iswprint_l.texi: Likewise.
6829         * doc/posix-functions/iswpunct_l.texi: Likewise.
6830         * doc/posix-functions/iswspace_l.texi: Likewise.
6831         * doc/posix-functions/iswupper_l.texi: Likewise.
6832         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6833         * doc/posix-functions/isxdigit_l.texi: Likewise.
6834         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6835         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6836         * doc/posix-functions/strcoll_l.texi: Likewise.
6837         * doc/posix-functions/strfmon_l.texi: Likewise.
6838         * doc/posix-functions/strftime_l.texi: Likewise.
6839         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6840         * doc/posix-functions/strxfrm_l.texi: Likewise.
6841         * doc/posix-functions/tolower_l.texi: Likewise.
6842         * doc/posix-functions/toupper_l.texi: Likewise.
6843         * doc/posix-functions/towctrans_l.texi: Likewise.
6844         * doc/posix-functions/towlower_l.texi: Likewise.
6845         * doc/posix-functions/towupper_l.texi: Likewise.
6846         * doc/posix-functions/wcscoll_l.texi: Likewise.
6847         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6848         * doc/posix-functions/wctrans_l.texi: Likewise.
6849         * doc/posix-functions/wctype_l.texi: Likewise.
6850         * doc/glibc-functions/strptime_l.texi: Likewise.
6851         * doc/glibc-functions/strtod_l.texi: Likewise.
6852         * doc/glibc-functions/strtof_l.texi: Likewise.
6853         * doc/glibc-functions/strtol_l.texi: Likewise.
6854         * doc/glibc-functions/strtold_l.texi: Likewise.
6855         * doc/glibc-functions/strtoll_l.texi: Likewise.
6856         * doc/glibc-functions/strtoul_l.texi: Likewise.
6857         * doc/glibc-functions/strtoull_l.texi: Likewise.
6858         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6859         * doc/glibc-functions/wcstod_l.texi: Likewise.
6860         * doc/glibc-functions/wcstof_l.texi: Likewise.
6861         * doc/glibc-functions/wcstol_l.texi: Likewise.
6862         * doc/glibc-functions/wcstold_l.texi: Likewise.
6863         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6864         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6865         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6866
6867 2009-11-24  Bruno Haible  <bruno@clisp.org>
6868
6869         duplocale: Fix logic bug.
6870         * lib/duplocale.c: Don't include <langinfo.h>.
6871         (_NL_LOCALE_NAME): Remove macro.
6872         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6873         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6874
6875 2009-11-23  Jim Meyering  <meyering@redhat.com>
6876
6877         test-update-copyright: don't hard-code /usr/bin/perl
6878         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6879         perl to print the current year.  Gilles Espinasse reported that
6880         the replaced use of perl was hard-coded as /usr/bin/perl.
6881
6882 2009-11-23  Bruno Haible  <bruno@clisp.org>
6883
6884         duplocale: Add support for glibc 2.3.x.
6885         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6886
6887 2009-11-22  Bruno Haible  <bruno@clisp.org>
6888
6889         vasnprintf: Tiny optimization.
6890         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6891         MacOS X.
6892
6893 2009-11-22  Bruno Haible  <bruno@clisp.org>
6894
6895         Tests for module 'duplocale'.
6896         * modules/duplocale-tests: New file.
6897         * tests/test-duplocale.c: New file.
6898
6899         New module 'duplocale'.
6900         * m4/duplocale.m4: New file.
6901         * lib/locale.in.h (duplocale): New declaration.
6902         * lib/duplocale.c: New file.
6903         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6904         gl_LOCALE_H_DEFAULTS): New macros.
6905         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6906         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6907         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6908         REPLACE_DUPLOCALE.
6909         * modules/duplocale: New file.
6910         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6911
6912 2009-11-22  Bruno Haible  <bruno@clisp.org>
6913
6914         * modules/locale-tests (configure.ac): Test for newlocale function.
6915         * tests/test-locale.c: When the system has extended locale functions,
6916         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6917
6918         locale: Make locale_t available when possible.
6919         * lib/locale.in.h: Include <xlocale.h> when it exists.
6920         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6921         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6922         * modules/locale (Depends-on): Add extensions.
6923         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6924         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6925
6926 2009-11-22  Bruno Haible  <bruno@clisp.org>
6927
6928         Add comments.
6929         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6930         invocation.
6931         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6932         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6933         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6934
6935 2009-11-22  Bruno Haible  <bruno@clisp.org>
6936
6937         error: account for the possibility of freopen (stdout).
6938         * lib/error.c: Include <unistd.h>.
6939         (flush_stdout): New function, extracted from error and error_at_line.
6940         Determine stdout's fd dynamically.
6941         (error, error_at_line): Invoke flush_stdout.
6942         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6943         * modules/error (Depends-on): Add unistd.
6944
6945 2009-11-22  Bruno Haible  <bruno@clisp.org>
6946
6947         diffseq: Add comment.
6948         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6949
6950 2009-11-22  Jim Meyering  <meyering@redhat.com>
6951
6952         c-stack: avoid defining an unused static function
6953         * lib/c-stack.c (find_stack_direction): Do not define this function
6954         when it will not be used.
6955
6956         diffseq: avoid spurious gcc warnings
6957         * lib/diffseq.h (IF_LINT2): Define.
6958         (compareseq): Use it to initialize two members of "part".
6959         This avoids two used-uninitialized warnings.
6960
6961 2009-11-21  Jim Meyering  <meyering@redhat.com>
6962
6963         c-stack: avoid "ignoring return value of `write'" warning
6964         * lib/c-stack.c: Include "ignore-value.h".
6965         (die): Explicitly ignore each write return value.
6966         * modules/c-stack (Depends-on): Add ignore-value.
6967
6968 2009-11-21  Bruno Haible  <bruno@clisp.org>
6969
6970         diffseq: reduce scope of variable 'best'.
6971         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6972         variable, earlier used for two different purposes.
6973
6974 2009-11-21  Jim Meyering  <meyering@redhat.com>
6975
6976         diffseq: remove useless assignment to "best"
6977         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6978         assignment.  At that point "best" is already guaranteed to be zero.
6979
6980 2009-11-20  Eric Blake  <ebb9@byu.net>
6981
6982         build: mention ftp redirector in release announcements
6983         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6984         values that used to come from cfg.mk; mention FTP redirect URL.
6985         * build-aux/announce-gen: Mention the mirror list.
6986         Suggested by Karl Berry.
6987
6988         nanosleep: improve port to mingw
6989         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6991         LIB_NANOSLEEP, but only when needed.
6992         * modules/select (Link): Document LIBSOCKET.
6993         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6994         enough.
6995
6996         nanosleep: work around cygwin bug
6997         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6998         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6999         bug.
7000         (getnow): Delete, not needed.
7001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7002         LIB_CLOCK_GETTIME.
7003         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7004         clock-time, gettime.
7005         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7006         bug.
7007         * modules/nanosleep-tests: New test.
7008         * tests/test-nanosleep.c: New file.
7009
7010         sleep: work around cygwin bug
7011         * lib/sleep.c (rpl_sleep): Work around the bug.
7012         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7013         (gl_PREREQ_SLEEP): Delete unused macro.
7014         * modules/sleep (Depends-on): Add verify.
7015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7016         * modules/unistd (Makefile.am): Substitute witness.
7017         * lib/unistd.in.h (sleep): Update prototype.
7018         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7019         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7020         * modules/sleep-tests (Depends-on): Check for alarm.
7021
7022 2009-11-20  Jim Meyering  <meyering@redhat.com>
7023
7024         maint.mk: improve sc_prohibit_magic_number_exit
7025         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7026         so it does not match uses like System.exit(1).
7027         Add comments showing how to correct all offenders.
7028
7029 2009-11-19  Eric Blake  <ebb9@byu.net>
7030
7031         xalloc-die-tests: add missing library
7032         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7033
7034         test-xvasprintf: silence compiler warnings
7035         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7036         empty string from gcc.
7037
7038 2009-11-19  Jim Meyering  <meyering@redhat.com>
7039
7040         xfreopen: new module, from coreutils
7041         * modules/xfreopen: New module.
7042         * lib/xfreopen.c: New file.
7043         * lib/xfreopen.h: New file.
7044         * MODULES.html.sh (File stream based Input/Output"): Add it.
7045
7046 2009-11-19  Eric Blake  <ebb9@byu.net>
7047
7048         manywarnings: depend on warnings
7049         * modules/manywarnings (Depends-on): Add warnings.
7050
7051         build: avoid compiler warnings
7052         * lib/select.c (rpl_select): Delete unused variable.
7053         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7054
7055 2009-11-18  Eric Blake  <ebb9@byu.net>
7056
7057         tests: avoid false negative with --with-packager
7058         * tests/test-version-etc.sh: Discard packager information.
7059         * tests/test-argp-version-etc-1.sh: Likewise.
7060         Reported by Mike Frysinger.
7061
7062         utimens: fix regression on Solaris
7063         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7064         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7065         can only change fd timestamps via futimesat.  Instead, use an
7066         additional witness macro to avoid BSD bug.
7067         Reported by Jim Meyering.
7068
7069 2009-11-17  Eric Blake  <ebb9@byu.net>
7070
7071         usleep: use it to simplify tests
7072         * modules/stat-time-tests (Depends-on): Add usleep.
7073         (configure.ac): Drop usleep check.
7074         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7075         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7076         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7077         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7078         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7079         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7080         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7081         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7082         Likewise.
7083         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7084         * tests/test-lchown.h (nap): Likewise.
7085         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7086         * tests/test-stat-time.c (nap): Likewise.
7087         * tests/test-utimens-common.h (nap): Update comments.
7088
7089         usleep: new module
7090         * modules/usleep: New file.
7091         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7092         * lib/usleep.c (usleep): Likewise.
7093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7094         * modules/unistd (Makefile.am): Substitute witnesses.
7095         * lib/unistd.in.h (usleep): Add declaration.
7096         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7097         * MODULES.html.sh (Date and time): Likewise.
7098         * modules/usleep-tests (Depends-on): New test.
7099         * tests/test-usleep.c: New file.
7100
7101         chown: work around OpenBSD bug
7102         * lib/chown.c (rpl_chown): Work around the bug.
7103         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7104         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7105         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7106         * modules/chown (Depends-on): Add stdbool.
7107         * modules/lchown (Depends-on): Likewise.
7108         * doc/posix-functions/chown.texi (chown): Document the bug.
7109         * doc/posix-functions/lchown.texi (lchown): Likewise.
7110         * tests/test-lchown.h (test_chown): Relax test.
7111
7112         mkstemp: avoid conflict with C++ keyword template
7113         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7114         * lib/mkostemp.c (mkostemp): Likewise.
7115         * lib/mkostemps.c (mkostemps): Likewise.
7116         * lib/mkstemp.c (mkstemp): Likewise.
7117         * lib/mkstemps.c (mkstemps): Likewise.
7118
7119         xalloc-die-tests: optimize
7120         * tests/test-xalloc-die.sh: Reduce number of processes.
7121
7122 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7123
7124         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7125         patch from ludo@gnu.org (Ludovic Courtès).
7126
7127 2009-11-17  Jim Meyering  <meyering@redhat.com>
7128
7129         version-etc: use proper license string
7130         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7131         * modules/version-etc-fsf: Likewise.
7132
7133 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7134
7135         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7136         printed to stdout.  Deal with EOL differences.
7137
7138 2009-11-17  Eric Blake  <ebb9@byu.net>
7139
7140         unsetenv: work around Solaris bug
7141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7142         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7143         Reported by Jim Meyering.
7144
7145         vasnprintf: avoid compiler warnings
7146         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7147         variables.
7148         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7149
7150 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7151
7152         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7153         settings since xalloc-die is no longer the self test,
7154         xalloc-die.sh is.
7155
7156 2009-11-17  Jim Meyering  <meyering@redhat.com>
7157
7158         test-xalloc-die.sh: make the code agree with the commit log
7159         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7160         at the end, just in case you happen to have a test-xalloc-die
7161         program in some other PATH directory.
7162
7163         test-xalloc-die.sh: fix a portability bug
7164         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7165         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7166         Otherwise, argv[0] (as often seen in diagnostics) would be too
7167         system-dependent, sometimes with, and sometimes without the leading "./".
7168
7169         version-etc-fsf: relax license to LGPLv3+
7170         * modules/version-etc-fsf (License): Relax license.
7171
7172 2009-11-16  Eric Blake  <ebb9@byu.net>
7173
7174         xalloc-die-tests: avoid printing null pointer
7175         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7176         shell script.
7177         * tests/test-xalloc-die.c (program_name): Declare.
7178         * tests/test-xalloc-die.sh (tmpfiles): New file.
7179
7180         setenv, unsetenv: work around various bugs
7181         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7182         (setenv) [HAVE_SETENV]: Work around bugs.
7183         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7185         for bugs.
7186         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7187         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7189         * modules/stdlib (Makefile.am): Update substitutions.
7190         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7191         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7192         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7193         * modules/setenv-tests: New test.
7194         * modules/unsetenv-tests: Likewise.
7195         * tests/test-setenv.c: New file.
7196         * tests/test-unsetenv.c: Likewise.
7197
7198 2009-11-16  Jim Meyering  <meyering@redhat.com>
7199
7200         version-etc: relax license to LGPLv3+
7201         * modules/version-etc (License): Relax license.
7202
7203         better AC_REQUIRE expanded-before-required-warning avoidance
7204         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7205         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7206         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7207         which is no longer needed.
7208
7209 2009-11-16  Eric Blake  <ebb9@byu.net>
7210
7211         test-freading: clean up temporary file
7212         * tests/test-freading.c (main): Remove file on success, and use
7213         ASSERT more liberally.
7214         Reported by Jim Meyering.
7215
7216 2009-11-16  Jim Meyering  <meyering@redhat.com>
7217
7218         avoid new AC_REQUIRE expanded-before-required warnings
7219         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7220         merely using it.
7221         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7222         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7223
7224 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7225
7226         * tests/test-xalloc-die.c: New file.
7227         * modules/xalloc-die-tests: New file.
7228         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7229         XFAIL_TESTS so it can be appended by modules.
7230
7231 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7232
7233         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7234         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7235
7236 2009-11-14  Eric Blake  <ebb9@byu.net>
7237
7238         fnmatch: avoid compiler warning
7239         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7240         to silence compiler warning about mismatch signedness in ?:.
7241         Reported by Robert Millan.
7242
7243         intprops: add double-inclusion guard
7244         * lib/intprops.h: Allow idempotent includes.
7245         Suggested by Bruce Korb.
7246
7247         openat: detect Solaris fchownat bug
7248         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7249         penalizing glibc chownat when only lchownat is broken.
7250         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7251         trailing slash bugs.
7252         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7253         * modules/openat-tests (Files): Include more files.
7254         (Depends-on): Add mgetgroups, sleep, stat-time.
7255         (configure.ac): Add additional checks.
7256         (Makefile.am): Build new test.
7257         * tests/test-fchownat.c: New file.
7258
7259         lchown: detect Solaris and FreeBSD bug
7260         * lib/lchown.c (rpl_lchown): Work around bug.
7261         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7263         * modules/unistd (Makefile.am): Populate it.
7264         * lib/unistd.in.h (lchown): Update declaration.
7265         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7266         * modules/lchown-tests: New file.
7267         * tests/test-lchown.h (test_lchown): Likewise.
7268         * tests/test-lchown.c (main): Likewise.
7269
7270         chown: detect Solaris and FreeBSD bug
7271         * lib/chown.c (rpl_chown): Work around bug.
7272         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7273         (gl_PREREQ_CHOWN): Delete.
7274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7275         * modules/unistd (Makefile.am): Populate it.
7276         * lib/unistd.in.h (chown): Update declaration.
7277         * lib/lchown.c (chown): Update client.
7278         * modules/lchown (Depends-on): Add lstat.
7279         * doc/posix-functions/chown.texi (chown): Document the bug.
7280         * doc/posix-functions/getgroups.texi (getgroups): Document
7281         getgroups pitfall.
7282         * modules/chown-tests: New file.
7283         * tests/test-chown.h (test_chown): Likewise.
7284         * tests/test-chown.c (main): Likewise.
7285
7286 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7287
7288         gnulib-tool: correctly detect absence of m4 directories
7289         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7290
7291 2009-11-14  Jim Meyering  <meyering@redhat.com>
7292
7293         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7294         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7295
7296 2009-11-14  John W. Eaton  <jwe@gnu.org>
7297
7298         strftime.h: wrap funtion declaration in extern "C" block
7299         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7300
7301 2009-11-13  Eric Blake  <ebb9@byu.net>
7302
7303         getgroups: avoid compiler warning
7304         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7305
7306         getgroups: work around FreeBSD bug
7307         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7308         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7309         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7310         * tests/test-getgroups.c (main): Fix buffer overrun.
7311
7312         getgroups: avoid compilation failure
7313         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7314         * modules/getgroups (Depends-on): Add stdint.
7315
7316 2009-11-13  Jim Meyering  <meyering@redhat.com>
7317
7318         test-getgroups: avoid compilation failure
7319         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7320
7321 2009-11-13  Eric Blake  <ebb9@byu.net>
7322
7323         mgetgroups: new module, taken from coreutils
7324         * modules/mgetgroups: New file.
7325         * lib/mgetgroups.h: Likewise.
7326         * lib/mgetgroups.c (mgetgroups): Likewise.
7327         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7328         * MODULES.html.sh (Users and groups): Mention it.
7329
7330         getgroups: don't expose GETGROUPS_T to user
7331         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7332         an element at a time if GETGROUPS_T is wrong size.
7333         * lib/getugroups.h (getugroups): Change signature.
7334         * lib/unistd.in.h (getgroups): Likewise.
7335         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7336         signature needs fixing.
7337         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7338         AC_TYPE_GETGROUPS.
7339         * modules/group-member (Depends-on): Add getgroups.
7340         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7341         (group_member): Rely on getgroups replacement.
7342         * lib/getugroups.c (getugroups): Use gid_t.
7343         * tests/test-getgroups.c (main): Likewise.
7344         * NEWS: Mention the signature change.
7345         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7346         problem with signature.
7347         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7348         GETGROUPS_T is still useful for setgroups.
7349
7350         getgroups, getugroups: provide stubs for mingw
7351         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7352         * lib/getugroups.c (getugroups): Likewise.
7353         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7354         function.  Modernize replacement scheme.
7355         (gl_PREREQ_GETGROUPS): Delete.
7356         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7357         * modules/getgroups (configure.ac): Declare witness.
7358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7359         * modules/unistd (Depends-on): Substitute witness.
7360         * lib/unistd.in.h (getgroups): Declare replacement.
7361
7362         getgroups: avoid calling exit
7363         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7364         drop xalloc.
7365         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7366         dependencies.
7367         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7368         exiting, in the rare case of malloc failure.
7369
7370         getgroups: fix logic error
7371         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7372         has more than 20 groups.
7373         * modules/getgroups-tests: New test.
7374         * tests/test-getgroups.c: New file.
7375
7376 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7377
7378         * tests/test-base64.c: Improve.
7379
7380 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7381
7382         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7383         Blake <ebb9@byu.net>.
7384
7385 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7386
7387         * tests/test-xvasprintf.c: Add %s%s related checks.
7388
7389 2009-11-12  Eric Blake  <ebb9@byu.net>
7390
7391         version-etc: match standards.texi style
7392         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7393         and use <> only for URLs.
7394
7395 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7396
7397         fts: do not fail on a submount during traversal
7398         * lib/fts.c (fts_build): Read the stat info again after opening
7399         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7400         Original report at http://bugzilla.redhat.com/501848.
7401
7402 2009-11-12  Jim Meyering  <meyering@redhat.com>
7403
7404         bootstrap: sync from coreutils
7405         * build-aux/bootstrap (bootstrap_epilogue): New function.
7406         Use git_modules_config in one more place.  This make bootstrap's
7407         --gnulib-srcdir option more useful for testing.
7408
7409         bootstrap: generalize autoheader check
7410         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7411         AC_CONFIG_HEADERS.
7412
7413 2009-11-11  Eric Blake  <ebb9@byu.net>
7414
7415         mkfifoat: use new modules for Solaris and BSD bugs
7416         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7417         * lib/mkfifoat.c (mknodat): Split...
7418         * lib/mknodat.c (mknodat): ...into new file.
7419         * modules/mkfifoat (Files): Ship new file.
7420         (Depends-on): Add mkfifo, mknod.
7421         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7422         (Depends-on): Add symlink.
7423         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7424         redundant with test_mkfifo.h.
7425         (do_mkfifoat, do_mknodat): New helpers.
7426
7427         mknod: new module
7428         * modules/mknod: New file.
7429         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7430         * lib/mknod.c (mknod): Likewise.
7431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7432         defaults.
7433         * modules/sys_stat (Makefile.am): Substitute them.
7434         * lib/sys_stat.in.h (mknod): Declare replacement.
7435         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7436         Document it.
7437         * doc/posix-functions/mknod.texi (mknod): Likewise.
7438         * modules/mknod-tests: New test.
7439         * tests/test-mknod.c: Likewise.
7440
7441         mkfifo: new module
7442         * modules/mkfifo: New file.
7443         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7444         * lib/mkfifo.c (mkfifo): Likewise.
7445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7446         defaults.
7447         * modules/sys_stat (Makefile.am): Substitute them.
7448         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7449         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7450         Document it.
7451         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7452         * modules/mkfifo-tests: New test.
7453         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7454         from test-mkfifoat.c.
7455         * tests/test-mkfifo.c: New file.
7456
7457         readlink: detect FreeBSD bug
7458         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7459         slash on symlink.
7460         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7461         * tests/test-readlink.h (test_readlink): Enhance test.
7462
7463         symlink: detect FreeBSD bug
7464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7465         slash on symlink.
7466         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7467         * tests/test-symlink.h (test_symlink): Enhance test.
7468
7469 2009-11-10  Eric Blake  <ebb9@byu.net>
7470
7471         link: detect FreeBSD bug
7472         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7473         symlink.
7474         * doc/posix-functions/link.texi (link): Document the bug.
7475         * tests/test-link.h (test_link): Enhance test.
7476         * tests/test-linkat.c (main): Update caller.
7477
7478         unlink, remove: detect FreeBSD bug
7479         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7480         slash on symlink.
7481         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7482         * doc/posix-functions/remove.texi (remove): Likewise.
7483         * tests/test-unlink.h (test_unlink): Enhance test.
7484         * tests/test-remove.c (main): Likewise.
7485
7486 2009-11-09  Eric Blake  <ebb9@byu.net>
7487
7488         rename: detect FreeBSD bug
7489         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7490         slash on symlink.
7491         * modules/renameat-tests (Depends-on): Add filenamecat.
7492         * tests/test-rename.h (test_rename): Allow one more errno.
7493         * tests/test-renameat.c (main): Likewise.
7494         * doc/posix-functions/rename.texi (rename): Document the bug.
7495
7496         open: detect FreeBSD bug
7497         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7498         symlink.
7499         * doc/posix-functions/open.texi (open): Document the bug.
7500         * doc/posix-functions/utimes.texi (utimes): Likewise.
7501         * tests/test-open.h (test_open): Add parameters, and test symlink
7502         handling.
7503         * tests/test-open.c (main): Adjust caller.
7504         * tests/test-fcntl-safer.c (main): Likewise.
7505         * modules/open-tests (Depends-on): Add stdbool, symlink.
7506         * modules/fcntl-safer-tests (Depends-on): Likewise.
7507         * tests/test-openat.c (main): Add test-open tests.
7508
7509         stat: detect FreeBSD bug
7510         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7511         symlink.
7512         * doc/posix-functions/stat.texi (stat): Document the bug.
7513         * tests/test-stat.h (test_stat_func): Add argument.
7514         * tests/test-stat.c (main): Adjust caller.
7515         * tests/test-fstatat.c (main): Likewise.
7516         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7517         Reported by Jim Meyering.
7518
7519 2009-11-09  James Youngman  <jay@gnu.org>
7520
7521         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7522         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7523
7524 2009-11-08  Jim Meyering  <meyering@redhat.com>
7525
7526         utimens: remove invalid futimesat call
7527         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7528         It used the file descriptor of the target file as the DIR_FD
7529         parameter and NULL as the file name.  That caused failure with
7530         errno == EFAULT on FreeBSD-8.0-rc2
7531
7532 2009-11-07  Eric Blake  <ebb9@byu.net>
7533
7534         fflush, freadseek: use fseeko, not fseek
7535         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7536         (clear_ungetc_buffer): Avoid potential problems on large files.
7537         * lib/freadseek.c (freadseek): Likewise.
7538         * modules/freadseek (Depends-on): Add fseeko.
7539         * modules/fseek (configure.ac): Set a witness.
7540         * tests/test-fflush.c (main): Use fseeko.
7541         * tests/test-fpurge.c (fseek): Disable link warning.
7542         * tests/test-freadable.c (fseek): Likewise.
7543         * tests/test-freading.c (fseek): Likewise.
7544         * tests/test-fseeko.c (fseek): Likewise.
7545         * tests/test-ftell.c (fseek): Likewise.
7546         * tests/test-ftello.c (fseek): Likewise.
7547         * tests/test-fwritable.c (fseek): Likewise.
7548         * tests/test-fwriting.c (fseek): Likewise.
7549
7550 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7551
7552         * modules/memchr (Depends-on): Drop getpagesize dependency.
7553
7554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7555
7556         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7557         Reported by Ludovic Courtès.
7558         * build-aux/pmccabe2html: Improve example usage.
7559         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7560
7561 2009-11-06  Jim Meyering  <meyering@redhat.com>
7562
7563         do-release-commit-and-tag: New module.
7564         Automate the release-commit and tag process.
7565         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7566         * modules/do-release-commit-and-tag: New file.
7567         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7568
7569 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7570
7571         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7572         because test-select.c uses inet_pton.
7573
7574 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7575
7576         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7577         GETADDRINFO_LIB.  Bump serial number.
7578         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7579         Suggested by Eric Blake <ebb9@byu.net>.
7580
7581 2009-11-05  Eric Blake  <ebb9@byu.net>
7582
7583         strtod: detect darwin bug
7584         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7585         Reported by Leo Davis.
7586
7587         freopen-safer: new module
7588         * modules/freopen-safer: New module.
7589         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7590         * lib/freopen-safer.c (freopen_safer): New file.
7591         * lib/stdio-safer.h (freopen_safer): New declaration.
7592         * lib/stdio--.h (freopen): New override.
7593         * MODULES.html.sh (File stream based Input/Output): Mention it.
7594         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7595         freopen-safer module.
7596         * doc/posix-functions/stderr.texi (stderr): Likewise.
7597         * doc/posix-functions/stdin.texi (stdin): Likewise.
7598         * doc/posix-functions/stdout.texi (stdout): Likewise.
7599         * modules/freopen-safer-tests: New test.
7600         * tests/test-reopen-safer.c: New file.
7601
7602 2009-11-05  Jim Meyering  <meyering@redhat.com>
7603
7604         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7605         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7606
7607 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7608
7609         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7610
7611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7612
7613         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7614
7615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7616
7617         Fix link error.
7618         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7620
7621 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7622
7623         * tests/test-func.c: Also test value of __func__.
7624
7625 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7626
7627         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7628         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7629
7630 2009-11-05  Bruno Haible  <bruno@clisp.org>
7631
7632         Fix link error.
7633         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7634         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7635         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7636
7637 2009-11-05  Bruno Haible  <bruno@clisp.org>
7638
7639         Tests for module 'inet_pton'.
7640         * modules/inet_pton-tests: New file.
7641         * tests/test-inet_pton.c: New file.
7642
7643 2009-11-05  Bruno Haible  <bruno@clisp.org>
7644
7645         Tests for module 'inet_ntop'.
7646         * modules/inet_ntop-tests: New file.
7647         * tests/test-inet_ntop.c: New file.
7648
7649 2009-11-04  Eric Blake  <ebb9@byu.net>
7650
7651         stdlib-safer: wrap all mkstemp variants
7652         * modules/mkostemp (configure.ac): Set witness.
7653         * modules/mkostemps (configure.ac): Likewise.
7654         * modules/mkstemps (configure.ac): Likewise.
7655         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7656         (mkstemps_safer): Wrap more functions.
7657         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7658         wrapping.
7659         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7660         (mkstemps_safer): Implement the wrappers.
7661
7662         mkstemps, mkostemps: new modules
7663         * modules/mkostemps: New module.
7664         * modules/mkstemps: Likewise.
7665         * lib/mkostemps.c (mkostemps): New file.
7666         * lib/mkstemps.c (mkstemps): Likewise.
7667         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7668         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7670         * modules/stdlib (Makefile.am): Substitute them.
7671         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7672         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7673         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7674         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7675         * MODULES.html.sh (File system functions): Mention them.
7676
7677         tempname: resync from glibc
7678         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7679         same values for __GT_FILE as glibc.  Abort even when assertions
7680         are disabled.
7681         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7682         match its value otherwise.  Allow idempotent inclusion.
7683         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7684         * lib/mkostemp.c (mkostemp): Likewise.
7685         * lib/mkstemp.c (mkstemp): Likewise.
7686         * lib/tmpfile.c (tmpfile): Likewise.
7687         * NEWS: Document this.
7688
7689         utimens: fix use of futimens on older Linux
7690         * lib/utimens.c (fdutimens): Use updated, rather than original,
7691         timespec to avoid bug in older Linux kernel.
7692         Reported by Simon Josefsson.
7693
7694 2009-11-04  Bruno Haible  <bruno@clisp.org>
7695
7696         Make num_processors more flexible and consistent.
7697         * lib/nproc.h (enum nproc_query): New type.
7698         (num_processors): Add a 'query' argument.
7699         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7700         (num_processors): Add a 'query' argument. Test the value of the
7701         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7702         mingw, count the number of CPUs available for the current process.
7703         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7704         Check for sched_getaffinity and sched_getaffinity_np.
7705         * modules/nproc (Depends-on): Add c-ctype, extensions.
7706         * NEWS: Mention the change.
7707
7708 2009-11-03  Bruno Haible  <bruno@clisp.org>
7709
7710         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7711
7712 2009-11-03  Jim Meyering  <meyering@redhat.com>
7713
7714         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7715         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7716         if it is defined.
7717
7718 2009-11-02  Eric Blake  <ebb9@byu.net>
7719
7720         mktime, timegm: share common declaration
7721         * lib/mktime-internal.h: New file.
7722         * lib/mktime.c: Use it rather than open-coding a declaration.
7723         * lib/timegm.c: Likewise.
7724         * modules/mktime (Files): Ship it.
7725         * modules/timegm (Files): Likewise.
7726         Suggested by Bruno Haible.
7727
7728         test-update-copyright: update test to match script changes
7729         * tests/test-update-copyright.sh: Avoid hard-coding perl
7730         location.  Don't update *.bak created by earlier runs.
7731
7732 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7733             Simon Josefsson  <simon@josefsson.org>
7734             Bruno Haible  <bruno@clisp.org>
7735
7736         Fix link error on Solaris 8.
7737         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7738         also in libnsl. Define also INET_PTON_LIB.
7739         * modules/inet_pton (Link): New section.
7740
7741 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7742             Bruno Haible  <bruno@clisp.org>
7743
7744         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7745         * modules/inet_ntop (Link): New section.
7746         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7747
7748 2009-11-02  Eric Blake  <ebb9@byu.net>
7749
7750         maint: avoid compiler warnings in m4 macros
7751         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7752         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7753
7754 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7755
7756         * m4/pmccabe2html.m4: Remove file.
7757         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7758         function.  Change maintainer.
7759         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7760         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7761         Courtès).
7762
7763 2009-10-31  Eric Blake  <ebb9@byu.net>
7764
7765         fseeko: fix m4 regression
7766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7767         regression from 2009-10-27.
7768         Reported by Ralf Wildenhues.
7769
7770 2009-10-31  Jim Meyering  <meyering@redhat.com>
7771
7772         inttostr: aesthetics and improved (compile-time) safety
7773         Define inttype_is_signed rather than inttype_is_unsigned,
7774         since the sole use is via "#if inttype_is_signed".
7775         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7776         inttype_is_unsigned.
7777         * lib/offtostr.c (inttype_is_signed): Likewise.
7778         * lib/uinttostr.c (inttype_is_signed): Likewise.
7779         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7780         * lib/inttostr.c (inttostr): Use verify to cross-check the
7781         inttype_is_signed value and the signedness of the actual type.
7782         * modules/inttostr (Depends-on): Add verify.
7783
7784 2009-10-30  Eric Blake  <ebb9@byu.net>
7785
7786         build: avoid compiler warnings
7787         * lib/fchmodat.c (lchmod): Mark unused variables.
7788         * lib/getopt.c (_getopt_initialize): Likewise.
7789         * lib/mktime.c (__mktime_internal): Provide prototype.
7790         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7791         older gcc that do not understand #pragma GCC diagnostic.
7792         * lib/uinttostr.c (inttype_is_unsigned): Define.
7793         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7794
7795 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7796
7797         stat: fix compilation on AIX
7798         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7799         only see struct stat64.
7800
7801 2009-10-30  Eric Blake  <ebb9@byu.net>
7802
7803         exclude: make more robust
7804         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7805         rather than masking a coding bug.
7806         Suggested by Bruno Haible.
7807
7808 2009-10-30  Jim Meyering  <meyering@redhat.com>
7809
7810         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7811         Rather than putting #!/usr/bin/perl on the first line,
7812         start with a variant of what's recommended by "man perlrun" that
7813         invokes the first "perl" program from your shell's search path.
7814         * build-aux/gitlog-to-changelog: Replace #!... as above.
7815         Add a "Local Variables" perl mode setting.
7816         Prompted by a patch from Ludovic Courtès.
7817         Improved by Eric Blake.
7818         * build-aux/useless-if-before-free: Likewise.
7819         * build-aux/announce-gen: Likewise.
7820         * build-aux/update-copyright: Likewise.
7821
7822 2009-10-29  Eric Blake  <ebb9@byu.net>
7823
7824         filenamecat-lgpl: adjust clients
7825         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7826         filenamecat.
7827         * modules/renameat (Depends-on): Likewise.
7828
7829         filenamecat: split into filenamecat-lgpl
7830         * modules/filenamecat-lgpl: New module.
7831         * modules/filenamecat (Files): Move library-safe files into
7832         filenamecat-lgpl.
7833         (Depends-on): Add filenamecat-lgpl.
7834         (configure.ac): Declare witness.
7835         * lib/filenamecat.h (file_name_concat): Only declare when using
7836         GPL module.
7837         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7838         Move...
7839         * lib/filenamecat-lgpl.c: ...into new file.
7840         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7841         (gl_FILE_NAME_CONCAT): Use it.
7842         * MODULES.html.sh (File system functions): Mention new module.
7843
7844         argp: avoid memory leak
7845         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7846         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7847         base_name, since the latter malloc()s and can call exit().
7848         Leak introduced 2006-07-03.
7849
7850         dirname-lgpl: adjust clients that don't need full dirname
7851         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7852         * modules/filenamecat (Depends-on): Likewise.
7853         * modules/linkat (Depends-on): Likewise.
7854         * modules/mkancesdirs (Depends-on): Likewise.
7855         * modules/mkdir (Depends-on): Likewise.
7856         * modules/openat (Depends-on): Likewise.
7857         * modules/savewd (Depends-on): Likewise.
7858         * modules/rename (Depends-on): Likewise.
7859         (License): Relax license.
7860         * modules/mkdir-tests (Depends-on): Drop progname.
7861         (Makefile.am): Delete unneeded LDADD.
7862         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7863
7864         dirname: split into dirname-lgpl
7865         * modules/dirname-lgpl: New module.
7866         * modules/dirname (Files): Move library-safe files into
7867         dirname-lgpl.
7868         (Depends-on): Add dirname-lgpl.
7869         (configure.ac): Declare witness.
7870         * modules/double-slash-root (License): Relax license.
7871         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7872         module.
7873         * lib/dirname.c (dir_len, mdir_name): Move...
7874         * lib/dirname-lgpl.c: ...into new file.
7875         * lib/basename.c (last_component, base_len): Move...
7876         * lib/basename-lgpl.c: ...into new file.
7877         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7878         (gl_DIRNAME): Use it.
7879         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7880         Mention new module.
7881         * modules/dirname-tests (Depends-on): Add progname.
7882         * tests/test-dirname.c (program_name): Delete.
7883
7884         mkdir: make safe for libraries
7885         * modules/mkdir (Depends-on): Drop xalloc.
7886         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7887         exit.
7888
7889         tests: avoid some compiler warnings
7890         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7891         literals.
7892         * tests/test-memchr.c (main): Avoid type mismatch.
7893         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7894         * tests/test-base64.c (main): Likewise.
7895         * tests/test-getdelim.c (main): Likewise.
7896         * tests/test-gethostname.c (main): Likewise.
7897         * tests/test-getline.c (main): Likewise.
7898         * tests/test-netinet_in.c (main): Likewise.
7899         * tests/test-select.c (open_server_socket, main): Likewise.
7900         * tests/test-select-stdin.c (main): Likewise.
7901         * tests/test-sockets.c (main): Likewise.
7902         * tests/test-strsignal.c (main): Likewise.
7903         * tests/test-sys_select.c (main): Likewise.
7904         * tests/test-sys_socket.c (main): Likewise.
7905         * tests/test-u64.c (main): Likewise.
7906         * tests/test-xfprintf-posix.c (main): Likewise.
7907         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7908
7909         sockets: avoid compiler warning
7910         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7911
7912         maint: detect usage(1) and other suspicious exits
7913         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7914
7915 2009-10-29  Jim Meyering  <meyering@redhat.com>
7916
7917         timespec: long-to-int truncation could make timespec_cmp malfunction
7918         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7919         a multiple of 2^32 nanoseconds as no difference.
7920
7921 2009-10-28  Jim Meyering  <meyering@redhat.com>
7922
7923         fprintftime: wrap macro code argument in "do {...} while(0)"
7924         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7925         cpy macro must be a statement that can be followed by a semicolon.
7926         Now that the else clause contains a comment and is hence longer
7927         than one line, I require curly braces.  That in turn requires
7928         that we wrap this code block in the standard do...while(0).
7929
7930         fprintftime: remove stray semicolon from previous change
7931         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7932
7933         fprintftime: avoid a warning about ignored fwrite return value
7934         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7935         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7936         that is unsafe.
7937         * modules/fprintftime (Depends-on): Add ignore-value.
7938
7939         exclude: avoid an unwarranted warning
7940         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7941
7942 2009-10-27  Eric Blake  <ebb9@byu.net>
7943
7944         fseek: avoid compilation failure when fflush is replaced
7945         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7946         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7947         module is in use.
7948         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7949         module is not in use; since REPLACE_FSEEK worked otherwise.
7950         (GNULIB_FTELLO): Likewise for ftell.
7951         Reported by Ian Beckwith and others.
7952
7953 2009-10-27  Bruno Haible  <bruno@clisp.org>
7954
7955         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7956         Reported by Jim Meyering.
7957
7958 2009-10-27  Jim Meyering  <jim@meyering.net>
7959             Bruno Haible  <bruno@clisp.org>
7960
7961         Avoid warning despite dropping the return value of fwrite.
7962         * lib/unicodeio.c: Include ignore-value.h.
7963         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7964         * modules/unicodeio (Depends-on): Add ignore-value.
7965
7966 2009-10-26  Eric Blake  <ebb9@byu.net>
7967
7968         areadlinkat: fix fallback path
7969         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7970         pointer and zero.
7971
7972 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7973
7974         Use a better IO block size for modern systems
7975         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7976         * lib/md2.c: Likewise.
7977         * lib/md4.c: Likewise.
7978         * lib/md5.c: Likewise.
7979         * lib/sha1.c: Likewise.
7980         * lib/sha256.c: Likewise.
7981         * lib/sha512.c: Likewise.
7982
7983 2009-10-22  Eric Blake  <ebb9@byu.net>
7984
7985         tests: avoid several compiler warnings
7986         * tests/test-getcwd.c (main): Avoid buffer underflow.
7987         * tests/test-getdate.c (main): String literals are not safe with
7988         putenv, so use setenv.  Declare unused argument.
7989         * modules/getdate-tests (Depends-on): Add setenv.
7990         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7991         problems with string literals in char *.
7992         * tests/test-hash.c (main): Avoid shadowing declaration.
7993         (insert_new): Treat string literals as char const *.
7994         * tests/test-getopt.h (test_getopt): Likewise.
7995         (getopt_loop): Alter types to minimize casting elsewhere.
7996         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7997         (test_getopt_long_posix): Likewise.
7998         (do_getopt_long): Add wrapper to minimize casting.
7999         * tests/test-atexit.c (clear_temp_file): Use void.
8000         * tests/test-areadlink-with-size.c (main): Declare unused
8001         arguments.
8002         * tests/test-areadlink.c (main): Likewise.
8003         * tests/test-areadlinkat-with-size.c (main): Likewise.
8004         * tests/test-areadlinkat.c (main): Likewise.
8005         * tests/test-canonicalize-lgpl.c (main): Likewise.
8006         * tests/test-canonicalize.c (main): Likewise.
8007         * tests/test-dirent-safer.c (main): Likewise.
8008         * tests/test-dirname.c (main): Likewise.
8009         * tests/test-dup2.c (main): Likewise.
8010         * tests/test-fchdir.c (main): Likewise.
8011         * tests/test-fcntl-h.c (main): Likewise.
8012         * tests/test-fcntl-safer.c (main): Likewise.
8013         * tests/test-fdopendir.c (main): Likewise.
8014         * tests/test-fdutimensat.c (main): Likewise.
8015         * tests/test-fflush.c (main): Likewise.
8016         * tests/test-filenamecat.c (main): Likewise.
8017         * tests/test-filevercmp.c (main): Likewise.
8018         * tests/test-fopen-safer.c (main): Likewise.
8019         * tests/test-fopen.c (main): Likewise.
8020         * tests/test-fpending.c (main): Likewise.
8021         * tests/test-fpurge.c (main): Likewise.
8022         * tests/test-freading.c (main): Likewise.
8023         * tests/test-fstatat.c (main): Likewise.
8024         * tests/test-fsync.c (main): Likewise.
8025         * tests/test-futimens.c (main): Likewise.
8026         * tests/test-getndelim2.c (main): Likewise.
8027         * tests/test-gettimeofday.c (main): Likewise.
8028         * tests/test-getopt.c (main): Likewise.
8029         * tests/test-i-ring.c (main): Likewise.
8030         * tests/test-inttypes.c (main): Likewise.
8031         * tests/test-link.c (main): Likewise.
8032         * tests/test-lstat.c (main): Likewise.
8033         * tests/test-math.c (main): Likewise.
8034         * tests/test-md5.c (main): Likewise.
8035         * tests/test-memchr2.c (main): Likewise.
8036         * tests/test-memrchr.c (main): Likewise.
8037         * tests/test-mkdir.c (main): Likewise.
8038         * tests/test-mkdirat.c (main): Likewise.
8039         * tests/test-mkfifoat.c (main): Likewise.
8040         * tests/test-open.c (main): Likewise.
8041         * tests/test-openat-safer.c (main): Likewise.
8042         * tests/test-openat.c (main): Likewise.
8043         * tests/test-quotearg.c (main): Likewise.
8044         * tests/test-rawmemchr.c (main): Likewise.
8045         * tests/test-readlink.c (main): Likewise.
8046         * tests/test-remove.c (main): Likewise.
8047         * tests/test-rename.c (main): Likewise.
8048         * tests/test-renameat.c (main): Likewise.
8049         * tests/test-rmdir.c (main): Likewise.
8050         * tests/test-sha1.c (main): Likewise.
8051         * tests/test-signal.c (main): Likewise.
8052         * tests/test-sigaction.c (main): Likewise.
8053         * tests/test-stat.c (main): Likewise.
8054         * tests/test-stat-time.c (main): Likewise.
8055         * tests/test-stddef.c (main): Likewise.
8056         * tests/test-stdint.c (main): Likewise.
8057         * tests/test-stdio.c (main): Likewise.
8058         * tests/test-stdlib.c (main): Likewise.
8059         * tests/test-strchrnul.c (main): Likewise.
8060         * tests/test-strerror.c (main): Likewise.
8061         * tests/test-string.c (main): Likewise.
8062         * tests/test-strtod.c (main): Likewise.
8063         * tests/test-strverscmp.c (main): Likewise.
8064         * tests/test-symlink.c (main): Likewise.
8065         * tests/test-symlinkat.c (main): Likewise.
8066         * tests/test-sys_stat.c (main): Likewise.
8067         * tests/test-sys_time.c (main): Likewise.
8068         * tests/test-time.c (main): Likewise.
8069         * tests/test-unistd.c (main): Likewise.
8070         * tests/test-unlink.c (main): Likewise.
8071         * tests/test-unlinkat.c (main): Likewise.
8072         * tests/test-utimens.c (main): Likewise.
8073         * tests/test-utimensat.c (main): Likewise.
8074         * tests/test-version-etc.c (main): Likewise.
8075         * tests/test-wchar.c (main): Likewise.
8076         * tests/test-wctype.c (main): Likewise.
8077         * tests/test-xprintf-posix.c (main): Likewise.
8078         * tests/test-posixtm.c (main): Likewise.
8079         (STREQ): Delete unused macro.
8080         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8081         shadowed variables.
8082         * tests/test-memchr.c (main): Likewise.
8083
8084 2009-10-21  Eric Blake  <ebb9@byu.net>
8085
8086         areadlinkat: avoid failure on older glibc
8087         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8088         rather than mis-comparing 0 against FUNC_RESULT of char*.
8089
8090 2009-10-21  Bruno Haible  <bruno@clisp.org>
8091
8092         * modules/stpncpy (License): Relicense under LGPLv2+.
8093         Reported by David Lutterkort <lutter@redhat.com>.
8094
8095 2009-10-20  Eric Blake  <ebb9@byu.net>
8096
8097         utimensat: work around Solaris 9 bug
8098         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8099         has trailing slash bugs.
8100         * tests/test-lutimens.h (test_lutimens): Enhance test.
8101         * tests/test-utimens.h (test_utimens): Likewise.
8102         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8103         * doc/posix-functions/utimes.texi (utimes): Likewise.
8104         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8105         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8106         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8107         * doc/posix-functions/futimens.texi (futimens): Likewise.
8108
8109         fdutimensat: new module
8110         * modules/fdutimensat: New file.
8111         * lib/fdutimensat.c (fdutimensat): Likewise.
8112         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8113         * MODULES.html.sh (File system functions): Mention module.
8114         * modules/fdutimensat-tests: New test.
8115         * tests/test-fdutimensat.c: Likewise.
8116
8117         doc: regenerate INSTALL
8118         * doc/INSTALL: Reflect recent autoconf update.
8119         * doc/INSTALL.ISO: Likewise.
8120         * doc/INSTALL.UTF-8: Likewise.
8121
8122 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8123
8124         acl: warn if ACL support is not detected
8125         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8126
8127 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8128
8129         * lib/nproc.h: Add extern "C" block for C++.
8130
8131 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8132             Bruno Haible  <bruno@clisp.org>
8133
8134         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8135         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8136         * doc/posix-functions/isalpha.texi: Likewise.
8137         * doc/posix-functions/isblank.texi: Likewise.
8138         * doc/posix-functions/iscntrl.texi: Likewise.
8139         * doc/posix-functions/isdigit.texi: Likewise.
8140         * doc/posix-functions/isgraph.texi: Likewise.
8141         * doc/posix-functions/islower.texi: Likewise.
8142         * doc/posix-functions/isprint.texi: Likewise.
8143         * doc/posix-functions/ispunct.texi: Likewise.
8144         * doc/posix-functions/isspace.texi: Likewise.
8145         * doc/posix-functions/isupper.texi: Likewise.
8146         * doc/posix-functions/isxdigit.texi: Likewise.
8147
8148 2009-10-18  Bruno Haible  <bruno@clisp.org>
8149
8150         Tests for module 'isblank'.
8151         * modules/isblank-tests: New file.
8152         * tests/test-isblank.c: New file.
8153
8154         New module 'isblank'.
8155         * lib/isblank.c: New file.
8156         * m4/isblank.m4: New file.
8157         * modules/isblank: New file.
8158         * doc/posix-functions/isblank.texi: Mention the new module.
8159
8160 2009-10-18  Bruno Haible  <bruno@clisp.org>
8161
8162         New module 'ctype'.
8163         * lib/ctype.in.h: New file.
8164         * m4/ctype.m4: New file.
8165         * modules/ctype: New file.
8166         * doc/posix-headers/ctype.texi: Mention the new module.
8167
8168 2009-10-18  Jim Meyering  <meyering@redhat.com>
8169
8170         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8171         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8172         right after its initialization, rather than farther down.
8173         Keeping these in close proximity makes it easier to ensure
8174         that each such variable is initialized.  E.g.,
8175
8176             LIB_CLOCK_GETTIME=
8177             AC_SUBST([LIB_CLOCK_GETTIME])
8178
8179         This change also increments these serial numbers.
8180         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8181         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8183
8184 2009-10-18  Bruno Haible  <bruno@clisp.org>
8185
8186         Don't let environment variables perturb build.
8187         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8188         (gl_PREREQ_GETHRXTIME): ... not here.
8189
8190 2009-10-18  Bruno Haible  <bruno@clisp.org>
8191
8192         Avoid symlink attack in localcharset module.
8193         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8194         (O_NOFOLLOW): Define fallback.
8195         (get_charset_aliases): Don't open the file if it is a symbolic link.
8196         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8197         gl_FCNTL_H.
8198         (gl_FCNTL_H): Require it.
8199         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8200         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8201         Reported by Fergal Glynn <fglynn@veracode.com>.
8202
8203 2009-10-18  Bruno Haible  <bruno@clisp.org>
8204
8205         Implement nproc for mingw.
8206         * lib/nproc.c: Include <windows.h>
8207         (num_processors): On native Windows platforms, try GetSystemInfo.
8208
8209 2009-10-18  Bruno Haible  <bruno@clisp.org>
8210
8211         Implement nproc for IRIX.
8212         * lib/nproc.c: Include <sys/sysmp.h>.
8213         (num_processors): On IRIX systems, try sysmp.
8214         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8215
8216 2009-10-18  Bruno Haible  <bruno@clisp.org>
8217
8218         Implement nproc for HP-UX.
8219         * lib/nproc.c: Include <sys/pstat.h>
8220         (num_processors): On HP-UX systems, try pstat_getdynamic.
8221         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8222         pstat_getdynamic.
8223
8224 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8225             Bruno Haible  <bruno@clisp.org>
8226
8227         Implement nproc for NetBSD, OpenBSD.
8228         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8229         (ARRAY_SIZE): New macro.
8230         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8231         * m4/nproc.m4: New file.
8232         * modules/nproc (Files): Add m4/nproc.m4.
8233         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8234         (Makefile.am): Instead, augment lib_SOURCES.
8235
8236 2009-10-18  Bruno Haible  <bruno@clisp.org>
8237
8238         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8239         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8240         sys/param.h.
8241
8242 2009-10-16  Eric Blake  <ebb9@byu.net>
8243
8244         utimensat: new module
8245         * modules/utimensat: New file.
8246         * lib/utimensat.c (utimensat): Likewise.
8247         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8248         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8249         so we can work around Linux bugs.
8250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8251         * modules/sys_stat (Makefile.am): Substitute them.
8252         * lib/sys_stat.in.h (utimensat): Declare it.
8253         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8254         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8255         * modules/utimensat-tests: New test.
8256         * tests/test-utimensat.c: Likewise.
8257
8258         utimens: let lutimens work on non-symlinks
8259         * lib/utimens.c (lutimens): Fall back to utimens rather than
8260         failing with ENOSYS, when file is not a symlink.
8261         (utimens): Reduce redirection.
8262         * tests/test-lutimens.h (test_lutimens): Update test to cover
8263         non-symlinks.
8264         * tests/test-utimens.h (test_utimens): Update test to cover
8265         symlinks.
8266         * tests/test-utimens.c (main): Update caller.
8267
8268         utimens: cache whether utimensat syscall works
8269         * lib/utimens.c (utimensat_works_really): New cache variable.
8270         (fdutimens, lutimens): Use it to avoid failing syscall.
8271
8272         test-stat-time, test-utimens: improve portability
8273         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8274         ext4 on alpha, and for cygwin.
8275         * tests/test-utimens-common.h: New file.
8276         (nap): Factor delays into single function.
8277         * tests/test-lutimens.h (test_lutimens): Use new header.
8278         * tests/test-futimens.h (test_futimens): Likewise.
8279         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8280         timestamps to occur from same machine, as was done previously for
8281         test_utimens.
8282         * modules/utimens-tests (Files): Ship new file.
8283         * modules/futimens-tests (Files): Likewise.
8284         Reported in part by Jim Meyering.
8285
8286         sys_stat: sort replacement declarations
8287         * lib/sys_stat.in.h: Sort declarations.
8288         * lib/futimens.c (futimens): Fix typo.
8289
8290 2009-10-15  Jim Meyering  <meyering@redhat.com>
8291
8292         don't let environment settings perturb build
8293         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8294         could cause a configure-time and/or build-time malfunction.
8295         Typically, a configure-time function-in-library test is performed
8296         via code like this:
8297
8298           LIB_VAR=
8299           AC_SUBST([LIB_VAR])
8300           prefix_saved_LIBS=$LIBS
8301             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8302                        [test "$ac_cv_search_FUNC" = "none required" ||
8303                         LIB_VAR=$ac_cv_search_FUNC])
8304           LIBS=$prefix_saved_LIBS
8305
8306         However, in each of the files affected by this change, the LIB_VAR=
8307         initialization was omitted.  Thus, when set in the environment, its
8308         value would propagate into generated Makefiles when FUNC is not found
8309         in LIB_NAME.
8310         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8311         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8313
8314 2009-10-14  Eric Blake  <ebb9@byu.net>
8315
8316         fchdir: avoid infinite recursion in mingw
8317         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8318         recursing.
8319
8320         test-stat-time: port to mingw
8321         * tests/test-stat-time.c (force_unlink): Return a value.
8322         (test_ctime) [W32]: Fix compilation error.
8323         (nap): Don't call usleep with too large an argument.  Use
8324         force_unlink.
8325         * doc/pastposix-functions/usleep.texi (usleep): Document the
8326         portability issue.
8327
8328 2009-10-13  Jim Meyering  <meyering@redhat.com>
8329
8330         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8331         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8332         * modules/pipe-filter-ii: Likewise.
8333         * modules/sys_socket-tests: Likewise.
8334         * modules/tsearch-tests: Likewise.
8335         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8336         (check): Depend on it.
8337
8338 2009-10-12  Eric Blake  <ebb9@byu.net>
8339
8340         utimens-tests: port to NFS file systems
8341         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8342         comparisons to avoid spurious failures from timestamp drift
8343         between NFS machines.
8344
8345 2009-10-12  Eric Blake  <ebb9@byu.net>
8346
8347         stat-time-tests: minor cleanups
8348         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8349         * tests/test-stat-time.c (nap): Separate assignment from call.
8350         Suggested by Paolo Bonzini and Bruno Haible.
8351
8352         sys_stat: guarantee struct timespec
8353         * lib/sys_stat.in.h (includes): Always include <time.h>
8354         * modules/sys_stat (Depends-on): Add time.
8355         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8356         mode_t permission values.
8357         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8358         get at subsecond timestamps.
8359
8360 2009-10-10  Eric Blake  <ebb9@byu.net>
8361
8362         futimens: new module
8363         * modules/futimens: New file.
8364         * lib/futimens.c (futimens): Likewise.
8365         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8366         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8367         we can work around Linux bugs.
8368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8369         * modules/sys_stat (Makefile.am): Substitute them.
8370         * lib/sys_stat.in.h (futimens): Declare it.
8371         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8372         * doc/posix-functions/futimens.texi (futimens): Likewise.
8373         * modules/futimens-tests: New test.
8374         * tests/test-futimens.c: Likewise.
8375
8376         utimens: introduce fdutimens
8377         * lib/utimens.h (fdutimens): New prototype.
8378         * lib/utimens.c (gl_futimens): Move guts...
8379         (fdutimens): ...to new interface.
8380         * tests/test-utimens.c (do_fdutimens): Use it.
8381
8382         utimens: add UTIME_NOW and UTIME_OMIT support
8383         * lib/utimens.c (validate_timespec, update_timespec): New helper
8384         functions.
8385         (gl_futimens, lutimens): Use them.
8386         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8387         stdbool, sys_stat.
8388         (Link): Mention resulting library dependency.
8389         * modules/utimecmp (Link): Likewise.
8390         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8391         (Makefile.am): Pick up library dependency.
8392         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8393         definition.
8394         * tests/test-sys_stat.c: Test the definitions.
8395         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8396         * NEWS: Document library dependency.
8397
8398         utimecmp: support symlink timestamps
8399         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8400         hashing when possible.  Use pathconf when available.
8401         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8402         * modules/utimecmp (Depends-on): Add lstat.
8403
8404         utimens: add lutimens interface
8405         * lib/utimens.c (lutimens): New function.
8406         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8407         * lib/utimens.h (lutimens): Declare new interface.
8408         * tests/test-utimens.c (main): Enhance test.
8409         * tests/test-lutimens.h (test_lutimens): New file.
8410         * modules/utimens-tests (Files): Distribute it.
8411         (Depends-on): Add symlink.
8412         (configure.ac): Check for usleep.
8413
8414         utimens: validate futimens usage
8415         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8416         fewer syscalls on failure later on.  Avoid compiler warning on
8417         mingw.
8418         * modules/utimens (Depends-on): Add dup2.
8419
8420         utimens: add test
8421         * modules/utimens-tests: New test.
8422         * tests/test-utimens.h: New file.
8423         * tests/test-futimens.h: Likewise.
8424         * tests/test-utimens.c: Likewise.
8425
8426         doc: mention timestamp portability issues
8427         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8428         instead.
8429         * doc/posix-functions/utime.texi (utime): Likewise.
8430         * doc/posix-functions/utimes.texi (utimes): Likewise.
8431         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8432         instead.
8433         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8434         module.
8435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8436         Mention weakness with symlink timestamps.
8437         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8438         to utimensat/futimens instead.
8439         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8440
8441         test-dup2: enhance test
8442         * tests/test-dup2.c (main): Also check AT_FDCWD.
8443
8444         test-stat-time: avoid more spurious failures
8445         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8446         xfs; and avoid race if the two timestamps cross quantization edge.
8447
8448         relocatable: prefer 'file system' over 'filesystem'
8449         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8450         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8451         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8452         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8453         * lib/relocatable.c (compute_curr_prefix): Likewise.
8454
8455 2009-10-10  Jim Meyering  <meyering@redhat.com>
8456
8457         stat-time-tests: check for the usleep function
8458         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8459
8460 2009-10-10  Bruno Haible  <bruno@clisp.org>
8461
8462         * modules/xnanosleep: Put the Link section after the Include section.
8463
8464 2009-10-09  Eric Blake  <ebb9@byu.net>
8465
8466         dup2: work around FreeBSD 6.1 bug
8467         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8468         * doc/posix-functions/dup2.texi (dup2): Document it.
8469         Reported by Nelson H. F. Beebe and Jim Meyering.
8470
8471         test-stat-time: port to buggy NFS clients
8472         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8473         (test_ctime): Also skip test if mtime and ctime are skewed.
8474
8475         maint: prefer 'file system' over 'filesystem'
8476         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8477         * doc/posix-functions/lstat.texi (lstat): Likewise.
8478         * lib/file-has-acl.c (file_has_acl): Likewise.
8479         * lib/fwriteerror.c [TEST]: Likewise.
8480         * tests/test-areadlink.h (test_areadlink): Likewise.
8481         * tests/test-areadlinkat-with-size.c (main): Likewise.
8482         * tests/test-areadlinkat.c (main): Likewise.
8483         * tests/test-canonicalize-lgpl.c (main): Likewise.
8484         * tests/test-canonicalize.c (main): Likewise.
8485         * tests/test-fstatat.c (main): Likewise.
8486         * tests/test-linkat.c (main): Likewise.
8487         * tests/test-lstat.h (test_lstat_func): Likewise.
8488         * tests/test-mkdir.h (test_mkdir): Likewise.
8489         * tests/test-readlink.h (test_readlink): Likewise.
8490         * tests/test-remove.c (main): Likewise.
8491         * tests/test-rename.h (test_rename): Likewise.
8492         * tests/test-renameat.c (main): Likewise.
8493         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8494         * tests/test-symlink.h (test_symlink): Likewise.
8495         * tests/test-symlinkat.c (main): Likewise.
8496         * tests/test-unlink.h (test_unlink_func): Likewise.
8497         * tests/test-unlinkat.c (main): Likewise.
8498
8499         maint: make realtime library usage explicit
8500         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8501         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8502         * modules/settime (Link): Likewise.
8503         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8504
8505         test-stat-time: speed up execution
8506         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8507         warning on mingw.
8508         (nap): New helper function.
8509         (prepare_test): Use it to reduce sleep time.
8510         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8511         execution.
8512         * modules/stat-time-tests (configure.ac): Check for usleep.
8513
8514 2009-10-09  Jim Meyering  <meyering@redhat.com>
8515
8516         selinux-h: always use getfilecon wrappers
8517         * lib/getfilecon.c: New file.
8518         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8519         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8520         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8521         (fgetfilecon): Provide a stub.
8522         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8523         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8524         file unconditionally.
8525         When <selinux/selinux.h> is found, arrange to use wrappers.
8526         * modules/selinux-h (Files): Add getfilecon.c.
8527         (Makefile.am): Substitute include-next-related bits
8528         into the now-always-generated selinux/selinux.h file.
8529         * doc/glibc-functions/lgetfilecon.texi: New file.
8530         * doc/glibc-functions/fgetfilecon.texi: New file.
8531         * doc/glibc-functions/getfilecon.texi: New file.
8532         * doc/glibc-functions/getfilecon-desc.texi: New file.
8533         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8534         which to pull in the new files.
8535         * MODULES.html.sh (Misc): Add selinux-h.
8536
8537 2009-10-08  Jim Meyering  <meyering@redhat.com>
8538
8539         unistd: fix comment typo
8540         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8541
8542 2009-10-08  Eric Blake  <ebb9@byu.net>
8543
8544         areadlink: use SIZE_MAX consistently
8545         * modules/areadlink (Depends-on): Add stdint.
8546         * modules/areadlink-with-size (Depends-on): Likewise.
8547         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8548         gives NULL; drop sys/types, since unistd gives size_t; and add
8549         stdint for SIZE_MAX.
8550         (SIZE_MAX): Rely on headers.
8551         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8552         and add stdint.
8553         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8554         (SIZE_MAX): Likewise.
8555         (INITIAL_BUF_SIZE): Turn into enum.
8556         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8557
8558 2009-10-08  Jim Meyering  <meyering@redhat.com>
8559
8560         areadlinkat: avoid compilation failure
8561         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8562         Fix typo in comment.
8563
8564 2009-10-07  Eric Blake  <ebb9@byu.net>
8565
8566         areadlinkat-with-size: new module
8567         * modules/areadlinkat-with-size: New module.
8568         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8569         * lib/areadlink.h (areadlinkat): Declare it.
8570         * MODULES.html.sh (File system functions): Mention it.
8571         * modules/areadlinkat-with-size-tests: New test.
8572         * tests/test-areadlinkat-with-size.c: New file.
8573
8574         xreadlinkat: new module
8575         * modules/xreadlinkat: New module.
8576         * lib/xreadlinkat.c (xreadlinkat): New file.
8577         * lib/xreadlink.h (xreadlinkat): Declare it.
8578         * MODULES.html.sh (File system functions): Mention it.
8579
8580         areadlinkat: new module
8581         * lib/at-func.c (FUNC_FAIL): New define.
8582         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8583         * modules/areadlinkat: New module.
8584         * lib/linkat.c (areadlinkat): Move...
8585         * lib/areadlinkat.c (areadlinkat): ...to new file.
8586         * lib/areadlink.h (areadlinkat): Declare it.
8587         * modules/linkat (Depends-on): Add areadlinkat.
8588         * MODULES.html.sh (File system functions): Mention it.
8589         * modules/areadlinkat-tests: New test.
8590         * tests/test-areadlinkat.c: New file.
8591
8592         areadlink, areadlink-with-size: add tests
8593         * modules/areadlink-tests: New test.
8594         * modules/areadlink-with-size-tests: Likewise.
8595         * tests/test-areadlink.h: New file.
8596         * tests/test-areadlink.c: Likewise.
8597         * tests/test-areadlink-with-size.c: Likewise.
8598
8599         maint: minor cleanups
8600         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8601         _UNUSED_PARAMETER_ instead.
8602         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8603         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8604         * modules/linkat-tests (Files): Distribute test-link.h.
8605
8606         openat, utimens: whitespace cleanup
8607         * lib/openat.c: Prefer space throughout, rather than mix of 8
8608         spaces vs. tabs.
8609         * lib/at-func.c: Likewise.
8610         * lib/utimens.c: Likewise.
8611
8612         openat: avoid using wrong fd
8613         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8614         working directory chooses same fd.
8615         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8616
8617         mkdir, mkdirat: fix cygwin 1.5.x bug
8618         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8619         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8620         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8621         bug.
8622         (gl_PREREQ_MKDIR): Delete unused macro.
8623         * modules/mkdir (Files): Track file rename.
8624         (configure.ac): Update macro name.
8625         * modules/openat (Depends-on): Add mkdir.
8626         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8627
8628         mkdir, mkdirat: add tests
8629         * modules/mkdir-tests: New test.
8630         * tests/test-mkdir.h: New file.
8631         * tests/test-mkdir.c: Likewise.
8632         * tests/test-mkdirat.c: Likewise.
8633         * modules/openat-tests (Files): Add new files.
8634         (Makefile.am): Run new test.
8635
8636 2009-10-06  Eric Blake  <ebb9@byu.net>
8637
8638         doc: tweak *at function documentation
8639         * doc/posix-functions/faccessat.texi (faccessat): Mention
8640         known issue with replacement.
8641         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8642         * doc/posix-functions/linkat.texi (linkat): Likewise.
8643         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8644         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8645         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8646         * doc/posix-functions/renameat.texi (renameat): Likewise.
8647         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8648
8649         openat: fix GNU/Hurd bug in unlinkat
8650         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8651         broken.
8652         * doc/posix-functions/unlink.texi (unlink): Document this.
8653         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8654
8655         fdopendir: fix GNU/Hurd bug
8656         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8657         allowing non-directory fds.
8658         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8660         * modules/dirent (Makefile.am): Substitute it.
8661         * lib/dirent.in.h (fdopendir): Declare replacement.
8662         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8663         * tests/test-fdopendir.c (main): Test something other than
8664         /dev/null, since on Hurd that behaves like a directory.
8665
8666         test-symlink: port to GNU/Hurd
8667         * tests/test-symlink.h (test_symlink): Relax expected errno.
8668
8669         doc: tweak more cygwin information
8670         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8671         now compatible with glibc.
8672         * doc/posix-functions/getopt.texi (getopt): Likewise.
8673
8674         getopt-gnu: add another test
8675         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8676         guarantee behavior relied on by m4.
8677         * tests/test-getopt.c (main): Use it.
8678         * modules/getopt-posix-tests (Depends-on): Add setenv.
8679         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8680
8681         getopt: fix compilation on darwin
8682         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8683         include.
8684         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8685         Reported by Ludovic Courtès.
8686
8687 2009-10-06  Bruno Haible  <bruno@clisp.org>
8688
8689         * modules/size_max (Description): Discourage its use.
8690         Reported by Simon Josefsson.
8691
8692 2009-10-06  Jim Meyering  <meyering@redhat.com>
8693
8694         linkat: avoid compilation failure
8695         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8696
8697 2009-10-05  Eric Blake  <ebb9@byu.net>
8698
8699         linkat: support Linux 2.6.17
8700         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8701         linkat on Linux, but allow cache variable override.
8702         * lib/linkat.c (rpl_linkat): Define override.
8703         * modules/linkat (Depends-on): Add symlinkat.
8704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8705         * modules/unistd (Makefile.am): Substitute it.
8706         * lib/unistd.in.h (linkat): Declare replacement.
8707         Reported by Pádraig Brady.
8708
8709         quotearg: port test to systems with C.UTF-8 locale
8710         * tests/test-quotearg.c (struct result_strings): Add another
8711         member, differentiating between C.ASCII and C.UTF-8 handling.
8712         (compare_strings): Add parameter.
8713         (main): Adjust all callers.
8714
8715         getopt: avoid clash with FreeBSD _getopt_internal
8716         * lib/getopt.in.h (_getopt_internal): Override the name.
8717         * lib/getopt_int.h (includes): Pick up any overrides.
8718         Reported by Reuben Thomas.
8719
8720         hash: allow C89 compilation
8721         * lib/hash.c (check_tuning): Move declaration before statement.
8722         Reported by Reuben Thomas.
8723
8724 2009-10-05  Karl Berry  <karl@gnu.org>
8725
8726         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8727
8728 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8729             Bruno Haible  <bruno@clisp.org>
8730
8731         * lib/uname.c (uname): Use a table-driven algorithm to compute
8732         Windows NT versions.
8733
8734 2009-10-04  Bruno Haible  <bruno@clisp.org>
8735
8736         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8737         program_invocation_short_name.
8738         * modules/progname (configure.ac): Test for presence of
8739         program_invocation_short_name.
8740         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8741
8742 2009-10-04  Bruno Haible  <bruno@clisp.org>
8743
8744         * lib/progname.c (set_program_name): Fix comment.
8745         Reported by Jim Meyering.
8746
8747 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8748             Bruno Haible  <bruno@clisp.org>
8749
8750         * lib/uname.c: Include <string.h>.
8751         (uname): Do only one call to GetVersionEx in the common case.
8752
8753 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8754             Bruno Haible  <bruno@clisp.org>
8755
8756         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8757         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8758         (uname): Add support for Windows CE and various non-x86 CPU types.
8759
8760 2009-10-03  Bruno Haible  <bruno@clisp.org>
8761
8762         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8763         invocation to tests/configure.ac.
8764         Reported by Ian Beckwith <ianb@erislabs.net>.
8765
8766 2009-10-02  Eric Blake  <ebb9@byu.net>
8767
8768         fchdir: avoid compiler warning
8769         * lib/fchdir.c (canonicalize_file_name)
8770         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8771
8772         test-open: support mingw errno values
8773         * tests/test-open.h (test_open): Relax test.
8774         * tests/test-fopen.h (test_fopen): Likewise.
8775         * tests/test-openat-safer.c (main): Likewise.
8776
8777         open: fix opening directory on mingw
8778         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8779
8780         test-open: on GNU/Hurd, /dev/null is a directory
8781         * tests/test-fopen.h (main): Rename...
8782         (test_fopen): ...to this.  Use a guaranteed non-directory when
8783         confirming open behavior on trailing slash.
8784         * tests/test-openat-safer.c (main): Likewise.
8785         * tests/test-open.h (main): Likewise....
8786         (test_open): ...to this.
8787         * tests/test-fopen.c (main): Adjust caller.
8788         * tests/test-fopen-safer.c (main): Likewise.
8789         * tests/test-open.c (main): Likewise.
8790         * tests/test-fcntl-safer.c (main): Likewise.
8791         Reported by Samuel Thibault.
8792
8793         rename, fchdir: don't ignore chdir failure
8794         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8795         * lib/rename.c (rpl_rename) [W32]: Likewise.
8796         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8797         an empty destination directory if source cannot be renamed,
8798         although there is still possibility for failure.
8799         * doc/posix-functions/rename.texi (rename): Document the race.
8800         Reported by Jim Meyering.
8801
8802         maint: cleanup whitespace in recent commits
8803         * lib/rename.c (rpl_rename): Remove tabs.
8804         * tests/test-link.h (test_link): Likewise.
8805         * lib/fchdir.c (get_name): Likewise.
8806         Reported by Jim Meyering.
8807
8808 2009-10-02  Ben Pfaff  <blp@gnu.org>
8809
8810         relocatable-prog-wrapper: Add missing dependency on
8811         double-slash-root.
8812         * modules/relocatable-prog-wrapper: Add dependency.
8813         Reported by Ian Beckwith <ianb@erislabs.net>.
8814
8815 2009-10-02  Eric Blake  <ebb9@byu.net>
8816
8817         renameat: fix Solaris bugs
8818         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8819         needed fixing.
8820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8821         * modules/stdio (Makefile.am): Substitute it.
8822         * lib/stdio.in.h (renameat): Declare replacement.
8823         * lib/renameat.c (rpl_renameat): Implement fix.
8824
8825         renameat: new module
8826         * modules/renameat: New file.
8827         * lib/renameat.c (renameat): Likewise.
8828         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8830         * modules/stdio (Makefile.am): Substitute them.
8831         * lib/stdio.in.h (renameat): Declare it.
8832         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8833         * doc/posix-functions/renameat.texi (renameat): Likewise.
8834         * modules/renameat-tests: New test.
8835         * tests/test-renameat.c: Likewise.
8836
8837         rename: fix mingw bugs
8838         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8839         directory overwrite bugs.
8840
8841         rename: fix another cygwin 1.5 bug
8842         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8843         checks.
8844         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8845         unnecessary cygwin workarounds.  Also work around bug with moving
8846         full directory onto an empty one.
8847         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8848
8849         rename-dest-slash: merge into rename module
8850         * modules/rename-dest-slash (Status): Mark obsolete.
8851         (Depends-on): Add rename.
8852         (Files): Let rename do it all.
8853         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8854         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8855         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8856         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8857         * lib/rename.c (rpl_rename): Update comments.
8858
8859         rename: fix cygwin 1.5.x bugs
8860         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8861         * lib/rename.c (rpl_rename): Work around them.
8862         * modules/rename (Depends-on): Add same-inode.
8863
8864         rename: fix Solaris 10 bug
8865         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8866         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8867         was the only bug.
8868
8869         rename: fix Solaris 9 bug
8870         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8871         on non-directory.  Avoid calling exit.
8872         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8873         strdup.
8874         * modules/rename-tests (Depends-on): Drop lstat.
8875         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8876         (gl_PREREQ_RENAME): Delete unused macro.
8877
8878         rename-dest-slash: fix NetBSD bug
8879         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8880         links.
8881         * modules/rename-dest-slash (Depends-on): Add same-inode.
8882
8883         rename-tests: new test, exposes several platform bugs
8884         * modules/rename-tests: New file.
8885         * tests/test-rename.h: Likewise.
8886         * tests/test-rename.c: Likewise.
8887         * doc/posix-functions/rename.texi (rename): Improve documentation,
8888         including bugs that will eventually be fixed in gnulib.
8889
8890 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8891
8892         * lib/uname.c: Include <stdlib.h>
8893         (uname): Assume version info is available.
8894
8895 2009-10-02  Jim Meyering  <meyering@redhat.com>
8896
8897         gnu-web-doc-update: correct --help output
8898         * build-aux/gnu-web-doc-update: Make --help output relevant.
8899
8900         gnu-web-doc-update: add standard options
8901         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8902
8903         gnu-web-doc-update: New module.
8904         Use this script to automatically update the on-line web documentation
8905         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8906         * modules/gnu-web-doc-update: New file, from coreutils.
8907         * build-aux/gnu-web-doc-update: New script.
8908
8909 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8910
8911         link: LoadLibrary is not needed.
8912         * lib/link.c: Use GetModuleHandle.
8913
8914 2009-10-01  Eric Blake  <ebb9@byu.net>
8915
8916         getopt: bump serial number
8917         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8918         change.
8919
8920         tests: tighten link, rmdir, and remove tests
8921         * tests/test-link.h (includes): No need to use <config.h> here.
8922         Clean up if directory hard link was created, otherwise test for
8923         trailing '.'.
8924         * tests/test-linkat.c (main): Simplify.
8925         * tests/test-remove.c (main): Enhance test for trailing '.'.
8926         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8927
8928 2009-10-01  Jim Meyering  <meyering@redhat.com>
8929
8930         maint.mk: requiring "make major" was annoying, for a "minor" release.
8931         What is intended is "stable", to contrast with alpha and beta,
8932         so require "make stable", not "make major".
8933         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8934         (get_tool_versions): Likewise.
8935         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8936
8937 2009-09-30  Ben Pfaff  <blp@gnu.org>
8938
8939         Fix broken build of replacement for Windows tmpfile().
8940         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8941         flags argument added along with the 'mkostemp' module.
8942
8943 2009-09-28  Bruno Haible  <bruno@clisp.org>
8944
8945         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8946         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8947         to 'remove_elt'.
8948         (gl_list_remove): Update.
8949         * lib/gl_list.c (gl_list_remove): Update.
8950         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8951         to 'remove_elt'.
8952         (gl_oset_remove): Update.
8953         * lib/gl_list.c (gl_oset_remove): Update.
8954         Reported by Eric Blake.
8955
8956 2009-09-28  Eric Blake  <ebb9@byu.net>
8957
8958         doc: mention yet more cygwin 1.7 status
8959         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8960         cygwin.
8961         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8962         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8963
8964         argp: fix test failure
8965         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8966         that are not upper-case.  Pass correct range to tolower.
8967
8968 2009-09-27  Jim Meyering  <meyering@redhat.com>
8969
8970         test-yesno: work around sparc-dash here-document infelicity
8971         Without this change, the literal \177 byte in a here document
8972         would make dash 0.5.5.1-3 access uninitialized memory.
8973         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8974         Instead, use a marker, "@", and filter through tr to create the desired
8975         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8976
8977 2009-09-27  Bruno Haible  <bruno@clisp.org>
8978
8979         Disable untested support for new flavours of ACLs on AIX.
8980         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8981         progress.
8982         * lib/set-mode-acl.c (qset_acl): Likewise.
8983
8984 2008-12-07  Bruno Haible  <bruno@clisp.org>
8985
8986         Add support for new flavours of ACLs on AIX. (Untested.)
8987         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8988         (file_has_acl): Add support for newer AIX.
8989         * lib/set-mode-acl.c (qset_acl): Likewise.
8990         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8991         Rainer Tammer <tammer@tammer.net>.
8992
8993 2009-09-26  Eric Blake  <ebb9@byu.net>
8994
8995         argp: fix compilation of getopt
8996         * lib/getopt.in.h (includes): Use different guard than glibc.
8997         Reported by Sergey Poznyakoff.
8998
8999         doc: mention more cygwin 1.7 status
9000         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9001         bug.
9002         * doc/posix-functions/execl.texi (execl): Likewise.
9003         * doc/posix-functions/execle.texi (execle): Likewise.
9004         * doc/posix-functions/execlp.texi (execlp): Likewise.
9005         * doc/posix-functions/execv.texi (execv): Likewise.
9006         * doc/posix-functions/execve.texi (execve): Likewise.
9007         * doc/posix-functions/execvp.texi (execvp): Likewise.
9008         * doc/glibc-functions/canonicalize_file_name.texi
9009         (canonicalize_file_name): Cygwin 1.7 now provides this.
9010         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9011         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9012         on AT_SYMLINK_NOFOLLOW.
9013
9014 2009-09-24  Eric Blake  <ebb9@byu.net>
9015
9016         test-linkat: make test more robust
9017         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9018
9019         getopt: fix inclusion guards for cygwin
9020         * modules/getopt-posix (Depends-on): Add include-next.
9021         (Makefile.am): Substitute more items in replacement header.
9022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9023         <getopt.h>.
9024         * lib/getopt.in.h (includes): Use split inclusion guard, and
9025         prefer <getopt.h> over include <unistd.h> when one is present.
9026         (option): Also override name of 'struct option'.
9027
9028         same-inode: revert prior change; it is not yet ready
9029         * NEWS: Undo mention of this change.
9030         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9031         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9032         * lib/cycle-check.c (cycle_check): Likewise.
9033         * lib/same.c (same_name): Likewise.
9034         * lib/at-func2.c (at_func2): Likewise.
9035
9036 2009-09-23  Eric Blake  <ebb9@byu.net>
9037
9038         linkat: new module
9039         * modules/linkat: New file.
9040         * lib/at-func2.c (at_func2): Likewise.
9041         * lib/linkat.c (linkat): Likewise.
9042         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9043         * lib/openat-priv.h (at_func2): Add declaration.
9044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9045         * modules/unistd (Makefile.am): Substitute them.
9046         * lib/unistd.in.h (linkat): Declare it.
9047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9048         * doc/posix-functions/linkat.texi (linkat): Likewise.
9049         * doc/posix-functions/link.texi (link): Tweak wording.
9050         * tests/test-link.c (main): Move guts...
9051         * tests/test-link.h (test_link): ...into new file.
9052         * modules/linkat-tests: New test.
9053         * tests/test-linkat.c: Likewise.
9054         * modules/link-tests (Files): Ship new file.
9055         (Depends-on): Add stdbool.
9056
9057         dirname: add library-safe mdir_name
9058         * lib/dirname.h (mdir_name): New prototype.
9059         * lib/dirname.c (dir_name): Move guts...
9060         (mdir_name): ...to new function that avoids xalloc_die.
9061
9062         fchdir: another mingw fix
9063         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9064         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9065         on mingw (where it has not yet been ported), and make it optional
9066         elsewhere.
9067         (_gl_register_fd): Use it.
9068
9069         same-inode: make SAME_INODE tri-state, to port to mingw
9070         * NEWS: Mention this change.
9071         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9072         st_ino always being 0.
9073         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9074         * lib/cycle-check.c (cycle_check): Likewise.
9075         * lib/same.c (same_name): Likewise.
9076
9077         lstat: avoid mingw compilation error
9078         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9079         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9080         lstat ourselves.
9081         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9082         was adequate.
9083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9084         the checks for lstat.
9085         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9086
9087         link: fix test failure on Solaris 9
9088         * lib/link.c (rpl_link): Don't assume link will catch bogus
9089         trailing slash on source.
9090
9091         test-symlinkat: enhance test
9092         * tests/test-readlink.c (main): Move guts...
9093         * tests/test-readlink.h (test_readlink): ...into new file.
9094         * tests/test-symlink.c (main): Move guts...
9095         * tests/test-symlink.h (test_symlink): ...into new file.
9096         * tests/test-symlinkat.c (main): Use new files for further
9097         coverage.
9098         (do_symlink, do_readlink): New helper functions.
9099         * modules/symlink-tests (Files): Ship new file.
9100         (Depends-on): Add stdbool.
9101         * modules/readlink-tests (Files): Ship new file.
9102         (Depends-on): Add stdbool.
9103         * modules/symlinkat-tests (Files): Use new files.
9104
9105 2009-09-23  Eric Blake  <ebb9@byu.net>
9106
9107         readlink: document portability issue with symlink length
9108         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9109         systems have bogus st_size on symlinks, and mention the
9110         areadlink-with-size module.
9111         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9112         * doc/posix-functions/readlink.texi (readlink): Mention the
9113         areadlink module, and ERANGE failure.
9114         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9115         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9116
9117         readlink: fix Solaris 9 bug with trailing slash
9118         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9119         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9120         * doc/posix-functions/readlink.texi (readlink): Document this.
9121         * modules/readlink-tests: New test.
9122         * tests/test-readlink.c: Likewise.
9123
9124         readlink: fix cygwin 1.5.x bug with return type
9125         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9126         * lib/unistd.in.h (readlink): Use ssize_t.
9127         * lib/readlink.c (readlink): Likewise.
9128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9129         * modules/unistd (Makefile.am): Substitute it.
9130         * lib/unistd.in.h (readlink): Declare replacement.
9131         * doc/posix-functions/readlink.texi (readlink): Document this.
9132
9133         symlink: use throughout gnulib
9134         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9135         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9136         symlink is not used.
9137         * modules/symlinkat (Depends-on): Add symlink.
9138         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9139         * modules/canonicalize-tests (Depends-on): Likewise.
9140         * modules/lstat-tests (Depends-on): Likewise.
9141         * modules/openat-tests (Depends-on): Likewise.
9142         * modules/remove-tests (Depends-on): Likewise.
9143         * modules/rmdir-tests (Depends-on): Likewise.
9144         * modules/unlink-tests (Depends-on): Likewise.
9145         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9146         * tests/test-canonicalize.c (symlink): Likewise.
9147         * tests/test-fstatat.c (symlink): Likewise.
9148         * tests/test-lstat.c (symlink): Likewise.
9149         * tests/test-remove.c (symlink): Likewise.
9150         * tests/test-rmdir.c (symlink): Likewise.
9151         * tests/test-unlink.c (symlink): Likewise.
9152         * tests/test-unlinkat.c (symlink): Likewise.
9153
9154         symlink: new module, for Solaris 9 bug
9155         * modules/symlink: New file.
9156         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9157         * lib/symlink.c: Likewise.
9158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9159         * modules/unistd (Makefile.am): Substitute them.
9160         * lib/unistd.in.h (symlink): Declare replacement.
9161         * MODULES.html.sh (File system functions): Mention it.
9162         * doc/posix-functions/symlink.texi (symlink): Likewise.
9163         * modules/symlink-tests: New test.
9164         * tests/test-symlink.c: Likewise.
9165
9166 2009-09-23  Bruno Haible  <bruno@clisp.org>
9167
9168         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9169         when needed.
9170         Test case: gnulib-tool --import --with-tests atexit inttypes.
9171         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9172
9173 2009-09-23  Bruno Haible  <bruno@clisp.org>
9174
9175         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9176         subcommand, not in a subshell.
9177
9178 2009-09-22  Eric Blake  <ebb9@byu.net>
9179
9180         unistd: sort replacement declarations
9181         * lib/unistd.in.h: Sort declarations.
9182
9183         open, openat: minor optimization
9184         * lib/open.c (open): If open succeeded, len is non-zero.
9185         * lib/openat.c (rpl_openat): Likewise.
9186
9187         link-follow: ensure correct result
9188         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9189         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9190         distinguish between possible failures.
9191
9192 2009-09-21  Eric Blake  <ebb9@byu.net>
9193
9194         fts: avoid compiler warning
9195         * lib/fts.c (dirent_inode_sort_may_be_useful)
9196         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9197
9198 2009-09-19  Bruno Haible  <bruno@clisp.org>
9199
9200         * lib/progreloc.c (canonicalize_file_name): New declaration.
9201
9202 2009-09-19  Eric Blake  <ebb9@byu.net>
9203
9204         link: fix quoting
9205         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9206
9207         openat: fix openat bugs on Solaris 9
9208         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9209         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9210         * modules/openat (Depends-on): Add open.
9211         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9212         * modules/fcntl-h (Makefile.am): Substitute it.
9213         * lib/fcntl.in.h (openat): Declare replacement.
9214         * doc/posix-functions/openat.texi (openat): Document this.
9215
9216         openat: move fstatat and unlinkat into correct files
9217         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9218         compiled.
9219         * lib/openat.c (fstatat, unlinkat): Move...
9220         * lib/fstatat.c (fstatat): ...into correct files.
9221         * lib/unlinkat.c (unlinkat): Likewise.
9222
9223         openat: fix unlinkat bugs on Solaris 9
9224         * lib/unlinkat.c (unlinkat): New file.
9225         * modules/openat (Depends-on): Add unlink.
9226         (Files): Distribute it.
9227         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9228         trailing slash behavior is broken.
9229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9230         * modules/unistd (Makefile.am): Substitute it.
9231         * lib/unistd.in.h (unlinkat): Declare replacement.
9232         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9233
9234         openat: fix fstatat bugs on Solaris 9
9235         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9236         stat.
9237         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9238
9239         test-unlinkat: enhance test, to expose Solaris 9 bug
9240         * tests/test-unlink.c (main): Factor guts...
9241         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9242         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9243         * tests/test-rmdir.c (main): Adjust caller.
9244         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9245         (unlinker): New helper function.
9246         (rmdirat): Enhance check.
9247         * modules/rmdir-tests (Depends-on): Add stdbool.
9248         * modules/unlink-tests (Depends-on): Likewise.
9249         (Files): Add test-unlink.h.
9250         * modules/openat-tests (Files): Likewise.
9251         (Depends-on): Add unlinkdir.
9252
9253         test-fstatat: new test, to expose Solaris 9 bugs
9254         * tests/test-stat.c (main): Factor guts...
9255         * tests/test-stat.h (test_stat_func): ...into new file.
9256         * tests/test-lstat.c (main): Factor guts...
9257         * tests/test-lstat.h (test_lstat_func): ...into new file.
9258         * tests/test-fstatat.c: New file.
9259         * modules/stat-tests (Files): Add test-stat.h.
9260         * modules/lstat-tests (Files): Add test-lstat.h.
9261         (Depends-on): Add stdbool.
9262         * modules/openat-tests (Depends-on): Add pathmax.
9263         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9264         (Makefile.am): Run new test.
9265
9266         remove: new module, for mingw and Solaris 9 bugs
9267         * modules/remove: New file.
9268         * lib/remove.c: Likewise.
9269         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9271         * modules/stdio (Makefile.am): Use them.
9272         * lib/stdio.in.h (remove): Declare replacement.
9273         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9274         * doc/posix-functions/remove.texi (remove): Likewise.
9275         * modules/remove-tests: New test.
9276         * tests/test-remove.c: Likewise.
9277
9278         unlink: new module, for Solaris 9 bug
9279         * modules/unlink: New file.
9280         * lib/unlink.c: Likewise.
9281         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9283         * modules/unistd (Makefile.am): Use them.
9284         * lib/unistd.in.h (stat): Declare replacement.
9285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9286         * doc/posix-functions/unlink.texi (unlink): Likewise.
9287         * modules/unlink-tests: New test.
9288         * tests/test-unlink.c: Likewise.
9289
9290         lstat: fix Solaris 9 bug
9291         * lib/lstat.c (lstat): Also check for trailing slash on
9292         non-symlink, non-directories.  Use stat module to simplify logic.
9293         * doc/posix-functions/lstat.texi (lstat): Document it.
9294         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9295         (configure.ac): Check for symlink.
9296         * tests/test-lstat.c (main): Add more tests.
9297
9298         stat: add as dependency to other modules
9299         * modules/chown (Depends-on): Add stat.
9300         * modules/euidaccess (Depends-on): Likewise.
9301         * modules/fchdir (Depends-on): Likewise.
9302         * modules/isdir (Depends-on): Likewise.
9303         * modules/link (Depends-on): Likewise.
9304         * modules/lstat (Depends-on): Likewise.
9305         * modules/mkdir-p (Depends-on): Likewise.
9306         * modules/modechange (Depends-on): Likewise.
9307         * modules/open (Depends-on): Likewise.
9308         * modules/readlink (Depends-on): Likewise.
9309         * modules/same (Depends-on): Likewise.
9310
9311         stat: fix Solaris 9 bug
9312         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9313         slash.
9314         * lib/stat.c (rpl_stat): Work around it.
9315         * doc/posix-functions/stat.texi (stat): Update documentation.
9316
9317         stat: new module, for mingw bug
9318         * modules/stat: New file.
9319         * lib/stat.c: Likewise.
9320         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9322         * modules/sys_stat (Makefile.am): Use them.
9323         * lib/sys_stat.in.h (stat): Declare replacement.
9324         * lib/openat.c (fstatat): Deal with lstat and stat being function
9325         macros.
9326         * modules/openat (Depends-on): Add inline.
9327         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9328         * doc/posix-functions/stat.texi (stat): Likewise.
9329         * modules/stat-tests: New test.
9330         * tests/test-stat.c: Likewise.
9331
9332 2009-09-19  Jim Meyering  <meyering@redhat.com>
9333
9334         syntax-check: detect unnecessary inclusion of canonicalize.h
9335         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9336
9337 2009-09-19  Eric Blake  <ebb9@byu.net>
9338
9339         canonicalize-lgpl: adjust clients to use correct header
9340         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9341         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9342         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9343         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9344         * lib/progreloc.c (includes): Likewise.
9345
9346 2009-09-19  Jim Meyering  <meyering@redhat.com>
9347
9348         test-posixtm.c: correct a comment
9349         * tests/test-posixtm.c: Correct first-line comment.
9350         Spotted by Eric Blake.
9351
9352 2009-09-16  Jim Meyering  <meyering@redhat.com>
9353
9354         posixtm-tests: make T const-correct; add a test case
9355         * tests/test-posixtm.c (T): Declare const.
9356         Add a test for -(2^31+1).
9357         Remove useless can-succeed-only-in-2002 test.
9358
9359         posixtm-tests: adjust the sole failing test
9360         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9361         expected output matches what mktime now produces.  Cross-checked via
9362         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9363
9364         posixtm: move #ifdef'd tests into a new module
9365         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9366         * tests/test-posixtm.c: ... this new file.
9367         * modules/posixtm-tests: New module.
9368
9369 2009-09-19  Eric Blake  <ebb9@byu.net>
9370
9371         openat: simplify use of at-func.c
9372         * lib/at-func.c (includes): Include prerequisites here, to
9373         simplify requirements on client files.
9374         * lib/openat-priv.h: Add double-inclusion guard.
9375         * lib/faccessat.c (includes): Simplify.
9376         * lib/fchmodat.c (includes): Likewise.
9377         * lib/fchownat.c (includes): Likewise.
9378         * lib/mkdirat.c (includes): Likewise.
9379         * lib/mkfifoat.c (includes): Likewise.
9380         * lib/symlinkat.c (includes): Likewise.
9381
9382         openat: allow return of fd 0
9383         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9384         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9385         unistd-safer.
9386         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9387         <fcntl.h>; this module does not leak fds.
9388         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9389         must be allowed to return 0, leaving openat_safer to add the
9390         safety.
9391         (openat_permissive): Avoid writing to just-opened fd 2 if
9392         restoring the current directory fails.
9393         * lib/openat-die.c (openat_restore_fail): Add comment.
9394         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9395         (save_cwd): Guarantee safe fd, but without use of open_safer.
9396         * tests/test-openat.c: New test.
9397         * modules/openat-tests (Files, Makefile.am): Distribute and build
9398         new file.
9399
9400         relocatable-prog-wrapper: fix build
9401         * modules/relocatable-prog-wrapper (Files): Update name of
9402         canonicalize m4 file, broken on 2009-09-17.
9403         Reported by emad hajjar <aleppos@hotmail.com>.
9404
9405 2009-09-19  Bruno Haible  <bruno@clisp.org>
9406
9407         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9408         * lib/safe-alloc.c: Likewise.
9409         Reported by Ian Beckwith <ianb@erislabs.net>.
9410
9411 2009-09-18  Bruno Haible  <bruno@clisp.org>
9412
9413         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9414         Reported by <erobles@sensacd.com.mx>.
9415
9416 2009-09-17  Eric Blake  <ebb9@byu.net>
9417
9418         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9419         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9420         slashes when checking if last component is missing.
9421         * tests/test-canonicalize.c (main): Test this.
9422
9423         canonicalize, canonicalize-lgpl: honor // if distinct from /
9424         * modules/canonicalize (Files): Add double-slash-root.m4.
9425         * modules/canonicalize-lgpl (Files): Likewise.
9426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9427         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9428         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9429         fallback definition.
9430         (canonicalize_filename_mode): Use it to protect //.
9431         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9432         (__realpath): Likewise.
9433         * tests/test-canonicalize.c (main): Test this.
9434         * tests/test-canonicalize-lgpl.c (main): Likewise.
9435         * modules/canonicalize-tests (Depends-on): Add same-inode.
9436         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9437
9438         canonicalize-lgpl: fix glibc bug with trailing slash
9439         * m4/canonicalize-lgpl.m4: Move contents...
9440         * m4/canonicalize.m4: ...here.
9441         (gl_CANONICALIZE_LGPL): Factor realpath check...
9442         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9443         glibc 2.3.5 bug, fixed 2005-04-27.
9444         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9445         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9446         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9447         * modules/canonicalize-lgpl (Files): Manage file rename.
9448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9449         * modules/stdlib (Makefile.am): Substitute witness.
9450         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9451         is needed.
9452         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9453         replacement is required.
9454         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9455         * doc/glibc-functions/canonicalize_file_name.texi
9456         (canonicalize_file_name): Document this.
9457         * doc/posix-functions/realpath.texi (realpath): Likewise.
9458
9459         canonicalize-lgpl: reject non-directory with trailing slash
9460         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9461         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9462         catches failures in glibc 2.3.5.
9463         * tests/test-canonicalize.c (main): Likewise.
9464
9465         canonicalize-lgpl: use native realpath if it works
9466         * lib/canonicalize-lgpl.c (realpath): Guard with
9467         FUNC_REALPATH_WORKS.
9468         * lib/stdlib.in.h (realpath): Make declaration optional based on
9469         HAVE_REALPATH.
9470         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9471         native realpath works.
9472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9473         * modules/stdlib (Makefile.am): Substitute witness.
9474
9475         canonicalize, canonicalize-lgpl: use <stdlib.h>
9476         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9477         (Include): Mention <stdlib.h>.
9478         (configure.ac): Mention functions we provide.
9479         * modules/canonicalize (configure.ac): Likewise.
9480         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9481         realpath if canonicalize_file_name is missing.
9482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9483         * modules/stdlib (Makefile.am): Substitute witnesses.
9484         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9485         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9486         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9487         * NEWS: Document this.
9488         * doc/glibc-functions/canonicalize_file_name.texi
9489         (canonicalize_file_name): Likewise.
9490         * doc/posix-functions/realpath.texi (realpath): Likewise.
9491         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9492
9493         test-canonicalize: consolidate into single C program
9494         * tests/test-canonicalize.sh: Delete; move setup into...
9495         * tests/test-canonicalize.c (main): ...the program, making it
9496         easier to run in debugger.  Add some tests.
9497         * modules/canonicalize-tests (Files): Remove unused file.
9498         (Depends-on): Add progname.
9499         (configure.ac, Makefile.am): Simplify.
9500
9501         test-canonicalize-lgpl: consolidate into single C program
9502         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9503         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9504         easier to run in debugger.  Add some tests.
9505         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9506         (configure.ac, Makefile.am): Simplify.
9507
9508         canonicalize: avoid resolvepath
9509         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9510         unnecessary checks.
9511         * lib/canonicalize.c (includes): Simplify.
9512         (canonicalize_file_name): Drop resolvepath implementation.
9513         * modules/canonicalize (Depends-on): Drop filenamecat.
9514
9515         canonicalize: don't lose errno
9516         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9517         over calls to free.
9518
9519         canonicalize: simplify errno handling
9520         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9521         assignment.
9522
9523         canonicalize, canonicalize-lgpl: update module dependencies
9524         * modules/canonicalize (Depends-on): Add extensions, lstat,
9525         pathmax, stdlib.
9526         (Files): Drop pathmax.h.
9527         (configure.ac): Adjust macro name.
9528         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9529         lstat, stdlib, sys_stat.
9530         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9531         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9532         extensions.
9533         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9534         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9535         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9536         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9537         declaration, if available.
9538         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9539         we can rely on the readlink module.
9540         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9541         (includes): Use <unistd.h> unconditionally.
9542
9543 2009-09-17  Eric Blake  <ebb9@byu.net>
9544
9545         maint: make Include sections of modules consistent
9546         * modules/alloca: Use only header name; no need to list #include.
9547         * modules/alloca-opt: Likewise.
9548         * modules/arpa_inet: Likewise.
9549         * modules/canon-host: Likewise.
9550         * modules/configmake: Likewise.
9551         * modules/dirent: Likewise.
9552         * modules/eealloc: Likewise.
9553         * modules/environ: Likewise.
9554         * modules/fchdir: Likewise.
9555         * modules/fcntl: Likewise.
9556         * modules/fcntl-h: Likewise.
9557         * modules/gethrxtime: Likewise.
9558         * modules/gettime: Likewise.
9559         * modules/ignore-value: Likewise.
9560         * modules/inet_ntop: Likewise.
9561         * modules/inet_pton: Likewise.
9562         * modules/inttypes: Likewise.
9563         * modules/isnand-nolibm: Likewise.
9564         * modules/isnanf-nolibm: Likewise.
9565         * modules/mbchar: Likewise.
9566         * modules/mbfile: Likewise.
9567         * modules/mbiter: Likewise.
9568         * modules/mbuiter: Likewise.
9569         * modules/netdb: Likewise.
9570         * modules/netinet_in: Likewise.
9571         * modules/nproc: Likewise.
9572         * modules/pagealign_alloc: Likewise.
9573         * modules/poll: Likewise.
9574         * modules/printf-frexp: Likewise.
9575         * modules/pthread: Likewise.
9576         * modules/putenv: Likewise.
9577         * modules/random_r: Likewise.
9578         * modules/relocatable-prog: Likewise.
9579         * modules/search: Likewise.
9580         * modules/select: Likewise.
9581         * modules/selinux-h: Likewise.
9582         * modules/settime: Likewise.
9583         * modules/signal: Likewise.
9584         * modules/size_max: Likewise.
9585         * modules/socklen: Likewise.
9586         * modules/ssize_t: Likewise.
9587         * modules/stdarg: Likewise.
9588         * modules/stdbool: Likewise.
9589         * modules/stddef: Likewise.
9590         * modules/stdint: Likewise.
9591         * modules/stdio: Likewise.
9592         * modules/stdlib: Likewise.
9593         * modules/string: Likewise.
9594         * modules/strings: Likewise.
9595         * modules/sys_file: Likewise.
9596         * modules/sys_ioctl: Likewise.
9597         * modules/sys_select: Likewise.
9598         * modules/sys_socket: Likewise.
9599         * modules/sys_stat: Likewise.
9600         * modules/sys_time: Likewise.
9601         * modules/sys_times: Likewise.
9602         * modules/sys_utsname: Likewise.
9603         * modules/sys_wait: Likewise.
9604         * modules/sysexits: Likewise.
9605         * modules/time: Likewise.
9606         * modules/times: Likewise.
9607         * modules/tmpfile: Likewise.
9608         * modules/trim: Likewise.
9609         * modules/unistd: Likewise.
9610         * modules/wchar: Likewise.
9611         * modules/wctype: Likewise.
9612
9613 2009-09-17  Bruno Haible  <bruno@clisp.org>
9614
9615         Make getdate.y compile on QNX and NetBSD 5 / i386.
9616         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9617         TIME_T_FITS_IN_LONG_INT.
9618         * lib/getdate.y (long_time_t): New type.
9619         (relative_time): Change type of 'seconds' field to long_time_t.
9620         (get_date): Update types of local variables. Check against overflow
9621         during conversion from long_time_t to time_t.
9622         Reported by Matt Kraai <kraai@ftbfs.org>
9623         and Hasso Tepper <hasso@netbsd.org>.
9624
9625 2009-09-17  Bruno Haible  <bruno@clisp.org>
9626
9627         * modules/COPYING: Update copyright years.
9628         * modules/README: Likeiwse.
9629         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9630         Reported by Ian Beckwith <ianb@erislabs.net>.
9631
9632 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9633
9634         * users.txt: Update references for gnuit package.
9635
9636 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9637
9638         * m4/getdelim.m4: Fix typo in copyright line.
9639
9640 2009-09-17  Bruno Haible  <bruno@clisp.org>
9641
9642         * lib/atoll.c: Use the standard header with GPL copyright.
9643         * lib/argz.in.h: Likewise.
9644         * lib/glob.c: Likewise.
9645         * lib/glob-libc.h: Likewise.
9646         * lib/random_r.c: Likewise.
9647         * lib/siglist.h: Likewise.
9648         * lib/strsignal.c: Likewise.
9649         Reported by Ian Beckwith <ianb@erislabs.net>.
9650
9651 2009-09-17  Eric Blake  <ebb9@byu.net>
9652
9653         rmdir: ensure correct dependency order
9654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9655
9656 2009-09-17  Bruno Haible  <bruno@clisp.org>
9657
9658         Disable assertion that fails on NetBSD 5 / i386.
9659         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9660         Reported by Sam Steingold <sds@gnu.org>
9661         and Hasso Tepper <hasso@netbsd.org>.
9662
9663 2009-09-16  Eric Blake  <ebb9@byu.net>
9664
9665         unlinkdir: port to mingw
9666         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9667         on which no one can unlink a directory.
9668
9669         stdlib: sort witness names
9670         * modules/stdlib (Makefile.am): Sort replacements.
9671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9672         * lib/stdlib.in.h: Likewise.
9673
9674         parse-duration-tests: avoid link failure
9675         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9676         LIBINTL.
9677         Reported by Tom G. Christensen.
9678
9679         openat-tests: ensure unlinkat behaves like rmdir
9680         * tests/test-rmdir.c (main): Factor guts...
9681         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9682         * modules/rmdir-tests (Files): Ship new file.
9683         * modules/openat-tests: New test.
9684         * tests/test-unlinkat.c: Likewise.
9685
9686         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9687         * modules/rmdir-errno (Status, Notice): Now obsolete.
9688
9689         rmdir: work around cygwin 1.5.x and mingw bugs
9690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9691         * lib/rmdir.c (rmdir): Work around it.
9692         * modules/rmdir (Status, Notice): No longer obsolete.
9693         (Files): Add dos.m4.
9694         (Depends-on): Add unistd.
9695         (configure.ac): Set witnesses.
9696         (License): Relax to LGPLv2+.
9697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9698         * modules/unistd (Makefile.am): Substitute witnesses.
9699         * lib/unistd.in.h (rmdir): Declare replacement.
9700         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9701         * modules/rmdir-tests: New tests.
9702         * tests/test-rmdir.c: Likewise.
9703
9704 2009-09-15  Eric Blake  <ebb9@byu.net>
9705
9706         fchdir: improve use of replacement functions
9707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9710         REPLACE_CLOSEDIR.
9711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9712         * modules/sys_stat (Makefile.am): Substitute correct witness.
9713         * modules/dirent (Makefile.am): Likewise.
9714         * modules/unistd (Makefile.am): Likewise.
9715         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9716         * lib/unistd.in.h (dup): Likewise.
9717         * lib/sys_stat.in.h (fstat): Likewise.
9718
9719         maint: ignore gnulib-tool temp files
9720         * .gitignore: Ignore files created during gnulib-tool --test.
9721
9722 2009-09-13  Jim Meyering  <meyering@redhat.com>
9723
9724         posixtm: don't reject a time that specify "60" as the number of seconds
9725         * lib/posixtm.c (posixtime): The code to reject invalid dates
9726         would also reject a time specified with the .60 suffix.
9727         But POSIX allows that, in order to accommodate leap seconds.
9728         So don't reject it.
9729         (main): Adjust tests accordingly.
9730         * modules/posixtm (Depends-on): Add stpcpy.
9731
9732 2009-09-11  Jim Meyering  <meyering@redhat.com>
9733
9734         announce-gen: include [$release_type] in emitted Subject:
9735         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9736         e.g., [stable] in the emitted Subject: line.
9737
9738 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9739
9740         Remove obsolete macros from several modules.
9741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9742         obsolete Autoconf macros with their modern counterparts.
9743         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9744         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9746         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9747         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9748         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9751         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9752         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9753         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9754         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9755         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9756         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9757         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9759         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9760         * m4/time_r.m4 (gl_TIME_R): Likewise.
9761         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9762         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9763         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9764
9765         Fix copyright header in build-aux scripts.
9766         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9767         recommendation.
9768         * build-aux/ncftpput-ftp: Likewise.
9769         * build-aux/update-copyright: Likewise.
9770
9771 2009-09-09  Eric Blake  <ebb9@byu.net>
9772
9773         test-link: allow Linux choice of errno
9774         * tests/test-link.c (main): Relax test for alternate error.
9775
9776         strndup: fix improper m4 caching
9777         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9778         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9779         (gl_PREREQ_STRNDUP): Delete.
9780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9781         * modules/string (Makefile.am): Substitute it.
9782         * lib/string.in.h (strndup): Modernize prototype.
9783
9784         getcwd: port to mingw
9785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9786         different from the POSIX assumptions made throughout the getcwd
9787         module; fortunately, the mingw getcwd does not need replacement.
9788         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9789         * modules/getcwd-tests: New test.
9790         * tests/test-getcwd.c: Likewise.
9791
9792         link: fix platform bugs
9793         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9794         * lib/link.c (link): Work around them.  Fix related mingw bug.
9795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9796         * modules/unistd (Makefile.am): Substitute it.
9797         * lib/unistd.in.h (link): Declare replacement.
9798         * doc/posix-functions/link.texi (link): Document this.
9799         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9800
9801         test-link: consolidate into single C program, test more cases
9802         * tests/test-link.sh: Delete.
9803         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9804         at least Cygwin and Solaris.
9805         * modules/link-tests (Files): Remove unused file.
9806         (Depends-on): Add errno, sys_stat.
9807         (Makefile.am): Simplify.
9808
9809 2009-09-08  Bruno Haible  <bruno@clisp.org>
9810
9811         Work around towlower, towupper bug on mingw.
9812         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9813         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9814         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9815         * doc/posix-functions/towupper.texi: Likewise.
9816         Reported by Eric Blake.
9817
9818 2009-09-08  Jim Meyering  <meyering@redhat.com>
9819
9820         build: don't try to run autoheader if we don't use it
9821         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9822         is not used in configure.ac.
9823
9824 2009-09-08  Eric Blake  <ebb9@byu.net>
9825
9826         euidaccess: fix compilation error
9827         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9828
9829         rawmemchr: relax license
9830         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9831         okay.
9832         Reported by Jim Meyering.
9833
9834         mkfifoat: new module
9835         * modules/mkfifoat: New file.
9836         * lib/mkfifoat.c: Likewise.
9837         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9838         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9839         * modules/sys_stat (Makefile.am): Use them.
9840         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9841         * MODULES.html.sh (File system functions): Mention module.
9842         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9843         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9844         * modules/mkfifoat-tests: New test.
9845         * tests/test-mkfifoat.c: Likewise.
9846
9847         strchrnul: relax license
9848         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9849         okay.
9850         Reported by Jim Meyering.
9851
9852 2009-09-08  Eric Blake  <ebb9@byu.net>
9853
9854         fstatat: fix compilation on Solaris
9855         * lib/fstatat.c (includes): Add fcntl.h.
9856         Reported by Pádraig Brady.
9857
9858 2009-09-07  Eric Blake  <ebb9@byu.net>
9859
9860         rename: modernize replacement
9861         * modules/rename (Depends-on): Add stdio.
9862         (configure.ac): Declare witness.
9863         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9864         stdio take care of replacement.
9865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9866         * modules/stdio (Makefile.am): Substitute them.
9867         * lib/stdio.in.h (rename): Declare replacement.
9868         * lib/rename.c (includes): Allow cross-compilation to non-windows
9869         machines.
9870         * doc/posix-functions/rename.texi (rename): Improve
9871         documentation.
9872
9873         stdio: sort witness names
9874         * modules/stdio (Makefile.am): Sort replacements.
9875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9876         * lib/stdio.in.h: Likewise.
9877
9878         getcwd: minor cleanups
9879         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9880         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9881
9882         openat: provide more convenience names
9883         * modules/faccessat (configure.ac): Add C witness.
9884         * lib/unistd.in.h (readlinkat): Fix typo.
9885         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9886         convenience wrappers.
9887         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9888         wrappers in syntax checks.
9889
9890 2009-09-06  Eric Blake  <ebb9@byu.net>
9891
9892         doc: fix comments in recent patches
9893         * lib/faccessat.c: Mention correct function.
9894         * lib/fchmodat.c: Likewise.
9895         * lib/fchownat.c: Likewise.
9896         * lib/symlinkat.c: Likewise.
9897         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9898         constants.
9899
9900         faccessat, symlinkat: continue cleanup of previous patch
9901         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9903         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9905         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9906         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9907         set.
9908
9909 2009-09-06  Bruno Haible  <bruno@clisp.org>
9910
9911         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9912         (fstatat): Declare if GNULIB_FSTATAT is set.
9913         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9914         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9915         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9916         * modules/fcntl-h (Files): Remove m4/openat.m4.
9917         * modules/sys_stat (Files): Remove m4/openat.m4.
9918         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9919         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9920         * modules/unistd (Files): Remove m4/openat.m4.
9921         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9922         GNULIB_OPENAT.
9923         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9924         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9926         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9927         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9928         gl_OPENAT_DEFAULTS.
9929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9930         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9931         Don't require gl_OPENAT_DEFAULTS.
9932         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9933         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9934         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9935         (gl_OPENAT_DEFAULTS): Remove macro.
9936
9937 2009-09-06  Bruno Haible  <bruno@clisp.org>
9938
9939         * modules/openat (configure.ac): Remove unneeded witness.
9940
9941 2009-09-06  Bruno Haible  <bruno@clisp.org>
9942
9943         Set errno to ENOSYS when a function is entirely unsupported.
9944         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9945         EOPNOTSUPP.
9946         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9947         * modules/chown (Depends-on): Remove errno.
9948
9949 2009-09-06  Bruno Haible  <bruno@clisp.org>
9950
9951         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9952
9953 2009-09-06  Bruno Haible  <bruno@clisp.org>
9954
9955         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9956
9957 2009-09-06  Ben Pfaff  <blp@gnu.org>
9958             Bruno Haible  <bruno@clisp.org>
9959
9960         Work around a glibc bug in strtok_r.
9961         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9962         Undefine if UNDEFINE_STRTOK_R is set.
9963         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9965         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9967         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9968         UNDEFINE_STRTOK_R.
9969         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9970
9971 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9972
9973         exclude: minor fix
9974         * lib/exclude.c: Include wctype.h
9975
9976 2009-09-06  Akim Demaille  <demaille@gostai.com>
9977
9978         bootstrap: improve error message
9979         * build-aux/bootstrap (find_tool): Upon failure, report the list
9980         of candidates.
9981         Honor the initial value of the envvar.
9982
9983 2009-09-05  Eric Blake  <ebb9@byu.net>
9984
9985         symlinkat: new module
9986         * modules/symlinkat: New file.
9987         * lib/symlinkat.c: Likewise.
9988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9990         * modules/unistd (Makefile.am): Use them.
9991         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9992         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9993         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9994         * MODULES.html.sh (File system functions): Mention module.
9995         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9996         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9997         * modules/symlinkat-tests: New test.
9998         * tests/test-symlinkat.c: Likewise.
9999
10000         test-openat-safer: add more checks
10001         * tests/test-openat-safer.c (main): Check more code paths.
10002
10003 2009-09-05  Jim Meyering  <meyering@redhat.com>
10004
10005         syntax-check: detect unnecessary inclusion of openat.h
10006         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10007
10008 2009-09-05  Bruno Haible  <bruno@clisp.org>
10009
10010         Support towlower, towupper.
10011         * doc/posix-functions/towlower.texi: Mention module wctype.
10012         * doc/posix-functions/towupper.texi: Likewise.
10013         * lib/wctype.in.h (towlower, towupper): New functions.
10014         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10015         (ASSERT): New macro.
10016         (e): New variable.
10017         (main): Test also towlower, towupper. Test WEOF argument.
10018         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10019
10020 2009-09-05  Bruno Haible  <bruno@clisp.org>
10021
10022         Fix conversion behaviour when the input is invalid.
10023         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10024         mark occurring in first pass of indirect conversion.
10025         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10026         input.
10027         Found by clang's static analyzer.
10028
10029 2009-09-05  Bruno Haible  <bruno@clisp.org>
10030
10031         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10032         where direct conversion is possible.
10033
10034 2009-09-04  Eric Blake  <ebb9@byu.net>
10035
10036         openat: fail with ENOENT on empty name
10037         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10038         buffer.
10039
10040         link-follow: fix logic bug in prior patch
10041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10042         reversed sense of yes and no in prior patch.  Avoid confusing
10043         compilation failure with desired semantics.
10044
10045         link-follow: accomodate mingw and cross-compilation
10046         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10047         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10048         cross-compilation results to -1, to make linkat easier to
10049         implement when cross-compiling.  Trivially support mingw.
10050         * modules/link-follow (configure.ac): Call new name.
10051         * NEWS: Mention this.
10052
10053 2009-09-03  Eric Blake  <ebb9@byu.net>
10054
10055         faccessat: compile replacement
10056         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10057         needed.
10058
10059         fts: fix compilation error
10060         * lib/fts.c (includes): Re-add "openat.h", for
10061         openat_needs_fchdir.
10062
10063         faccessat: new module
10064         * modules/faccessat: New file.
10065         * lib/faccessat.c: Likewise.
10066         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10068         * modules/unistd (Makefile.am): Use it.
10069         * lib/unistd.in.h (faccessat): Declare it.
10070         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10071         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10072         * MODULES.html.sh (File system functions): Mention it.
10073         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10074         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10075
10076         euidaccess: prefer POSIX over non-standard implementation
10077         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10078         * lib/euidaccess.c (euidaccess): Use it if available.
10079
10080         openat: make template easier to use
10081         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10082         AT_FUNC_F2 to be undefined.
10083         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10084         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10085         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10086         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10087         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10088         Likewise.
10089         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10090         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10091         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10092         Likewise.
10093
10094         openat: declare in POSIX headers
10095         * NEWS: Mention this.
10096         * modules/openat (configure.ac): Declare witnesses.
10097         (Depends-on): Add fcntl-h, sys_stat, unistd.
10098         (Include): Mention correct headers.
10099         * modules/fcntl-h (Depends-on): Add link-warning.
10100         (Files): Add openat.m4.
10101         (Makefile.am): Substitute witnesses.
10102         * modules/sys_stat (Files, Makefile.am): Likewise.
10103         * modules/unistd (Files, Makefile.am): Likewise.
10104         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10105         (gl_OPENAT_DEFAULTS): New macro.
10106         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10109         (SYS_STAT_H): Remove unused variable.
10110         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10111         * lib/fcntl--.h (includes): Remove unneeded header.
10112         * lib/openat-safer.c (includes): Likewise.
10113         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10114         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10115         appropriate headers.
10116         (__OPENAT_PREFIX): Delete.
10117         * lib/fcntl.in.h (openat): Provide declaration.
10118         (AT_FDCWD): Fix Solaris bug.
10119         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10120         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10121         * lib/fchmodat.c (includes):  Adjust to find declaration.
10122         * lib/fchownat.c (includes): Likewise.
10123         * lib/mkdirat.c (includes): Likewise.
10124         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10125         still visible.
10126
10127 2009-09-02  Eric Blake  <ebb9@byu.net>
10128
10129         errno: use consistently
10130         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10131         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10132         * lib/canonicalize.c (ELOOP): Likewise.
10133         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10134         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10135         * lib/lchown.c (EOPNOTSUPP): Likewise.
10136         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10137         * lib/savewd.c (ESTALE): Likewise.
10138         * lib/settime.c (ENOSYS): Likewise.
10139         * lib/utimens.c (ENOSYS): Likewise.
10140         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10141         * lib/chdir-safer.c (ELOOP): Likewise.
10142         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10143         * modules/c-stack (Depends-on): Add errno.
10144         * modules/canonicalize (Depends-on): Likewise.
10145         * modules/chdir-safer (Depends-on): Likewise.
10146         * modules/fdopendir (Depends-on): Likewise.
10147         * modules/inet_ntop (Depends-on): Likewise.
10148         * modules/inet_pton (Depends-on): Likewise.
10149         * modules/lchown (Depends-on): Likewise.
10150         * modules/openat (Depends-on): Likewise.
10151         * modules/savewd (Depends-on): Likewise.
10152         * modules/settime (Depends-on): Likewise.
10153         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10154
10155         fts: avoid leaking fds
10156         * modules/fts (Depends-on): Add cloexec.
10157         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10158         flag.
10159
10160         fts: make directory fds more robust
10161         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10162         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10163
10164         backupfile, chdir-long, fts, savedir: make safer
10165         * lib/backupfile.c (includes): Use "dirent--.h", since
10166         numbered_backup can write to stderr during readdir.
10167         * lib/savedir.c (includes): Likewise.
10168         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10169         emulation can write to stderr on failure.
10170         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10171         * lib/getcwd.c: Document why opendir_safer is unused.
10172         * lib/glob.c: Likewise.
10173         * lib/scandir.c: Likewise.
10174         * lib/openat-proc.c: Likewise, for open_safer.
10175         * modules/backupfile (Depends-on): Add dirent-safer.
10176         * modules/savedir (Depends-on): Likewise.
10177         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10178         * modules/chdir-long (Depends-on): Add openat-safer.
10179
10180         openat-safer: new module
10181         * modules/openat-safer: New file.
10182         * lib/openat-safer.c: Likewise.
10183         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10184         * lib/fcntl-safer.h (openat_safer): Declare.
10185         * lib/fcntl--.h (openat): Override.
10186         * MODULES.html.sh (File descriptor based I/O): Mention it.
10187         * lib/openat.h: Add double-inclusion guards.
10188         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10189         "fcntl--.h", so we can implement openat.
10190         * modules/openat-safer-tests: New test.
10191         * tests/test-openat-safer.c: New file.
10192
10193         dirent-safer: new module
10194         * modules/dirent-safer: New file.
10195         * lib/dirent--.h: Likewise.
10196         * lib/dirent-safer.h: Likewise.
10197         * lib/opendir-safer.c: Likewise.
10198         * m4/dirent-safer.m4: Likewise.
10199         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10200         * modules/dirent-safer-tests: New test.
10201         * tests/test-dirent-safer.c: New file.
10202         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10203
10204         fdopendir: optimize on mingw
10205         * lib/unistd.in.h (_gl_directory_name): New prototype.
10206         * lib/fchdir.c (_gl_directory_name): Implement it.
10207         (fchdir): Use it to simplify implementation.
10208         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10209         fchdir, when available, to avoid calling [f]chdir().
10210
10211         fdopendir: split into its own module
10212         * lib/openat.c (fdopendir): Move...
10213         * lib/fdopendir.c: ...into new file.
10214         * modules/fdopendir: New module.
10215         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10216         * modules/openat (Depends-on): Add fdopendir.
10217         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10218         fdopendir here.
10219         * modules/savedir (Depends-on): Only need fdopendir, not full
10220         openat.
10221         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10222         * lib/openat.h (fdopendir): Drop prototype.
10223         * lib/dirent.in.h (fdopendir): Provide prototype.
10224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10225         * modules/dirent (Makefile.am): Substitute them.
10226         * MODULES.html.sh (File system functions): Mention it.
10227         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10228         * modules/fdopendir-tests: New file.
10229         * tests/test-fdopendir.c: Likewise.
10230
10231         fchdir: use more consistent macro convention
10232         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10233         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10234         REPLACE_FCHDIR, rather than relying on config.h macros.
10235         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10236         inside a single make-time REPLACE_FCHDIR block, rather than using
10237         the config.h FCHDIR_REPLACEMENT.
10238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10239         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10240         Manage fstat replacement.
10241         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10242         REPLACE_FCHDIR.
10243         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10244         (Makefile.am): Substitute REPLACE_FCHDIR.
10245         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10246         FCHDIR_REPLACEMENT.
10247         * lib/dup-safer.c (dup_safer): Likewise.
10248         * lib/dup2.c (rpl_dup2): Likewise.
10249         * lib/dup3.c (rpl_dup3): Likewise.
10250         * lib/open.c (rpl_open): Likewise.
10251
10252         fchdir: simplify error handling, and support dup3
10253         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10254         stdbool, malloc-posix, realloc-posix.
10255         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10256         (ensure_dirs_slot): Return false on allocation failure.
10257         (rpl_dup2): Delete.
10258         (_gl_register_dup): New function.
10259         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10260         (_gl_register_fd): Close fd on allocation failure.
10261         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10262         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10263         prototype.
10264         (rpl_dup2_fchdir): Delete prototype.
10265         * lib/open.c (open): Update caller.
10266         * lib/dup2.c (dup2): Track fchdir metadata.
10267         * lib/dup3.c (dup3): Likewise.
10268         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10270
10271 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10272
10273         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10274         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10275         don't pass arguments to AC_OUTPUT.
10276
10277 2009-09-02  Bruno Haible  <bruno@clisp.org>
10278
10279         * modules/mkdtemp (License): Relicense under LGPLv2+.
10280         Reported by Paolo Bonzini.
10281
10282 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10283
10284         Replace uses of obsolete autoconf macros in Jim's modules.
10285         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10286         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10287         can evoke a warning from autoconf when run with -Wobsolete
10288         enabled.  They were declared obsolete for good reasons (see
10289         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10290         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10291         should not continue using the deprecated macros.
10292         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10293         obsolete Autoconf macros with modern counterparts.
10294         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10295         * m4/dos.m4 (gl_AC_DOS): Likewise.
10296         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10298         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10299         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10300         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10302         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10303         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10304         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10305         Likewise.
10306         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10307         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10308         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10309         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10310         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10311         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10312
10313 2009-09-01  Eric Blake  <ebb9@byu.net>
10314
10315         fchdir: fix off-by-one bug in previous patch
10316         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10317         (_gl_unregister_fd): Delete useless if.
10318
10319 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10320
10321         maint.mk: sort the list of syntax-check rules
10322         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10323         easier to get a sense of progress when the rules are run sequentially
10324         and take a long time.
10325
10326 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10327
10328         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10329         * modules/netinet_in: Likewise.
10330         * modules/sys_file: Likewise.
10331         * modules/sys_ioctl: Likewise.
10332         * modules/sys_select: Likewise.
10333         * modules/sys_socket: Likewise.
10334         * modules/sys_stat: Likewise.
10335         * modules/sys_time: Likewise.
10336         * modules/sys_times: Likewise.
10337         * modules/sys_utsname: Likewise.
10338         * modules/sys_wait: Likewise.
10339
10340 2009-09-01  Jim Meyering  <meyering@redhat.com>
10341
10342         fts: help ensure that return values are not ignored
10343         * lib/fts_.h (__GNUC_PREREQ): Define.
10344         (__attribute_warn_unused_result__): Define.
10345         (fts_children, fts_close, fts_open, fts_read): Declare with
10346         __attribute_warn_unused_result__.
10347
10348         fts: fts_close now fails also when closing a dir file descriptor fails
10349         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10350         and propagate to caller, along with errno.
10351
10352         announce-gen: correct formatting in --help output
10353         * build-aux/announce-gen (usage): Move the one-line description in
10354         --help output "up", to where it belongs, just after Usage:.
10355
10356 2009-08-31  Eric Blake  <ebb9@byu.net>
10357
10358         fchdir: port to mingw
10359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10360         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10361         opened, then use a substitute.
10362         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10363         replacement.
10364         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10365         (_gl_register_fd): No need to check stat if open already filters
10366         all directories.
10367         (fchdir): Fix error condition to match POSIX.
10368         * modules/fchdir (Depends-on): Add sys_stat.
10369         * doc/posix-functions/open.texi (open): Document the limitation.
10370         * modules/fchdir-tests: New file.
10371         * tests/test-fchdir.c: Likewise.
10372
10373         canonicalize: allow cross-testing from cygwin to mingw
10374         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10375         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10376         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10377         Likewise.
10378         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10379         target does not support symlinks.
10380         * tests/test-canonicalize-lgpl.sh: Likewise.
10381
10382         chown: avoid compilation warning on mingw
10383         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10384         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10385         mingw.
10386         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10387         * modules/chown (Depends-on): Add errno.
10388
10389 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10390
10391         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10392         command.
10393
10394 2009-08-31  Jim Meyering  <meyering@redhat.com>
10395
10396         canonicalize: remove useless initialization
10397         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10398         initialization of local, "end".
10399
10400 2009-08-30  Bruno Haible  <bruno@clisp.org>
10401
10402         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10403         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10404         ENOSYS.
10405
10406 2009-08-30  Bruno Haible  <bruno@clisp.org>
10407
10408         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10409         /usr/xpg4/bin/tr when it exists.
10410         * tests/test-pipe-filter-gi1.sh: Likewise.
10411
10412 2009-08-30  Bruno Haible  <bruno@clisp.org>
10413
10414         Work around deficient /usr/bin/id program on Solaris.
10415         * tests/test-file-has-acl.sh (ID): New variable.
10416         * tests/test-set-mode-acl.sh (ID): Likewise.
10417         * tests/test-copy-acl.sh (ID): Likewise.
10418         * tests/test-copy-file.sh (ID): Likewise.
10419
10420 2009-08-30  Bruno Haible  <bruno@clisp.org>
10421
10422         New module 'xstriconveh'.
10423         * lib/xstriconveh.h: New file.
10424         * lib/xstriconveh.c: New file.
10425         * modules/xstriconveh: New file.
10426
10427 2009-08-30  Bruno Haible  <bruno@clisp.org>
10428
10429         Make it easier to use mem_cd_iconveh.
10430         * lib/striconveh.h (iconveh_t): New type.
10431         (iconveh_open, iconveh_close): New declarations.
10432         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10433         with a single 'const iconveh_t *' argument.
10434         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10435         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10436         with a single 'const iconveh_t *' argument.
10437         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10438         * tests/test-striconveh.c (main): Update.
10439         * NEWS: Mention the change.
10440
10441 2009-08-30  Bruno Haible  <bruno@clisp.org>
10442
10443         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10444         problem.
10445
10446 2009-08-30  Bruno Haible  <bruno@clisp.org>
10447
10448         Work around iconv_open problem on Solaris.
10449         * lib/iconv_open-solaris.gperf: New file.
10450         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10451         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10452         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10453         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10454         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10455         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10456
10457 2009-08-29  Jim Meyering  <meyering@redhat.com>
10458
10459         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10460         * top/maint.mk (cvs-check): Remove target; it was just an alias
10461         to the better-named vc-diff-check.
10462         (maintainer-distcheck): Remove rule.  It was used only from
10463         the (alpha/beta/major) target, and all of its commands but one
10464         were coreutils-specific.
10465         (vc-dist): Remove rule.
10466         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10467         Run vc-diff-check, not vc-dist.
10468         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10469
10470 2009-08-27  Bruno Haible  <bruno@clisp.org>
10471
10472         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10473         of 0.
10474
10475 2009-08-27  Bruno Haible  <bruno@clisp.org>
10476
10477         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10478         compilers.
10479         * doc/func.texi: Document the SunPRO C bug.
10480
10481 2009-08-27  Bruno Haible  <bruno@clisp.org>
10482
10483         Fix link error on Solaris.
10484         * tests/test-parse-duration.c (xstrdup): Remove function.
10485
10486 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10487
10488         ignore-value: handle pointer types, too
10489         * lib/ignore-value.h (__attribute__): Remove definition.
10490         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10491         of a more concise and more-often effective "(void) i" statement.
10492         (ignore_ptr): New function to suppress warnings from functions that
10493         return pointers, and to make it explicit that one function doesn't
10494         handle all cases.
10495
10496 2009-08-25  Bruno Haible  <bruno@clisp.org>
10497
10498         dup2: work around a Linux bug.
10499         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10500         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10501         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10502         Reported by Simon Josefsson.
10503
10504 2009-08-25  Jim Meyering  <meyering@redhat.com>
10505
10506         libguestfs uses gnulib
10507         * users.txt: Add libguestfs.
10508
10509 2009-08-24  Eric Blake  <ebb9@byu.net>
10510
10511         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10512         * lib/pipe2.c (includes): Add binary-io.h.
10513         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10514
10515 2009-08-24  Bruno Haible  <bruno@clisp.org>
10516
10517         Tolerate declared but missing accept4 syscall.
10518         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10519         available.
10520         * lib/sys_socket.in.h (accept4): If the function is already present,
10521         override it.
10522         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10523         * modules/accept4 (Makefile.am): Compile accept4.c always.
10524         Reported by Paolo Bonzini and Eric Blake.
10525
10526 2009-08-23  Bruno Haible  <bruno@clisp.org>
10527
10528         New module 'accept4'.
10529         * lib/sys_socket.in.h (accept4): New declaration.
10530         * lib/accept4.c: New file.
10531         * m4/accept4.m4: New file.
10532         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10533         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10534         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10535         HAVE_ACCEPT4.
10536         * modules/accept4: New file.
10537         * doc/glibc-functions/accept4.texi: Mention the new module.
10538
10539 2009-08-24  Jim Meyering  <meyering@redhat.com>
10540
10541         progname: also set global program_invocation_name, when possible
10542         Before this change, a libtool-enabled program that calls glibc's
10543         error function would report the program name as
10544         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10545         * modules/progname (configure.ac): Check for a declaration of
10546         program_invocation_name.
10547         * lib/progname.c:  Include <errno.h>.
10548         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10549         Set program_invocation_name.
10550
10551 2009-08-23  Bruno Haible  <bruno@clisp.org>
10552
10553         * lib/dup3.c: Include <string.h>.
10554
10555 2009-08-23  Bruno Haible  <bruno@clisp.org>
10556
10557         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10558         * lib/pipe2.c (pipe2): Likewise.
10559         Suggested by Eric Blake.
10560
10561 2009-08-23  Bruno Haible  <bruno@clisp.org>
10562
10563         Tolerate declared but missing dup3 syscall.
10564         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10565         * lib/unistd.in.h (dup3): If the function is already present,
10566         override it.
10567         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10568         * modules/dup3 (Makefile.am): Compile dup3.c always.
10569         Reported by Paolo Bonzini.
10570
10571 2009-08-23  Bruno Haible  <bruno@clisp.org>
10572
10573         Tolerate declared but missing pipe2 syscall.
10574         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10575         available.
10576         * lib/unistd.in.h (pipe2): If the function is already present,
10577         override it.
10578         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10579         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10580         Reported by Paolo Bonzini.
10581
10582 2009-08-23  Bruno Haible  <bruno@clisp.org>
10583
10584         * lib/pipe2.c (pipe2): Move #ifs inside function.
10585
10586 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10587
10588         quotearg: document limitations of quote_these_too
10589         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10590         those limitations are created.
10591         * lib/quotearg.h (set_char_quoting): Document that digits and
10592         letters that are special after backslash are not permitted.
10593         (quotearg_char): Cross-reference set_char_quoting documentation.
10594
10595 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10596
10597         quotearg: implement custom_quoting_style
10598         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10599         right_quote fields.
10600         (set_custom_quoting): New public function.
10601         (quotearg_buffer_restyled): Add left_quote and right_quote
10602         arguments, handle them very much like locale quoting, and update
10603         all uses.
10604         (quotearg_n_custom): New public function.
10605         (quotearg_n_custom_mem): New public function.
10606         (quotearg_custom): New public function.
10607         (quotearg_custom_mem): New public function.
10608         * lib/quotearg.h: Prototype and document new public functions.
10609         (enum quoting_style): For escape_quoting_style and
10610         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10611         ignored even though they're otherwise like c_quoting_style.
10612         Add custom_quoting_style member and document with comparison to
10613         clocale_quoting_style.
10614         * tests/test-quotearg.c (custom_quotes): New array.
10615         (custom_results): New array.
10616         (main): Extend to test custom quoting.
10617
10618 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10619
10620         quotearg: fix right quote escaping when it's in quote_these_too
10621         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10622         quote, be sure to prepend only one backslash.
10623         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10624         (main): Test it.
10625
10626 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10627
10628         quotearg-tests: test escaping of embedded locale quotes
10629         * tests/test-quotearg.c (struct result_strings): Add member for
10630         new input.
10631         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10632         (inputs): Add new input.
10633         (results_g): Add expected results.
10634         (flag_results): Likewise.
10635         (locale_results): Likewise.
10636         (compare_strings): Check those.
10637
10638 2009-08-23  Bruno Haible  <bruno@clisp.org>
10639
10640         Tests for module 'dup3'.
10641         * modules/dup3-tests: New file.
10642         * tests/test-dup3.c: New file.
10643
10644         New module 'dup3'.
10645         * lib/unistd.in.h (dup3): New declaration.
10646         * lib/dup3.c: New file.
10647         * m4/dup3.m4: New file.
10648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10649         HAVE_DUP3.
10650         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10651         * modules/dup3: New file.
10652         * doc/glibc-functions/dup3.texi: Mention the new module.
10653
10654 2009-08-23  Bruno Haible  <bruno@clisp.org>
10655
10656         Tweak the dup2 test.
10657         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10658         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10659         the test file is still empty. Fix argument order of lseek.
10660
10661 2009-08-23  Bruno Haible  <bruno@clisp.org>
10662
10663         Avoid test link errors when the modules getopt-gnu, gettext are used.
10664         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10666
10667 2009-08-23  Bruno Haible  <bruno@clisp.org>
10668
10669         Fix getdtablesize() on mingw.
10670         * lib/getdtablesize.c (getdtablesize): Implement differently.
10671         * lib/unistd.in.h (getdtablesize): Improve comment.
10672
10673 2009-08-23  Bruno Haible  <bruno@clisp.org>
10674
10675         New module 'mkostemp'.
10676         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10677         * lib/stdlib.in.h (mksotemp): New declaration.
10678         * lib/mkostemp.c: New file, from glibc with modifications.
10679         * lib/tempname.h (GT_FILE): Remove outdated comment.
10680         (gen_tempname): Add flags argument.
10681         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10682         (__GT_FILE): Map to 1.
10683         (small_open, large_open): Remove macros.
10684         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10685         * lib/mkstemp.c (mkstemp): Update.
10686         * lib/mkdtemp.c (mkdtemp): Likewise.
10687         * m4/mkostemp.m4: New file.
10688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10689         HAVE_MKOSTEMP.
10690         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10691         HAVE_MKOSTEMP.
10692         * modules/mkostemp: New file, based on modules/mkstemp.
10693         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10694         * NEWS: Mention the change.
10695
10696 2009-08-23  Bruno Haible  <bruno@clisp.org>
10697
10698         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10699         Reported by Eric Blake.
10700
10701 2009-08-23  Bruno Haible  <bruno@clisp.org>
10702
10703         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10704         Reported by Eric Blake.
10705
10706 2009-08-23  Bruno Haible  <bruno@clisp.org>
10707
10708         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10709         * modules/pipe2 (Depends-on): Likewise.
10710
10711 2009-08-23  Eric Blake  <ebb9@byu.net>
10712
10713         fcntl-h: add O_TTY_INIT support
10714         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10715         * tests/test-fcntl-h.c (o): Test it.
10716         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10717
10718         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10719         * modules/fcntl: Move <fcntl.h> header replacement...
10720         * modules/fcntl-h: ...to new name, so as not to collide with
10721         like-named function.
10722         * tests/test-fcntl.c: Rename...
10723         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10724         * modules/fcntl-tests: Rename...
10725         * modules/fcntl-h-tests: ...to this.  Update test file name.
10726         * modules/chdir-long (Depends-on): Update clients.
10727         * modules/chdir-safer (Depends-on): Likewise.
10728         * modules/fcntl-safer (Depends-on): Likewise.
10729         * modules/fts (Depends-on): Likewise.
10730         * modules/mkancesdirs (Depends-on): Likewise.
10731         * modules/mkdir-p (Depends-on): Likewise.
10732         * modules/open (Depends-on): Likewise.
10733         * modules/savewd (Depends-on): Likewise.
10734         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10735         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10736
10737 2009-08-22  Bruno Haible  <bruno@clisp.org>
10738
10739         * modules/binary-io (License): Relicense under LGPL.
10740         * modules/pipe2 (License): Likewise.
10741
10742 2009-08-22  Bruno Haible  <bruno@clisp.org>
10743
10744         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10745         return value.
10746         * lib/pipe-filter-gi.c (filter_init): Likewise.
10747         Reported by Eric Blake.
10748
10749 2009-08-22  Bruno Haible  <bruno@clisp.org>
10750
10751         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10752         * modules/pipe (Depends-on): Add pipe2.
10753
10754 2009-08-22  Bruno Haible  <bruno@clisp.org>
10755
10756         Tests for module 'pipe2'.
10757         * modules/pipe2-tests: New file.
10758         * tests/test-pipe2.c: New file.
10759
10760         New module 'pipe2'.
10761         * lib/unistd.in.h (pipe2): New declaration.
10762         * lib/pipe2.c: New file.
10763         * m4/pipe2.m4: New file.
10764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10765         HAVE_PIPE2.
10766         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10767         * modules/pipe2: New file.
10768         * doc/glibc-functions/pipe2.texi: Mention the new module.
10769
10770 2009-08-22  Bruno Haible  <bruno@clisp.org>
10771
10772         Reference some new glibc functions.
10773         * doc/glibc-functions/accept4.texi: New file.
10774         * doc/glibc-functions/dup3.texi: New file.
10775         * doc/glibc-functions/mkostemp.texi: New file.
10776         * doc/glibc-functions/pipe2.texi: New file.
10777         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10778         (Glibc sys/socket.h): Refer to accept4.
10779         (Glibc unistd.h): Refer to dup3, pipe2.
10780         Reported by Eric Blake.
10781
10782 2009-08-22  Jim Meyering  <meyering@redhat.com>
10783             Bruno Haible  <bruno@clisp.org>
10784
10785         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10786         This makes it so packages using automake-1.11's silent-rules option
10787         can print e.g., a single "GEN    configmake.h" line, rather than
10788         the 30+ statements that perform the job.  If you want to see the
10789         actual commands, you can still run "make V=1".
10790         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10791         so that make output is abbreviated when those variables are defined
10792         appropriately.
10793         * modules/argz: Likewise.
10794         * modules/arpa_inet: Likewise.
10795         * modules/byteswap: Likewise.
10796         * modules/configmake: Likewise.
10797         * modules/dirent: Likewise.
10798         * modules/errno: Likewise.
10799         * modules/fcntl: Likewise.
10800         * modules/float: Likewise.
10801         * modules/fnmatch: Likewise.
10802         * modules/getopt-posix: Likewise.
10803         * modules/glob: Likewise.
10804         * modules/iconv_open: Likewise.
10805         * modules/inttypes: Likewise.
10806         * modules/localcharset: Likewise.
10807         * modules/locale: Likewise.
10808         * modules/math: Likewise.
10809         * modules/netdb: Likewise.
10810         * modules/netinet_in: Likewise.
10811         * modules/poll: Likewise.
10812         * modules/posix_spawnp-tests: Likewise.
10813         * modules/sched: Likewise.
10814         * modules/search: Likewise.
10815         * modules/selinux-h: Likewise.
10816         * modules/signal: Likewise.
10817         * modules/spawn: Likewise.
10818         * modules/stdarg: Likewise.
10819         * modules/stdbool: Likewise.
10820         * modules/stddef: Likewise.
10821         * modules/stdint: Likewise.
10822         * modules/stdio: Likewise.
10823         * modules/stdlib: Likewise.
10824         * modules/string: Likewise.
10825         * modules/strings: Likewise.
10826         * modules/sys_file: Likewise.
10827         * modules/sys_ioctl: Likewise.
10828         * modules/sys_select: Likewise.
10829         * modules/sys_socket: Likewise.
10830         * modules/sys_stat: Likewise.
10831         * modules/sys_time: Likewise.
10832         * modules/sys_times: Likewise.
10833         * modules/sys_utsname: Likewise.
10834         * modules/sys_wait: Likewise.
10835         * modules/sysexits: Likewise.
10836         * modules/time: Likewise.
10837         * modules/unistd: Likewise.
10838         * modules/wchar: Likewise.
10839         * modules/wctype: Likewise.
10840
10841 2009-08-22  Jim Meyering  <meyering@redhat.com>
10842
10843         announce-gen: detect write failure
10844         * build-aux/announce-gen: Add Coda at end.
10845         Remove equivalent-but-more-verbose block at top.
10846
10847 2009-08-19  Akim Demaille  <demaille@gostai.com>
10848
10849         bootstrap: --help to stdout.
10850         * bootstrap (usage): Don't send --help to stderr.
10851         Use a here doc instead of a long string.
10852
10853 2009-08-21  Eric Blake  <ebb9@byu.net>
10854
10855         test-popen-safer: split from test-popen
10856         * tests/test-popen.c (main): Move...
10857         * tests/test-popen.h: ...into new file.
10858         * tests/test-popen-safer2.c: New file.
10859         * modules/popen-tests (Files): Add test-popen.h.
10860         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10861         Suggested by Bruno Haible.
10862
10863         test-fcntl-safer: split from test-open
10864         * tests/test-open.c (main): Move...
10865         * tests/test-open.h: ...into new file.
10866         * tests/test-fcntl-safer.c: New file.
10867         * modules/open-tests (Files): Add test-open.h.
10868         * modules/fcntl-safer-tests: New file.
10869         Suggested by Bruno Haible.
10870
10871         test-fopen-safer: split from test-fopen
10872         * tests/test-fopen.c (main): Move...
10873         * tests/test-fopen.h: ...into new file.
10874         * tests/test-fopen-safer.c: New file.
10875         * modules/fopen-tests (Files): Add test-fopen.h.
10876         * modules/fopen-safer-tests: New file.
10877         Suggested by Bruno Haible.
10878
10879 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10880
10881         popen-safer: test O_CLOEXEC at run-time.
10882         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10883
10884 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10885
10886         fcntl: move more flags to the header
10887         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10888         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10889         * lib/fcntl.in.h: Do both things here.
10890
10891 2009-08-21  Jim Meyering  <meyering@redhat.com>
10892
10893         consistently remove $@-t before redirecting to it
10894         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10895         * modules/alloca-opt: Likewise.
10896         * modules/byteswap: Likewise.
10897         * modules/fnmatch: Likewise.
10898         * modules/getopt-posix: Likewise.
10899         * modules/glob: Likewise.
10900         * modules/poll: Likewise.
10901         * modules/posix_spawnp-tests: Likewise.
10902         * modules/sys_socket: Likewise.
10903         * modules/sysexits: Likewise.
10904
10905 2009-08-21  Eric Blake  <ebb9@byu.net>
10906
10907         popen: simplify access to original popen
10908         * lib/popen.c (rpl_popen): No need to worry about popen being a
10909         macro.
10910         Reported by Bruno Haible.
10911
10912 2009-08-20  Eric Blake  <ebb9@byu.net>
10913
10914         build: avoid some compiler warnings
10915         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10916         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10917         type.
10918         (new_exclude_segment, excluded_file_pattern_p)
10919         (excluded_file_name_p): Reduce scope.
10920         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10921         old-style declaration.
10922
10923 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10924
10925         * tests/test-exclude1.sh: Handle Windows EOL.
10926         * tests/test-exclude2.sh: Likewise.
10927         * tests/test-exclude3.sh: Likewise.
10928         * tests/test-exclude4.sh: Likewise.
10929         * tests/test-exclude5.sh: Likewise.
10930         * tests/test-exclude6.sh: Likewise.
10931         * tests/test-exclude7.sh: Likewise.
10932
10933 2009-08-19  Akim Demaille  <demaille@gostai.com>
10934
10935         bootstrap: find sha1sum when named gsha1sum.
10936         * bootstrap (find_tool): New.
10937         ($SHA1SUM): New.
10938         Use it.
10939
10940 2009-08-20  Jim Meyering  <meyering@redhat.com>
10941
10942         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10943         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10944         expression that converts "." in a file name to "\." in the resulting
10945         regexp.  Start with a dummy statement, so that prior shell variable
10946         definitions are expanded portably.  Reported by Simon Josefsson.
10947
10948 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10949
10950         Fix polling for writeability of a screen buffer.
10951         * lib/poll.c: Distinguish input and screen buffers for the
10952         Win32 implementation.
10953         * lib/select.c: Likewise.
10954
10955 2009-08-19  Eric Blake  <ebb9@byu.net>
10956
10957         popen-safer: prevent popen from clobbering std descriptors
10958         * modules/popen-safer: New file.
10959         * lib/popen-safer.c: Likewise.
10960         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10961         * lib/stdio--.h (popen): Provide override.
10962         * lib/stdio-safer.h (popen_safer): Provide declaration.
10963         * tests/test-popen.c (includes): Partially test this.
10964         * modules/popen-safer-tests: New file, for more tests.
10965         * tests/test-popen-safer.c: Likewise.
10966         * MODULES.html.sh (file stream based Input/Output): Mention it.
10967
10968         tests: test some of the *-safer modules
10969         * modules/fopen-safer (Depends-on): Add fopen.
10970         * modules/fcntl-safer (Depends-on): Add fcntl.
10971         * modules/stdlib-safer (Depends-on): Add stdlib.
10972         (configure.ac): Set indicator.
10973         * modules/unistd-safer (configure.ac): Likewise.
10974         * modules/tmpfile-safer (configure.ac): Likewise.
10975         (Depends-on): Add tmpfile.
10976         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10977         active.
10978         * tests/test-fopen.c (includes): Test safer versions when they are
10979         in use.
10980         * tests/test-open.c (includes): Likewise.
10981
10982         popen: fix cygwin 1.5 bug when stdin closed
10983         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10984         * modules/popen: New file.
10985         * modules/popen-tests: Likewise.
10986         * tests/test-popen.c: Likewise.
10987         * m4/popen.m4: Likewise.
10988         * lib/popen.c: Likewise.
10989         * lib/stdio.in.h (popen): New declaration.
10990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10991         * modules/stdio (Makefile.am): Likewise.
10992         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10993
10994 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10995
10996         maint.mk: give full control over update-copyright exclusions
10997         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10998         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10999         (update-copyright): Don't force inclusion of top-level
11000         ChangeLog.  Don't force exclusion of all COPYING files, but make
11001         them the default exclusion instead.
11002
11003 2009-08-16  Bruno Haible  <bruno@clisp.org>
11004
11005         Fix test failures on Solaris 10.
11006         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11007         tests when Solaris iconv() is used.
11008         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11009         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11010         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11011         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11012         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11013
11014 2009-08-16  Bruno Haible  <bruno@clisp.org>
11015
11016         Fix test failures on Solaris 10.
11017         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11018         'tr' program and pass it as first argument.
11019         * tests/test-pipe-filter-gi1.sh: Likewise.
11020         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11021         program as first argument.
11022         * tests/test-pipe-filter-gi1.c (main): Likewise.
11023
11024 2009-08-16  Eric Blake  <ebb9@byu.net>
11025
11026         fpurge: fix previous commits
11027         * modules/fpurge (Makefile.am): Make replacement conditional,
11028         partially reverting 2007-04-29 change; missed in previous
11029         attempt.
11030         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11031         is missing.
11032
11033 2009-08-16  Bruno Haible  <bruno@clisp.org>
11034
11035         Clarify fpurge's effect on the file position.
11036         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11037         * tests/test-fpurge.c (main): Make a second pass for checking the file
11038         position.
11039
11040 2009-08-16  Bruno Haible  <bruno@clisp.org>
11041
11042         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11043         declaration of fpurge is missing.
11044         * tests/test-fpurge.c (main): Check that the file has not more contents
11045         than expected. Close the file before removing it.
11046
11047 2009-08-15  Eric Blake  <ebb9@byu.net>
11048
11049         fpurge: don't wrap working cygwin implementation
11050         * lib/fpurge.c (fpurge): Fix comment typo.
11051         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11052         1.7 to avoid replacement.
11053         * tests/test-fpurge.c (main): Enhance test.
11054
11055 2009-08-15  Eric Blake  <ebb9@byu.net>
11056         and Jim Meyering  <meyering@redhat.com>
11057
11058         test-update-copyright: skip if perl is insufficient
11059         * tests/test-update-copyright.sh: Failure to run maintainer tool
11060         should not cause testsuite failure on cygwin 1.5.
11061
11062 2009-08-14  Eric Blake  <ebb9@byu.net>
11063
11064         doc: mention more functions added in cygwin 1.7.0
11065         * doc/posix-headers/limits.texi (limits.h): Update for recent
11066         cygwin additions.
11067         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11068         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11069         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11070         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11071         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11072
11073 2009-08-14  Eric Blake  <ebb9@byu.net>
11074
11075         maint.mk: simplify update-copyright rule
11076         * top/maint.mk (update-copyright-local): Delete, and document how
11077         to do it in cfg.mk instead.
11078         (update-copyright-exclude-regexp): Delete, and document how to do
11079         it in .x-update-copyright instead.
11080         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11081         exclude ChangeLog.
11082
11083 2009-08-14  Bruno Haible  <bruno@clisp.org>
11084
11085         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11086
11087 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11088
11089         maint.mk: support update-copyright-env
11090         * top/maint.mk (update-copyright-env): Define place-holder.
11091         (update-copyright): Expand $(update-copyright-env) before
11092         invoking update-copyright.
11093
11094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11095
11096         update-copyright: implement forced reformatting
11097         * build-aux/update-copyright: Implement and document
11098         UPDATE_COPYRIGHT_FORCE.
11099         * tests/test-update-copyright.sh: Test it.
11100
11101 2009-08-14  Eric Blake  <ebb9@byu.net>
11102         and Bruno Haible  <bruno@clisp.org>
11103
11104         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11105         * tests/test-locale.c: Revert previous patch related to NULL.
11106         * tests/test-stdio.c: Likewise.
11107         * tests/test-stdlib.c: Likewise.
11108         * tests/test-string.c: Likewise.
11109         * tests/test-unistd.c: Likewise.
11110         * modules/time-tests (Depends-on): Add verify.
11111         * modules/wchar-tests (Depends-on): Likewise.
11112         * tests/test-time.c: Test for NULL compliance.
11113         * tests/test-wchar.c: Likewise.
11114         * modules/locale (Depends-on): Add stddef.
11115         * modules/stdio (Depends-on): Likewise.
11116         * modules/stdlib (Depends-on): Likewise.
11117         * modules/string (Depends-on): Likewise.
11118         * modules/time (Depends-on): Likewise.
11119         * modules/unistd (Depends-on): Likewise.
11120         * modules/wchar (Depends-on): Likewise.
11121         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11122         * lib/stdlib.in.h (includes): Likewise.
11123         * lib/string.in.h (includes): Likewise.
11124         * lib/time.in.h (includes): Likewise.
11125         * lib/unistd.in.h (includes): Likewise.
11126         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11127         replaced.
11128         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11129         * m4/stddef_h.m4: New file.
11130         * modules/stddef: Likewise.
11131         * lib/stddef.in.h: Likewise.
11132         * modules/stddef-tests: Likewise.
11133         * tests/test-stddef.c: Likewise.
11134         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11135         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11136         * doc/posix-headers/locale.texi (locale.h): Likewise.
11137         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11138         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11139         * doc/posix-headers/string.texi (string.h): Likewise.
11140         * doc/posix-headers/time.texi (time.h): Likewise.
11141         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11142         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11143
11144 2009-08-14  Eric Blake  <ebb9@byu.net>
11145
11146         doc: improve git diff of texinfo files
11147         * .gitattributes: Add rule for *.texi files, with hint on how to
11148         use it.
11149         Copied from m4, and based on a report by Bruno Haible.
11150
11151 2009-08-14  Bruno Haible  <bruno@clisp.org>
11152
11153         Disable multithread support by default on Cygwin 1.5.x for real.
11154         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11155
11156 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11157
11158         update-copyright: much ado about intervals
11159         * build-aux/update-copyright: Implement and document
11160         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11161         of copyright year intervals.
11162         Also, document UPDATE_COPYRIGHT_YEAR.
11163         * tests/test-update-copyright.sh: Test it.
11164
11165         update-copyright: convert 2-digit to 4-digit years
11166         * build-aux/update-copyright: Implement and document.
11167         * tests/test-update-copyright.sh: Update.
11168
11169 2009-08-14  Jim Meyering  <meyering@redhat.com>
11170
11171         test-exclude: avoid coreutils "make check" failure
11172         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11173         just as in test-argmatch.c.
11174
11175 2009-08-13  Eric Blake  <ebb9@byu.net>
11176
11177         test-dup2: fix bad assumption
11178         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11179         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11180
11181         test-version-etc: fix CRLF portability issue
11182         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11183         recognize \r.
11184         * tests/test-argp-version-etc-1.sh: Likewise.
11185
11186         getopt: update client modules
11187         * modules/argp (Depends-on): Use getopt-gnu.
11188         * modules/git-merge-changelog (Depends-on): Likewise.
11189         * modules/long-options (Depends-on): Likewise.
11190         * modules/xstrtol (Depends-on): Likewise.
11191
11192 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11193
11194         * tests/test-version-etc.sh: Don't fail on different
11195         project/version.  Don't fail on CRLF differences.  Rewrite to use
11196         multiple -e instead of multiple sed forks, suggested by Eric Blake
11197         <ebb9@byu.net>.
11198         * tests/test-argp-version-etc-1.sh: Likewise.
11199
11200 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11201
11202         * tests/test-version-etc.sh: Don't fail on different
11203         project/version.
11204
11205 2009-08-12  Bruno Haible  <bruno@clisp.org>
11206
11207         Tests for modules 'getopt-posix', 'getopt-gnu'.
11208         * modules/getopt-posix-tests: New file.
11209         * tests/test-getopt.c: New file.
11210         * tests/test-getopt.h: New file.
11211         * tests/test-getopt_long.h: New file.
11212
11213         New modules 'getopt-posix', 'getopt-gnu'.
11214         * modules/getopt-gnu: New file, renamed from modules/getopt.
11215         * modules/getopt-posix: New file.
11216         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11217         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11218         (gl_GETOPT): Remove macro.
11219         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11220         Disable the test against BSD systems that declare optreset. Test
11221         against mingw bug. Test against lack of support of optional arguments
11222         on many platforms.
11223         * doc/glibc-headers/getopt.texi: Update module name and list of
11224         relevant platforms.
11225         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11226         'getopt-gnu' and more portability problems.
11227         * NEWS: Mention the changes.
11228
11229 2009-08-12  Bruno Haible  <bruno@clisp.org>
11230
11231         Ensure that optarg etc. get declared by <unistd.h>.
11232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11233         AC_USE_SYSTEM_EXTENSIONS.
11234         * modules/getopt (Depends-on): Add 'extensions'.
11235
11236 2009-08-12  Bruno Haible  <bruno@clisp.org>
11237
11238         Avoid test link errors.
11239         * modules/pipe-filter-ii-tests (Makefile.am): Define
11240         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11241         * modules/pipe-filter-gi-tests (Makefile.am): Define
11242         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11244
11245 2009-08-12  Bruno Haible  <bruno@clisp.org>
11246
11247         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11248         gl_GETOPT_SUBSTITUTE before.
11249         (gl_GETOPT): Use it.
11250         * m4/argp.m4 (gl_ARGP): Update.
11251         Reported by Sergey Poznyakoff.
11252
11253         * m4/getopt.m4: Reorder macros.
11254         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11255         (gl_GETOPT_SUBSTITUTE): Remove macro.
11256
11257 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11258
11259         Minor improvement in gitlog-to-changelog
11260
11261         * build-aux/gitlog-to-changelog: New option `--format' makes
11262         output format string configurable.
11263
11264 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11265
11266         Optimize exclude: use hash tables for non-wildcard patterns.
11267
11268         * lib/exclude.c: Include hash.h and mbuiter.h
11269         (struct exclude_pattern, exclude_segment): New data types.
11270         (struct exclude): Rewrite.
11271         (fnmatch_pattern_has_wildcards): New function.
11272         (new_exclude_segment, free_exclude_segment): New functions.
11273         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11274         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11275         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11276         * modules/exclude: Depend on hash and mbuiter.
11277
11278         * modules/exclude-tests: New file.
11279         * tests/test-exclude.c: New file.
11280         * tests/test-exclude1.sh: New file.
11281         * tests/test-exclude2.sh: New file.
11282         * tests/test-exclude3.sh: New file.
11283         * tests/test-exclude4.sh: New file.
11284         * tests/test-exclude5.sh: New file.
11285         * tests/test-exclude6.sh: New file.
11286         * tests/test-exclude7.sh: New file.
11287
11288 2009-08-12  Bruno Haible  <bruno@clisp.org>
11289
11290         Ensure that getopt() gets declared by <unistd.h>.
11291         * lib/unistd.in.h: Conditionally include getopt.h.
11292         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11293         Set GNULIB_UNISTD_H_GETOPT.
11294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11295         GNULIB_UNISTD_H_GETOPT.
11296         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11297
11298 2009-08-12  Bruno Haible  <bruno@clisp.org>
11299
11300         Clarify logic.
11301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11302         gl_replace_getopt instead of GETOPT_H.
11303
11304 2009-08-12  Bruno Haible  <bruno@clisp.org>
11305
11306         * m4/getopt.m4: Add comments.
11307
11308 2009-08-12  Bruno Haible  <bruno@clisp.org>
11309
11310         Disable multithread support by default on Cygwin 1.5.x.
11311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11312         set gl_use_threads=no if not specified otherwise.
11313
11314 2009-08-11  Bruno Haible  <bruno@clisp.org>
11315
11316         Avoid compilation error on NetBSD 5.0.
11317         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11318         * tests/test-stdio.c: Likewise.
11319         * tests/test-stdlib.c: Likewise.
11320         * tests/test-string.c: Likewise.
11321         * tests/test-unistd.c: Likewise.
11322         Reported by Greg Troxel <gdt@ir.bbn.com>
11323         at <https://savannah.gnu.org/support/?106973>.
11324
11325 2009-08-11  Bruno Haible  <bruno@clisp.org>
11326
11327         * modules/dup2-tests (Depends-on): Remove close.
11328
11329         Undo 2009-07-19 commit.
11330         * modules/acl-tests (Depends-on): Remove close.
11331         * modules/binary-io-tests (Depends-on): Likewise.
11332         * modules/closein-tests (Depends-on): Likewise.
11333         * modules/flock-tests (Depends-on): Likewise.
11334         * modules/fsync-tests (Depends-on): Likewise.
11335         * modules/lseek-tests (Depends-on): Likewise.
11336         * modules/pipe-tests (Depends-on): Likewise.
11337         * modules/posix_spawn-tests (Depends-on): Likewise.
11338         * modules/posix_spawnp-tests (Depends-on): Likewise.
11339         * modules/stat-time-tests (Depends-on): Likewise.
11340         * modules/yesno-tests (Depends-on): Likewise.
11341
11342 2009-08-10  Bruno Haible  <bruno@clisp.org>
11343
11344         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11345
11346 2009-08-10  Bruno Haible  <bruno@clisp.org>
11347
11348         Fix a gcc warning.
11349         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11350
11351 2009-08-10  Bruno Haible  <bruno@clisp.org>
11352
11353         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11354         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11355         not only the first time.
11356         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11357         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11358         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11359         is 1, not only the the first time.
11360
11361 2009-08-10  Bruno Haible  <bruno@clisp.org>
11362
11363         Make it possible to use module 'gethostname' without module 'close'.
11364         * lib/unistd.in.h (close): Evoke a link error only if
11365         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11368         * modules/unistd (Makefile.am): Substitute
11369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11370         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11371         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11373         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11374         * modules/sys_ioctl (Makefile.am): Substitute
11375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11376         * modules/socket (configure.ac): On native Windows, set
11377         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11378         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11379         Reported by Sam Steingold <sds@gnu.org>.
11380
11381 2009-08-10  Bruno Haible  <bruno@clisp.org>
11382
11383         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11384         * modules/ioctl (configure.ac): Likewise.
11385
11386 2009-08-10  Bruno Haible  <bruno@clisp.org>
11387
11388         Avoid collision between gnulib wrapper and libintl wrapper.
11389         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11390         already defined in intl/printf.c.
11391         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11392         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11393
11394 2009-08-09  Bruno Haible  <bruno@clisp.org>
11395
11396         Make <sys/select.h> really self-contained, also on Solaris 10.
11397         * lib/sys_select.in.h: Include <string.h>.
11398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11399         Solaris 10 problem.
11400         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11401         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11402         Reported by Jim Meyering.
11403
11404 2009-08-09  Bruno Haible  <bruno@clisp.org>
11405
11406         Avoid warnings from 'aclocal' that are due to a use of macro name
11407         AM_XGETTEXT_OPTION that is not defined in automake.
11408         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11409         automake.
11410         * modules/error (configure.ac): Likewise.
11411         * modules/propername (configure.ac): Likewise.
11412         * modules/vasprintf (configure.ac): Likewise.
11413         * modules/verror (configure.ac): Likewise.
11414         * modules/xprintf (configure.ac): Likewise.
11415         * modules/xvasprintf (configure.ac): Likewise.
11416
11417 2009-08-08  Bruno Haible  <bruno@clisp.org>
11418
11419         Avoid compilation error in C++ mode.
11420         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11421         Reported by Sam Steingold <sds@gnu.org>.
11422
11423 2009-08-08  Bruno Haible  <bruno@clisp.org>
11424
11425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11426         for the various Unix platforms.
11427         * doc/posix-headers/limits.texi: Update platforms list regarding
11428         HOST_NAME_MAX.
11429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11430
11431 2009-08-07  Jim Meyering  <meyering@redhat.com>
11432
11433         selinux-at: fix typo in a comment
11434         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11435         Spotted by Paolo Bonzini.
11436
11437         selinux-at: remove redundant m4 code, add documentation
11438         * modules/selinux-at (configure.ac): Remove redundant code.
11439         LIB_SELINUX is already set via the dependent module, selinux-h.
11440         (Include): Add quotes around selinux-at.h.
11441         * lib/selinux-at.h: Add documentation.
11442         Reported by Bruno Haible in
11443         http://marc.info/?l=gnulib-bug&m=124958988300749
11444
11445 2009-08-07  Bruno Haible  <bruno@clisp.org>
11446
11447         Avoid link error on MacOS X 10.3 and 10.4.
11448         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11449         on non-ELF systems.
11450         * lib/argp-pv.c (argp_program_version): Likewise.
11451         Reported by Simon Josefsson.
11452
11453 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11454
11455         * tests/test-version-etc.sh: Use $EXEEXT.
11456
11457 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11458
11459         update-copyright: update documentation to point to maint.mk
11460         * build-aux/update-copyright: Here.
11461
11462 2009-08-06  Jim Meyering  <meyering@redhat.com>
11463
11464         maint.mk: support update-copyright-local
11465         * top/maint.mk (update-copyright-local): Define place-holder.
11466         (update-copyright): Depend on $(update-copyright-local).
11467
11468 2009-08-06  Jim Meyering  <meyering@redhat.com>
11469
11470         selinux-at: new module
11471         Initially written for coreutils, this module will soon be
11472         used by findutils, too.
11473         * MODULES.html.sh [Misc]: Add selinux-at.
11474         * lib/selinux-at.h: New file, from coreutils.
11475         * lib/selinux-at.c: Likewise.
11476         * modules/selinux-at: Likewise.
11477         (License): Change from LGPL to GPL, since it depends
11478         on the GPL'd openat module.
11479
11480         doc: update README
11481         * README: Remove references to cogito.
11482         Remove cvs-repo-updating instructions from 2007.
11483         Don't imply that CVS is better if you have limited disk space.
11484
11485 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11486
11487         update-copyright: support C-style comments
11488         * build-aux/update-copyright: Implement and document.
11489         * tests/test-update-copyright.sh: Test.
11490
11491 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11492
11493         update-copyright: support omitted "(C)"
11494         * build-aux/update-copyright: Implement and document.  Also,
11495         allow variable whitespace before "(C)".
11496         * tests/test-update-copyright.sh: Test.
11497
11498 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11499
11500         update-copyright: don't trip on non-FSF copyright statements
11501         * build-aux/update-copyright: Fix so that the first correctly
11502         formatted FSF copyright statement is recognized no matter what
11503         appears before it.  Update documentation.
11504         * tests/test-update-copyright.sh: Test that.
11505
11506 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11507
11508         update-copyright: clean up code a little
11509         * build-aux/update-copyright: Append "_re" to the name of any
11510         variable holding a regular expression.
11511         Replace "old" and "new" with "stmt" in variable names.
11512         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11513         handled correctly.
11514         Format code more consistently.
11515
11516 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11517
11518         update-copyright-tests: improve portability
11519         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11520         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11521
11522 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11523
11524         update-copyright: support @copyright{} and &copy;
11525         * build-aux/update-copyright: Implement and document.
11526         * tests/test-update-copyright.sh: Test.
11527
11528 2009-08-04  Jim Meyering  <meyering@redhat.com>
11529
11530         update-copyright-tests: correctly test EOL=\r\n handling
11531         * tests/test-update-copyright.sh: Put \r at the end of some lines
11532         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11533
11534         maint.mk: make update-copyright exclusion list more configurable
11535         * top/maint.mk (update-copyright): Default to excluding COPYING,
11536         but allow an override, in case someone does want to update that file.
11537
11538         maint.mk: don't update copyright date in COPYING
11539         * top/maint.mk (update-copyright): Exclude COPYING.
11540
11541         maint.mk: add a copyright-updating rule
11542         * top/maint.mk (update-copyright): New rule.
11543         Derived from coreutils/Makefile.am.
11544
11545         update-copyright: rename some variables
11546         * build-aux/update-copyright: Rename a few variables for clarity.
11547         Tweak syntax.  List Joel E. Denny as coauthor.
11548
11549 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11550
11551         update-copyright: fix bug for 2-digit last year and add tests
11552         * build-aux/update-copyright: Fix bug.
11553         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11554         specified.
11555         * modules/update-copyright-tests: New
11556         * tests/test-update-copyright.sh: New.
11557
11558 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11559
11560         update-copyright: handle leading tabs in line prefix
11561         * build-aux/update-copyright: Count leading tabs as 8 spaces
11562         when computing margin.  This helps with the formatting of
11563         ChangeLogs, for example.
11564         Fix documentation a little.
11565
11566 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11567
11568         update-copyright: support EOL=\r\n
11569         * build-aux/update-copyright: Implement that.
11570
11571 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11572
11573         update-copyright: automatically format copyright statements
11574         * build-aux/update-copyright: Implement that.
11575         Also, be a little more predictable and safer by always failing
11576         when the full copyright format is not perfectly recognized as an
11577         unbroken whole.  Discussed at
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11579         Rewrite documentation.
11580
11581 2009-08-03  Bruno Haible  <bruno@clisp.org>
11582
11583         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11584
11585 2009-08-02  Bruno Haible  <bruno@clisp.org>
11586
11587         Tests for module 'uname'.
11588         * modules/uname-tests: New file.
11589         * tests/test-uname.c: New file.
11590
11591         New module 'uname'.
11592         * lib/uname.c: New file.
11593         * m4/uname.m4: New file.
11594         * modules/uname: New file.
11595         * doc/posix-functions/uname.texi: Mention the new module.
11596
11597 2009-08-02  Bruno Haible  <bruno@clisp.org>
11598
11599         Tests for module 'sys_utsname'.
11600         * modules/sys_utsname-tests: New file.
11601         * tests/test-sys_utsname.c: New file.
11602
11603         New module 'sys_utsname'.
11604         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11605         * m4/sys_utsname_h.m4: New file.
11606         * modules/sys_utsname: New file.
11607         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11608
11609 2009-08-02  Bruno Haible  <bruno@clisp.org>
11610
11611         Implicitly initialize the sockets library.
11612         * lib/gethostname.c: Include sockets.h.
11613         (rpl_gethostname): Invoke gl_sockets_startup.
11614         * lib/socket.c: Include sockets.h.
11615         (rpl_socket): Invoke gl_sockets_startup.
11616         * modules/gethostname (Depends-on): Add sockets.
11617         * modules/socket (Depends-on): Likewise.
11618         * tests/test-poll.c: Don't include sockets.h.
11619         (main): Don't invoke gl_sockets_startup.
11620         * tests/test-select.c: Don't include sockets.h.
11621         (main): Don't invoke gl_sockets_startup.
11622
11623 2009-08-02  Bruno Haible  <bruno@clisp.org>
11624
11625         Allow multiple calls to gl_sockets_startup.
11626         * lib/sockets.c (initialized_sockets_version): New variable.
11627         (gl_sockets_startup): Do nothing if already called for this or a higher
11628         version.
11629         (gl_sockets_cleanup): Reset initialized_sockets_version.
11630
11631 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11632
11633         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11634         different project/version.
11635
11636 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11637             Bruno Haible  <bruno@clisp.org>
11638
11639         Tests for module 'pipe-filter-gi'.
11640         * modules/pipe-filter-gi-tests: New file.
11641         * tests/test-pipe-filter-gi1.sh: New file.
11642         * tests/test-pipe-filter-gi1.c: New file.
11643         * tests/test-pipe-filter-gi2.sh: New file.
11644         * tests/test-pipe-filter-gi2-main.c: New file.
11645         * tests/test-pipe-filter-gi2-child.c: New file.
11646
11647         New module 'pipe-filter-gi'.
11648         * lib/pipe-filter-gi.c: New file.
11649         * modules/pipe-filter-gi: New file.
11650
11651 2009-08-02  Bruno Haible  <bruno@clisp.org>
11652             Paolo Bonzini  <bonzini@gnu.org>
11653
11654         Tests for module 'pipe-filter-ii'.
11655         * modules/pipe-filter-ii-tests: New file.
11656         * tests/test-pipe-filter-ii1.sh: New file.
11657         * tests/test-pipe-filter-ii1.c: New file.
11658         * tests/test-pipe-filter-ii2.sh: New file.
11659         * tests/test-pipe-filter-ii2-main.c: New file.
11660         * tests/test-pipe-filter-ii2-child.c: New file.
11661
11662         New module 'pipe-filter-ii'.
11663         * lib/pipe-filter.h: New file.
11664         * lib/pipe-filter-ii.c: New file.
11665         * lib/pipe-filter-aux.h: New file.
11666         * modules/pipe-filter-ii: New file.
11667
11668 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11669
11670         * lib/gc-libgcrypt.c: Change copyright to FSF.
11671         * lib/gc-gnulib.c: Likewise.
11672
11673 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11674
11675         * lib/gethostname.c: Include limits.h.
11676
11677 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11678             Bruno Haible  <bruno@clisp.org>
11679
11680         Ensure HOST_NAME_MAX as part of the gethostname module.
11681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11682         define also HOST_NAME_MAX.
11683         * tests/test-gethostname.c: Include <limits.h>.
11684         (main): Check also HOST_NAME_MAX.
11685         * doc/posix-headers/limits.texi: Document the mingw problem.
11686
11687 2009-08-02  Bruno Haible  <bruno@clisp.org>
11688
11689         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11690         Add comments.
11691
11692 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11693
11694         * lib/gethostname.c: Add Windows wrapper.
11695         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11696         * modules/gethostname: Depend on sys_socket & errno, for also
11697         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11698         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11699
11700 2009-07-31  Jim Meyering  <meyering@redhat.com>
11701
11702         getloadavg: fix symbol name in comment
11703         * lib/getloadavg.c: Correct a typo I introduced when adding
11704         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11705         Matt Kraai spotted the problem.
11706
11707 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11708
11709         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11710         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11711         code also if ! defined N_NAME_POINTER.
11712         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11713         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11714         but the n_name member is a 12-byte array.
11715
11716 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11717
11718         update-copyright: generalize comment handling
11719         * build-aux/update-copyright: Handle copyright statements
11720         within more comment styles.
11721         Document usage.
11722         Report any file with an external copyright holder or parse failure.
11723
11724 2009-07-29  Jim Meyering  <meyering@redhat.com>
11725
11726         mktime: correct setting of REPLACE_MKTIME
11727         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11728
11729         update-copyright: new module
11730         * modules/update-copyright: New file.
11731         * build-aux/update-copyright: New file.
11732         * MODULES.html.sh (maint+release support): Add update-copyright.
11733
11734 2009-07-27  Bruno Haible  <bruno@clisp.org>
11735
11736         Fix compilation error when <ctime> is used and mktime is replaced.
11737         * lib/time.in.h (mktime): New declaration.
11738         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11739         REPLACE_MKTIME instead of defining mktime in config.h.
11740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11741         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11742         Reported by Ross McFarland <rwmcfa1@neces.com>.
11743
11744 2009-07-27  Bruno Haible  <bruno@clisp.org>
11745
11746         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11747         Reported by Matt Kraai <mkraai@beckman.com>.
11748
11749 2009-07-25  Jim Meyering  <meyering@redhat.com>
11750
11751         maint.mk: avoid warnings about missing files
11752         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11753         diagnostic when .prev-version does not exist.
11754         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11755         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11756         nonexistent cfg.mk.
11757         Suggestions from Simon Josefsson.
11758
11759 2009-07-25  Bruno Haible  <bruno@clisp.org>
11760
11761         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11762         defined as macros. Needed on QNX 6.4.1.
11763         Reported by Matt Kraai <mkraai@beckman.com>.
11764
11765 2009-07-23  Jim Meyering  <meyering@redhat.com>
11766
11767         maint.mk: invoke "make dist" with a working value of XZ_OPT
11768         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11769
11770 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11771
11772         Make fseeko.c compile on QNX.
11773         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11774
11775 2009-07-22  Peter Simons  <simons@cryp.to>
11776
11777         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11778         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11779         * lib/md4.h: Likewise.
11780         * lib/md5.h: Likewise.
11781         * lib/sha1.h: Likewise.
11782         * lib/sha256.h: Likewise.
11783         * lib/sha512.h: Likewise.
11784
11785         tests-sha1: don't assign literal string to 'char *' variable
11786         * tests/test-sha1.c (main): Declare locals with "const" to match
11787         attributes of the right hand side.
11788
11789 2009-07-21  Eric Blake  <ebb9@byu.net>
11790
11791         dup2: fix more mingw problems
11792         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11793         fd to itself.
11794         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11795         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11796         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11797         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11798         care of mingw bugs.
11799
11800 2009-07-21  Jim Meyering  <meyering@redhat.com>
11801
11802         vc-list-files: avoid failure when /bin/sh is dash
11803         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11804         On some Debian based systems, /bin/sh is a symlink to dash, and running
11805         this command would omit the "/" following each 'tests' prefix:
11806           dash -x build-aux/vc-list-files -C . tests
11807         That is because bash and dash work differently:
11808           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11809           bash ok
11810           dash odd
11811
11812 2009-07-21  Eric Blake  <ebb9@byu.net>
11813
11814         dup2-tests: test previous patch
11815         * modules/dup2-tests: New file.
11816         * tests/test-dup2.c: Likewise.
11817         * tests/test-open.c (main): Avoid unspecified behavior.
11818         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11819         test.
11820
11821         dup2: work around mingw and cygwin 1.5 bug
11822         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11824         * modules/unistd (Makefile.am): Substitute it.
11825         * lib/unistd.in.h (dup2): Declare the replacement.
11826         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11827         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11828         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11829         * modules/execute (Depends-on): Add dup2.
11830         * modules/fseterr (Depends-on): Likewise.
11831         * modules/pipe (Depends-on): Likewise.
11832         * modules/posix_spawn-internal (Depends-on): Likewise.
11833
11834 2009-07-21  Bruno Haible  <bruno@clisp.org>
11835
11836         * modules/.gitattributes: New file.
11837
11838 2009-07-20  Bruno Haible  <bruno@clisp.org>
11839
11840         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11841         (main): Use it.
11842
11843 2009-07-20  Eric Blake  <ebb9@byu.net>
11844
11845         test-pipe: make a bit more robust.
11846         * tests/test-pipe.c (myerr): Allow error messages regardless of
11847         what we do to stderr.
11848         (test_pipe): Rearrange to avoid deadlock.
11849         (child_main): Try a larger read, to ensure we avoided deadlock.
11850         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11851         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11852         if misused.
11853
11854 2009-07-19  Jim Meyering  <meyering@redhat.com>
11855
11856         fts: avoid false-positive cycle-detection
11857         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11858         for each new command line argument.
11859
11860 2009-07-19  Bruno Haible  <bruno@clisp.org>
11861
11862         Fix build error on mingw with the modules sys_select and unistd.
11863         * modules/acl-tests (Depends-on): Add close.
11864         * modules/binary-io-tests (Depends-on): Likewise.
11865         * modules/closein-tests (Depends-on): Likewise.
11866         * modules/flock-tests (Depends-on): Likewise.
11867         * modules/fsync-tests (Depends-on): Likewise.
11868         * modules/lseek-tests (Depends-on): Likewise.
11869         * modules/pipe-tests (Depends-on): Likewise.
11870         * modules/posix_spawn-tests (Depends-on): Likewise.
11871         * modules/posix_spawnp-tests (Depends-on): Likewise.
11872         * modules/stat-time-tests (Depends-on): Likewise.
11873         * modules/yesno-tests (Depends-on): Likewise.
11874
11875 2009-07-19  Bruno Haible  <bruno@clisp.org>
11876
11877         Unify conditionals.
11878         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11879         macros, not at the compiler macros.
11880         * lib/pipe.c: Likewise.
11881         * lib/execute.c: Likewise.
11882         * lib/spawni.c: Likewise.
11883
11884 2009-07-19  Bruno Haible  <bruno@clisp.org>
11885
11886         Fix handling of closed stdin/stdout/stderr on mingw.
11887         * lib/w32spawn.h: Include unistd.h.
11888         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11889         file descriptor with O_NOINHERIT flag.
11890         (fd_safer_noinherit): New function, based on fd-safer.c.
11891         (dup_safer_noinherit): New function, based on dup-safer.c.
11892         (undup_safer_noinherit): New function.
11893         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11894         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11895         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11896         instead of fd_safer.
11897         * tests/test-pipe.c: Include <windows.h>.
11898         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11899
11900         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11901         from main.
11902         (test_pipe): Pass an extra argument for disambiguation.
11903         (main): Invoke parent_main or child_main.
11904
11905         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11906         consistently.
11907
11908 2009-07-18  Eric Blake  <ebb9@byu.net>
11909
11910         test-pipe: fix mingw build
11911         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11912
11913 2009-07-18  Bruno Haible  <bruno@clisp.org>
11914
11915         * modules/pipe-tests (Makefile.am): Fix typo.
11916
11917 2009-07-18  Eric Blake  <ebb9@byu.net>
11918
11919         error: fix mingw build
11920         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11921         Reported by Bruno Haible.
11922
11923         error: avoid undefined use of stdout
11924         * lib/error.c (error, error_at_line): Check that fd 1 is open
11925         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11926         is handling faults and the close_stdout module wants to report the
11927         detection of closed stdout as an error.
11928
11929 2009-07-17  Eric Blake  <ebb9@byu.net>
11930
11931         pipe: be robust in face of closed fds
11932         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11933         should cause child to misbehave.
11934         * modules/pipe-tests: New module.
11935         * tests/test-pipe.c: New file.
11936         * tests/test-pipe.sh: New file.
11937         Reported by Akim Demaille.
11938
11939 2009-07-14  Bruno Haible  <bruno@clisp.org>
11940
11941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11942         Reported by anonymous kc.
11943
11944 2009-07-07  Jim Meyering  <meyering@redhat.com>
11945
11946         maint.mk: don't look for translatable strings in *.m4 or *.mk
11947         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11948         when searching for translatable strings.
11949
11950 2009-07-05  Jim Meyering  <meyering@redhat.com>
11951
11952         remove superfluous parentheses in STREQ definition
11953         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11954         * lib/getugroups.c (STREQ): Likewise.
11955         * lib/fnmatch.c (STREQ): Likewise.
11956         Spotted by Bruno Haible.
11957
11958 2009-07-04  Jim Meyering  <meyering@redhat.com>
11959
11960         argv-iter: new module
11961         * MODULES.html.sh: Add argv-iter.
11962         * lib/argv-iter.c, lib/argv-iter.h: New files.
11963         * modules/argv-iter: New file.
11964         * modules/argv-iter-tests: New file.
11965         * tests/test-argv-iter.c: Test it.
11966
11967 2009-07-04  Bruno Haible  <bruno@clisp.org>
11968
11969         Fix assertion.
11970         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11971         contains more exact copies of a given entry than file2, leave the extra
11972         copies unpaired rather than aborting.
11973         Reported by Eric Blake.
11974
11975 2009-07-02  Bruno Haible  <bruno@clisp.org>
11976
11977         Speedup git-merge-changelog for git cherry-pick.
11978         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11979         (entries_mapping_get): New function, extracted from compute_mapping.
11980         (entries_mapping_reverse_get): New function.
11981         (compute_mapping): Add a 'full' argument. Return the result in a
11982         'struct entries_mapping'.
11983         (main): Update. Access the mappings through entries_mapping_get.
11984         Reported by Eric Blake.
11985
11986 2009-07-02  Bruno Haible  <bruno@clisp.org>
11987
11988         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11989         best_i.
11990
11991 2009-07-02  Bruno Haible  <bruno@clisp.org>
11992
11993         Speed up approximate search for matching ChangeLog entries.
11994         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11995         argument. Call fstrcmp_bounded instead of fstrcmp.
11996         (compute_mapping, try_split_merged_entry, main): Update callers.
11997
11998 2009-07-02  Bruno Haible  <bruno@clisp.org>
11999
12000         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12001
12002 2009-06-30  Bruno Haible  <bruno@clisp.org>
12003
12004         Reduce the number of uc_is_cased calls.
12005         * lib/unicase.h (casing_suffix_context_t): Add
12006         'first_char_except_ignorable' field.
12007         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12008         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12009         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12010         Update initializer.
12011         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12012         case-ignorable characters.
12013         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12014         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12015         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12016         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12017         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12018
12019 2009-06-30  Bruno Haible  <bruno@clisp.org>
12020
12021         Tests for module 'unicase/ignorable'.
12022         * modules/unicase/ignorable-tests: New file.
12023         * tests/unicase/test-ignorable.c: New file, generated by
12024         gen-uni-tables.
12025
12026         Tests for module 'unicase/cased'.
12027         * modules/unicase/cased-tests: New file.
12028         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12029         * tests/unicase/test-predicate-part1.h: New file, derived from
12030         tests/unictype/test-predicate-part1.h.
12031         * tests/unicase/test-predicate-part2.h: New file, same as
12032         tests/unictype/test-predicate-part2.h.
12033
12034         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12035         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12036         (output_casing_properties): New function.
12037         (main): Call it.
12038         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12039         * lib/unicase/cased.c: Include unictype/bitmap.h.
12040         (uc_is_cased): Define through a bitmap lookup.
12041         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12042         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12043         (uc_is_case_ignorable): Define through a bitmap lookup.
12044         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12045         lib/unictype/bitmap.h.
12046         (Depends-on): Add inline. Clean up.
12047         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12048         lib/unictype/bitmap.h.
12049         (Depends-on): Add inline. Clean up.
12050         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12051         recognition.
12052         * tests/unicase/test-u16-tolower.c (main): Likewise.
12053         * tests/unicase/test-u32-tolower.c (main): Likewise.
12054
12055 2009-06-30  Bruno Haible  <bruno@clisp.org>
12056
12057         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12058         * lib/unicase/u16-casemap.c: Likewise.
12059         * lib/unicase/u32-casemap.c: Likewise.
12060
12061 2009-06-29  Bruno Haible  <bruno@clisp.org>
12062
12063         Define u32_casefold as a wrapper around u32_ct_casefold.
12064         * lib/unicase/u32-casefold.c: Update.
12065         * modules/unicase/u32-casefold (Depends-on): Add
12066         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12067         unicase/empty-suffix-context. Clean up.
12068
12069         Define u16_casefold as a wrapper around u16_ct_casefold.
12070         * lib/unicase/u16-casefold.c: Update.
12071         * modules/unicase/u16-casefold (Depends-on): Add
12072         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12073         unicase/empty-suffix-context. Clean up.
12074
12075         Define u8_casefold as a wrapper around u8_ct_casefold.
12076         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12077         * lib/unicase/u8-casefold.c: Update.
12078         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12079         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12080
12081         Define u32_totitle as a wrapper around u32_ct_totitle.
12082         * lib/unicase/u32-totitle.c: Update.
12083         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12084         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12085
12086         Define u16_totitle as a wrapper around u16_ct_totitle.
12087         * lib/unicase/u16-totitle.c: Update.
12088         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12089         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12090
12091         Define u8_totitle as a wrapper around u8_ct_totitle.
12092         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12093         functions.
12094         (FUNC): Delegate to U_CT_TOTITLE.
12095         * lib/unicase/u8-totitle.c: Update.
12096         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12097         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12098
12099         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12100         invocation.
12101         * modules/unicase/u32-tolower (Depends-on): Add
12102         unicase/empty-prefix-context, unicase/empty-suffix-context.
12103
12104         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12105         invocation.
12106         * modules/unicase/u16-tolower (Depends-on): Add
12107         unicase/empty-prefix-context, unicase/empty-suffix-context.
12108
12109         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12110         * modules/unicase/u8-tolower (Depends-on): Add
12111         unicase/empty-prefix-context, unicase/empty-suffix-context.
12112
12113         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12114         invocation.
12115         * modules/unicase/u32-toupper (Depends-on): Add
12116         unicase/empty-prefix-context, unicase/empty-suffix-context.
12117
12118         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12119         invocation.
12120         * modules/unicase/u16-toupper (Depends-on): Add
12121         unicase/empty-prefix-context, unicase/empty-suffix-context.
12122
12123         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12124         * modules/unicase/u8-toupper (Depends-on): Add
12125         unicase/empty-prefix-context, unicase/empty-suffix-context.
12126
12127         New module 'unicase/u32-ct-casefold'.
12128         * lib/unicase/u32-ct-casefold.c: New file.
12129         * modules/unicase/u32-ct-casefold: New file.
12130
12131         New module 'unicase/u16-ct-casefold'.
12132         * lib/unicase/u16-ct-casefold.c: New file.
12133         * modules/unicase/u16-ct-casefold: New file.
12134
12135         New module 'unicase/u8-ct-casefold'.
12136         * lib/unicase/u8-ct-casefold.c: New file.
12137         * lib/unicase/u-ct-casefold.h: New file, derived from
12138         lib/unicase/u-casefold.h.
12139         * modules/unicase/u8-ct-casefold: New file.
12140
12141         New module 'unicase/u32-ct-totitle'.
12142         * lib/unicase/u32-ct-totitle.c: New file.
12143         * modules/unicase/u32-ct-totitle: New file.
12144
12145         New module 'unicase/u16-ct-totitle'.
12146         * lib/unicase/u16-ct-totitle.c: New file.
12147         * modules/unicase/u16-ct-totitle: New file.
12148
12149         New module 'unicase/u8-ct-totitle'.
12150         * lib/unicase/u8-ct-totitle.c: New file.
12151         * lib/unicase/u-ct-totitle.h: New file, derived from
12152         lib/unicase/u-totitle.h.
12153         * modules/unicase/u8-ct-totitle: New file.
12154
12155         New module 'unicase/u32-ct-tolower'.
12156         * lib/unicase/u32-ct-tolower.c: New file.
12157         * modules/unicase/u32-ct-tolower: New file.
12158
12159         New module 'unicase/u16-ct-tolower'.
12160         * lib/unicase/u16-ct-tolower.c: New file.
12161         * modules/unicase/u16-ct-tolower: New file.
12162
12163         New module 'unicase/u8-ct-tolower'.
12164         * lib/unicase/u8-ct-tolower.c: New file.
12165         * modules/unicase/u8-ct-tolower: New file.
12166
12167         New module 'unicase/u32-ct-toupper'.
12168         * lib/unicase/u32-ct-toupper.c: New file.
12169         * modules/unicase/u32-ct-toupper: New file.
12170
12171         New module 'unicase/u16-ct-toupper'.
12172         * lib/unicase/u16-ct-toupper.c: New file.
12173         * modules/unicase/u16-ct-toupper: New file.
12174
12175         New module 'unicase/u8-ct-toupper'.
12176         * lib/unicase/u8-ct-toupper.c: New file.
12177         * modules/unicase/u8-ct-toupper: New file.
12178
12179         Add context arguments to u*_casemap functions.
12180         * lib/unicase/unicasemap.h: Include unicase.h.
12181         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12182         suffix_context arguments.
12183         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12184         functions.
12185         (FUNC): Add prefix_context and suffix_context arguments. Use
12186         uc_is_cased and uc_is_case_ignorable.
12187         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12188         * lib/unicase/u16-casemap.c: Likewise.
12189         * lib/unicase/u32-casemap.c: Likewise.
12190         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12191         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12192         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12193         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12194         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12195         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12196
12197         New module 'unicase/u32-suffix-context'.
12198         * lib/unicase/u32-suffix-context.c: New file.
12199         * modules/unicase/u32-suffix-context: New file.
12200
12201         New module 'unicase/u16-suffix-context'.
12202         * lib/unicase/u16-suffix-context.c: New file.
12203         * modules/unicase/u16-suffix-context: New file.
12204
12205         New module 'unicase/u8-suffix-context'.
12206         * lib/unicase/u8-suffix-context.c: New file.
12207         * lib/unicase/u-suffix-context.h: New file.
12208         * modules/unicase/u8-suffix-context: New file.
12209
12210         New module 'unicase/empty-suffix-context'.
12211         * lib/unicase/empty-suffix-context.c: New file.
12212         * modules/unicase/empty-suffix-context: New file.
12213
12214         New module 'unicase/u32-prefix-context'.
12215         * lib/unicase/u32-prefix-context.c: New file.
12216         * modules/unicase/u32-prefix-context: New file.
12217
12218         New module 'unicase/u16-prefix-context'.
12219         * lib/unicase/u16-prefix-context.c: New file.
12220         * modules/unicase/u16-prefix-context: New file.
12221
12222         New module 'unicase/u8-prefix-context'.
12223         * lib/unicase/u8-prefix-context.c: New file.
12224         * lib/unicase/u-prefix-context.h: New file.
12225         * lib/unicase/context.h: New file.
12226         * modules/unicase/u8-prefix-context: New file.
12227
12228         New module 'unicase/empty-prefix-context'.
12229         * lib/unicase/empty-prefix-context.c: New file.
12230         * modules/unicase/empty-prefix-context: New file.
12231
12232         New module 'unicase/ignorable'.
12233         * lib/unicase/ignorable.c: New file.
12234         * modules/unicase/ignorable: New file.
12235
12236         New module 'unicase/cased'.
12237         * lib/unicase/caseprop.h: New file.
12238         * lib/unicase/cased.c: New file.
12239         * modules/unicase/cased: New file.
12240
12241         New functions for case mapping of substrings.
12242         * lib/unicase.h (casing_prefix_context_t): New type.
12243         (unicase_empty_prefix_context): New variable.
12244         (u8_casing_prefix_context, u16_casing_prefix_context,
12245         u32_casing_prefix_context, u8_casing_prefixes_context,
12246         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12247         declarations.
12248         (casing_suffix_context_t): New type.
12249         (unicase_empty_suffix_context): New variable.
12250         (u8_casing_suffix_context, u16_casing_suffix_context,
12251         u32_casing_suffix_context, u8_casing_suffixes_context,
12252         u16_casing_suffixes_context, u32_casing_suffixes_context,
12253         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12254         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12255         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12256         declarations.
12257
12258 2009-06-28  Jim Meyering  <meyering@redhat.com>
12259
12260         boostrap: indent only with spaces
12261         * build-aux/bootstrap: Indent only with spaces, never TABs.
12262
12263         bootstrap: split long lines
12264         * build-aux/bootstrap: Keep line length < 80.
12265
12266         bootstrap: sync from coreutils
12267         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12268         just as autoreconf does.  Verify a list of prerequisite
12269         package-name,version-number pairs if defined in bootstrap.conf.
12270         Refer to README-prereq, if prerequisites are not satisfied.
12271
12272 2009-06-27  Eric Blake  <ebb9@byu.net>
12273
12274         tests: add test for bogus NULL definition
12275         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12276         * tests/test-stdlib.c: Likewise.
12277         * tests/test-string.c: Likewise.
12278         * tests/test-locale.c: Likewise.
12279         * tests/test-unistd.c: Likewise.
12280         * modules/stdio-tests (Depends-on): Add verify.
12281         * modules/stdlib-tests (Depends-on): Likewise.
12282         * modules/string-tests (Depends-on): Likewise.
12283         * modules/locale-tests (Depends-on): Likewise.
12284         * modules/unistd-tests (Depends-on): Likewise.
12285
12286 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12287
12288         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12289         self-explaining comment.
12290         * m4/selinux-selinux-h: Update serial.
12291         (gl_LIBSELINUX): New macro, adding a warning for missing development
12292         packages to code extracted from...
12293         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12294         Add warning for missing development packages here, too.
12295
12296 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12297
12298         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12299
12300 2009-06-25  Eric Blake  <ebb9@byu.net>
12301
12302         version-etc: fix regression
12303         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12304         gcc.
12305         (version_etc): Use it, to catch bugs with trailing NULL.
12306         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12307         (version_etc_va): Fix logic bug.
12308         * modules/version-etc-tests: Add test.
12309         * tests/test-version-etc.c: New file.
12310         * tests/test-version-etc.sh: Likewise.
12311
12312 2009-06-25  Sam Steingold  <sds@gnu.org>
12313
12314         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12315         mbtowc declaration.
12316
12317 2009-06-25  Eric Blake  <ebb9@byu.net>
12318
12319         fpurge: migrate into <stdio.h>
12320         * lib/fpurge.h: Delete...
12321         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12322         * lib/fpurge.c (fpurge): Change declaring header.
12323         * modules/fpurge (Files): Drop deleted file.
12324         (Depends-on): Add stdio.
12325         (configure.ac): Set witness.
12326         * modules/stdio (Makefile.am): Support fpurge macros.
12327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12328         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12329         * lib/fflush.c: Update client.
12330         * tests/test-fpurge.c: Likewise.
12331         * NEWS: Mention the change.
12332
12333 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12334
12335         * lib/argp-version-etc.c (program_authors): Add const
12336         qualifier.
12337         * lib/version-etc.c: Fix typos in the comments.
12338         * modules/argp-version-etc: Depends on version-etc.
12339
12340 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12341
12342         argp-version-etc: new module.
12343
12344         * lib/argp-version-etc.c: New file.
12345         * lib/argp-version-etc.h: New file.
12346         * modules/argp-version-etc: New file.
12347         * modules/argp-version-etc-tests: New file.
12348         * tests/test-argp-version-etc.c: New test.
12349         * tests/test-argp-version-etc-1.sh: New test.
12350
12351 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12352
12353         Provide additional interfaces and documentation for version-etc
12354         module.
12355
12356         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12357         interfaces.
12358         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12359         prototypes.
12360
12361 2009-06-24  Bruno Haible  <bruno@clisp.org>
12362
12363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12364         HAVE_LIB${NAME} macro.
12365         Reported by Sam Steingold <sds@gnu.org>.
12366
12367 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12368
12369         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12370         needed.
12371
12372 2009-06-21  Bruno Haible  <bruno@clisp.org>
12373
12374         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12375         work.
12376         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12377         together with LIB${NAME}, LTLIB${NAME}.
12378         Reported by Sam Steingold <sds@gnu.org>.
12379
12380 2009-06-20  Jim Meyering  <meyering@redhat.com>
12381
12382         tests: make sc_require_test_exit_idiom more generic
12383         * top/maint.mk (Exit_witness_file): New overridable variable.
12384         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12385         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12386
12387 2009-06-19  Jim Meyering  <meyering@redhat.com>
12388
12389         hash: reverse order of src/dst parameters in an internal interface
12390         * lib/hash.c (transfer_entries): Reverse order of parameters to
12391         put DST before SRC.  Adjust callers.
12392
12393         tests: test-hash: avoid wholesale duplication
12394         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12395         Instead, use a loop and add a single conditional.
12396
12397         tests: test-hash: allow seed selection via a command line argument
12398         * tests/test-hash.c (get_seed): New function.
12399         (main): Use it.
12400
12401 2009-06-19  Eric Blake  <ebb9@byu.net>
12402
12403         hash: avoid memory leak on allocation failure
12404         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12405         failure.  Factor repeated algorithm...
12406         (transfer_entries): ...into new helper routine.
12407         (hash_delete): React to hash_rehash return value.
12408
12409         hash: reduce memory pressure in hash_rehash no-op case
12410         * lib/hash.c (next_prime): Avoid overflow.
12411         (hash_initialize): Factor bucket size computation...
12412         (compute_bucket_size): ...into new helper function.
12413         (hash_rehash): Use new function and open coding to reduce memory
12414         pressure, and avoid a memory leak in USE_OBSTACK code.
12415         Reported by Jim Meyering.
12416
12417 2009-06-18  Eric Blake  <ebb9@byu.net>
12418
12419         hash: make rotation more obvious
12420         * modules/hash (Depends-on): Add bitrotate and stdint.
12421         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12422         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12423         (SIZE_MAX): Rely on headers for definition.
12424         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12425         (raw_hasher): Use rotr_sz.
12426         Suggested by Jim Meyering.
12427
12428         hash: fix memory leak in last patch
12429         * lib/hash.c (hash_rehash): Avoid memory leak.
12430
12431         hash: avoid no-op rehashing
12432         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12433
12434         hash: provide default callback functions
12435         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12436         (hash_initialize): Use them as defaults.
12437         * tests/test-hash.c (main): Test this.
12438
12439         hash: minor optimization
12440         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12441         when possible.
12442         (hash_initialize): Document this promise.
12443         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12444         * tests/test-hash.c (hash_compare_strings): Test this.
12445
12446 2009-06-18  Bruno Haible  <bruno@clisp.org>
12447
12448         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12449         going to be replaced anyway.
12450
12451 2009-06-18  Bruno Haible  <bruno@clisp.org>
12452
12453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12454         in one place.
12455         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12456         be replaced anyway.
12457
12458 2009-06-18  Eric Blake  <ebb9@byu.net>
12459
12460         hash: check for resize before insertion
12461         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12462         threshold before insertion, so that a pathological hash_rehash
12463         that fills every bucket can still trigger another rehash.
12464
12465 2009-06-18  Jim Meyering  <meyering@redhat.com>
12466
12467         hash-tests: add a loop around the small tests
12468         * tests/test-hash.c (main): Repeat small tests with selected
12469         small initial table sizes.
12470
12471 2009-06-17  Eric Blake  <ebb9@byu.net>
12472
12473         hash: minor cleanups
12474         * lib/hash.h (hash_entry): Make opaque, by moving...
12475         * lib/hash.c (hash_entry): ...here.
12476         (hash_insert): Clarify restrictions on what can be inserted.
12477         (hash_get_next): Clarify when it is safe to remove an element
12478         during traversal.
12479         (check_tuning): Skip verification when tuning is known safe.
12480         (hash_initialize): Clarify restrictions on tuning.
12481
12482 2009-06-17  Jim Meyering  <jim@meyering.net>
12483         and Eric Blake  <ebb9@byu.net>
12484
12485         hash-tests: new module
12486         * modules/hash-tests: New file.
12487         * tests/test-hash.c: New file.
12488
12489 2009-06-17  Eric Blake  <ebb9@byu.net>
12490
12491         strstr-simple: document new module
12492         * MODULES.html.sh: Document new module.
12493
12494         strstr, strcasestr: replace on platforms with broken memchr
12495         * modules/strstr: Split into...
12496         * modules/strstr-simple: ...new module that does not care about
12497         performance, but does care about glibc bug.
12498         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12499         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12500         if platform memchr is broken, per Debian bug 521737.
12501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12502         memchr.
12503         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12504         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12505         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12506         * modules/mountlist (Depends-on): Add strstr-simple.
12507         * modules/gen-uni-tables (Depends-on): Likewise.
12508         * modules/argz (Depends-on): Add strstr.
12509
12510 2009-06-17  Bruno Haible  <bruno@clisp.org>
12511
12512         * modules/posix_spawn-internal (Depends-on): Add errno.
12513
12514 2009-06-17  Bruno Haible  <bruno@clisp.org>
12515
12516         Define missing ESTALE on Interix 3.5.
12517         * lib/errno.in.h (ESTALE): Assign a value if missing.
12518         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12520         missing.
12521         * doc/posix-headers/errno.texi: Mention the Interix bug.
12522         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12523
12524 2009-06-15  Eric Blake  <ebb9@byu.net>
12525
12526         memchr, memchr2: add valgrind exception
12527         * lib/memchr.valgrind: New file.
12528         * lib/memchr2.valgrind: New file.
12529         * modules/memchr (Files): Distribute valgrind file.
12530         * modules/memchr2 (Files): Likewise.
12531
12532         docs: memchr is no longer obsolete
12533         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12534         * lib/string.in.h (memchr): Simplify logic.
12535
12536 2009-06-14  Jim Meyering  <meyering@redhat.com>
12537
12538         link-follow: fix the "checking..." message to not mention trailing slash
12539         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12540         never considered trailing slashes.
12541
12542 2009-06-14  Bruno Haible  <bruno@clisp.org>
12543
12544         * m4/memchr.m4: Mention also the bug on IA-64.
12545         * doc/posix-functions/memchr.texi: Likewise.
12546
12547 2009-06-12  Eric Blake  <ebb9@byu.net>
12548
12549         memchr: detect broken x86_64 and alpha implementations
12550         * modules/memchr-tests (Depends-on): Move mmap detection...
12551         * modules/memchr (Depends-on): ...here.
12552         (configure.ac): Set indicator.
12553         * lib/string.in.h (memchr): Declare replacement.
12554         * modules/string (Makefile.am): Trigger replacement.
12555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12556         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12557         bugs.
12558         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12559         * modules/getpagesize (License): Relax license.
12560
12561 2009-06-11  Bruno Haible  <bruno@clisp.org>
12562
12563         * lib/idpriv.h: Add more references.
12564
12565 2009-06-08  Bruno Haible  <bruno@clisp.org>
12566
12567         Tests for module 'idpriv-droptemp'.
12568         * modules/idpriv-droptemp-tests: New file.
12569         * tests/test-idpriv-droptemp.sh: New file.
12570         * tests/test-idpriv-droptemp.su.sh: New file.
12571         * tests/test-idpriv-droptemp.c: New file.
12572
12573         New module 'idpriv-droptemp'.
12574         * lib/idpriv-droptemp.c: New file.
12575         * modules/idpriv-droptemp: New file.
12576
12577 2009-06-08  Bruno Haible  <bruno@clisp.org>
12578
12579         Tests for module 'idpriv-drop'.
12580         * modules/idpriv-drop-tests: New file.
12581         * tests/test-idpriv-drop.sh: New file.
12582         * tests/test-idpriv-drop.su.sh: New file.
12583         * tests/test-idpriv-drop.c: New file.
12584
12585         New module 'idpriv-drop'.
12586         * lib/idpriv.h: New file.
12587         * lib-idpriv-drop.c: New file.
12588         * m4/idpriv.m4: New file.
12589         * modules/idpriv-drop: New file.
12590
12591 2009-06-08  Bruno Haible  <bruno@clisp.org>
12592
12593         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12594         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12595         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12596         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12597         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12598         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12599         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12600
12601 2009-06-08  Eric Blake  <ebb9@byu.net>
12602
12603         test-strstr: use memory fence, when possible
12604         * tests/test-strstr.c (main): Use memory fence, in order to be
12605         more likely to trigger Debian bug 521737.
12606         * modules/strstr-tests (Files): Pull in additional files.
12607
12608         memchr: no longer obsolete, for wider field testing
12609         * modules/memchr (Status, Notice): Delete, this module is no
12610         longer obsolete.
12611         * modules/vasnprintf (Depends-on): Add memchr.
12612
12613 2009-06-07  Jim Meyering  <meyering@redhat.com>
12614
12615         hash: declare some functions with the warn_unused_result attribute
12616         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12617
12618 2009-06-07  Bruno Haible  <bruno@clisp.org>
12619
12620         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12621         Reported by Eric Blake.
12622
12623 2009-06-06  Eric Blake  <ebb9@byu.net>
12624
12625         test-alignof: fix typo with long double
12626         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12627         compiler error.
12628
12629 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12630
12631         Escape non-texinfo { and }s.
12632         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12633         markup error.
12634
12635 2009-06-04  Jim Meyering  <meyering@redhat.com>
12636
12637         gitlog-to-changelog: don't infloop on an empty commit log
12638         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12639         Reported by Boris Petersen <transacid@centerim.org>.
12640
12641 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12642
12643         version-etc: extend for packagers
12644         Add three new configure options, intended for packagers:
12645           --with-packager="packager name"
12646           --with-packager-version="packager-specific version"
12647           --with-packager-bug-reports="packager bug reporting"
12648         An example with coreutils:
12649           $ ./configure \
12650             --with-packager=Gentoo \
12651             --with-packager-bug-report=http://bugs.gentoo.org/ \
12652             --with-packager-version="patchset 1.6"
12653           $ ./src/ls --version | head -n2
12654           ls (GNU coreutils) 7.1-dirty
12655           Packaged by Gentoo (patchset 1.6)
12656         Note that the bug reporting info via --help doesn't show up because
12657         coreutils uses its own custom emit_bug_reporting_address() implementation
12658         in src/system.h.  If it didn't, it'd look like:
12659           $ ./src/ls --help | tail -n4
12660           Report bugs to <bug-coreutils@gnu.org>.
12661           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12662           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12663           General help using GNU software: <http://www.gnu.org/gethelp/>.
12664         * lib/version-etc.c: Print new information, if provided.
12665         * m4/version-etc.m4: New file.
12666         * modules/version-etc (Files): Add m4/version-etc.m4.
12667         (configure.ac): Add gl_VERSION_ETC.
12668
12669 2009-05-31  Bruno Haible  <bruno@clisp.org>
12670
12671         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12672         and 'int64_t'.
12673         * modules/alignof-tests (Dependencies): Add stdint.
12674         Reported by Eric Blake.
12675
12676 2009-05-31  Bruno Haible  <bruno@clisp.org>
12677
12678         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12679         restriction due to compiler bugs.
12680         Reported by Eric Blake.
12681
12682 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12683             Bruno Haible  <bruno@clisp.org>
12684
12685         Fix test-alignof failure.
12686         * lib/alignof.h (alignof_slot): New macro.
12687         (alignof_type): New macro, with the same semantics as the previous
12688         'alignof'.
12689         (alignof): Alias to alignof_slot.
12690         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12691         check that the results are usable as constant expressions.
12692
12693 2009-05-31  Bruno Haible  <bruno@clisp.org>
12694
12695         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12696         * tests/test-memchr.c (main): Check that memchr does not read past the
12697         first occurrence of the byte.
12698         * tests/test-strstr.c (main): Update comment.
12699         Suggested by Eric Blake.
12700
12701 2009-05-30  Bruno Haible  <bruno@clisp.org>
12702
12703         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12704         detail how to use dumpbin.
12705         Reported by David Byron <dbyron@dbyron.com>.
12706
12707 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12708
12709         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12710
12711 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12712
12713         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12714
12715 2009-05-28  Bruno Haible  <bruno@clisp.org>
12716
12717         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12718         build-aux/ files.
12719
12720 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12721
12722         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12723
12724 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12725
12726         * gnulib-tool (sed_transform_main_lib_file)
12727         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12728         regexps.
12729
12730 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12731
12732         * tests/test-strstr.c: Add another self-test.
12733         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12734         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12735
12736 2009-05-23  Bruno Haible  <bruno@clisp.org>
12737
12738         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12739         change.
12740
12741 2009-05-21  Bruno Haible  <bruno@clisp.org>
12742
12743         Simplify use of mode_t varargs.
12744         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12745         uses 'mode_t' or 'int'.
12746         * lib/openat.c (openat): Likewise.
12747         * lib/open-safer.c (open_safer): Likewise.
12748         * m4/mode_t.m4: New file.
12749         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12750         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12751         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12752         * modules/open (Files): Add m4/mode_t.m4.
12753         * modules/openat (Files): Likewise.
12754         * modules/fcntl-safer (Files): Likewise.
12755         Suggested by Eric Blake.
12756
12757 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12758
12759         * doc/glibc-functions/fallocate.texi: New file.
12760         * doc/gnulib.texi: Include it.
12761
12762 2009-05-21  Eric Blake  <ebb9@byu.net>
12763             Bruno Haible  <bruno@clisp.org>
12764
12765         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12766         invocations.
12767         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12768
12769 2009-05-21  Eric Blake  <ebb9@byu.net>
12770             Bruno Haible  <bruno@clisp.org>
12771
12772         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12773         include_next. Fix of 2008-11-20 commit.
12774         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12775         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12776         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12777         NEXT_MATH_H.
12778         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12779         instead of NEXT_MATH_H.
12780
12781 2009-05-21  Bruno Haible  <bruno@clisp.org>
12782
12783         Avoid redefinition warnings for SIZE_MAX.
12784         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12785         Reported by Simon Josefsson.
12786
12787 2009-05-21  Bruno Haible  <bruno@clisp.org>
12788
12789         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12790         AC_CACHE_VAL.
12791
12792 2009-05-20  Bruno Haible  <bruno@clisp.org>
12793
12794         Make zeroptr.h work on mingw.
12795         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12796         mprotect.
12797         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12798         * modules/memchr2-tests (configure.ac): Likewise.
12799         * modules/memcmp-tests (configure.ac): Likewise.
12800         * modules/memmem-tests (configure.ac): Likewise.
12801         * modules/memrchr-tests (configure.ac): Likewise.
12802         Reported by Simon Josefsson.
12803
12804 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12805
12806         * tests/test-glob.c: Include string.h for strcmp prototype.
12807
12808 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12809
12810         * modules/getdelim (Depends-on): Add explicit stdint, although it
12811         was implicitly already pulled in via realloc-posix.
12812         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12813
12814 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12815
12816         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12817         G. Christensen" <tgc@jupiterrise.com>.
12818         * m4/sys_socket_h.m4: Check for sa_family_t.
12819         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12820         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12821         * tests/test-sys_socket.c: Check that sa_family_t works.
12822
12823 2009-05-18  Eric Blake  <ebb9@byu.net>
12824
12825         maint.mk: allow gnulib_dir in VPATH build
12826         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12827
12828 2009-05-15  Jim Meyering  <meyering@redhat.com>
12829
12830         maint.mk: Give gnulib_dir a default definition.
12831         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12832         Thus, most packages no longer need to specify this variable in cfg.mk
12833
12834 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12835
12836         rename.m4: fix typos that would make non-mingw cross-configure fail
12837         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12838
12839 2009-05-13  Eric Blake  <ebb9@byu.net>
12840
12841         mmap-anon: avoid out-of-order autoconf expansion
12842         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12843         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12844         * modules/memchr-tests (Depends-on): Add extensions.
12845         * modules/memchr2-tests (Depends-on): Add extensions.
12846         * modules/memcmp-tests (Depends-on): Add extensions.
12847         * modules/memmem-tests (Depends-on): Add extensions.
12848         * modules/memrchr-tests (Depends-on): Add extensions.
12849
12850 2009-05-13  Bruno Haible  <bruno@clisp.org>
12851
12852         Make some tests ISO C 99 compliant.
12853         * tests/zerosize-ptr.h: New file.
12854         * tests/test-memchr.c: Include zerosize-ptr.h.
12855         (main): Use a zero-size object pointer instead of NULL.
12856         * tests/test-memchr2.c: Include zerosize-ptr.h.
12857         (main): Use a zero-size object pointer instead of NULL.
12858         * tests/test-memcmp.c: Include zerosize-ptr.h.
12859         (main): Use a zero-size object pointer instead of NULL.
12860         * tests/test-memmem.c: Include zerosize-ptr.h.
12861         (main): Use a zero-size object pointer instead of NULL.
12862         * tests/test-memrchr.c: Include zerosize-ptr.h.
12863         (main): Use a zero-size object pointer instead of NULL.
12864         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12865         m4/mmap-anon.m4.
12866         (Depends-on): Add getpagesize.
12867         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12868         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12869         m4/mmap-anon.m4.
12870         (Depends-on): Add getpagesize.
12871         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12872         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12873         m4/mmap-anon.m4.
12874         (Depends-on): Add getpagesize.
12875         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12876         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12877         m4/mmap-anon.m4.
12878         (Depends-on): Add getpagesize.
12879         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12880         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12881         m4/mmap-anon.m4.
12882         (Depends-on): Add getpagesize.
12883         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12884
12885 2009-05-12  Bruno Haible  <bruno@clisp.org>
12886
12887         Tests for module 'alignof'.
12888         * modules/alignof-tests: New file.
12889         * tests/test-alignof.c: New file.
12890
12891 2009-05-12  Bruno Haible  <bruno@clisp.org>
12892
12893         Fix alignof macro.
12894         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12895         vendor compilers that are always correct.
12896
12897 2009-05-12  Bruno Haible  <bruno@clisp.org>
12898
12899         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12900         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12901         not whether its fully works.
12902
12903 2009-05-12  Bruno Haible  <bruno@clisp.org>
12904
12905         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12906
12907 2009-05-12  Jim Meyering  <meyering@redhat.com>
12908
12909         * top/maint.mk: Adjust backslash alignment.
12910
12911 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12912
12913         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12914
12915 2009-05-11  Eric Blake  <ebb9@byu.net>
12916
12917         argp: avoid undefined behavior
12918         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12919         macros.
12920
12921 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12922
12923         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12924         user.name to prevent git commit from complaining.
12925
12926 2009-05-10  Bruno Haible  <bruno@clisp.org>
12927
12928         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12929         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12930         it rewrites every file name only once.
12931         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12932
12933 2009-05-08  Bruno Haible  <bruno@clisp.org>
12934
12935         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12936         instead of 'max'.
12937
12938 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12939
12940         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12941         sockaddr_storage test.
12942
12943 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12944
12945         * modules/sys_socket (Makefile.am): Substitute
12946         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12947         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12948         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12949         * tests/test-sys_socket.c: Check sockaddr_storage.
12950
12951 2009-05-08  Bruno Haible  <bruno@clisp.org>
12952
12953         New module 'alignof'.
12954         * lib/alignof.h: New file.
12955         * modules/alignof: New file.
12956
12957 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12958             Bruno Haible  <bruno@clisp.org>
12959
12960         Fix test-file-has-acl on FreeBSD.
12961         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12962         mask is implicitly added.
12963         * tests/test-file-has-acl.c: Include <signal.h>.
12964         (main): Terminate the test after 5 seconds.
12965         * modules/acl-tests (configure.ac): Check for alarm function.
12966
12967 2009-05-04  Bruno Haible  <bruno@clisp.org>
12968
12969         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12971         * modules/errno (configure.ac): Drop AC_REQUIRE.
12972         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12973         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12974
12975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12976
12977         * modules/glob-tests: New module.
12978         * tests/test-glob.c: Add.
12979
12980 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12981
12982         * modules/fnmatch-tests: New module.
12983         * tests/test-fnmatch.c: Add.
12984
12985 2009-05-04  Eric Blake  <ebb9@byu.net>
12986
12987         maint: make the new no-submodule-changes rule VPATH-safe
12988         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12989
12990 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12991             Bruno Haible  <bruno@clisp.org>
12992
12993         acl: Fix infinite loop on FreeBSD.
12994         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12995         of return value from acl_get_entry.
12996         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12997         Likewise.
12998
12999 2009-05-03  Bruno Haible  <bruno@clisp.org>
13000
13001         * lib/acl-internal.h (acl_entries): Clarify return value.
13002         * lib/acl_entries.c (acl_entries): Likewise.
13003
13004 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13005
13006         Bug fix in acl module.
13007         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13008
13009 2009-05-03  Bruno Haible  <bruno@clisp.org>
13010
13011         Create gperf-generated file in the source dir, not in the build dir.
13012         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13013         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13014         * modules/unicase/locale-language (unicase/locale-languages.h):
13015         Likewise.
13016         * modules/unicase/special-casing (unicase/special-casing-table.h):
13017         Likewise.
13018         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13019         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13020         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13021         Reported by Ralf Wildenhues.
13022
13023 2009-05-03  Bruno Haible  <bruno@clisp.org>
13024
13025         * modules/fnmatch (Description, configure.ac): Taken from
13026         fnmatch-posix.
13027         * modules/fnmatch-posix: Turn into a symbolic reference to the
13028         'fnmatch' module, and deprecate.
13029         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13030
13031 2009-05-03  Bruno Haible  <bruno@clisp.org>
13032
13033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13034         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13035         Reported by Ralf Wildenhues.
13036
13037 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13038
13039         * m4/fnmatch.m4: Fix fnmatch re-define.
13040
13041 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13042
13043         priv-set: new module and tests; adapt write-any-file
13044         * lib/priv-set.c: New file.
13045         * lib/priv-set.h: New file.
13046         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13047         * lib/write-any-file.c: Simplify by using priv-set module.
13048         * m4/priv-set.m4: New file.
13049         * modules/priv-set: New file.
13050         * modules/unlinkdir: Add dependency on priv-set module.
13051         * modules/write-any-file: Likewise.
13052
13053         Tests for module 'priv-set'.
13054         * modules/priv-set-tests: New file.
13055         * tests/test-priv-set.c: New file.
13056
13057 2009-05-03  Jim Meyering  <meyering@redhat.com>
13058             Bruno Haible  <bruno@clisp.org>
13059
13060         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13061         use the converted UTF-8 variant of the name instead.
13062
13063 2009-05-03  Jim Meyering  <meyering@redhat.com>
13064
13065         tests: tighten some getdate tests
13066         * tests/test-getdate.c (main): Tighten tests: require equality,
13067         not just greater than.  Set TZ envvar to UTC0.
13068
13069 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13070
13071         getdate: correctly interpret "next monday" when run on a Monday
13072         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13073         that e.g., "next tues" (when run on a tuesday) results in a date
13074         that is one week in the future, and not today's date.
13075         I.e., add a week when the wday is the same as the current one.
13076         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13077         and earlier by Martin Bernreuther and Jan Minář.
13078         * tests/test-getdate.c (main): Check that "next DAY" is always in
13079         the future and that "last DAY" is always in the past.
13080
13081 2009-05-02  Jim Meyering  <meyering@redhat.com>
13082
13083         build: ensure that a release build fails when a submodule is unclean
13084         * top/maint.mk (no-submodule-changes): New rule.
13085         (alpha beta major): Depend on it.
13086
13087 2009-05-02  Bruno Haible  <bruno@clisp.org>
13088
13089         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13090         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13091         shell variable gl_fnmatch_required to detect which variant is
13092         requested.
13093         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13094         gl_FUNC_FNMATCH_POSIX.
13095         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13096         exclude fnmatch-posix.
13097
13098 2009-05-02  Bruno Haible  <bruno@clisp.org>
13099
13100         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13101         * modules/mbsrtowcs (License): Change to LGPLv2+.
13102         * modules/strnlen1 (License): Likewise.
13103         Reported by Simon Josefsson.
13104
13105 2009-05-02  Bruno Haible  <bruno@clisp.org>
13106
13107         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13108         "cross".
13109         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13110         gnulib-tool was called with option --source-base=lib.
13111
13112 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13113
13114         Use automake *-local hooks without commands, for extensibility.
13115         * modules/localcharset (Makefile.am): Rename install-exec-local
13116         rule to install-exec-localcharset, and make it a prerequisite of
13117         install-exec-local.  Likewise, rename the uninstall-local rule to
13118         uninstall-localcharset, and make it a prerequisite of the former.
13119
13120 2009-05-01  Bruno Haible  <bruno@clisp.org>
13121
13122         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13123         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13124         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13126         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13127         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13128         m4/locale-zh.m4, m4/codeset.m4.
13129
13130         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13131         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13132         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13133         m4/locale-zh.m4.
13134
13135         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13136         REPLACE_WCRTOMB if mbstate_t must be replaced.
13137         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13138         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13139
13140 2009-05-01  Bruno Haible  <bruno@clisp.org>
13141
13142         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13143         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13144         dngettext, dcngettext, textdomain, bindtextdomain,
13145         bind_textdomain_codeset): Undefine before redefining.
13146
13147 2009-04-30  Bruno Haible  <bruno@clisp.org>
13148
13149         Fix bug introduced on 2009-04-25.
13150         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13151         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13152         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13153         is defined.
13154         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13155         is defined.
13156         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13157         is defined.
13158         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13159
13160 2009-04-28  Bruno Haible  <bruno@clisp.org>
13161
13162         Comment tweaks.
13163         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13164         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13165         * lib/unicase.h (u*_casexfrm): Likewise.
13166         Reported by Paolo Bonzini.
13167
13168 2009-04-28  Bruno Haible  <bruno@clisp.org>
13169
13170         Fix a compilation error.
13171         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13172         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13173         Reported by Jim Meyering.
13174
13175 2009-04-27  Bruno Haible  <bruno@clisp.org>
13176
13177         New module 'libunistring'.
13178         * modules/libunistring: New file.
13179         * m4/libunistring.m4: New file.
13180         * MODULES.html.sh (Unicode string functions): Add it.
13181
13182 2009-04-27  Eric Blake  <ebb9@byu.net>
13183
13184         maint.mk: allow package-specific header to provide <config.h>
13185         * top/maint.mk (sc_require_config_h): New variable.
13186         (sc_require_config_h, sc_require_config_h_first): Use it.
13187
13188 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13189
13190         * top/maint.mk (sc_avoid_if_before_free): Except
13191         useless-if-before-free script.
13192
13193 2009-04-27  Eric Blake  <ebb9@byu.net>
13194
13195         maintainer-makefile: depend on all required helper scripts
13196         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13197         useless-if-before-free.
13198         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13199         version, rather than assuming gnulib checkout is available.
13200         Reported by Simen Josefsson.
13201
13202 2009-04-26  Bruno Haible  <bruno@clisp.org>
13203
13204         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13205         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13206         "../" or "..".
13207
13208 2009-04-26  Bruno Haible  <bruno@clisp.org>
13209
13210         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13211         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13212         AC_LIB_HAVE_LINKFLAGS.
13213
13214 2009-04-26  Bruno Haible  <bruno@clisp.org>
13215
13216         Simplify calling convention of u*_conv_from_encoding.
13217         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13218         u32_conv_from_encoding): Expect a resultbuf argument and return the
13219         result directly as a pointer.
13220         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13221         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13222         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13223         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13224         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13225         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13226         Update.
13227         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13228         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13229         * lib/vasnprintf.c (VASNPRINTF): Update.
13230         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13231         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13232         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13233         * NEWS: Mention the change.
13234
13235 2009-04-26  Bruno Haible  <bruno@clisp.org>
13236
13237         Simplify calling convention of u*_conv_to_encoding.
13238         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13239         u32_conv_to_encoding): Expect a resultbuf argument and return the
13240         result directly as a pointer.
13241         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13242         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13243         freeing scaled_offsets if mem_iconveha failed.
13244         * lib/unicase/u-casexfrm.h (FUNC): Update.
13245         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13246         * lib/vasnprintf.c (VASNPRINTF): Update.
13247         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13248         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13249         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13250         * NEWS: Mention the change.
13251
13252 2009-04-26  Bruno Haible  <bruno@clisp.org>
13253
13254         Avoid test failures on AIX and OSF/1.
13255         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13256         malloc(0).
13257         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13258         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13259         Likewise.
13260         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13261         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13262         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13263         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13264         * doc/posix-functions/malloc.texi: Document the portability problem
13265         related to malloc(0).
13266
13267 2009-04-26  Bruno Haible  <bruno@clisp.org>
13268
13269         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13270         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13271         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13272
13273 2009-04-25  Bruno Haible  <bruno@clisp.org>
13274
13275         Avoid link error when creating a namespace clean library.
13276         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13277         as macro with arguments if already defined as an alias.
13278         * lib/signbitf.c (gl_signbitf): Don't undefine.
13279         * lib/signbitd.c (gl_signbitd): Don't undefine.
13280         * lib/signbitl.c (gl_signbitl): Don't undefine.
13281
13282 2009-04-25  Jim Meyering  <meyering@redhat.com>
13283
13284         vc-list-files: fix another quoting bug
13285         * build-aux/vc-list-files: Avoid sed backslash expansion
13286         of pathological directory names.
13287
13288 2009-04-25  Eric Blake  <ebb9@byu.net>
13289
13290         vc-list-files: fix shell quoting error
13291         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13292         timestamp.
13293
13294 2009-04-25  Jim Meyering  <meyering@redhat.com>
13295
13296         vc-list-files: restore lost functionality with subdir argument
13297         * build-aux/vc-list-files: When given a non-"." sub-directory
13298         argument, substitute the $dir/ prefix back onto each resulting name.
13299         Otherwise, coreutils' root_tests check would fail.
13300
13301 2009-04-24  Eric Blake  <ebb9@byu.net>
13302
13303         vc-list-files: ignore git symlinks
13304         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13305         than ls-files, to ignore git symlinks.
13306
13307         maint.mk: import improvements from m4
13308         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13309         (move_if_change): Delete unused macro.
13310         (news-date-check, vc-diff-check): Support VPATH builds.
13311         (announcement): Likewise.  Split --bootstrap-tools list...
13312         (boostrap-tools): ...into separate list, which can be overridden
13313         in cfg.mk.
13314         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13315         requiring dependency on useless-if-before-free module.
13316         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13317         Support VPATH builds.
13318
13319 2009-04-24  Jim Meyering  <meyering@redhat.com>
13320
13321         maint.mk: remove coreutils-specific rules and variables
13322         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13323         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13324         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13325
13326         maint.mk: remove obsolete rule
13327         * top/maint.mk (rel-check): Remove rule.
13328         (WGET, WGETFLAGS): Remove now-unused variables.
13329
13330 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13331
13332         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13333         consistency.
13334
13335         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13336         '$(PATH_SEPARATOR)' instead of ':'.
13337
13338 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13339
13340         * lib/getopt1.c (main): Use 'const' for static array.
13341
13342 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13343
13344         * top/maint.mk: Sync with coreutils.
13345         * NEWS: Explain incompatibilities.
13346
13347 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13348             Bruno Haible  <bruno@clisp.org>
13349
13350         Fix cross-compilation results.
13351         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13352         statement, as third argument of AC_TRY_RUN.
13353         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13354         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13355         Likewise.
13356         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13357         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13358         Likewise.
13359         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13360         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13361         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13362
13363 2009-04-20  Bruno Haible  <bruno@clisp.org>
13364
13365         Avoid test failure on mingw.
13366         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13367
13368 2009-04-20  Bruno Haible  <bruno@clisp.org>
13369
13370         Avoid compilation error on mingw.
13371         * modules/localename-tests (Depends-on): Add locale.
13372
13373 2009-04-19  Bruno Haible  <bruno@clisp.org>
13374
13375         Support for building a shared library on Windows platforms.
13376         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13377         (main): Test the presence of UNINORM_NFC here.
13378         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13379         (main): Test the presence of UNINORM_NFD here.
13380         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13381         (main): Test the presence of UNINORM_NFKC here.
13382         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13383         (main): Test the presence of UNINORM_NFKD here.
13384
13385 2009-04-19  Bruno Haible  <bruno@clisp.org>
13386
13387         Avoid a compiler warning.
13388         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13389         Change type of variable 'sequence'.
13390
13391 2009-04-19  Bruno Haible  <bruno@clisp.org>
13392
13393         * modules/configmake (Makefile.am): When the contents of configmake.h
13394         does not change, arrange to preserve its modification time.
13395
13396 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13397
13398         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13399         gettext domain.
13400
13401 2009-04-16  Jim Meyering  <meyering@redhat.com>
13402
13403         useless-if-before-free: improve conversion code
13404         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13405         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13406
13407 2009-04-14  Bruno Haible  <bruno@clisp.org>
13408
13409         * modules/fcntl (Depends-on): Add extensions.
13410         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13411
13412 2009-04-12  Ben Pfaff  <blp@gnu.org>
13413
13414         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13415         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13416
13417 2009-03-20  Ben Pfaff  <blp@gnu.org>
13418
13419         Make rename replace existing destinations on Windows.
13420         * m4/rename.m4: Add test for Mingw.
13421         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13422         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13423         * doc/posix-functions/rename.texi: Document.
13424
13425 2009-04-10  Bruno Haible  <bruno@clisp.org>
13426
13427         New include file "iconveh.h".
13428         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13429         * lib/striconveh.h: Include it.
13430         (enum iconv_ilseq_handler): Remove definition.
13431         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13432         striconveh.h.
13433         * lib/striconveha.c: Include striconveh.h.
13434         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13435         * modules/striconveh (Files): Add lib/iconveh.h.
13436         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13437         lib/striconveh.h.
13438
13439 2009-04-10  Bruno Haible  <bruno@clisp.org>
13440
13441         * lib/uniconv.h: Update comment.
13442
13443 2009-04-10  Bruno Haible  <bruno@clisp.org>
13444
13445         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13446         always.
13447         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13448         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13449         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13450         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13451         "unistring-notinline.h", so that the function gets defined always.
13452         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13453         * lib/unistr/u8-uctomb.c: Likewise.
13454         * lib/unistr/u16-mbtouc.c: Likewise.
13455         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13456         * lib/unistr/u16-uctomb.c: Likewise.
13457         * lib/unistr/u32-mbtouc.c: Likewise.
13458         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13459         * lib/unistr/u32-uctomb.c: Likewise.
13460
13461 2009-04-10  Bruno Haible  <bruno@clisp.org>
13462
13463         Mark 'utime' obsolete.
13464         * modules/utime (Status, Notice): New sections.
13465         Suggested by Jim Meyering.
13466
13467         Fix cross-compile guess for utime test.
13468         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13469         autoconf.
13470         * doc/posix-functions/utime.texi: Give more precisions.
13471         Reported by Jan <ipif@ymail.com>.
13472
13473 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13474
13475         filevercmp: correct today's change
13476         * lib/filevercmp.c: Also handle coreutils' test inputs.
13477         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13478
13479         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13480         for reporting it.
13481         * lib/filevercmp.c: Special handle for "", "." and "..".
13482         * tests/test-filevercmp.c: Enlarge the set suite.
13483
13484 2009-04-07  Jim Meyering  <meyering@redhat.com>
13485
13486         useless-if-before-free: show how to remove braced useless free, too
13487         * build-aux/useless-if-before-free: still only in a comment, though.
13488
13489 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13490
13491         maint.mk: import changes to syntax-check macros from coreutils
13492         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13493         Use them in the relevant macros.
13494
13495 2009-04-06  Bruno Haible  <bruno@clisp.org>
13496
13497         Fix unportable use of bit-fields.
13498         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13499         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13500         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13501
13502 2009-04-06  Bruno Haible  <bruno@clisp.org>
13503
13504         Avoid test failures on AIX and OSF/1.
13505         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13506         that malloc(0) = NULL.
13507         * tests/unicase/test-u8-tolower.c (check): Likewise.
13508         * tests/unicase/test-u8-totitle.c (check): Likewise.
13509         * tests/unicase/test-u8-toupper.c (check): Likewise.
13510         * tests/unicase/test-u16-casefold.c (check): Likewise.
13511         * tests/unicase/test-u16-tolower.c (check): Likewise.
13512         * tests/unicase/test-u16-totitle.c (check): Likewise.
13513         * tests/unicase/test-u16-toupper.c (check): Likewise.
13514         * tests/unicase/test-u32-casefold.c (check): Likewise.
13515         * tests/unicase/test-u32-tolower.c (check): Likewise.
13516         * tests/unicase/test-u32-totitle.c (check): Likewise.
13517         * tests/unicase/test-u32-toupper.c (check): Likewise.
13518         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13519         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13520         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13521         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13522         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13523         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13524         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13525         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13526         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13527         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13528         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13529         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13530
13531 2009-04-05  Bruno Haible  <bruno@clisp.org>
13532
13533         Work around an autoconf limitation.
13534         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13535         comment line if it would be longer than 3 KB.
13536
13537 2009-04-05  Bruno Haible  <bruno@clisp.org>
13538
13539         Avoid test failure with libiconv-1.13.
13540         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13541         of the expected test results.
13542
13543 2009-04-05  Bruno Haible  <bruno@clisp.org>
13544
13545         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13546         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13547         that it should be installed.
13548
13549 2009-04-05  Bruno Haible  <bruno@clisp.org>
13550
13551         * gnulib-tool: New option --copy-file.
13552         (func_usage): Document it.
13553         (func_dest_tmpfilename): Moved out of func_import.
13554         (func_add_file, func_update_file): New functions, extracted from
13555         func_import.
13556         (func_import): Update.
13557
13558 2009-04-05  Karl Berry  <karl@gnu.org>
13559
13560         * README: prominently mention gnulib-tool.
13561         Rearrange sections so getting the code is near the top.
13562
13563 2009-04-05  Bruno Haible  <bruno@clisp.org>
13564
13565         * lib/unicase.h: Mention u*_cmp2.
13566         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13567         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13568         * lib/unicase/ulc-casecmp.c: Likewise.
13569         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13570         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13571         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13572         unistr/u8-cmp.
13573         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13574         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13575         unistr/u16-cmp.
13576         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13577         unistr/u32-cmp.
13578
13579         * lib/uninorm.h: Mention u*_cmp2.
13580         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13581         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13582         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13583         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13584         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13585         unistr/u8-cmp.
13586         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13587         unistr/u16-cmp.
13588         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13589         unistr/u32-cmp.
13590
13591         New module 'unistr/u32-cmp2'.
13592         * lib/unistr/u32-cmp2.c: New file.
13593         * modules/unistr/u32-cmp2: New file.
13594
13595         New module 'unistr/u16-cmp2'.
13596         * lib/unistr/u16-cmp2.c: New file.
13597         * modules/unistr/u16-cmp2: New file.
13598
13599         New module 'unistr/u8-cmp2'.
13600         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13601         * lib/unistr/u8-cmp2.c: New file.
13602         * lib/unistr/u-cmp2.h: New file.
13603         * modules/unistr/u8-cmp2: New file.
13604
13605 2009-04-05  Bruno Haible  <bruno@clisp.org>
13606
13607         * lib/unictype.h (uc_property_is_valid): New macro.
13608         * tests/unictype/test-pr_byname.c (main): Use it.
13609
13610         * lib/unistr.h: Doc fixes.
13611         * lib/uniconv.h: Doc fixes.
13612         * lib/unictype.h: Doc fixes.
13613
13614 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13615
13616         Port coreutils 7.2 to Solaris 8.
13617
13618         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13619         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13620         for Solaris 8.  This is a bit of a hack, as it means it's the
13621         caller's responsibility to add -lnsl if needed, but most likely it
13622         won't be needed since only getaddrinfo uses this and getaddrinfo
13623         isn't needed on Solaris 8.
13624
13625         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13626         problem to Solaris 8 encountered with coreutils 7.2, which
13627         resulted in a message "fnmatch.c:292: warning: passing argument 4
13628         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13629         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13630
13631 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13632
13633         * m4/ld-version-script.m4: Add FIXME comment.
13634
13635 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13636
13637         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13638         SOVERSION variable.
13639
13640 2009-04-02  Bruno Haible  <bruno@clisp.org>
13641
13642         * Makefile (info, html, dvi, pdf): Combine the rules.
13643         Suggested by Jim Meyering.
13644
13645 2009-04-01  Bruno Haible  <bruno@clisp.org>
13646
13647         * Makefile (info, html, dvi, pdf): New targets.
13648         Reported by Reuben Thomas <rrt@sc3d.org>.
13649
13650 2009-04-01  Bruno Haible  <bruno@clisp.org>
13651
13652         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13653         can be put into PATH.
13654         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13655
13656 2009-04-01  Bruno Haible  <bruno@clisp.org>
13657
13658         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13659
13660 2009-04-01  Bruno Haible  <bruno@clisp.org>
13661
13662         Rename module 'visibility'.
13663         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13664         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13665         * doc/gnulib.texi: Update.
13666         * MODULES.html.sh (Misc): Update.
13667         * NEWS: Mention the change.
13668
13669 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13670
13671         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13672         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13673         Eric Blake <ebb9@byu.net> for review.
13674         * MODULES.html.sh: Add lib-msvc-compat.
13675         * doc/gnulib.texi: Link to new section.
13676         * m4/ld-output-def.m4: New file.
13677         * doc/ld-output-def.texi: New file.
13678
13679 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13680
13681         Rename ld-version-script to lib-symbol-versions.  Suggested by
13682         Bruno Haible <bruno@clisp.org>.
13683         * modules/ld-version-script: Renamed to lib-symbol-versions.
13684         * doc/ld-version-script.texi: Fix module name.
13685         * MODULES.html.sh: Add lib-symbol-versions.
13686
13687 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13688
13689         * modules/u64-tests: New file.
13690         * tests/test-u64.c: New file.
13691
13692 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13693
13694         * MODULES.html.sh: Mention u64.
13695         * modules/u64: New module.
13696         * modules/crypto/sha512: Depend on u64 module instead of providing
13697         u64.h.
13698
13699 2009-03-27  Eric Blake  <ebb9@byu.net>
13700
13701         test-strerror: make debugging EAI_SYSTEM easier
13702         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13703         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13704         failure was EAI_SYSTEM.
13705
13706 2009-03-25  Bruno Haible  <bruno@clisp.org>
13707
13708         Fix a problem with --enable-relocatable on Solaris 7.
13709         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13710         since 2008-02-24.
13711
13712 2009-03-25  Eric Blake  <ebb9@byu.net>
13713
13714         test-sockets: avoid gcc warning
13715         * tests/test-sockets.c (main): Silence compiler warning.
13716
13717 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13718
13719         New modules nproc, pthread, contributed by Glen Lenker.
13720
13721         * MODULES.html.sh: Add pthread, nproc.
13722         * lib/nproc.c: New file.
13723         * lib/nproc.h: New file.
13724         * lib/pthread.in.h: New file.
13725         * m4/pthread.m4: New file.
13726         * modules/nproc: New file.
13727         * modules/pthread: New file.
13728
13729 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13730
13731         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13732         New variable.
13733
13734 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13735
13736         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13737         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13738         * tests/test-filevercmp.c: Add tests for backup suffixes.
13739
13740 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13741
13742         * modules/stdlib (Depends-on): Add stdint, needed when defining
13743         struct random_data on, for example, HP-UX 10.20.  Reported by
13744         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13745
13746 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13747
13748         * lib/readline.c (readline): Call fflush on stdout after printing
13749         prompt.
13750
13751 2009-03-20  Bruno Haible  <bruno@clisp.org>
13752
13753         Remove dependency from 'close' module to -lws2_32 on native Windows.
13754         * lib/close-hook.h: New file.
13755         * lib/close-hook.c: New file.
13756         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13757         w32sock.h.
13758         (_gl_close_fd_maybe_socket): Remove function.
13759         (rpl_close): Invoke execute_all_close_hooks instead of
13760         _gl_close_fd_maybe_socket.
13761         * lib/sockets.c: Include close-hook.h, w32sock.h.
13762         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13763         (close_sockets_hook): New variable.
13764         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13765         (gl_sockets_cleanup): Unregister it.
13766         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13767         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13768         * modules/close-hook: New file.
13769         * modules/close (Files): Remove lib/w32sock.h.
13770         (Depends-on): Add close-hook.
13771         (Link): Remove section.
13772         * modules/sockets (Files): Add lib/w32sock.h.
13773         (Depends-on): Add close-hook.
13774         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13775         invocation.
13776         * NEWS: Mention that LIB_CLOSE is gone.
13777
13778 2009-03-23  Eric Blake  <ebb9@byu.net>
13779
13780         signal-tests: test previous patch
13781         * tests/test-signal.c: New file.
13782         * modules/signal-tests: Likewise.
13783
13784         signal.h: always support 'volatile sig_atomic_t'
13785         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13786         (gl_SIGNAL_H_DEFAULTS): Add a default.
13787         * modules/signal (Makefile.am): Substitute if needed.
13788         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13789         users can blindly add volatile.
13790         * doc/posix-headers/signal.texi (signal.h): Document it.
13791         Reported by Matthew Woehlke.
13792
13793 2009-03-23  Jim Meyering  <meyering@redhat.com>
13794
13795         pathmax: PATH_MAX: use pathconf only when available
13796         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13797         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13798         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13799         This avoids a link failure in a PSP cross-compilation environment
13800         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13801
13802         * lib/vasnprintf.c (divide): Fix typo in comment.
13803
13804 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13805
13806         * gnulib-tool (func_filter_filelist): Fix comment.
13807
13808 2009-03-20  Bruno Haible  <bruno@clisp.org>
13809
13810         Make sockets.h self-contained.
13811         * lib/sockets.c: Include sockets.h first.
13812         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13813
13814 2009-03-19  Eric Blake  <ebb9@byu.net>
13815
13816         doc: mention more functions added in cygwin 1.7.0
13817         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13818         addition.
13819         * doc/posix-functions/log2f.texi: Likewise.
13820
13821 2009-03-19  Jim Meyering  <meyering@redhat.com>
13822
13823         fsusage: avoid syntax error due to statement-before-declaration
13824         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13825         after all declarations.  Reported by Matthew Woehlke in
13826         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13827
13828 2009-03-18  Eric Blake  <ebb9@byu.net>
13829
13830         build-aux/compile: sync from automake
13831         * build-aux/compile: New file, from automake.
13832         * config/srclist.txt: Mention build-aux/compile.
13833
13834 2009-03-17  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/git-merge-changelog.c: Fix typo in comment.
13837         Reported by Reuben Thomas <rrt@sc3d.org>.
13838
13839 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13840
13841         * m4/regex.m4: update and improve help for
13842         --without-included-regex.
13843
13844 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13845
13846         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13847         failure on missing include files.
13848
13849 2009-03-17  Eric Blake  <ebb9@byu.net>
13850
13851         doc: mention more functions added in cygwin 1.7.0
13852         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13853         addition.
13854         * doc/posix-functions/fwscanf.texi: Likewise.
13855         * doc/posix-functions/swprintf.texi: Likewise.
13856         * doc/posix-functions/swscanf.texi: Likewise.
13857         * doc/posix-functions/vfwprintf.texi: Likewise.
13858         * doc/posix-functions/vfwscanf.texi: Likewise.
13859         * doc/posix-functions/vswprintf.texi: Likewise.
13860         * doc/posix-functions/vswscanf.texi: Likewise.
13861         * doc/posix-functions/vwprintf.texi: Likewise.
13862         * doc/posix-functions/vwscanf.texi: Likewise.
13863         * doc/posix-functions/wcscasecmp.texi: Likewise.
13864         * doc/posix-functions/wcsdup.texi: Likewise.
13865         * doc/posix-functions/wcsftime.texi: Likewise.
13866         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13867         * doc/posix-functions/wprintf.texi: Likewise.
13868         * doc/posix-functions/wscanf.texi: Likewise.
13869         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13870
13871 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13872
13873         maint.mk: really add $(AM_MAKEFLAGS)
13874         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13875         was inadvertently omitted in the last commit.
13876         Spotted by Bruno Haible.
13877
13878         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13879         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13880         $(AM_MAKEFLAGS)' rather than plain `make'.
13881
13882         gnulib-tool: execute $MAKE not make
13883         * gnulib-tool: Default $MAKE to 'make'.
13884         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13885         than make.  Initialize $MAKE in the do-autobuild script.
13886
13887         gnulib-tool: use $MAKE not make in generated files
13888         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13889         make, in generated files.  Initialize $MAKE in the do-autobuild
13890         script.
13891
13892         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13893
13894         GNUmakefile: disable parallelism only for multiple, recursive targets
13895         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13896         additions in the Makefile.
13897         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13898         by Automake.
13899         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13900         are listed on the command line and at least one of them is
13901         listed in $(ALL_RECURSIVE_TARGETS).
13902
13903 2009-03-14  Bruno Haible  <bruno@clisp.org>
13904
13905         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13906         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13907         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13908         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13909         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13910         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13911         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13912         unistr/u8-uctomb.
13913         * modules/unistr/u8-strchr (Depends-on): Likewise.
13914         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13915         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13916         unistr/u16-uctomb.
13917         * modules/unistr/u16-strchr (Depends-on): Likewise.
13918         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13919
13920 2009-03-12  Bruno Haible  <bruno@clisp.org>
13921
13922         Work around select() bug on Interix 3.5.
13923         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13924         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13925         * m4/select.m4: New file.
13926         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13927         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13928         * modules/select (Files): Add m4/select.m4.
13929         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13930         * modules/nanosleep (Depends-on): Add select.
13931         * modules/poll (Depends-on): Likewise.
13932         * doc/posix-functions/select.texi: Mention the Interix bug.
13933         Reported by Markus Duft <mduft@gentoo.org>.
13934
13935         * lib/select.c: Renamed from lib/winsock-select.c.
13936         * modules/select (Files): Add lib/select.c, remove
13937         lib/winsock-select.c.
13938         (configure.ac): Update.
13939
13940 2009-03-12  Jim Meyering  <meyering@redhat.com>
13941
13942         avoid gcc warnings about unused macro definitions
13943         * lib/readtokens.c (STREQ): Remove unused definition.
13944         * lib/xmalloc.c (SIZE_MAX): Likewise.
13945         * lib/openat-die.c (N_): Likewise.
13946         * lib/mountlist.c (SIZE_MAX): Remove definition.
13947         Instead, include <stdint.h>.
13948         * lib/readutmp.c: Likewise.
13949         * modules/readutmp (Depends-on): Add stdint.
13950         * modules/mountlist (Depends-on): Add stdint.
13951         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13952
13953 2009-03-10  Bruno Haible  <bruno@clisp.org>
13954
13955         Tests for module 'mbmemcasecoll'.
13956         * modules/mbmemcasecoll-tests: New file.
13957         * tests/test-mbmemcasecoll1.sh: New file.
13958         * tests/test-mbmemcasecoll2.sh: New file.
13959         * tests/test-mbmemcasecoll3.sh: New file.
13960         * tests/test-mbmemcasecoll.c: New file.
13961
13962         New module 'mbmemcasecoll'.
13963         * lib/mbmemcasecoll.h: New file.
13964         * lib/mbmemcasecoll.c: New file.
13965         * modules/mbmemcasecoll: New file.
13966
13967         * tests/test-mbmemcasecmp.h: New file, extracted from
13968         tests/test-mbmemcasecmp.c.
13969         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13970         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13971         (main): Update.
13972         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13973
13974 2009-03-09  Bruno Haible  <bruno@clisp.org>
13975
13976         Tests for module 'mbmemcasecmp'.
13977         * modules/mbmemcasecmp-tests: New file.
13978         * tests/test-mbmemcasecmp1.sh: New file.
13979         * tests/test-mbmemcasecmp2.sh: New file.
13980         * tests/test-mbmemcasecmp3.sh: New file.
13981         * tests/test-mbmemcasecmp.c: New file.
13982
13983         New module 'mbmemcasecmp'.
13984         * lib/mbmemcasecmp.h: New file.
13985         * lib/mbmemcasecmp.c: New file.
13986         * modules/mbmemcasecmp: New file.
13987
13988 2009-03-09  Bruno Haible  <bruno@clisp.org>
13989
13990         Tests for module 'unicase/ulc-casecoll'.
13991         * modules/unicase/ulc-casecoll-tests: New file.
13992         * tests/unicase/test-ulc-casecoll1.sh: New file.
13993         * tests/unicase/test-ulc-casecoll2.sh: New file.
13994         * tests/unicase/test-ulc-casecoll.c: New file.
13995
13996         New module 'unicase/ulc-casecoll'.
13997         * lib/unicase.h (ulc_casecoll): New declaration.
13998         * lib/unicase/ulc-casecoll.c: New file.
13999         * modules/unicase/ulc-casecoll: New file.
14000
14001         New module 'unicase/ulc-casexfrm'.
14002         * lib/unicase.h (ulc_casexfrm): New declaration.
14003         * lib/unicase/ulc-casexfrm.c: New file.
14004         * modules/unicase/ulc-casexfrm: New file.
14005
14006 2009-03-09  Bruno Haible  <bruno@clisp.org>
14007
14008         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14009         invocations.
14010
14011         * m4/mbscasecmp.m4: Remove file.
14012         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14013         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14014
14015         * m4/mbscasestr.m4: Remove file.
14016         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14017         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14018
14019         * m4/mbschr.m4: Remove file.
14020         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14021         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14022
14023         * m4/mbscspn.m4: Remove file.
14024         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14025         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14026
14027         * m4/mbslen.m4: Remove file.
14028         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14029         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14030
14031         * m4/mbsncasecmp.m4: Remove file.
14032         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14033         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14034
14035         * m4/mbsnlen.m4: Remove file.
14036         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14037         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14038
14039         * m4/mbspbrk.m4: Remove file.
14040         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14041         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14042
14043         * m4/mbspcasecmp.m4: Remove file.
14044         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14045         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14046
14047         * m4/mbsrchr.m4: Remove file.
14048         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14049         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14050
14051         * m4/mbssep.m4: Remove file.
14052         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14053         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14054
14055         * m4/mbsspn.m4: Remove file.
14056         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14057         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14058
14059         * m4/mbsstr.m4: Remove file.
14060         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14061         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14062
14063         * m4/mbstok_r.m4: Remove file.
14064         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14065         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14066
14067         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14068
14069         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14070         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14071
14072         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14073
14074 2009-03-08  Bruno Haible  <bruno@clisp.org>
14075
14076         Tests for module 'unicase/ulc-casecmp'.
14077         * modules/unicase/ulc-casecmp-tests: New file.
14078         * tests/unicase/test-ulc-casecmp1.sh: New file.
14079         * tests/unicase/test-ulc-casecmp2.sh: New file.
14080         * tests/unicase/test-ulc-casecmp.c: New file.
14081
14082         New module 'unicase/ulc-casecmp'.
14083         * lib/unicase.h (ulc_casecmp): New declaration.
14084         * lib/unicase/ulc-casecmp.c: New file.
14085         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14086         'const SRC_UNIT *'.
14087         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14088         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14089         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14090         * modules/unicase/ulc-casecmp: New file.
14091
14092         Tests for module 'unicase/u32-is-cased'.
14093         * modules/unicase/u32-is-cased-tests: New file.
14094         * tests/unicase/test-u32-is-cased.c: New file.
14095
14096         Tests for module 'unicase/u16-is-cased'.
14097         * modules/unicase/u16-is-cased-tests: New file.
14098         * tests/unicase/test-u16-is-cased.c: New file.
14099
14100         Tests for module 'unicase/u8-is-cased'.
14101         * modules/unicase/u8-is-cased-tests: New file.
14102         * tests/unicase/test-u8-is-cased.c: New file.
14103         * tests/unicase/test-is-cased.h: New file.
14104
14105         New module 'unicase/u32-is-cased'.
14106         * lib/unicase/u32-is-cased.c: New file.
14107         * modules/unicase/u32-is-cased: New file.
14108
14109         New module 'unicase/u16-is-cased'.
14110         * lib/unicase/u16-is-cased.c: New file.
14111         * modules/unicase/u16-is-cased: New file.
14112
14113         New module 'unicase/u8-is-cased'.
14114         * lib/unicase/u8-is-cased.c: New file.
14115         * lib/unicase/u-is-cased.h: New file.
14116         * modules/unicase/u8-is-cased: New file.
14117
14118         Tests for module 'unicase/u32-is-casefolded'.
14119         * modules/unicase/u32-is-casefolded-tests: New file.
14120         * tests/unicase/test-u32-is-casefolded.c: New file.
14121
14122         Tests for module 'unicase/u16-is-casefolded'.
14123         * modules/unicase/u16-is-casefolded-tests: New file.
14124         * tests/unicase/test-u16-is-casefolded.c: New file.
14125
14126         Tests for module 'unicase/u8-is-casefolded'.
14127         * modules/unicase/u8-is-casefolded-tests: New file.
14128         * tests/unicase/test-u8-is-casefolded.c: New file.
14129         * tests/unicase/test-is-casefolded.h: New file.
14130
14131         New module 'unicase/u32-is-casefolded'.
14132         * lib/unicase/u32-is-casefolded.c: New file.
14133         * modules/unicase/u32-is-casefolded: New file.
14134
14135         New module 'unicase/u16-is-casefolded'.
14136         * lib/unicase/u16-is-casefolded.c: New file.
14137         * modules/unicase/u16-is-casefolded: New file.
14138
14139         New module 'unicase/u8-is-casefolded'.
14140         * lib/unicase/u8-is-casefolded.c: New file.
14141         * modules/unicase/u8-is-casefolded: New file.
14142
14143         Tests for module 'unicase/u32-is-titlecase'.
14144         * modules/unicase/u32-is-titlecase-tests: New file.
14145         * tests/unicase/test-u32-is-titlecase.c: New file.
14146
14147         Tests for module 'unicase/u16-is-titlecase'.
14148         * modules/unicase/u16-is-titlecase-tests: New file.
14149         * tests/unicase/test-u16-is-titlecase.c: New file.
14150
14151         Tests for module 'unicase/u8-is-titlecase'.
14152         * modules/unicase/u8-is-titlecase-tests: New file.
14153         * tests/unicase/test-u8-is-titlecase.c: New file.
14154         * tests/unicase/test-is-titlecase.h: New file.
14155
14156         New module 'unicase/u32-is-titlecase'.
14157         * lib/unicase/u32-is-titlecase.c: New file.
14158         * modules/unicase/u32-is-titlecase: New file.
14159
14160         New module 'unicase/u16-is-titlecase'.
14161         * lib/unicase/u16-is-titlecase.c: New file.
14162         * modules/unicase/u16-is-titlecase: New file.
14163
14164         New module 'unicase/u8-is-titlecase'.
14165         * lib/unicase/u8-is-titlecase.c: New file.
14166         * modules/unicase/u8-is-titlecase: New file.
14167
14168         Tests for module 'unicase/u32-is-lowercase'.
14169         * modules/unicase/u32-is-lowercase-tests: New file.
14170         * tests/unicase/test-u32-is-lowercase.c: New file.
14171
14172         Tests for module 'unicase/u16-is-lowercase'.
14173         * modules/unicase/u16-is-lowercase-tests: New file.
14174         * tests/unicase/test-u16-is-lowercase.c: New file.
14175
14176         Tests for module 'unicase/u8-is-lowercase'.
14177         * modules/unicase/u8-is-lowercase-tests: New file.
14178         * tests/unicase/test-u8-is-lowercase.c: New file.
14179         * tests/unicase/test-is-lowercase.h: New file.
14180
14181         New module 'unicase/u32-is-lowercase'.
14182         * lib/unicase/u32-is-lowercase.c: New file.
14183         * modules/unicase/u32-is-lowercase: New file.
14184
14185         New module 'unicase/u16-is-lowercase'.
14186         * lib/unicase/u16-is-lowercase.c: New file.
14187         * modules/unicase/u16-is-lowercase: New file.
14188
14189         New module 'unicase/u8-is-lowercase'.
14190         * lib/unicase/u8-is-lowercase.c: New file.
14191         * modules/unicase/u8-is-lowercase: New file.
14192
14193         Tests for module 'unicase/u32-is-uppercase'.
14194         * modules/unicase/u32-is-uppercase-tests: New file.
14195         * tests/unicase/test-u32-is-uppercase.c: New file.
14196
14197         Tests for module 'unicase/u16-is-uppercase'.
14198         * modules/unicase/u16-is-uppercase-tests: New file.
14199         * tests/unicase/test-u16-is-uppercase.c: New file.
14200
14201         Tests for module 'unicase/u8-is-uppercase'.
14202         * modules/unicase/u8-is-uppercase-tests: New file.
14203         * tests/unicase/test-u8-is-uppercase.c: New file.
14204         * tests/unicase/test-is-uppercase.h: New file.
14205
14206         New module 'unicase/u32-is-uppercase'.
14207         * lib/unicase/u32-is-uppercase.c: New file.
14208         * modules/unicase/u32-is-uppercase: New file.
14209
14210         New module 'unicase/u16-is-uppercase'.
14211         * lib/unicase/u16-is-uppercase.c: New file.
14212         * modules/unicase/u16-is-uppercase: New file.
14213
14214         New module 'unicase/u8-is-uppercase'.
14215         * lib/unicase/u8-is-uppercase.c: New file.
14216         * modules/unicase/u8-is-uppercase: New file.
14217
14218         New module 'unicase/u32-is-invariant'.
14219         * lib/unicase/u32-is-invariant.c: New file.
14220         * modules/unicase/u32-is-invariant: New file.
14221
14222         New module 'unicase/u16-is-invariant'.
14223         * lib/unicase/u16-is-invariant.c: New file.
14224         * modules/unicase/u16-is-invariant: New file.
14225
14226         New module 'unicase/u8-is-invariant'.
14227         * lib/unicase/u8-is-invariant.c: New file.
14228         * lib/unicase/invariant.h: New file.
14229         * lib/unicase/u-is-invariant.h: New file.
14230         * modules/unicase/u8-is-invariant: New file.
14231
14232         Tests for module 'unicase/u32-casecoll'.
14233         * modules/unicase/u32-casecoll-tests: New file.
14234         * tests/unicase/test-u32-casecoll.c: New file.
14235
14236         Tests for module 'unicase/u16-casecoll'.
14237         * modules/unicase/u16-casecoll-tests: New file.
14238         * tests/unicase/test-u16-casecoll.c: New file.
14239
14240         Tests for module 'unicase/u8-casecoll'.
14241         * modules/unicase/u8-casecoll-tests: New file.
14242         * tests/unicase/test-u8-casecoll.c: New file.
14243
14244         New module 'unicase/u32-casecoll'.
14245         * lib/unicase/u32-casecoll.c: New file.
14246         * modules/unicase/u32-casecoll: New file.
14247
14248         New module 'unicase/u16-casecoll'.
14249         * lib/unicase/u16-casecoll.c: New file.
14250         * modules/unicase/u16-casecoll: New file.
14251
14252         New module 'unicase/u8-casecoll'.
14253         * lib/unicase/u8-casecoll.c: New file.
14254         * lib/unicase/u-casecoll.h: New file.
14255         * modules/unicase/u8-casecoll: New file.
14256
14257         New module 'unicase/u32-casexfrm'.
14258         * lib/unicase/u32-casexfrm.c: New file.
14259         * modules/unicase/u32-casexfrm: New file.
14260
14261         New module 'unicase/u16-casexfrm'.
14262         * lib/unicase/u16-casexfrm.c: New file.
14263         * modules/unicase/u16-casexfrm: New file.
14264
14265         New module 'unicase/u8-casexfrm'.
14266         * lib/unicase/u8-casexfrm.c: New file.
14267         * lib/unicase/u-casexfrm.h: New file.
14268         * modules/unicase/u8-casexfrm: New file.
14269
14270         Tests for module 'unicase/u32-casecmp'.
14271         * modules/unicase/u32-casecmp-tests: New file.
14272         * tests/unicase/test-u32-casecmp.c: New file.
14273
14274         Tests for module 'unicase/u16-casecmp'.
14275         * modules/unicase/u16-casecmp-tests: New file.
14276         * tests/unicase/test-u16-casecmp.c: New file.
14277
14278         Tests for module 'unicase/u8-casecmp'.
14279         * modules/unicase/u8-casecmp-tests: New file.
14280         * tests/unicase/test-u8-casecmp.c: New file.
14281         * tests/unicase/test-casecmp.h: New file.
14282
14283         New module 'unicase/u32-casecmp'.
14284         * lib/unicase/u32-casecmp.c: New file.
14285         * modules/unicase/u32-casecmp: New file.
14286
14287         New module 'unicase/u16-casecmp'.
14288         * lib/unicase/u16-casecmp.c: New file.
14289         * modules/unicase/u16-casecmp: New file.
14290
14291         New module 'unicase/u8-casecmp'.
14292         * lib/unicase/u8-casecmp.c: New file.
14293         * lib/unicase/u-casecmp.h: New file.
14294         * modules/unicase/u8-casecmp: New file.
14295
14296         Tests for module 'unicase/u32-casefold'.
14297         * modules/unicase/u32-casefold-tests: New file.
14298         * tests/unicase/test-u32-casefold.c: New file.
14299
14300         Tests for module 'unicase/u16-casefold'.
14301         * modules/unicase/u16-casefold-tests: New file.
14302         * tests/unicase/test-u16-casefold.c: New file.
14303
14304         Tests for module 'unicase/u8-casefold'.
14305         * modules/unicase/u8-casefold-tests: New file.
14306         * tests/unicase/test-u8-casefold.c: New file.
14307
14308         New module 'unicase/u32-casefold'.
14309         * lib/unicase/u32-casefold.c: New file.
14310         * modules/unicase/u32-casefold: New file.
14311
14312         New module 'unicase/u16-casefold'.
14313         * lib/unicase/u16-casefold.c: New file.
14314         * modules/unicase/u16-casefold: New file.
14315
14316         New module 'unicase/u8-casefold'.
14317         * lib/unicase/u8-casefold.c: New file.
14318         * lib/unicase/u-casefold.h: New file.
14319         * modules/unicase/u8-casefold: New file.
14320
14321         New module 'unicase/tocasefold'.
14322         * lib/unicase/casefold.h: New file.
14323         * lib/unicase/tocasefold.c: New file.
14324         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14325         * modules/unicase/tocasefold: New file.
14326
14327         Tests for module 'unicase/u32-totitle'.
14328         * modules/unicase/u32-totitle-tests: New file.
14329         * tests/unicase/test-u32-totitle.c: New file.
14330
14331         Tests for module 'unicase/u16-totitle'.
14332         * modules/unicase/u16-totitle-tests: New file.
14333         * tests/unicase/test-u16-totitle.c: New file.
14334
14335         Tests for module 'unicase/u8-totitle'.
14336         * modules/unicase/u8-totitle-tests: New file.
14337         * tests/unicase/test-u8-totitle.c: New file.
14338
14339         New module 'unicase/u32-totitle'.
14340         * lib/unicase/u32-totitle.c: New file.
14341         * modules/unicase/u32-totitle: New file.
14342
14343         New module 'unicase/u16-totitle'.
14344         * lib/unicase/u16-totitle.c: New file.
14345         * modules/unicase/u16-totitle: New file.
14346
14347         New module 'unicase/u8-totitle'.
14348         * lib/unicase/u8-totitle.c: New file.
14349         * lib/unicase/u-totitle.h: New file.
14350         * modules/unicase/u8-totitle: New file.
14351
14352         Tests for module 'unicase/u32-tolower'.
14353         * modules/unicase/u32-tolower-tests: New file.
14354         * tests/unicase/test-u32-tolower.c: New file.
14355
14356         Tests for module 'unicase/u16-tolower'.
14357         * modules/unicase/u16-tolower-tests: New file.
14358         * tests/unicase/test-u16-tolower.c: New file.
14359
14360         Tests for module 'unicase/u8-tolower'.
14361         * modules/unicase/u8-tolower-tests: New file.
14362         * tests/unicase/test-u8-tolower.c: New file.
14363
14364         New module 'unicase/u32-tolower'.
14365         * lib/unicase/u32-tolower.c: New file.
14366         * modules/unicase/u32-tolower: New file.
14367
14368         New module 'unicase/u16-tolower'.
14369         * lib/unicase/u16-tolower.c: New file.
14370         * modules/unicase/u16-tolower: New file.
14371
14372         New module 'unicase/u8-tolower'.
14373         * lib/unicase/u8-tolower.c: New file.
14374         * modules/unicase/u8-tolower: New file.
14375
14376         Tests for module 'unicase/u32-toupper'.
14377         * modules/unicase/u32-toupper-tests: New file.
14378         * tests/unicase/test-u32-toupper.c: New file.
14379
14380         Tests for module 'unicase/u16-toupper'.
14381         * modules/unicase/u16-toupper-tests: New file.
14382         * tests/unicase/test-u16-toupper.c: New file.
14383
14384         Tests for module 'unicase/u8-toupper'.
14385         * modules/unicase/u8-toupper-tests: New file.
14386         * tests/unicase/test-u8-toupper.c: New file.
14387
14388         New module 'unicase/u32-toupper'.
14389         * lib/unicase/u32-toupper.c: New file.
14390         * modules/unicase/u32-toupper: New file.
14391
14392         New module 'unicase/u16-toupper'.
14393         * lib/unicase/u16-toupper.c: New file.
14394         * modules/unicase/u16-toupper: New file.
14395
14396         New module 'unicase/u8-toupper'.
14397         * lib/unicase/u8-toupper.c: New file.
14398         * modules/unicase/u8-toupper: New file.
14399
14400         New module 'unicase/u32-casemap'.
14401         * lib/unicase/u32-casemap.c: New file.
14402         * modules/unicase/u32-casemap: New file.
14403
14404         New module 'unicase/u16-casemap'.
14405         * lib/unicase/u16-casemap.c: New file.
14406         * modules/unicase/u16-casemap: New file.
14407
14408         New module 'unicase/u8-casemap'.
14409         * lib/unicase/unicasemap.h: New file.
14410         * lib/unicase/u8-casemap.c: New file.
14411         * lib/unicase/u-casemap.h: New file.
14412         * modules/unicase/u8-casemap: New file.
14413
14414         New module 'unicase/special-casing'.
14415         * lib/unicase/special-casing.h: New file.
14416         * lib/unicase/special-casing.c: New file.
14417         * lib/unicase/special-casing-table.gperf: New file, generated by
14418         gen-uni-tables.c.
14419         * modules/unicase/special-casing: New file.
14420
14421         Tests for module 'unicase/locale-language'.
14422         * modules/unicase/locale-language-tests: New file.
14423         * tests/unicase/test-locale-language.sh: New file.
14424         * tests/unicase/test-locale-language.c: New file.
14425
14426         New module 'unicase/locale-language'.
14427         * lib/unicase/locale-language.c: New file.
14428         * lib/unicase/locale-languages.gperf: New file.
14429         * modules/unicase/locale-language: New file.
14430
14431         Generate more tables for case conversion and case folding.
14432         * lib/gen-uni-tables.c (SCC_*): New enum items.
14433         (struct special_casing_rule): New type.
14434         (casing_rules, num_casing_rules, allocated_casing_rules): New
14435         variables.
14436         (add_casing_rule, fill_casing_rules): New functions.
14437         (struct casefold_rule): New type.
14438         (casefolding_rules, num_casefolding_rules,
14439         allocated_casefolding_rules): New variables.
14440         (fill_casefolding_rules): New function.
14441         (unicode_casefold): New variable.
14442         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14443         sort_casing_rules, output_casing_rules): New functions.
14444         (main): Accept to more arguments: SpecialCasing.txt and
14445         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14446         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14447         Output mapping for casefolding.
14448
14449         * lib/unicase.h: Include stdbool.h, uninorm.h.
14450         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14451         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14452         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14453         arguments.
14454         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14455         resultp arguments.
14456         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14457         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14458         resultp arguments.
14459         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14460         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14461         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14462         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14463         declarations.
14464         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14465
14466 2009-03-08  Bruno Haible  <bruno@clisp.org>
14467
14468         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14469         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14470         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14471         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14472
14473 2009-03-07  Bruno Haible  <bruno@clisp.org>
14474
14475         Adjust u*_normcmp, u*_normcoll API.
14476         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14477         u16_normcoll, u32_normcoll): Change failure conventions.
14478         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14479         errno and return -1.
14480         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14481
14482 2009-03-07  Bruno Haible  <bruno@clisp.org>
14483
14484         Tests for module 'uninorm/u32-normcoll'.
14485         * modules/uninorm/u32-normcoll-tests: New file.
14486         * tests/uninorm/test-u32-normcoll.c: New file.
14487
14488         Tests for module 'uninorm/u16-normcoll'.
14489         * modules/uninorm/u16-normcoll-tests: New file.
14490         * tests/uninorm/test-u16-normcoll.c: New file.
14491
14492         Tests for module 'uninorm/u8-normcoll'.
14493         * modules/uninorm/u8-normcoll-tests: New file.
14494         * tests/uninorm/test-u8-normcoll.c: New file.
14495
14496 2009-03-07  Bruno Haible  <bruno@clisp.org>
14497
14498         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14499         tests/uninorm/test-u32-normcmp.c.
14500         * tests/uninorm/test-u32-normcmp.c: Include it.
14501         (test_nonascii): New function, extracted from main. Add some more
14502         tests.
14503         (main): Invoke test_ascii and test_nonascii.
14504         * modules/uninorm/u32-normcmp-tests (Files): Add
14505         tests/uninorm/test-u32-normcmp.h.
14506         (Depends-on): Remove uninorm/u32-normcmp.
14507
14508         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14509         tests/uninorm/test-u16-normcmp.c.
14510         * tests/uninorm/test-u16-normcmp.c: Include it.
14511         (test_nonascii): New function, extracted from main. Add some more
14512         tests.
14513         (main): Invoke test_ascii and test_nonascii.
14514         * modules/uninorm/u16-normcmp-tests (Files): Add
14515         tests/uninorm/test-u16-normcmp.h.
14516         (Depends-on): Remove uninorm/u16-normcmp.
14517
14518         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14519         tests/uninorm/test-u8-normcmp.c.
14520         * tests/uninorm/test-u8-normcmp.c: Include it.
14521         (test_nonascii): New function, extracted from main. Add some more
14522         tests.
14523         (main): Invoke test_ascii and test_nonascii.
14524         * modules/uninorm/u8-normcmp-tests (Files): Add
14525         tests/uninorm/test-u8-normcmp.h.
14526         (Depends-on): Remove uninorm/u8-normcmp.
14527
14528 2009-03-07  Bruno Haible  <bruno@clisp.org>
14529
14530         New module 'uninorm/u32-normcoll'.
14531         * lib/uninorm/u32-normcoll.c: New file.
14532         * modules/uninorm/u32-normcoll: New file.
14533
14534         New module 'uninorm/u16-normcoll'.
14535         * lib/uninorm/u16-normcoll.c: New file.
14536         * modules/uninorm/u16-normcoll: New file.
14537
14538         New module 'uninorm/u8-normcoll'.
14539         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14540         declarations.
14541         * lib/uninorm/u8-normcoll.c: New file.
14542         * lib/uninorm/u-normcoll.h: New file.
14543         * modules/uninorm/u8-normcoll: New file.
14544
14545         New module 'uninorm/u32-normxfrm'.
14546         * lib/uninorm/u32-normxfrm.c: New file.
14547         * modules/uninorm/u32-normxfrm: New file.
14548
14549         New module 'uninorm/u16-normxfrm'.
14550         * lib/uninorm/u16-normxfrm.c: New file.
14551         * modules/uninorm/u16-normxfrm: New file.
14552
14553         New module 'uninorm/u8-normxfrm'.
14554         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14555         declarations.
14556         * lib/uninorm/u8-normxfrm.c: New file.
14557         * lib/uninorm/u-normxfrm.h: New file.
14558         * modules/uninorm/u8-normxfrm: New file.
14559
14560 2009-03-07  Bruno Haible  <bruno@clisp.org>
14561
14562         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14563         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14564         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14565
14566 2009-03-07  Bruno Haible  <bruno@clisp.org>
14567
14568         New module 'memxfrm'.
14569         * lib/memxfrm.h: New file.
14570         * lib/memxfrm.c: New file.
14571         * modules/memxfrm: New file.
14572
14573 2009-03-07  Bruno Haible  <bruno@clisp.org>
14574
14575         New module 'memcmp2'.
14576         * lib/memcmp2.h: New file.
14577         * lib/memcmp2.c: New file.
14578         * modules/memcmp2: New file.
14579
14580 2009-03-07  Bruno Haible  <bruno@clisp.org>
14581
14582         Tests for module 'uninorm/decomposing-form'.
14583         * modules/uninorm/decomposing-form-tests: New file.
14584         * tests/uninorm/test-decomposing-form.c: New file.
14585
14586         New module 'uninorm/decomposing-form'.
14587         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14588         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14589         Add 'decomposing_variant' field.
14590         * lib/uninorm/decomposing-form.c: New file.
14591         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14592         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14593         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14594         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14595         * modules/uninorm/decomposing-form: New file.
14596         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14597         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14598
14599 2009-03-07  Bruno Haible  <bruno@clisp.org>
14600
14601         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14602         strings.
14603
14604 2009-03-06  Bruno Haible  <bruno@clisp.org>
14605
14606         Tests for module 'uninorm/u32-normcmp'.
14607         * tests/uninorm/test-u32-normcmp.c: New file.
14608         * modules/uninorm/u32-normcmp-tests: New file.
14609
14610         Tests for module 'uninorm/u16-normcmp'.
14611         * tests/uninorm/test-u16-normcmp.c: New file.
14612         * modules/uninorm/u16-normcmp-tests: New file.
14613
14614         Tests for module 'uninorm/u8-normcmp'.
14615         * tests/uninorm/test-u8-normcmp.c: New file.
14616         * modules/uninorm/u8-normcmp-tests: New file.
14617
14618         New module 'uninorm/u32-normcmp'.
14619         * lib/uninorm/u32-normcmp.c: New file.
14620         * modules/uninorm/u32-normcmp: New file.
14621
14622         New module 'uninorm/u16-normcmp'.
14623         * lib/uninorm/u16-normcmp.c: New file.
14624         * modules/uninorm/u16-normcmp: New file.
14625
14626         New module 'uninorm/u8-normcmp'.
14627         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14628         declarations.
14629         * lib/uninorm/u8-normcmp.c: New file.
14630         * lib/uninorm/u-normcmp.h: New file.
14631         * modules/uninorm/u8-normcmp: New file.
14632
14633 2009-03-06  Bruno Haible  <bruno@clisp.org>
14634
14635         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14636         Reported by Eric Blake.
14637
14638 2009-03-06  Eric Blake  <ebb9@byu.net>
14639             Bruno Haible  <bruno@clisp.org>
14640
14641         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14642         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14643         condition.
14644         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14645         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14646         condition.
14647         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14648
14649 2009-03-06  Eric Blake  <ebb9@byu.net>
14650
14651         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14652         to avoid compiler warnings.
14653         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14654
14655 2009-03-05  Bruno Haible  <bruno@clisp.org>
14656
14657         * tests/test-ftell.c (main): Disable test beyond end of file on
14658         FreeMiNT.
14659         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14660
14661 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14662
14663         * lib/filevercmp.c: Move hidden files up in ordering.
14664         * tests/test-filevercmp.c: Add tests for hidden files.
14665
14666 2009-03-04  Bruno Haible  <bruno@clisp.org>
14667
14668         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14669         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14670         AM_CFLAGS.
14671         Reported by Simon Josefsson.
14672
14673 2009-03-03  Bruno Haible  <bruno@clisp.org>
14674
14675         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14676         Reported by Simon Josefsson.
14677
14678         * doc/ld-version-script.texi: Update node reference.
14679
14680 2009-03-03  Bruno Haible  <bruno@clisp.org>
14681
14682         * modules/visibility (License): Change to 'unlimited'.
14683         Suggested by Simon Josefsson.
14684
14685 2009-03-03  Jim Meyering  <meyering@redhat.com>
14686
14687         unlinkdir: cannot_unlink_dir may modify process state
14688         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14689         it's neither thread-safe nor appropriate for use in a library.
14690
14691 2009-03-03  Eric Blake  <ebb9@byu.net>
14692
14693         test-closein: silence test under Darwin
14694         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14695         care if it dies from EPIPE or EBADF.
14696
14697 2009-03-03  Bruno Haible  <bruno@clisp.org>
14698
14699         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14700         earlier.
14701         * doc/visibility.texi: Fix @node and @section.
14702
14703 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14704
14705         * doc/gnulib.texi: Link to sections for ld version script and
14706         visibility.
14707         * doc/visibility.texi: Add @node and @section.
14708         * modules/ld-version-script: New module.
14709         * m4/ld-version-script.m4: New file.
14710         * doc/ld-version-script.texi: New file.
14711
14712 2009-03-02  David Lutterkort  <lutter@redhat.com>
14713
14714         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14716
14717 2009-03-02  Bruno Haible  <bruno@clisp.org>
14718
14719         * doc/visibility.texi: Mention libtool's -export-symbols option.
14720
14721 2009-03-02  Jim Meyering  <meyering@redhat.com>
14722
14723         announce-gen: new option: --no-print-checksums
14724         * build-aux/announce-gen (usage): Describe it.
14725         (print_checksums): Print a newline here, not in the [*] footnote.
14726         (main): Honor it.
14727
14728 2009-03-01  Bruno Haible  <bruno@clisp.org>
14729
14730         Use socklen_t in the native Windows replacements prototypes.
14731         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14732         instead of 'int'.
14733         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14734         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14735         * modules/getsockopt (Depends-on): Add socklen.
14736         * modules/setsockopt (Depends-on): Add socklen.
14737
14738 2009-03-01  Bruno Haible  <bruno@clisp.org>
14739
14740         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14741         least 4.2.
14742
14743 2009-03-01  Eric Blake  <ebb9@byu.net>
14744             Bruno Haible  <bruno@clisp.org>
14745
14746         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14747         error messages.
14748         * lib/wait-process.c (wait_subprocess): Omit error message about
14749         deadly signal sent to the child of termsigp != NULL.
14750
14751 2009-03-01  Eric Blake  <ebb9@byu.net>
14752
14753         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14754
14755 2009-03-01  Bruno Haible  <bruno@clisp.org>
14756
14757         Avoid a gcc warning.
14758         * tests/test-sched.c (b): Make global.
14759         Reported by Eric Blake.
14760
14761 2009-01-19  Martin Lambers  <marlam@marlam.de>
14762
14763         Provide POSIX semantics for socket timeout options on W32.
14764         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14765         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14766         * modules/setsockopt: Depend on sys_time module for struct timeval.
14767         * modules/getsockopt: Depend on sys_time module for struct timeval.
14768
14769 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14770
14771         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14772         __USE_GNU, for consistency with netdb.in.h.
14773         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14774
14775 2009-03-01  Bruno Haible  <bruno@clisp.org>
14776
14777         More support for FreeMiNT.
14778         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14779         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14780
14781 2009-03-01  Bruno Haible  <bruno@clisp.org>
14782
14783         More support for FreeMiNT.
14784         * lib/fpurge.c (fpurge): Correct last commit.
14785         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14786
14787 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14788
14789         Fix unportable awk script in vc-list-files.
14790         * build-aux/vc-list-files: In the replacement awk script, use
14791         substr with a second argument of 1, not zero.
14792         Report by Simon Josefsson.
14793
14794 2009-02-28  Bruno Haible  <bruno@clisp.org>
14795
14796         More support for FreeMiNT.
14797         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14798         to FreeMiNT today.
14799         * lib/fwriting.c (fwriting): Likewise.
14800         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14801
14802 2009-02-28  Bruno Haible  <bruno@clisp.org>
14803
14804         * tests/test-freadseek.c (main): Disable test beyond end of file on
14805         FreeMiNT.
14806         * tests/test-ftello.c (main): Likewise.
14807         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14808
14809 2009-02-28  Bruno Haible  <bruno@clisp.org>
14810
14811         Add tentative support for FreeMiNT.
14812         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14813         * lib/fpurge.c (fpurge): Likewise.
14814         * lib/freadable.c (freadable): Likewise.
14815         * lib/freading.c (freading): Likewise.
14816         * lib/freadptr.c (freadptr): Likewise.
14817         * lib/freadseek.c (freadptrinc): Likewise.
14818         * lib/fseeko.c (rpl_fseeko): Likewise.
14819         * lib/fseterr.c (fseterr): Likewise.
14820         * lib/fwritable.c (fwritable): Likewise.
14821         * lib/fwriting.c (fwriting): Likewise.
14822         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14823         Hourihane.
14824         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14825
14826 2009-02-28  Bruno Haible  <bruno@clisp.org>
14827
14828         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14829         SIGCHLD.
14830         Reported by Jim Meyering.
14831
14832 2009-02-28  Bruno Haible  <bruno@clisp.org>
14833
14834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14835         Mention the results of these tests on various platforms.
14836         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14837         order.
14838         * doc/posix-functions/printf.texi: Likewise.
14839         * doc/posix-functions/snprintf.texi: Likewise.
14840         * doc/posix-functions/sprintf.texi: Likewise.
14841         * doc/posix-functions/vfprintf.texi: Likewise.
14842         * doc/posix-functions/vprintf.texi: Likewise.
14843         * doc/posix-functions/vsnprintf.texi: Likewise.
14844         * doc/posix-functions/vsprintf.texi: Likewise.
14845         * doc/glibc-functions/obstack_printf.texi: Likewise.
14846         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14847
14848 2009-02-28  Bruno Haible  <bruno@clisp.org>
14849
14850         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14851         Reported by Loïc Minier <lool@dooz.org>.
14852
14853 2009-02-27  Bruno Haible  <bruno@clisp.org>
14854
14855         * gnulib-tool (func_import): Make the sed expression used to create the
14856         sed script for updating the .gitignore file POSIX compliant.
14857         Reported by Eric Blake.
14858
14859 2009-02-27  Bruno Haible  <bruno@clisp.org>
14860
14861         * gnulib-tool (sed): Don't alias as "sed --posix".
14862         Reported by Eric Blake.
14863
14864 2009-02-27  Bruno Haible  <bruno@clisp.org>
14865
14866         Avoid test link errors.
14867         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14868         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14869         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14870         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14872
14873 2009-02-27  Bruno Haible  <bruno@clisp.org>
14874
14875         Avoid spurious "(cached)" in configure output.
14876         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14877         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14878         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14879         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14880         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14881         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14882         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14883         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14884         Reported by Eric Blake.
14885
14886 2009-02-27  Eric Blake  <ebb9@byu.net>
14887
14888         printf: fix regression in previous patch
14889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14890
14891 2009-02-27  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14894         value.
14895         * lib/stdint.in.h: Likewise.
14896         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14897
14898 2009-02-27  Eric Blake  <ebb9@byu.net>
14899
14900         doc: mention more functions added in cygwin 1.7.0
14901         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14902         addition.
14903         * doc/posix-functions/open_wmemstream.texi: Likewise.
14904         * doc/posix-functions/wcsnlen.texi: Likewise.
14905         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14906         * doc/posix-functions/wcstod.texi: Likewise.
14907         * doc/posix-functions/wcstof.texi: Likewise.
14908         * doc/posix-functions/wcstoimax.texi: Likewise.
14909         * doc/posix-functions/wcstok.texi: Likewise.
14910         * doc/posix-functions/wcstoumax.texi: Likewise.
14911
14912         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14914         * doc/posix-functions/fprintf.texi: Update.
14915         * doc/posix-functions/printf.texi: Update.
14916         * doc/posix-functions/snprintf.texi: Update.
14917         * doc/posix-functions/sprintf.texi: Update.
14918         * doc/posix-functions/vfprintf.texi: Update.
14919         * doc/posix-functions/vprintf.texi: Update.
14920         * doc/posix-functions/vsnprintf.texi: Update.
14921         * doc/posix-functions/vsprintf.texi: Update.
14922         * doc/glibc-functions/obstack_printf.texi: Update.
14923         * doc/glibc-functions/obstack_vprintf.texi: Update.
14924
14925 2009-02-26  Eric Blake  <ebb9@byu.net>
14926
14927         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14928         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14929         compilation bug by using runtime conversion.
14930         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14931         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14932         * modules/ceill-tests (Files): Use nan.h.
14933         * modules/floorl-tests (Files): Likewise.
14934         * modules/frexpl-tests (Files): Likewise.
14935         * modules/isnanl-tests (Files): Likewise.
14936         * modules/ldexpl-tests (Files): Likewise.
14937         * modules/roundl-tests (Files): Likewise.
14938         * modules/truncl-tests (Files): Likewise.
14939         * tests/test-ceill.c (main): Use a working NaN.
14940         * tests/test-floorl.c (main): Likewise.
14941         * tests/test-frexpl.c (main): Likewise.
14942         * tests/test-isnan.c (test_long_double): Likewise.
14943         * tests/test-isnanl.h (main): Likewise.
14944         * tests/test-ldexpl.h (main): Likewise.
14945         * tests/test-roundl.h (main): Likewise.
14946         * tests/test-truncl.h (main): Likewise.
14947         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14948
14949 2009-02-26  Eric Blake  <ebb9@byu.net>
14950             Bruno Haible  <bruno@clisp.org>
14951
14952         Work around a *printf bug with %ls on Solaris.
14953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14954         precision is specified, sprintf stops converting the wide string
14955         argument when the number of bytes that have been produced by this
14956         conversion equals or exceeds the precision.
14957         * doc/posix-functions/fprintf.texi: Update.
14958         * doc/posix-functions/printf.texi: Update.
14959         * doc/posix-functions/snprintf.texi: Update.
14960         * doc/posix-functions/sprintf.texi: Update.
14961         * doc/posix-functions/vfprintf.texi: Update.
14962         * doc/posix-functions/vprintf.texi: Update.
14963         * doc/posix-functions/vsnprintf.texi: Update.
14964         * doc/posix-functions/vsprintf.texi: Update.
14965         * doc/glibc-functions/obstack_printf.texi: Update.
14966         * doc/glibc-functions/obstack_vprintf.texi: Update.
14967
14968 2009-02-26  Eric Blake  <ebb9@byu.net>
14969
14970         stdlib: favor compiler check of random.h
14971         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14972         to avoid an ObjC random.h installed by Swarm.
14973
14974 2009-02-26  Bruno Haible  <bruno@clisp.org>
14975
14976         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14977         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14978         Reported by Gary V. Vaughan <gary@gnu.org>.
14979
14980 2009-02-26  Bruno Haible  <bruno@clisp.org>
14981
14982         Fix *printf behaviour regarding the %ls directive.
14983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14984         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14985         NEED_PRINTF_DIRECTIVE_LS.
14986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14987         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14989         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14990         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14991         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14992         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14997         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15001         * doc/posix-functions/fprintf.texi: Update.
15002         * doc/posix-functions/printf.texi: Update.
15003         * doc/posix-functions/snprintf.texi: Update.
15004         * doc/posix-functions/sprintf.texi: Update.
15005         * doc/posix-functions/vfprintf.texi: Update.
15006         * doc/posix-functions/vprintf.texi: Update.
15007         * doc/posix-functions/vsnprintf.texi: Update.
15008         * doc/posix-functions/vsprintf.texi: Update.
15009         * doc/glibc-functions/obstack_printf.texi: Update.
15010         * doc/glibc-functions/obstack_vprintf.texi: Update.
15011         Reported by Eric Blake.
15012
15013 2009-02-25  Bruno Haible  <bruno@clisp.org>
15014
15015         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15016         with known value.
15017         Reported by Gary V. Vaughan <gary@gnu.org>.
15018
15019 2009-02-25  Bruno Haible  <bruno@clisp.org>
15020
15021         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15022         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15023         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15024         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15025         Reported by Gary V. Vaughan <gary@gnu.org>.
15026
15027 2009-02-25  Bruno Haible  <bruno@clisp.org>
15028
15029         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15030         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15031         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15032         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15033         Reported by Gary V. Vaughan <gary@gnu.org>.
15034
15035 2009-02-25  Eric Blake  <ebb9@byu.net>
15036
15037         tests: skip fseek/ftell tests if ungetc is broken
15038         * m4/ungetc.m4: New file.
15039         * modules/fseek-tests: Split test, so ungetc dependency is
15040         separate from rest of test.
15041         * modules/fseeko-tests: Likewise.
15042         * modules/ftell-tests: Likewise.
15043         * modules/ftello-tests: Likewise.
15044         * tests/test-fseek.c (main): Isolate ungetc dependency.
15045         * tests/test-fseeko.c (main): Likewise.
15046         * tests/test-ftell.c (main): Likewise.
15047         * tests/test-ftello.c (main): Likewise.
15048         * tests/test-fseek2.sh: New file.
15049         * tests/test-fseeko2.sh: Likewise.
15050         * tests/test-ftell2.sh: Likewise.
15051         * tests/test-ftello2.sh: Likewise.
15052
15053 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
15054
15055         test-getaddrinfo: fix usage of skip return code 77
15056         * tests/test-gettaddrinfo.c: Return skip code 77 only
15057         for first occurance of skip (4x77 is not 77)
15058
15059 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15060
15061         strtod: avoid C99 decl-after-statement
15062         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15063
15064 2009-02-24  Eric Blake  <ebb9@byu.net>
15065
15066         strtod: detect HP-UX 11.31 bug
15067         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15068         Reported by Gary V. Vaughan.
15069
15070 2009-02-23  Bruno Haible  <bruno@clisp.org>
15071
15072         Fix invalid read past end of memory block.
15073         * lib/vasnprintf.c (DCHAR_SET): Define.
15074         (local_wcslen): Define only when needed.
15075         (local_strnlen, local_wcsnlen): New functions.
15076         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15077         directives that involve a conversion ourselves.
15078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15079         wcsnlen, mbrtowc, wcrtomb.
15080         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15081         * tests/test-vasprintf-posix.c (test_function): Likewise.
15082         * tests/test-snprintf-posix.h (test_function): Likewise.
15083         * tests/test-sprintf-posix.h (test_function): Likewise.
15084         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15085
15086 2009-02-22  Bruno Haible  <bruno@clisp.org>
15087
15088         Implement new clarified decomposition of Hangul syllables.
15089         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15090         of type LTV, return only a pairwise decomposition.
15091         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15092         Likewise.
15093         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15094         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15095         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15096
15097 2009-02-22  Bruno Haible  <bruno@clisp.org>
15098
15099         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15100         zero-length results and shrink excess allocated memory.
15101         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15102         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15103         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15104         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15105         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15106         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15107         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15108         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15109         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15110         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15111         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15112         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15113
15114 2009-02-21  Bruno Haible  <bruno@clisp.org>
15115
15116         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15117         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15118         spaces after a period. Put a space between a macro name and its
15119         argument list. Trivial rewordings.
15120         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15121         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15122         (main): Return 0 explicitly.
15123
15124 2009-02-21  Bruno Haible  <bruno@clisp.org>
15125
15126         Tests for module 'uninorm/filter'.
15127         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15128         * modules/uninorm/filter-tests: New file.
15129
15130         New module 'uninorm/filter'.
15131         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15132         uninorm_filter_flush, uninorm_filter_free): New declarations.
15133         * lib/uninorm/uninorm-filter.c: New file.
15134         * modules/uninorm/filter: New file.
15135
15136 2009-02-21  Bruno Haible  <bruno@clisp.org>
15137
15138         Tests for module 'uninorm/nfkc'.
15139         * tests/uninorm/test-nfkc.c: New file.
15140         * tests/uninorm/test-u8-nfkc.c: New file.
15141         * tests/uninorm/test-u16-nfkc.c: New file.
15142         * tests/uninorm/test-u32-nfkc.c: New file.
15143         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15144         * tests/uninorm/test-u32-nfkc-big.c: New file.
15145         * modules/uninorm/nfkc-tests: New file.
15146
15147         New module 'uninorm/nfkc'.
15148         * lib/uninorm/nfkc.c: New file.
15149         * modules/uninorm/nfkc: New file.
15150
15151         Tests for module 'uninorm/nfkd'.
15152         * tests/uninorm/test-nfkd.c: New file.
15153         * tests/uninorm/test-u8-nfkd.c: New file.
15154         * tests/uninorm/test-u16-nfkd.c: New file.
15155         * tests/uninorm/test-u32-nfkd.c: New file.
15156         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15157         * tests/uninorm/test-u32-nfkd-big.c: New file.
15158         * modules/uninorm/nfkd-tests: New file.
15159
15160         New module 'uninorm/nfkd'.
15161         * lib/uninorm/nfkd.c: New file.
15162         * modules/uninorm/nfkd: New file.
15163
15164         Tests for module 'uninorm/nfc'.
15165         * tests/uninorm/test-nfc.c: New file.
15166         * tests/uninorm/test-u8-nfc.c: New file.
15167         * tests/uninorm/test-u16-nfc.c: New file.
15168         * tests/uninorm/test-u32-nfc.c: New file.
15169         * tests/uninorm/test-u32-nfc-big.sh: New file.
15170         * tests/uninorm/test-u32-nfc-big.c: New file.
15171         * modules/uninorm/nfc-tests: New file.
15172
15173         New module 'uninorm/nfc'.
15174         * lib/uninorm/nfc.c: New file.
15175         * modules/uninorm/nfc: New file.
15176
15177         Tests for module 'uninorm/nfd'.
15178         * tests/uninorm/test-nfd.c: New file.
15179         * tests/uninorm/test-u8-nfd.c: New file.
15180         * tests/uninorm/test-u16-nfd.c: New file.
15181         * tests/uninorm/test-u32-nfd.c: New file.
15182         * tests/uninorm/test-u32-nfd-big.sh: New file.
15183         * tests/uninorm/test-u32-nfd-big.c: New file.
15184         * tests/uninorm/test-u32-normalize-big.h: New file.
15185         * tests/uninorm/test-u32-normalize-big.c: New file.
15186         * tests/uninorm/NormalizationTest.txt: New file, created from
15187         Unicode 5.1.0 NormalizationTest.txt.
15188         * modules/uninorm/nfd-tests: New file.
15189
15190         New module 'uninorm/nfd'.
15191         * lib/uninorm/nfd.c: New file.
15192         * modules/uninorm/nfd: New file.
15193
15194         New module 'uninorm/u32-normalize'.
15195         * lib/uninorm/u32-normalize.c: New file.
15196         * modules/uninorm/u32-normalize: New file.
15197
15198         New module 'uninorm/u16-normalize'.
15199         * lib/uninorm/u16-normalize.c: New file.
15200         * modules/uninorm/u16-normalize: New file.
15201
15202         New module 'uninorm/u8-normalize'.
15203         * lib/uninorm/u8-normalize.c: New file.
15204         * lib/uninorm/normalize-internal.h: New file.
15205         * lib/uninorm/u-normalize-internal.h: New file.
15206         * modules/uninorm/u8-normalize: New file.
15207
15208         New module 'uninorm/decompose-internal'.
15209         * lib/uninorm/decompose-internal.c: New file.
15210         * modules/uninorm/decompose-internal: New file.
15211
15212         Tests for module 'uninorm/composition'.
15213         * tests/uninorm/test-composition.c: New file.
15214         * modules/uninorm/composition-tests: New file.
15215
15216         New module 'uninorm/composition'.
15217         * lib/uninorm/composition.c: New file.
15218         * lib/uninorm/composition-table.gperf: New file, generated by
15219         gen-uni-tables.
15220         * modules/uninorm/composition: New file.
15221
15222         Tests for module 'uninorm/compat-decomposition'.
15223         * tests/uninorm/test-compat-decomposition.c: New file.
15224         * modules/uninorm/compat-decomposition-tests: New file.
15225
15226         New module 'uninorm/compat-decomposition'.
15227         * lib/uninorm/decompose-internal.h: New file.
15228         * lib/uninorm/compat-decomposition.c: New file.
15229         * modules/uninorm/compat-decomposition: New file.
15230
15231         Tests for module 'uninorm/canonical-decomposition'.
15232         * tests/uninorm/test-canonical-decomposition.c: New file.
15233         * modules/uninorm/canonical-decomposition-tests: New file.
15234
15235         New module 'uninorm/canonical-decomposition'.
15236         * lib/uninorm/canonical-decomposition.c: New file.
15237         * modules/uninorm/canonical-decomposition: New file.
15238
15239         Tests for module 'uninorm/decomposition'.
15240         * tests/uninorm/test-decomposition.c: New file.
15241         * modules/uninorm/decomposition-tests: New file.
15242
15243         New module 'uninorm/decomposition'.
15244         * lib/uninorm/decomposition.c: New file.
15245         * modules/uninorm/decomposition: New file.
15246
15247         New module 'uninorm/decomposition-table'.
15248         * lib/uninorm/decomposition-table.h: New file.
15249         * lib/uninorm/decomposition-table.c: New file.
15250         * lib/uninorm/decomposition-table1.h: New file, generated by
15251         gen-uni-tables.
15252         * lib/uninorm/decomposition-table2.h: New file, generated by
15253         gen-uni-tables.
15254         * modules/uninorm/decomposition-table: New file.
15255
15256         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15257         (UC_DECOMP_*): New enumeration items.
15258         (get_decomposition): New function.
15259         (struct decomp_table): New type.
15260         (output_decomposition, output_decomposition_tables): New functions.
15261         (unicode_composition_exclusions): New variable.
15262         (fill_composition_exclusions, debug_output_composition_tables): New
15263         functions.
15264         (main): Accept one more argument. Invoke fill_composition_exclusions.
15265         Output decomposition and composition tables.
15266
15267         New module 'uninorm/base'.
15268         * lib/uninorm.h: New file.
15269         * lib/unictype.h: Update comment.
15270         * modules/uninorm/base: New file.
15271
15272 2009-02-21  David Lutterkort  <lutter@redhat.com>
15273
15274         Tests for module 'safe-alloc'.
15275         * tests/test-safe-alloc.c: New file.
15276         * modules/safe-alloc-tests: New file.
15277
15278         New module 'safe-alloc'.
15279         * lib/safe-alloc.h: New file.
15280         * lib/safe-alloc.c: New file.
15281         * m4/safe-alloc.m4: New file.
15282         * modules/safe-alloc: New file.
15283         * doc/safe-alloc.texi: New file.
15284         * doc/gnulib.texi: Include it.
15285         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15286         safe-alloc.
15287
15288 2009-02-18  Bruno Haible  <bruno@clisp.org>
15289
15290         Fix link error on non-glibc systems.
15291         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15292         variable.
15293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15294
15295 2009-02-18  Jim Meyering  <meyering@redhat.com>
15296
15297         fts: avoid used-uninitialized error due to recent change
15298         * lib/fts.c (fts_read): Guard uses of the new member,
15299         parent->fts_n_dirs_remaining, since it's not relevant for
15300         the parent of a directory specified on the command-line.
15301
15302 2009-02-17  James Youngman  <jay@gnu.org>
15303             Bruno Haible  <bruno@clisp.org>
15304
15305         * m4/include_next.m4: Reformulate comment.
15306
15307 2009-02-16  Jim Meyering  <meyering@redhat.com>
15308
15309         fts: add #if guards so that the fts_lgpl module still builds
15310         * lib/fts.c: Guard just-added hash-table-using parts with
15311         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15312         Reported by Simon Josefsson.
15313
15314 2009-02-15  Bruno Haible  <bruno@clisp.org>
15315
15316         * modules/array-mergesort-tests: New file.
15317         * tests/test-array-mergesort.c: New file.
15318
15319         New module 'array-mergesort'.
15320         * modules/array-mergesort: New file.
15321         * lib/array-mergesort.h: New file.
15322
15323 2009-02-15  Bruno Haible  <bruno@clisp.org>
15324
15325         Fix 2009-02-07 commit.
15326         * lib/gen-uni-tables.c (output_predicate, output_category,
15327         output_combclass, output_bidi_category, output_decimal_digit,
15328         output_digit, output_numeric, output_mirror, output_scripts,
15329         output_ident_category, output_simple_mapping): Fix format directives.
15330         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15331
15332 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15333
15334         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15335         fixes are available from IBM.
15336
15337 2009-02-13  Jim Meyering  <meyering@redhat.com>
15338
15339         fts: arrange not to stat non-directories in more cases
15340         This makes GNU find (when it doesn't need to stat each file)
15341         *much* more efficient at traversing reiserfs file systems.
15342         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15343         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15344         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15345         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15346         (leaf_optimization_applies): New function.
15347         (LCO_hash, LCO_compare): New helper functions.
15348         (link_count_optimize_ok): New function.
15349         (fts_stat): Initialize new member (if dir).
15350         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15351         we've just stat'ed a directory.  Skip the stat call when possible.
15352         ---
15353         Note this AFS-related exchange:
15354         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15355         and note find's pioctl call in find/fstype.c.
15356         But that is necessary only if you want to enable the
15357         optimization for AFS, and for now, I don't.
15358
15359         fts: move a function definition "up" (no semantic change)
15360         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15361         "up" to precede upcoming use of a related function.
15362
15363 2009-02-11  Jim Meyering  <meyering@redhat.com>
15364
15365         fts: correct internal computation of nlinks (optimization-related)
15366         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15367         whether the current entry is a directory, so don't test it.
15368
15369 2009-02-10  Bruno Haible  <bruno@clisp.org>
15370
15371         Tests for module 'uniwbrk/ulc-wordbreaks'.
15372         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15373         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15374         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15375
15376         Tests for module 'uniwbrk/u32-wordbreaks'.
15377         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15378         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15379
15380         Tests for module 'uniwbrk/u16-wordbreaks'.
15381         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15382         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15383
15384         Tests for module 'uniwbrk/u8-wordbreaks'.
15385         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15386         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15387
15388 2009-02-10  Bruno Haible  <bruno@clisp.org>
15389
15390         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15391         property.
15392         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15393         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15394         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15395
15396 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15397
15398         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15399         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15400
15401 2009-02-10  Bruno Haible  <bruno@clisp.org>
15402
15403         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15404         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15405         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15406         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15407         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15408         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15409
15410 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15411
15412         * lib/sockets.h (gl_fd_to_handle): New function.
15413
15414         * tests/test-sockets.c: Call gl_fd_to_handle.
15415
15416 2009-02-09  Bruno Haible  <bruno@clisp.org>
15417
15418         * doc/havelib.texi: Document the conventions on bi-arch systems.
15419
15420 2009-02-08  Bruno Haible  <bruno@clisp.org>
15421
15422         Document the AC_LIB_LINKFLAGS macro.
15423         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15424         * doc/gnulib.texi: Include it.
15425
15426 2009-02-08  Bruno Haible  <bruno@clisp.org>
15427
15428         Fix wrong order of sections, compared to TOC.
15429         * doc/gnulib.texi: Include relocatable-maint.texi after the
15430         "Regular expressions" node, not before.
15431
15432 2009-02-08  Bruno Haible  <bruno@clisp.org>
15433
15434         Tests for module 'unicase/totitle'.
15435         * modules/unicase/totitle-tests: New file.
15436
15437         Tests for module 'unicase/tolower'.
15438         * modules/unicase/tolower-tests: New file.
15439
15440         Tests for module 'unicase/toupper'.
15441         * modules/unicase/toupper-tests: New file.
15442         * tests/unicase/test-mapping-part1.h: New file.
15443         * tests/unicase/test-mapping-part2.h: New file.
15444
15445         New module 'unicase/totitle'.
15446         * modules/unicase/totitle: New file.
15447         * lib/unicase/totitle.c: New file.
15448
15449         New module 'unicase/tolower'.
15450         * modules/unicase/tolower: New file.
15451         * lib/unicase/tolower.c: New file.
15452
15453         New module 'unicase/toupper'.
15454         * modules/unicase/toupper: New file.
15455         * lib/unicase/toupper.c: New file.
15456         * lib/unicase/simple-mapping.h: New file.
15457
15458         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15459         (mapping_table): New structure.
15460         (output_simple_mapping): New function.
15461         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15462         * modules/gen-uni-tables (Description): Update.
15463         * lib/unicase/toupper.h: New file, automatically generated by
15464         gen-uni-tables.
15465         * lib/unicase/tolower.h: New file, automatically generated by
15466         gen-uni-tables.
15467         * lib/unicase/totitle.h: New file, automatically generated by
15468         gen-uni-tables.
15469         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15470         gen-uni-tables.
15471         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15472         gen-uni-tables.
15473         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15474         gen-uni-tables.
15475
15476         New module 'unicase/base'.
15477         * modules/unicase/base: New file.
15478         * lib/unicase.h: New file.
15479
15480 2009-02-08  Bruno Haible  <bruno@clisp.org>
15481
15482         New module 'uniwbrk/ulc-wordbreaks'.
15483         * modules/uniwbrk/ulc-wordbreaks: New file.
15484         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15485
15486         New module 'uniwbrk/u32-wordbreaks'.
15487         * modules/uniwbrk/u32-wordbreaks: New file.
15488         * lib/uniwbrk/u32-wordbreaks.c: New file.
15489
15490         New module 'uniwbrk/u16-wordbreaks'.
15491         * modules/uniwbrk/u16-wordbreaks: New file.
15492         * lib/uniwbrk/u16-wordbreaks.c: New file.
15493
15494         New module 'uniwbrk/u8-wordbreaks'.
15495         * modules/uniwbrk/u8-wordbreaks: New file.
15496         * lib/uniwbrk/u8-wordbreaks.c: New file.
15497         * lib/uniwbrk/u-wordbreaks.h: New file.
15498
15499         New module 'uniwbrk/table'.
15500         * modules/uniwbrk/table: New file.
15501         * lib/uniwbrk/wbrktable.h: New file.
15502         * lib/uniwbrk/wbrktable.c: New file.
15503
15504         New module 'uniwbrk/wordbreak-property'.
15505         * modules/uniwbrk/wordbreak-property: New file.
15506         * lib/uniwbrk/wordbreak-property.c: New file.
15507
15508         * lib/gen-uni-tables.c (WBP_*): New enum items.
15509         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15510         (unicode_org_wbp): New variable.
15511         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15512         New functions.
15513         (wbp_table): New structure.
15514         (output_wbp, output_wbrk_tables): New functions.
15515         (main): Accept additional argument. Invoke fill_org_wbp,
15516         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15517         output_wbrk_tables.
15518         * modules/gen-uni-tables (Description): Update.
15519         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15520         gen-uni-tables.
15521
15522         New module 'uniwbrk/base'.
15523         * modules/uniwbrk/base: New file.
15524         * lib/uniwbrk.h: New file.
15525
15526 2009-02-08  Bruno Haible  <bruno@clisp.org>
15527
15528         Update to Unicode 5.1.0.
15529         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15530         U+2185..U+2188.
15531         (is_property_default_ignorable_code_point): Don't include characters
15532         of category Cc or Cs and not-a-characters.
15533         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15534         U+0D79, U+109E, U+109F, U+A60C.
15535         * lib/unictype/bidi_of.h: Regenerated.
15536         * lib/unictype/blocks.h: Regenerated.
15537         * lib/unictype/categ_C.h: Regenerated.
15538         * lib/unictype/categ_Cf.h: Regenerated.
15539         * lib/unictype/categ_Cn.h: Regenerated.
15540         * lib/unictype/categ_L.h: Regenerated.
15541         * lib/unictype/categ_Ll.h: Regenerated.
15542         * lib/unictype/categ_Lm.h: Regenerated.
15543         * lib/unictype/categ_Lo.h: Regenerated.
15544         * lib/unictype/categ_Lu.h: Regenerated.
15545         * lib/unictype/categ_M.h: Regenerated.
15546         * lib/unictype/categ_Mc.h: Regenerated.
15547         * lib/unictype/categ_Me.h: Regenerated.
15548         * lib/unictype/categ_Mn.h: Regenerated.
15549         * lib/unictype/categ_N.h: Regenerated.
15550         * lib/unictype/categ_Nd.h: Regenerated.
15551         * lib/unictype/categ_Nl.h: Regenerated.
15552         * lib/unictype/categ_No.h: Regenerated.
15553         * lib/unictype/categ_P.h: Regenerated.
15554         * lib/unictype/categ_Pd.h: Regenerated.
15555         * lib/unictype/categ_Pe.h: Regenerated.
15556         * lib/unictype/categ_Pf.h: Regenerated.
15557         * lib/unictype/categ_Pi.h: Regenerated.
15558         * lib/unictype/categ_Po.h: Regenerated.
15559         * lib/unictype/categ_Ps.h: Regenerated.
15560         * lib/unictype/categ_S.h: Regenerated.
15561         * lib/unictype/categ_Sk.h: Regenerated.
15562         * lib/unictype/categ_Sm.h: Regenerated.
15563         * lib/unictype/categ_So.h: Regenerated.
15564         * lib/unictype/categ_of.h: Regenerated.
15565         * lib/unictype/combining.h: Regenerated.
15566         * lib/unictype/ctype_alnum.h: Regenerated.
15567         * lib/unictype/ctype_alpha.h: Regenerated.
15568         * lib/unictype/ctype_graph.h: Regenerated.
15569         * lib/unictype/ctype_lower.h: Regenerated.
15570         * lib/unictype/ctype_print.h: Regenerated.
15571         * lib/unictype/ctype_punct.h: Regenerated.
15572         * lib/unictype/ctype_upper.h: Regenerated.
15573         * lib/unictype/decdigit.h: Regenerated.
15574         * lib/unictype/digit.h: Regenerated.
15575         * lib/unictype/mirror.h: Regenerated.
15576         * lib/unictype/numeric.h: Regenerated.
15577         * lib/unictype/pr_alphabetic.h: Regenerated.
15578         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15579         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15580         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15581         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15582         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15583         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15584         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15585         * lib/unictype/pr_combining.h: Regenerated.
15586         * lib/unictype/pr_dash.h: Regenerated.
15587         * lib/unictype/pr_decimal_digit.h: Regenerated.
15588         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15589         * lib/unictype/pr_deprecated.h: Regenerated.
15590         * lib/unictype/pr_diacritic.h: Regenerated.
15591         * lib/unictype/pr_extender.h: Regenerated.
15592         * lib/unictype/pr_format_control.h: Regenerated.
15593         * lib/unictype/pr_grapheme_base.h: Regenerated.
15594         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15595         * lib/unictype/pr_grapheme_link.h: Regenerated.
15596         * lib/unictype/pr_id_continue.h: Regenerated.
15597         * lib/unictype/pr_id_start.h: Regenerated.
15598         * lib/unictype/pr_ideographic.h: Regenerated.
15599         * lib/unictype/pr_ignorable_control.h: Regenerated.
15600         * lib/unictype/pr_lowercase.h: Regenerated.
15601         * lib/unictype/pr_math.h: Regenerated.
15602         * lib/unictype/pr_numeric.h: Regenerated.
15603         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15604         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15605         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15606         * lib/unictype/pr_other_id_continue.h: Regenerated.
15607         * lib/unictype/pr_other_lowercase.h: Regenerated.
15608         * lib/unictype/pr_other_math.h: Regenerated.
15609         * lib/unictype/pr_punctuation.h: Regenerated.
15610         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15611         * lib/unictype/pr_soft_dotted.h: Regenerated.
15612         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15613         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15614         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15615         * lib/unictype/pr_uppercase.h: Regenerated.
15616         * lib/unictype/pr_xid_continue.h: Regenerated.
15617         * lib/unictype/pr_xid_start.h: Regenerated.
15618         * lib/unictype/pr_zero_width.h: Regenerated.
15619         * lib/unictype/scripts.h: Regenerated.
15620         * lib/unictype/scripts_byname.gperf: Regenerated.
15621         * lib/unictype/sy_java_ident.h: Regenerated.
15622         * lib/unilbrk/lbrkprop1.h: Regenerated.
15623         * lib/unilbrk/lbrkprop2.h: Regenerated.
15624         * tests/unictype/test-categ_C.c: Regenerated.
15625         * tests/unictype/test-categ_Cf.c: Regenerated.
15626         * tests/unictype/test-categ_Cn.c: Regenerated.
15627         * tests/unictype/test-categ_L.c: Regenerated.
15628         * tests/unictype/test-categ_Ll.c: Regenerated.
15629         * tests/unictype/test-categ_Lm.c: Regenerated.
15630         * tests/unictype/test-categ_Lo.c: Regenerated.
15631         * tests/unictype/test-categ_Lu.c: Regenerated.
15632         * tests/unictype/test-categ_M.c: Regenerated.
15633         * tests/unictype/test-categ_Mc.c: Regenerated.
15634         * tests/unictype/test-categ_Me.c: Regenerated.
15635         * tests/unictype/test-categ_Mn.c: Regenerated.
15636         * tests/unictype/test-categ_N.c: Regenerated.
15637         * tests/unictype/test-categ_Nd.c: Regenerated.
15638         * tests/unictype/test-categ_Nl.c: Regenerated.
15639         * tests/unictype/test-categ_No.c: Regenerated.
15640         * tests/unictype/test-categ_P.c: Regenerated.
15641         * tests/unictype/test-categ_Pd.c: Regenerated.
15642         * tests/unictype/test-categ_Pe.c: Regenerated.
15643         * tests/unictype/test-categ_Pf.c: Regenerated.
15644         * tests/unictype/test-categ_Pi.c: Regenerated.
15645         * tests/unictype/test-categ_Po.c: Regenerated.
15646         * tests/unictype/test-categ_Ps.c: Regenerated.
15647         * tests/unictype/test-categ_S.c: Regenerated.
15648         * tests/unictype/test-categ_Sk.c: Regenerated.
15649         * tests/unictype/test-categ_Sm.c: Regenerated.
15650         * tests/unictype/test-categ_So.c: Regenerated.
15651         * tests/unictype/test-ctype_alnum.c: Regenerated.
15652         * tests/unictype/test-ctype_alpha.c: Regenerated.
15653         * tests/unictype/test-ctype_graph.c: Regenerated.
15654         * tests/unictype/test-ctype_lower.c: Regenerated.
15655         * tests/unictype/test-ctype_print.c: Regenerated.
15656         * tests/unictype/test-ctype_punct.c: Regenerated.
15657         * tests/unictype/test-ctype_upper.c: Regenerated.
15658         * tests/unictype/test-decdigit.h: Regenerated.
15659         * tests/unictype/test-digit.h: Regenerated.
15660         * tests/unictype/test-numeric.h: Regenerated.
15661         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15662         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15663         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15664         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15665         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15666         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15667         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15668         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15669         * tests/unictype/test-pr_combining.c: Regenerated.
15670         * tests/unictype/test-pr_dash.c: Regenerated.
15671         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15672         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15673         * tests/unictype/test-pr_deprecated.c: Regenerated.
15674         * tests/unictype/test-pr_diacritic.c: Regenerated.
15675         * tests/unictype/test-pr_extender.c: Regenerated.
15676         * tests/unictype/test-pr_format_control.c: Regenerated.
15677         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15678         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15679         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15680         * tests/unictype/test-pr_id_continue.c: Regenerated.
15681         * tests/unictype/test-pr_id_start.c: Regenerated.
15682         * tests/unictype/test-pr_ideographic.c: Regenerated.
15683         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15684         * tests/unictype/test-pr_lowercase.c: Regenerated.
15685         * tests/unictype/test-pr_math.c: Regenerated.
15686         * tests/unictype/test-pr_numeric.c: Regenerated.
15687         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15688         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15689         Regenerated.
15690         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15691         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15692         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15693         * tests/unictype/test-pr_other_math.c: Regenerated.
15694         * tests/unictype/test-pr_punctuation.c: Regenerated.
15695         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15696         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15697         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15698         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15699         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15700         * tests/unictype/test-pr_uppercase.c: Regenerated.
15701         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15702         * tests/unictype/test-pr_xid_start.c: Regenerated.
15703         * tests/unictype/test-pr_zero_width.c: Regenerated.
15704
15705         Update to Unicode 5.1.0.
15706         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15707         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15708         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15709         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15710         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15711         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15712         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15713         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15714         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15715         (nonspacing_table_ind): Update.
15716         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15717
15718         Update to Unicode 5.1.0.
15719         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15720         code transform.
15721         * lib/uniname/uniname.c (unicode_character_name,
15722         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15723         * lib/uniname/uninames.h: Regenerated.
15724         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15725
15726 2009-02-07  Bruno Haible  <bruno@clisp.org>
15727
15728         Merge gen-ctype and gen-lbrk into a single program.
15729         * lib/gen-uni-tables.c: New file, incorporating
15730         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15731         Add directory prefixes to the names of the generated files.
15732         * lib/unictype/gen-ctype.c: Remove file.
15733         * lib/unilbrk/gen-lbrk.c: Remove file.
15734         * modules/gen-uni-tables: New file.
15735         * modules/unictype/gen-ctype: Remove file.
15736         * modules/unilbrk/gen-lbrk: Remove file.
15737
15738 2009-02-07  Bruno Haible  <bruno@clisp.org>
15739
15740         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15741
15742         New module 'unistr/u32-strcoll'.
15743         * modules/unistr/u32-strcoll: New file.
15744         * lib/unistr/u32-strcoll.c: New file.
15745
15746         New module 'unistr/u16-strcoll'.
15747         * modules/unistr/u16-strcoll: New file.
15748         * lib/unistr/u16-strcoll.c: New file.
15749
15750         New module 'unistr/u8-strcoll'.
15751         * modules/unistr/u8-strcoll: New file.
15752         * lib/unistr/u8-strcoll.c: New file.
15753         * lib/unistr/u-strcoll.h: New file.
15754
15755 2009-02-07  Bruno Haible  <bruno@clisp.org>
15756
15757         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15758         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15759         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15760         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15761         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15762         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15763
15764 2009-02-07  Bruno Haible  <bruno@clisp.org>
15765
15766         Make 64-bit clean.
15767         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15768         output_combclass, output_bidi_category, output_decimal_digit,
15769         output_digit, output_numeric, output_mirror, output_scripts,
15770         output_ident_category): Use proper width specifier in format strings.
15771
15772 2009-02-07  Bruno Haible  <bruno@clisp.org>
15773
15774         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15775         failure behaviour.
15776
15777 2009-02-07  Jim Meyering  <meyering@redhat.com>
15778
15779         regex: avoid compilation failure with upcoming gcc-4.4
15780         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15781         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15782         "... error: integer overflow in preprocessor expression".
15783
15784 2009-02-05  Ben Pfaff  <blp@gnu.org>
15785
15786         Fix link errors on Windows when close module is used.
15787         * modules/close: Add $(LIB_CLOSE) to Link section.
15788         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15789         $(LIB_CLOSE) on Windows.
15790
15791 2009-02-05  Jim Meyering  <meyering@redhat.com>
15792
15793         still avoid unused-parameter warnings, but do it cleanly
15794         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15795         (get_fs_usage): Cast to void instead.
15796         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15797         (dev_from_mount_options, read_file_system_list): Cast to void.
15798         Prompted by Bruno Haible.
15799
15800 2009-02-04  Jim Meyering  <meyering@redhat.com>
15801
15802         fsusage.c: correct copyright year
15803         * lib/fsusage.c: Reflect year in which the change is pushed into
15804
15805         avoid misc. warnings
15806         * lib/fsusage.c (UNUSED_PARAM): Define.
15807         (get_fs_usage): Mark parameter "disk" as unused.
15808         * lib/getugroups.c (getgrent): Use "void" in prototype.
15809         * lib/mountlist.c: Mark unused parameters.
15810         (read_file_system_list): Declare a local with "const".
15811         * lib/nanosleep.c (getnow): Declare static.
15812         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15813
15814         dirfd: set errno upon failure
15815         * lib/dirfd.c: Include <errno.h>.
15816         Set errno to ENOTSUP when returning -1.
15817         * modules/dirfd (Depends-on): Add errno.
15818         Suggested by John Kodis <kodis@comcast.net>.
15819
15820 2009-02-01  Bruno Haible  <bruno@clisp.org>
15821
15822         Don't assume sizeof (long) >= sizeof (void *).
15823         * lib/memcmp.c: Include stdint.h.
15824         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15825         srcp2 to 'const byte *'.
15826         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15827         types to uintptr_t.
15828         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15829         * modules/memcmp (Depends-on): Add stdint.
15830         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15831
15832 2009-01-30  Eric Blake  <ebb9@byu.net>
15833
15834         fix more require-before-expand issues
15835         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15836         expand, AC_PROG_AWK.
15837         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15838
15839 2009-01-28  Eric Blake  <ebb9@byu.net>
15840
15841         version-etc: use consistent URL formatting
15842         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15843         Improve formatting.  Use fputs for string without %.
15844
15845 2009-01-28  Jim Meyering  <meyering@redhat.com>
15846
15847         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15848         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15849         "underquoted definition of NAME" from autoconf-2.59.
15850
15851 2009-01-28  Bruno Haible  <bruno@clisp.org>
15852
15853         * doc/gnulib.texi: Add "Obsolete modules" to index.
15854
15855 2009-01-28  Jim Meyering  <meyering@redhat.com>
15856
15857         useless-if-before-free: recognize more variants
15858         * build-aux/useless-if-before-free: Also recognize e.g.,
15859         if (NULL != p) free (p);
15860
15861 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15862
15863         test-getaddrinfo: skip (don't fail) this test when there's no network
15864         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15865         on the presumption that it means you lack network access.
15866
15867 2009-01-26  Jim Meyering  <meyering@redhat.com>
15868
15869         fflush: avoid warnings on modern systems
15870         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15871         pos and result, into scopes where they're used.
15872
15873 2009-01-26  Eric Blake  <ebb9@byu.net>
15874
15875         Silence warning reintroduced by recent extensions patch.
15876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15877         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15878         autoconf.
15879
15880         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15881         * m4/00gnulib.m4: New file.
15882         * gnulib-tool (func_get_filelist): Always use it.
15883         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15884         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15885
15886 2009-01-25  Bruno Haible  <bruno@clisp.org>
15887
15888         Make test-quotearg work on MacOS X and AIX.
15889         * tests/test-quotearg.sh: New file.
15890         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15891         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15892         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15893         include <libintl.h>.
15894         (fake_locale): Remove variable.
15895         (gettext, dgettext, dcgettext): Remove functions.
15896         (main): Instead of setting a fake locale, set a real locale. Call
15897         textdomain and bindtextdomain.
15898         * modules/quotearg-tests (Files): Add the new files.
15899         (Depends-on): Add gettext, setenv, unsetenv.
15900         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15901         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15902         Augment TESTS_ENVIRONMENT.
15903
15904 2009-01-25  Bruno Haible  <bruno@clisp.org>
15905
15906         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15907         fr_FR.ISO8859-1 locale on MacOS X.
15908         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15909         ja_JP.eucJP locale on MacOS X.
15910         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15911         zh_CN.GB18030 locale on MacOS X.
15912
15913 2009-01-25  Bruno Haible  <bruno@clisp.org>
15914
15915         Avoid link errors on MacOS X 10.3.
15916         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15917         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15918
15919 2009-01-25  Bruno Haible  <bruno@clisp.org>
15920
15921         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15922         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15923         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15924         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15925         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15926         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15927         posix_spawnattr_init, posix_spawnattr_setsigmask,
15928         posix_spawnattr_setflags, posix_spawnattr_destroy.
15929
15930         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15931         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15932         * modules/execute (Files): Remove m4/posix_spawn.m4.
15933         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15934         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15935         posix_spawnattr_init, posix_spawnattr_setsigmask,
15936         posix_spawnattr_setflags, posix_spawnattr_destroy.
15937
15938 2009-01-25  Bruno Haible  <bruno@clisp.org>
15939
15940         * lib/glthread/threadlib.c: Include <stdlib.h>.
15941
15942 2009-01-25  Bruno Haible  <bruno@clisp.org>
15943
15944         * lib/glthread/threadlib.c (dummy): New declaration.
15945
15946 2009-01-25  Bruno Haible  <bruno@clisp.org>
15947
15948         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15949         multibyte characters also for the GB18030 encoding. Don't crash when
15950         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15951
15952 2009-01-25  Bruno Haible  <bruno@clisp.org>
15953
15954         Avoid redefining 'struct random_data' on OSF/1 5.1.
15955         * lib/stdlib.in.h: Include <random.h> if it exists.
15956         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15957         HAVE_RANDOM_H. Include <random.h> when testing whether
15958         'struct random_data' exists.
15959         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15960
15961 2009-01-25  Bruno Haible  <bruno@clisp.org>
15962
15963         Don't install charset.alias on MacOS X >= 10.3.
15964         * lib/localcharset.c (DARWIN7): New macro.
15965         (get_charset_aliases): Hardcode the result for Darwin7.
15966         * modules/localcharset (install-exec-local): Don't install
15967         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15968
15969 2009-01-25  Bruno Haible  <bruno@clisp.org>
15970
15971         Don't install charset.alias on mingw and Cygwin.
15972         * modules/localcharset (install-exec-local): Don't install
15973         charset.alias on mingw and Cygwin, if the file does not yet exist.
15974         The result for these platforms is hardcoded in localcharset.c.
15975
15976 2009-01-25  Bruno Haible  <bruno@clisp.org>
15977
15978         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15980         before requiring AC_USE_SYSTEM_EXTENSIONS.
15981
15982 2009-01-25  Jim Meyering  <meyering@redhat.com>
15983
15984         c-strtod: avoid warnings
15985         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15986         "assignment discards qualifiers from pointer target type" warnings.
15987
15988 2009-01-24  Bruno Haible  <bruno@clisp.org>
15989
15990         Add support for non-UTF-8 locales on MacOS X.
15991         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15992         canonical encodings. For Darwin 7 and newer, don't map traditional
15993         encodings to UTF-8.
15994         Reported by Vincent Lefevre <vincent@vinc17.org>
15995         at <http://savannah.gnu.org/bugs/?25235>.
15996
15997 2009-01-24  Bruno Haible  <bruno@clisp.org>
15998
15999         * doc/gnulib.texi (Obsolete modules): New section.
16000         Reported by Mike Frysinger <vapier@gentoo.org>.
16001
16002 2009-01-24  Bruno Haible  <bruno@clisp.org>
16003
16004         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16005         (%.dvi): New rule.
16006
16007 2009-01-24  Bruno Haible  <bruno@clisp.org>
16008
16009         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16010         Reported by Eric Blake.
16011
16012 2009-01-24  Bruno Haible  <bruno@clisp.org>
16013
16014         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16015         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16016         Reported by Gary V. Vaughan <gary@gnu.org>.
16017
16018 2009-01-24  Bruno Haible  <bruno@clisp.org>
16019
16020         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16021
16022 2009-01-23  Bruno Haible  <bruno@clisp.org>
16023
16024         Make c-strtod, c-strtold usable in libraries.
16025         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16026         (C_STRTOD): Call strdup instead of xstrdup.
16027         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16028         * modules/c-strtold (Depends-on): Likewise.
16029         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16030         * NEWS: Mention the change.
16031         Reported by Michael Gold <mgold@ncf.ca>.
16032
16033 2009-01-23  Jim Meyering  <meyering@redhat.com>
16034
16035         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16036         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16037         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16038
16039 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16040
16041         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16042         GNU CoreUtils.
16043         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16044         * modules/version-etc (Description): Update.
16045
16046 2009-01-22  Bruno Haible  <bruno@clisp.org>
16047
16048         Cache the C locale object.
16049         * lib/c-strtod.c (c_locale_cache): New variable.
16050         (c_locale): New function.
16051         (C_STRTOD): Use it, and don't call freelocale.
16052         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16053         Suggested by Paolo Bonzini.
16054
16055 2009-01-21  Bruno Haible  <bruno@clisp.org>
16056
16057         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16058         conditions other than overflow.
16059
16060 2009-01-21  Bruno Haible  <bruno@clisp.org>
16061
16062         * lib/c-strtod.c: Include errno.h.
16063         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16064         value from STRTOD_L and STRTOD.
16065
16066 2009-01-21  Bruno Haible  <bruno@clisp.org>
16067         and Jim Meyering  <meyering@redhat.com>
16068
16069         nanosleep: skip configure test (fail it) for apple universal builds
16070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16071         universal builds, assume that nanosleep does not work.
16072         * modules/nanosleep (Depends-on): Add multiarch.
16073
16074         mktime: skip configure test (fail it) for apple universal builds
16075         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16076         universal builds, assume that mktime does not work.
16077         * modules/mktime (Depends-on): Add multiarch.
16078
16079 2009-01-21  Eric Blake  <ebb9@byu.net>
16080
16081         multiarch: avoid expand-before-require warning
16082         * modules/multiarch (configure.ac): Require, rather than expand,
16083         gl_MULTIARCH.
16084         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16085         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16086         enforce that all clients require it.  Partial reversion of
16087         2008-12-29 patch.
16088
16089         error: avoid expand-before-require warning
16090         * modules/errno (configure.ac): Require, rather than expand,
16091         gl_HEADER_ERRNO_H.
16092         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16093         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16094         enforce that all clients require it.
16095
16096         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16097         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16098         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16099         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16100
16101 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16102
16103         Revert:
16104         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16105
16106         regex: do not depend on obsolete modules.
16107         * modules/regex: Remove memcmp and memmove.
16108
16109 2009-01-20  Bruno Haible  <bruno@clisp.org>
16110
16111         Make the 'link' module link on Windows NT 4.
16112         * lib/link.c (_WIN32_WINNT): Don't define.
16113         (CreateHardLinkFuncType): New type.
16114         (CreateHardLinkFunc, initialized): New variables.
16115         (initialize): New function.
16116         (link): Invoke CreateHardLink indirectly through the function pointer.
16117
16118 2009-01-20  Bruno Haible  <bruno@clisp.org>
16119
16120         Fix compilation failure on mingw.
16121         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16122
16123 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16124
16125         * doc/c-strtod.texi: Mention a couple of restrictions.
16126
16127 2009-01-20  Jim Meyering  <meyering@redhat.com>
16128
16129         gettimeofday: move more declarations out of functions
16130         * lib/gettimeofday.c: Move extern declarations of tzset and
16131         gmtime out of containing functions.  Prompted by Bruno Haible.
16132
16133 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16134
16135         regex: do not depend on obsolete modules.
16136         * modules/regex: Remove memcmp and memmove.
16137
16138 2009-01-19  Bruno Haible  <bruno@clisp.org>
16139
16140         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16141         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16142         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16143         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16144         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16145
16146 2009-01-19  Bruno Haible  <bruno@clisp.org>
16147
16148         * tests/test-link.c: Include <errno.h>.
16149         (main): Exit with code 77 when a hard link cannot be created due to
16150         the file system.
16151         * tests/test-link.sh: Skip test when a hard link cannot be created due
16152         to the file system.
16153         Suggested by Eric Blake.
16154
16155 2009-01-19  Martin Lambers  <marlam@marlam.de>
16156
16157         * modules/link-tests: New file.
16158         * tests/test-link.sh: New file.
16159         * tests/test-link.c: New file.
16160
16161 2009-01-19  Eric Blake  <ebb9@byu.net>
16162
16163         doc: mention another function added in cygwin 1.7.0
16164         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16165         Another new function in cygwin 1.7.
16166
16167 2009-01-19  Bruno Haible  <bruno@clisp.org>
16168
16169         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16170         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16171         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16172         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16173         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16174         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16175         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16176         * m4/md4.m4 (gl_MD4): Likewise.
16177         * m4/md5.m4 (gl_MD5): Likewise.
16178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16179         * m4/sha1.m4 (gl_SHA1): Likewise.
16180         * m4/sha256.m4 (gl_SHA256): Likewise.
16181         * m4/sha512.m4 (gl_SHA512): Likewise.
16182
16183 2009-01-19  Bruno Haible  <bruno@clisp.org>
16184
16185         * modules/uniname/uniname-tests (Depends-on): Add progname.
16186         * tests/uniname/test-uninames.c: Include progname.h.
16187         (main): Call set_program_name.
16188
16189         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16190         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16191         (main): Call set_program_name.
16192
16193         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16194         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16195         (main): Call set_program_name.
16196
16197         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16198         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16199         (main): Call set_program_name.
16200
16201         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16202         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16203         (main): Call set_program_name.
16204
16205         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16206         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16207         (main): Call set_program_name.
16208
16209         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16210         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16211         (main): Call set_program_name.
16212
16213         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16214         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16215         (main): Call set_program_name.
16216
16217         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16218         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16219         (main): Call set_program_name.
16220
16221 2009-01-19  Eric Blake  <ebb9@byu.net>
16222
16223         test-unistd: test previous patch
16224         * tests/test-unistd.c: Test *_FILENO macros.
16225
16226         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16227         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16228         Guarantee a definition.
16229         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16230         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16231         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16232         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16233         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16234         Likewise.
16235         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16236         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16237         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16238         Likewise.
16239         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16240         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16241         (STDERR_FILENO): Likewise.
16242         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16243         (STDERR_FILENO): Likewise.
16244         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16245         (STDERR_FILENO): Likewise.
16246         Reported by Elbert Pol.
16247
16248 2009-01-19  Eric Blake  <ebb9@byu.net>
16249
16250         doc: mention more functions added in cygwin 1.7.0
16251         * doc/posix-functions/abort.texi (abort): Update wording related
16252         to cygwin.
16253         * doc/posix-functions/daylight.texi (daylight): Likewise.
16254         * doc/posix-functions/optarg.texi (optarg): Likewise.
16255         * doc/posix-functions/optarg.texi (opterr): Likewise.
16256         * doc/posix-functions/optarg.texi (optind): Likewise.
16257         * doc/posix-functions/optarg.texi (optopt): Likewise.
16258         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16259         worked in 1.5.x, and was withdrawn in 1.7.
16260         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16261         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16262         cygwin versions.
16263         * doc/posix-functions/perror.texi (perror): Likewise.
16264         * doc/posix-functions/printf.texi (printf): Likewise.
16265         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16266         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16267         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16268         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16269         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16270         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16271         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16272         Likewise.
16273         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16274         Likewise.
16275         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16276         this function.
16277         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16278         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16279         Likewise.
16280         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16281         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16282         * doc/posix-functions/confstr.texi (confstr): Likewise.
16283         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16284         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16285         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16286         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16287         * doc/posix-functions/fputws.texi (fputws): Likewise.
16288         * doc/posix-functions/fwide.texi (fwide): Likewise.
16289         * doc/posix-functions/getwc.texi (getwc): Likewise.
16290         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16291         * doc/posix-functions/putwc.texi (putwc): Likewise.
16292         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16293         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16294         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16295         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16296         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16297         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16298         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16299         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16300         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16301         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16302         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16303
16304 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16305
16306         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16307         * lib/ioctl.c: Include <sys/ioctl.h>.
16308
16309 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16310
16311         * modules/getdate-tests (Depends-on): Add progname.
16312         * tests/test-getdate.c: Use progname module, to avoid link errors
16313         on non-glibc systems.
16314
16315 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16316
16317         * modules/filenamecat-tests (Depends-on): Add progname.
16318         * modules/fstrcmp-tests (Depends-on): Likewise.
16319
16320         * tests/test-filenamecat.c: Use progname module, to avoid link
16321         errors on non-glibc systems.
16322         * tests/test-fstrcmp.c: Likewise.
16323
16324 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16325
16326         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16327         * lib/gettimeofday.c: Move extern declaration out of function.
16328
16329 2009-01-18  Bruno Haible  <bruno@clisp.org>
16330
16331         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16332         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16333         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16334
16335 2009-01-18  Bruno Haible  <bruno@clisp.org>
16336
16337         * lib/strftime.c (MEMPCPY): Remove unused macro.
16338         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16339
16340 2009-01-18  Martin Lambers  <marlam@marlam.de>
16341
16342         New module 'link'.
16343         * lib/unistd.in.h (link): New declaration.
16344         * lib/link.c: New file.
16345         * m4/link.m4: New file.
16346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16347         HAVE_LINK.
16348         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16349         * modules/link: New file.
16350         * doc/posix-functions/link.texi: Mention the new module.
16351
16352 2009-01-18  Bruno Haible  <bruno@clisp.org>
16353
16354         * tests/test-avltree_list.c (main): Call set_program_name.
16355         * tests/test-avltree_oset.c (main): Likewise.
16356         * tests/test-obstack-printf.c: Include progname.h.
16357         (main): Call set_program_name.
16358         * tests/test-quotearg.c: Include progname.h.
16359         (main): Call set_program_name.
16360         * tests/test-xmemdup0.c: Include progname.h.
16361         (main): Call set_program_name.
16362
16363 2009-01-18  Bruno Haible  <bruno@clisp.org>
16364
16365         New module 'alphasort'.
16366         * lib/dirent.in.h (alphasort): New declaration.
16367         * lib/alphasort.c: New file, from glibc with modifications.
16368         * m4/alphasort.m4: New file.
16369         * modules/alphasort: New file.
16370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16371         HAVE_ALPHASORT.
16372         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16373         HAVE_ALPHASORT.
16374         * doc/posix-functions/alphasort.texi: Mention the new module and the
16375         portability problems.
16376
16377 2009-01-18  Bruno Haible  <bruno@clisp.org>
16378
16379         New module 'scandir'.
16380         * lib/dirent.in.h (scandir): New declaration.
16381         * lib/scandir.c: New file, from glibc with modifications.
16382         * m4/scandir.m4: New file.
16383         * modules/scandir: New file.
16384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16385         HAVE_SCANDIR.
16386         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16387         HAVE_SCANDIR.
16388         * doc/posix-functions/scandir.texi: Mention the new module and the
16389         portability problems.
16390
16391 2009-01-17  Bruno Haible  <bruno@clisp.org>
16392
16393         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16394         Update documentation.
16395         (func_remove_suffix): Escape all dots in the suffix. Update
16396         documentation.
16397         (func_filter_filelist): Update documentation.
16398         Reported by Ralf Wildenhues.
16399
16400 2009-01-17  Bruno Haible  <bruno@clisp.org>
16401
16402         * modules/dprintf-posix-tests: New file.
16403         * tests/test-dprintf-posix.sh: New file.
16404         * tests/test-dprintf-posix.c: New file.
16405
16406         New modules 'dprintf', 'dprintf-posix'.
16407         * lib/stdio.in.h (dprintf): New declaration.
16408         * lib/dprintf.c: New file.
16409         * m4/dprintf.m4: New file.
16410         * m4/dprintf-posix.m4: New file.
16411         * modules/dprintf: New file.
16412         * modules/dprintf-posix: New file.
16413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16414         HAVE_DPRINTF, REPLACE_DPRINTF.
16415         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16416         HAVE_DPRINTF, REPLACE_DPRINTF.
16417         * doc/posix-functions/dprintf.texi: Mention the new modules.
16418
16419 2009-01-17  Bruno Haible  <bruno@clisp.org>
16420
16421         * modules/vdprintf-posix-tests: New file.
16422         * tests/test-vdprintf-posix.sh: New file.
16423         * tests/test-vdprintf-posix.c: New file.
16424
16425         New modules 'vdprintf', 'vdprintf-posix'.
16426         * lib/stdio.in.h (vdprintf): New declaration.
16427         * lib/vdprintf.c: New file.
16428         * m4/vdprintf.m4: New file.
16429         * m4/vdprintf-posix.m4: New file.
16430         * modules/vdprintf: New file.
16431         * modules/vdprintf-posix: New file.
16432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16433         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16434         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16435         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16436         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16437
16438 2009-01-17  Bruno Haible  <bruno@clisp.org>
16439
16440         Fix replacement of fopen on mingw.
16441         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16442         mingw.
16443
16444 2009-01-17  Bruno Haible  <bruno@clisp.org>
16445
16446         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16447         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16448
16449 2009-01-17  Bruno Haible  <bruno@clisp.org>
16450
16451         Avoid test-fflush2.sh failure on mingw.
16452         * tests/test-fflush2.c: Include binary-io.h.
16453         (main): Put standard input into binary mode.
16454         * modules/fflush-tests (Depends-on): Add binary-io.
16455
16456 2009-01-17  Bruno Haible  <bruno@clisp.org>
16457
16458         * lib/wchar.in.h: In another particular situation, include only the
16459         system's <wchar.h> file.
16460         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16461         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16462         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16463
16464 2009-01-17  Bruno Haible  <bruno@clisp.org>
16465
16466         Support for stripping executables in --enable-relocatable.
16467         * build-aux/install-reloc: Expect one more argument, or an environment
16468         variable RELOC_STRIP_PROG. If set, strip the destination program and
16469         its wrapper.
16470         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16471         RELOC_STRIP_PROG.
16472         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16473         to set RELOCATABLE_STRIP.
16474         * NEWS: Mention the new Makefile requirement.
16475
16476 2009-01-17  Bruno Haible  <bruno@clisp.org>
16477
16478         * build-aux/install-reloc: Remove debugging information left over by
16479         C compiler on MacOS X.
16480
16481 2009-01-17  Bruno Haible  <bruno@clisp.org>
16482
16483         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16484         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16485         _NSGetExecutablePath.
16486
16487 2009-01-16  Jim Meyering  <meyering@redhat.com>
16488
16489         strerror: avoid warnings about discarding "const"
16490         * lib/strerror.c (rpl_strerror): Instead of returning a const
16491         string from each and every "case", use a variable, and add a single
16492         cast after the switch.
16493
16494 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16495
16496         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16497
16498 2009-01-16  Bruno Haible  <bruno@clisp.org>
16499
16500         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16501         array initializer syntax that also works in C++ mode.
16502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16503
16504 2009-01-16  Jim Meyering  <meyering@redhat.com>
16505
16506         poll: suppress a warning
16507         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16508         to ignore "...unsigned expression < 0 is always false" warnings.
16509
16510 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16511
16512         poll: remove declarations of unused variables
16513         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16514         sockbuf and optlen.
16515
16516 2009-01-15  Bruno Haible  <bruno@clisp.org>
16517
16518         Make fflush-after-ungetc POSIX compliant on BSD systems.
16519         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16520         (clear_ungetc_buffer): Implement also for other systems.
16521         (rpl_fflush): On glibc systems, invoke
16522         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16523         clear_ungetc_buffer after fetching the stream's position, not before.
16524
16525 2009-01-15  Bruno Haible  <bruno@clisp.org>
16526
16527         Make fflush-after-ungetc POSIX compliant on glibc systems.
16528         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16529         after ungetc.
16530         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16531         (rpl_fflush): On glibc systems, simply call the system's fflush
16532         function after clearing the ungetc buffer.
16533         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16534         Instead, lseek only to the end of file, then use the system's fseeko
16535         for the rest. On glibc systems, reset the EOF indicator bit.
16536
16537 2009-01-15  Jim Meyering  <meyering@redhat.com>
16538
16539         openmp.m4: revert quote-adding change, for portability to older autoconf
16540         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16541         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16542         Simon Josefsson noticed the problem when using autoconf-2.61.
16543
16544 2009-01-15  Bruno Haible  <bruno@clisp.org>
16545
16546         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16547         * tests/test-fflush2.c (ASSERT): Always fail.
16548         (main): Add two tests for fflush() after ungetc(), taking into account
16549         the Austin Group's clarification.
16550         Suggested by Eric Blake.
16551
16552 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16553
16554         mktime.m4: remove K&R-style function prototypes
16555         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16556         for the Sun C++ compiler.
16557
16558 2009-01-14  Bruno Haible  <bruno@clisp.org>
16559
16560         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16561         while including <wchar.h>.
16562         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16563         the system's <wchar.h> file.
16564         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16565
16566 2009-01-14  Bruno Haible  <bruno@clisp.org>
16567
16568         * m4/csharp.m4: Don't mention gettext on the serial number line.
16569         * m4/csharpexec.m4: Likewise.
16570         * m4/eaccess.m4: Likewise.
16571         * m4/javaexec.m4: Likewise.
16572         * m4/sig_atomic_t.m4: Likewise.
16573         * m4/tmpdir.m4: Likewise.
16574         * m4/intldir.m4: Bump gettext version.
16575         * m4/lib-ld.m4: Likewise.
16576
16577 2009-01-14  Bruno Haible  <bruno@clisp.org>
16578
16579         * lib/progname.c (set_program_name): Add more comments.
16580         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16581
16582 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16583
16584         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16585         were sys/stat.h does not define it.
16586
16587 2009-01-14  Jim Meyering  <meyering@redhat.com>
16588
16589         many *.m4 files: improve m4 quoting
16590         99% of this change was performed by running the following commands:
16591         git ls-files | grep '\.m4$' | xargs perl -pi \
16592           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16593           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16594           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16595           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16596         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16597         The remainder were to add Copyright dates, increment serial numbers,
16598         undo some changes in comments, exclude m4/intl.m4, and add quotes
16599         around the "1" in ",1" where the unusual spacing prohibited the
16600         above regexps from doing the job.  For more details, see
16601         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16602         * m4/acl.m4: Modified.
16603         * m4/afs.m4: Likewise.
16604         * m4/alloca.m4: Likewise.
16605         * m4/argp.m4: Likewise.
16606         * m4/argz.m4: Likewise.
16607         * m4/atexit.m4: Likewise.
16608         * m4/bison-i18n.m4: Likewise.
16609         * m4/bison.m4: Likewise.
16610         * m4/byteswap.m4: Likewise.
16611         * m4/c-stack.m4: Likewise.
16612         * m4/c-strtod.m4: Likewise.
16613         * m4/calloc.m4: Likewise.
16614         * m4/canonicalize-lgpl.m4: Likewise.
16615         * m4/chown.m4: Likewise.
16616         * m4/clock_time.m4: Likewise.
16617         * m4/codeset.m4: Likewise.
16618         * m4/copy-file.m4: Likewise.
16619         * m4/csharp.m4: Likewise.
16620         * m4/csharpcomp.m4: Likewise.
16621         * m4/csharpexec.m4: Likewise.
16622         * m4/d-ino.m4: Likewise.
16623         * m4/d-type.m4: Likewise.
16624         * m4/dirfd.m4: Likewise.
16625         * m4/double-slash-root.m4: Likewise.
16626         * m4/eaccess.m4: Likewise.
16627         * m4/eealloc.m4: Likewise.
16628         * m4/environ.m4: Likewise.
16629         * m4/errno_h.m4: Likewise.
16630         * m4/euidaccess.m4: Likewise.
16631         * m4/execute.m4: Likewise.
16632         * m4/fatal-signal.m4: Likewise.
16633         * m4/fchdir.m4: Likewise.
16634         * m4/fcntl_h.m4: Likewise.
16635         * m4/fileblocks.m4: Likewise.
16636         * m4/filenamecat.m4: Likewise.
16637         * m4/findprog.m4: Likewise.
16638         * m4/flexmember.m4: Likewise.
16639         * m4/fnmatch.m4: Likewise.
16640         * m4/fopen.m4: Likewise.
16641         * m4/fpending.m4: Likewise.
16642         * m4/fprintf-posix.m4: Likewise.
16643         * m4/free.m4: Likewise.
16644         * m4/frexp.m4: Likewise.
16645         * m4/frexpl.m4: Likewise.
16646         * m4/fsusage.m4: Likewise.
16647         * m4/ftruncate.m4: Likewise.
16648         * m4/gc-camellia.m4: Likewise.
16649         * m4/gc-random.m4: Likewise.
16650         * m4/gc.m4: Likewise.
16651         * m4/getaddrinfo.m4: Likewise.
16652         * m4/getcwd-abort-bug.m4: Likewise.
16653         * m4/getcwd-path-max.m4: Likewise.
16654         * m4/getdate.m4: Likewise.
16655         * m4/getdomainname.m4: Likewise.
16656         * m4/getgroups.m4: Likewise.
16657         * m4/gethostname.m4: Likewise.
16658         * m4/gethrxtime.m4: Likewise.
16659         * m4/getline.m4: Likewise.
16660         * m4/getloadavg.m4: Likewise.
16661         * m4/getndelim2.m4: Likewise.
16662         * m4/getpass.m4: Likewise.
16663         * m4/gettext.m4: Likewise.
16664         * m4/gettime.m4: Likewise.
16665         * m4/gettimeofday.m4: Likewise.
16666         * m4/gnulib-common.m4: Likewise.
16667         * m4/group-member.m4: Likewise.
16668         * m4/host-os.m4: Likewise.
16669         * m4/iconv.m4: Likewise.
16670         * m4/iconv_open.m4: Likewise.
16671         * m4/inet_ntop.m4: Likewise.
16672         * m4/inet_pton.m4: Likewise.
16673         * m4/inline.m4: Likewise.
16674         * m4/intldir.m4: Likewise.
16675         * m4/intlmacosx.m4: Likewise.
16676         * m4/intmax.m4: Likewise.
16677         * m4/intmax_t.m4: Likewise.
16678         * m4/inttypes.m4: Likewise.
16679         * m4/inttypes_h.m4: Likewise.
16680         * m4/inttypes-pri.m4: Likewise.
16681         * m4/isapipe.m4: Likewise.
16682         * m4/isnand.m4: Likewise.
16683         * m4/isnanf.m4: Likewise.
16684         * m4/isnanl.m4: Likewise.
16685         * m4/javacomp.m4: Likewise.
16686         * m4/javaexec.m4: Likewise.
16687         * m4/jm-winsz1.m4: Likewise.
16688         * m4/jm-winsz2.m4: Likewise.
16689         * m4/lchown.m4: Likewise.
16690         * m4/lcmessage.m4: Likewise.
16691         * m4/ldexpl.m4: Likewise.
16692         * m4/lib-ld.m4: Likewise.
16693         * m4/lib-link.m4: Likewise.
16694         * m4/libsigsegv.m4: Likewise.
16695         * m4/link-follow.m4: Likewise.
16696         * m4/localcharset.m4: Likewise.
16697         * m4/locale-fr.m4: Likewise.
16698         * m4/locale-ja.m4: Likewise.
16699         * m4/locale-tr.m4: Likewise.
16700         * m4/locale-zh.m4: Likewise.
16701         * m4/lock.m4: Likewise.
16702         * m4/longlong.m4: Likewise.
16703         * m4/ls-mntd-fs.m4: Likewise.
16704         * m4/lstat.m4: Likewise.
16705         * m4/malloc.m4: Likewise.
16706         * m4/mathl.m4: Likewise.
16707         * m4/mbrtowc.m4: Likewise.
16708         * m4/mbstate_t.m4: Likewise.
16709         * m4/mbswidth.m4: Likewise.
16710         * m4/memchr.m4: Likewise.
16711         * m4/memcmp.m4: Likewise.
16712         * m4/memcpy.m4: Likewise.
16713         * m4/memmem.m4: Likewise.
16714         * m4/memmove.m4: Likewise.
16715         * m4/mempcpy.m4: Likewise.
16716         * m4/memrchr.m4: Likewise.
16717         * m4/memset.m4: Likewise.
16718         * m4/minmax.m4: Likewise.
16719         * m4/mkdir-slash.m4: Likewise.
16720         * m4/mkdtemp.m4: Likewise.
16721         * m4/mktime.m4: Likewise.
16722         * m4/mmap-anon.m4: Likewise.
16723         * m4/mountlist.m4: Likewise.
16724         * m4/nanosleep.m4: Likewise.
16725         * m4/nls.m4: Likewise.
16726         * m4/nocrash.m4: Likewise.
16727         * m4/open.m4: Likewise.
16728         * m4/openat.m4: Likewise.
16729         * m4/openmp.m4: Likewise.
16730         * m4/pathmax.m4: Likewise.
16731         * m4/perl.m4: Likewise.
16732         * m4/physmem.m4: Likewise.
16733         * m4/pipe.m4: Likewise.
16734         * m4/po.m4: Likewise.
16735         * m4/poll.m4: Likewise.
16736         * m4/posixtm.m4: Likewise.
16737         * m4/posixver.m4: Likewise.
16738         * m4/printf-frexp.m4: Likewise.
16739         * m4/printf-frexpl.m4: Likewise.
16740         * m4/printf-posix.m4: Likewise.
16741         * m4/printf-posix-rpl.m4: Likewise.
16742         * m4/printf.m4: Likewise.
16743         * m4/progtest.m4: Likewise.
16744         * m4/putenv.m4: Likewise.
16745         * m4/readline.m4: Likewise.
16746         * m4/readlink.m4: Likewise.
16747         * m4/readutmp.m4: Likewise.
16748         * m4/realloc.m4: Likewise.
16749         * m4/regex.m4: Likewise.
16750         * m4/relocatable.m4: Likewise.
16751         * m4/relocatable-lib.m4: Likewise.
16752         * m4/rename-dest-slash.m4: Likewise.
16753         * m4/rename.m4: Likewise.
16754         * m4/rmdir-errno.m4: Likewise.
16755         * m4/rmdir.m4: Likewise.
16756         * m4/roundf.m4: Likewise.
16757         * m4/roundl.m4: Likewise.
16758         * m4/rpmatch.m4: Likewise.
16759         * m4/save-cwd.m4: Likewise.
16760         * m4/selinux-selinux-h.m4: Likewise.
16761         * m4/setenv.m4: Likewise.
16762         * m4/settime.m4: Likewise.
16763         * m4/sig2str.m4: Likewise.
16764         * m4/sig_atomic_t.m4: Likewise.
16765         * m4/signalblocking.m4: Likewise.
16766         * m4/signbit.m4: Likewise.
16767         * m4/sigpipe.m4: Likewise.
16768         * m4/sockets.m4: Likewise.
16769         * m4/sockpfaf.m4: Likewise.
16770         * m4/st_dm_mode.m4: Likewise.
16771         * m4/stat-time.m4: Likewise.
16772         * m4/stdbool.m4: Likewise.
16773         * m4/stdint.m4: Likewise.
16774         * m4/stdint_h.m4: Likewise.
16775         * m4/stpcpy.m4: Likewise.
16776         * m4/stpncpy.m4: Likewise.
16777         * m4/strcase.m4: Likewise.
16778         * m4/strchrnul.m4: Likewise.
16779         * m4/strcspn.m4: Likewise.
16780         * m4/strdup.m4: Likewise.
16781         * m4/strftime.m4: Likewise.
16782         * m4/strndup.m4: Likewise.
16783         * m4/strnlen.m4: Likewise.
16784         * m4/strpbrk.m4: Likewise.
16785         * m4/strptime.m4: Likewise.
16786         * m4/strsep.m4: Likewise.
16787         * m4/strtod.m4: Likewise.
16788         * m4/strtoimax.m4: Likewise.
16789         * m4/strtok_r.m4: Likewise.
16790         * m4/strtol.m4: Likewise.
16791         * m4/strtoll.m4: Likewise.
16792         * m4/strtoul.m4: Likewise.
16793         * m4/strtoull.m4: Likewise.
16794         * m4/strtoumax.m4: Likewise.
16795         * m4/strverscmp.m4: Likewise.
16796         * m4/threadlib.m4: Likewise.
16797         * m4/timegm.m4: Likewise.
16798         * m4/tm_gmtoff.m4: Likewise.
16799         * m4/tmpdir.m4: Likewise.
16800         * m4/tmpfile.m4: Likewise.
16801         * m4/tzset.m4: Likewise.
16802         * m4/uintmax_t.m4: Likewise.
16803         * m4/unlinkdir.m4: Likewise.
16804         * m4/unlocked-io.m4: Likewise.
16805         * m4/uptime.m4: Likewise.
16806         * m4/userspec.m4: Likewise.
16807         * m4/utimbuf.m4: Likewise.
16808         * m4/utime.m4: Likewise.
16809         * m4/utimes-null.m4: Likewise.
16810         * m4/utimes.m4: Likewise.
16811         * m4/vararrays.m4: Likewise.
16812         * m4/vasnprintf.m4: Likewise.
16813         * m4/vfprintf-posix.m4: Likewise.
16814         * m4/vprintf-posix.m4: Likewise.
16815         * m4/wait-process.m4: Likewise.
16816         * m4/wchar_t.m4: Likewise.
16817         * m4/wint_t.m4: Likewise.
16818         * m4/write-any-file.m4: Likewise.
16819         * m4/yield.m4: Likewise.
16820
16821 2009-01-13  Bruno Haible  <bruno@clisp.org>
16822
16823         Avoid test-copy-file.sh failures when ACL support insufficient.
16824         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16825         TESTS_ENVIRONMENT.
16826         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16827         Reported by Jim Meyering.
16828
16829 2009-01-13  Bruno Haible  <bruno@clisp.org>
16830
16831         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16832         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16833         * modules/unistdio/u8-printf-parse (Files): Likewise.
16834         * modules/unistdio/u32-printf-parse (Files): Likewise.
16835         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16836
16837 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16838
16839         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16840         and m4/inttypes_h.m4 too.
16841
16842 2009-01-12  Eric Blake  <ebb9@byu.net>
16843
16844         tests: IRIX 6.2 cc can't compile -0.0 into .data
16845         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16846         rather than at compile-time.
16847         * tests/test-floorl.c (minus_zero): Likewise.
16848         * tests/test-frexpl.c (minus_zero): Likewise.
16849         * tests/test-isnan.c (minus_zerol): Likewise.
16850         * tests/test-isnanl.h (minus_zero): Likewise.
16851         * tests/test-ldexpl.c (minus_zero): Likewise.
16852         * tests/test-roundl.c (minus_zero): Likewise.
16853         * tests/test-signbit.c (minus_zerol): Likewise.
16854         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16855         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16856         * tests/test-truncl.c (minus_zero): Likewise.
16857         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16858         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16859         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16860
16861 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16862
16863         regex: fix glibc bug 9697
16864         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16865         handling.
16866
16867 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16868
16869         regex: fix glibc bug 697
16870         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16871         being NULL also if there are no backreferences.
16872
16873 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16874
16875         regex: merge glibc changes
16876         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16877         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16878         re_string_skip_chars, re_string_reconstruct): Likewise.
16879         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16880
16881 2009-01-07  Jim Meyering  <meyering@redhat.com>
16882
16883         poll: filter through cppi
16884         * lib/poll.c: Indent cpp directives to reflect nesting.
16885
16886 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16887
16888         poll: don't return uninitialized
16889         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16890
16891 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16892
16893         avoid compile failure on AIX 6.1
16894         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16895         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16896
16897 2009-01-04  Jim Meyering  <meyering@redhat.com>
16898
16899         remove duplicate inclusion of <stdio.h>
16900         * tests/test-fprintf-posix.c: Likewise.
16901         * tests/test-printf-posix.c: Likewise.
16902         * tests/test-snprintf-posix.c: Likewise.
16903         * tests/test-sprintf-posix.c: Likewise.
16904         * tests/test-vasprintf-posix.c: Likewise.
16905         * tests/test-vfprintf-posix.c: Likewise.
16906         * tests/test-vprintf-posix.c: Likewise.
16907         * tests/test-vsnprintf-posix.c: Likewise.
16908         * tests/test-vsprintf-posix.c: Likewise.
16909
16910 2009-01-03  Jim Meyering  <meyering@redhat.com>
16911
16912         gnulib-tool: fix sed-based filtering
16913         * gnulib-tool (func_filter_filelist): Remove extra backslash
16914         in sed_fff_filter definition.
16915
16916 2009-01-02  Jim Meyering  <meyering@redhat.com>
16917
16918         strftime: avoid compilation failure on Solaris 2.6
16919         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16920         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16921         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16922         be available.  Reported by Tom G. Christensen.  Details in
16923         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16924
16925 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16926             Bruno Haible  <bruno@clisp.org>
16927
16928         Speed up gnulib-tool by doing more string processing through shell
16929         built-ins.
16930         * gnulib-tool (fast_func_append): New variable.
16931         (func_remove_prefix, func_remove_suffix): New functions.
16932         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16933         (func_filter_filelist): New function.
16934         (func_get_dependencies): Use func_remove_suffix instead of sed.
16935         (func_get_automake_snippet): Use func_filter_filelist instead of a
16936         subshell and sed invocation.
16937
16938 2009-01-01  Bruno Haible  <bruno@clisp.org>
16939
16940         Fix a security bug.
16941         * gnulib-tool (func_import, import, update): Don't allow the characters
16942         '"', '$', '`', '\' in macro arguments that become part of commands that
16943         are evaluated.
16944
16945 2009-01-01  Bruno Haible  <bruno@clisp.org>
16946
16947         * gnulib-tool (func_reset_sigpipe): Add more comments.
16948
16949 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16950
16951         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16952         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16953         already know the answer.
16954
16955 2009-01-01  Jim Meyering  <meyering@redhat.com>
16956
16957         * lib/version-etc.c (version_etc_va): Update copyright year.
16958
16959 2008-12-30  Bruno Haible  <bruno@clisp.org>
16960
16961         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16962         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16963         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16964
16965 2008-12-29  Eric Blake  <ebb9@byu.net>
16966
16967         multiarch: avoid autoconf AC_REQUIRE bug
16968         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16969         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16970         2.63 and older.
16971         Reported by Bruno Haible, and analyzed in
16972         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16973
16974 2008-12-29  Bruno Haible  <bruno@clisp.org>
16975
16976         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16977         files in subdirectories correctly.
16978         Reported by Ralf Wildenhues.
16979
16980 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16981
16982         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16983         rather than 'join FILE -', for Solaris join.
16984
16985 2008-12-29  Bruno Haible  <bruno@clisp.org>
16986
16987         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16988         quoting.
16989         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16990         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16991         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16992         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16993         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16994         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16995         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16996         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16997         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16998         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16999         * m4/nls.m4 (AM_NLS): Likewise.
17000         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17001         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17002         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17003         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17004         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17005         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17006         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17007         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17008         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17009         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17010         * m4/xsize.m4 (gl_XSIZE): Likewise.
17011         Suggested by Jim Meyering.
17012
17013 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17014
17015         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17016         * lib/parse-duration.c: use a switch instead of cascading if's.
17017
17018 2008-12-29  Eric Blake  <ebb9@byu.net>
17019
17020         wchar.h: supply WEOF on Irix 5.3
17021         * lib/wchar.in.h (wint_t): Also supply WEOF.
17022         * lib/wctype.in.h (wint_t): Likewise.
17023         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17024         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17025         Reported by Tom G. Christensen.
17026
17027 2008-12-26  Bruno Haible  <bruno@clisp.org>
17028
17029         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17030         i486, i586, i686.
17031
17032 2008-12-26  Bruno Haible  <bruno@clisp.org>
17033
17034         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17035
17036 2008-12-26  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17039         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17040         not __STDC_CONSTANT_MACROS.
17041         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17042
17043 2008-12-25  Bruno Haible  <bruno@clisp.org>
17044
17045         Add support for universal builds to vasnprintf.
17046         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17047         universal builds, guess no.
17048         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17049         * modules/vasprintf-posix (Depends-on): Likewise.
17050         * modules/fprintf-posix (Depends-on): Likewise.
17051         * modules/vfprintf-posix (Depends-on): Likewise.
17052         * modules/snprintf-posix (Depends-on): Likewise.
17053         * modules/vsnprintf-posix (Depends-on): Likewise.
17054         * modules/sprintf-posix (Depends-on): Likewise.
17055         * modules/vsprintf-posix (Depends-on): Likewise.
17056         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17057         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17058         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17059         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17060         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17061         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17062         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17063
17064         Add support for universal builds to <inttypes.h>.
17065         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17066         _SCNu64_PREFIX): In Apple
17067         universal builds, define directly, using _LP64.
17068         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17069         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17070         * modules/inttypes (Depends-on): Add multiarch.
17071         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17072
17073         Add support for universal builds to <stdint.h>.
17074         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17075         universal builds, define directly, using _LP64.
17076         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17077         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17078         and size_t.
17079         * modules/stdint (Depends-on): Add multiarch.
17080         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17081
17082         New module 'multiarch'.
17083         * modules/multiarch: New file.
17084         * m4/multiarch.m4: New file.
17085
17086 2008-12-25  Bruno Haible  <bruno@clisp.org>
17087
17088         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17089
17090 2008-12-25  Bruno Haible  <bruno@clisp.org>
17091
17092         * modules/btowc (License): Relicense under LGPLv2+.
17093         * modules/mbsinit (License): Likewise.
17094         * modules/mbrtowc (License): Likewise.
17095         * modules/wcrtomb (License): Likewise.
17096         * modules/streq (License): Likewise.
17097         Reported by David Lutterkort <lutter@redhat.com>.
17098
17099 2008-12-23  Bruno Haible  <bruno@clisp.org>
17100
17101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17102
17103 2008-12-23  Bruno Haible  <bruno@clisp.org>
17104
17105         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17107         GETADDRINFO_LIB, not in LIBS.
17108         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17109         * modules/canon-host (Link): Likewise.
17110         * NEWS: Mention the change.
17111         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17112         GETADDRINFO_LIB.
17113
17114 2008-12-22  Bruno Haible  <bruno@clisp.org>
17115
17116         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17117         * doc/posix-functions/iswalpha_l.texi: Likewise.
17118         * doc/posix-functions/iswblank_l.texi: Likewise.
17119         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17120         * doc/posix-functions/iswctype_l.texi: Likewise.
17121         * doc/posix-functions/iswdigit_l.texi: Likewise.
17122         * doc/posix-functions/iswgraph_l.texi: Likewise.
17123         * doc/posix-functions/iswlower_l.texi: Likewise.
17124         * doc/posix-functions/iswprint_l.texi: Likewise.
17125         * doc/posix-functions/iswpunct_l.texi: Likewise.
17126         * doc/posix-functions/iswspace_l.texi: Likewise.
17127         * doc/posix-functions/iswupper_l.texi: Likewise.
17128         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17129         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17130         * doc/posix-functions/open_wmemstream.texi: Likewise.
17131         * doc/posix-functions/swscanf.texi: Likewise.
17132         * doc/posix-functions/towctrans_l.texi: Likewise.
17133         * doc/posix-functions/towlower.texi: Likewise.
17134         * doc/posix-functions/towlower_l.texi: Likewise.
17135         * doc/posix-functions/towupper.texi: Likewise.
17136         * doc/posix-functions/towupper_l.texi: Likewise.
17137         * doc/posix-functions/vfwprintf.texi: Likewise.
17138         * doc/posix-functions/vfwscanf.texi: Likewise.
17139         * doc/posix-functions/vswscanf.texi: Likewise.
17140         * doc/posix-functions/vwprintf.texi: Likewise.
17141         * doc/posix-functions/vwscanf.texi: Likewise.
17142         * doc/posix-functions/wcpcpy.texi: Likewise.
17143         * doc/posix-functions/wcpncpy.texi: Likewise.
17144         * doc/posix-functions/wcscasecmp.texi: Likewise.
17145         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17146         * doc/posix-functions/wcscoll_l.texi: Likewise.
17147         * doc/posix-functions/wcsdup.texi: Likewise.
17148         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17149         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17150         * doc/posix-functions/wcsnlen.texi: Likewise.
17151         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17152         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17153         * doc/posix-functions/wctrans_l.texi: Likewise.
17154         * doc/posix-functions/wctype_l.texi: Likewise.
17155         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17156         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17157         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17158         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17159         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17160         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17161         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17162         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17163         * doc/glibc-functions/wcschrnul.texi: Likewise.
17164         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17165         * doc/glibc-functions/wcstod_l.texi: Likewise.
17166         * doc/glibc-functions/wcstof_l.texi: Likewise.
17167         * doc/glibc-functions/wcstol_l.texi: Likewise.
17168         * doc/glibc-functions/wcstold_l.texi: Likewise.
17169         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17170         * doc/glibc-functions/wcstoq.texi: Likewise.
17171         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17172         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17173         * doc/glibc-functions/wcstouq.texi: Likewise.
17174         * doc/glibc-functions/wmempcpy.texi: Likewise.
17175
17176 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17177             Eric Blake  <ebb9@byu.net>
17178             Paolo Bonzini  <bonzini@gnu.org>
17179             Bruno Haible  <bruno@clisp.org>
17180
17181         Make c-stack work on Haiku.
17182         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17183         (c_stack_action): Use SA_ONSTACK flag.
17184
17185 2008-12-22  Bruno Haible  <bruno@clisp.org>
17186
17187         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17188
17189 2008-12-22  Bruno Haible  <bruno@clisp.org>
17190
17191         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17192         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17193         being overridden.
17194         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17195         New macros.
17196         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17198         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17199         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17200
17201 2008-12-22  Bruno Haible  <bruno@clisp.org>
17202
17203         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17204         from test code.
17205
17206 2008-12-22  Eric Blake  <ebb9@byu.net>
17207
17208         Avoid gcc warnings on cygwin.
17209         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17210         Avoid unused variable.
17211         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17212         Likewise.
17213
17214 2008-12-22  Bruno Haible  <bruno@clisp.org>
17215
17216         Remove HAVE_MBRTOWC conditionals.
17217         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17218         (mbscasecmp): Assume mbrtowc function.
17219         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17220         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17221         * lib/mbschr.c: Include mbuiter.h unconditionally.
17222         (mbschr): Assume mbrtowc function.
17223         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17224         (mbscspn): Assume mbrtowc function.
17225         * lib/mbslen.c: Include mbuiter.h unconditionally.
17226         (mbslen): Assume mbrtowc function.
17227         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17228         (mbsncasecmp): Assume mbrtowc function.
17229         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17230         (mbsnlen): Assume mbrtowc function.
17231         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17232         (mbspbrk): Assume mbrtowc function.
17233         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17234         (mbspcasecmp): Assume mbrtowc function.
17235         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17236         (mbsrchr): Assume mbrtowc function.
17237         * lib/mbssep.c: Include mbuiter.h unconditionally.
17238         (mbssep): Assume mbrtowc function.
17239         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17240         (mbsspn): Assume mbrtowc function.
17241         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17242         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17243         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17244         (mbstok_r): Assume mbrtowc function.
17245         * lib/propername.c: Include mbuiter.h unconditionally.
17246         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17247         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17248         (trim2): Assume mbrtowc function.
17249         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17250         (mbsnwidth): Assume mbrtowc function.
17251         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17252         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17253         fallback definitions.
17254         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17255
17256 2008-12-22  Bruno Haible  <bruno@clisp.org>
17257
17258         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17259
17260 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17261
17262         * modules/regex: Request emulations for the mb*/wc* functions we need.
17263         * m4/regex.m4: Don't look for those functions here.
17264         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17265
17266 2008-12-22  Bruno Haible  <bruno@clisp.org>
17267
17268         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17269
17270 2008-12-21  Bruno Haible  <bruno@clisp.org>
17271
17272         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17273         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17274         (Include): Remove conditionalization.
17275         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17276         (Include): Remove conditionalization.
17277         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17278         (Include): Remove conditionalization.
17279         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17280         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17281         * NEWS: Mention the change.
17282         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17283         via Sergey Poznyakoff <gray@gnu.org.ua>.
17284
17285 2008-12-21  Bruno Haible  <bruno@clisp.org>
17286
17287         * MODULES.html.sh (Extended multibyte and wide character utilities
17288         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17289         wcrtomb, wcsrtombs.
17290         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17291         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17292         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17293         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17294
17295 2008-12-21  Bruno Haible  <bruno@clisp.org>
17296
17297         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17298
17299 2008-12-21  Bruno Haible  <bruno@clisp.org>
17300
17301         * modules/wcsnrtombs-tests: New file.
17302         * tests/test-wcsnrtombs1.sh: New file.
17303         * tests/test-wcsnrtombs2.sh: New file.
17304         * tests/test-wcsnrtombs3.sh: New file.
17305         * tests/test-wcsnrtombs4.sh: New file.
17306         * tests/test-wcsnrtombs.c: New file.
17307
17308         New module 'wcsnrtombs'.
17309         * lib/wchar.in.h (wcsnrtombs): New declaration.
17310         * lib/wcsnrtombs.c: New file.
17311         * lib/wcsrtombs-state.c: New file.
17312         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17313         (internal_state): Remove variable.
17314         * m4/wcsnrtombs.m4: New file.
17315         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17316         compilation units.
17317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17318         HAVE_WCSNRTOMBS.
17319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17320         HAVE_WCSNRTOMBS.
17321         * modules/wcsnrtombs: New file.
17322         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17323         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17324
17325 2008-12-21  Bruno Haible  <bruno@clisp.org>
17326
17327         * modules/wcsrtombs-tests: New file.
17328         * tests/test-wcsrtombs1.sh: New file.
17329         * tests/test-wcsrtombs2.sh: New file.
17330         * tests/test-wcsrtombs3.sh: New file.
17331         * tests/test-wcsrtombs4.sh: New file.
17332         * tests/test-wcsrtombs.c: New file.
17333
17334         New module 'wcsrtombs'.
17335         * lib/wchar.in.h (wcsrtombs): New declaration.
17336         * lib/wcsrtombs.c: New file.
17337         * m4/wcsrtombs.m4: New file.
17338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17339         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17341         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17342         * modules/wcsrtombs: New file.
17343         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17344         bugs.
17345
17346 2008-12-21  Bruno Haible  <bruno@clisp.org>
17347
17348         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17349         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17350         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17351         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17352         if not correct.
17353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17354         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17355         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17356         m4/locale-zh.m4, m4/codeset.m4.
17357         * doc/posix-functions/wcrtomb.texi: Document the bug.
17358
17359 2008-12-21  Bruno Haible  <bruno@clisp.org>
17360
17361         Work around a btowc() bug on IRIX 6.5.
17362         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17363         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17364         REPLACE_WTOBC if not.
17365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17366         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17367         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17368
17369 2008-12-21  Bruno Haible  <bruno@clisp.org>
17370
17371         * modules/wcrtomb-tests: New file.
17372         * tests/test-wcrtomb.sh: New file.
17373         * tests/test-wcrtomb.c: New file.
17374
17375         New module 'wcrtomb'.
17376         * lib/wchar.in.h (wcrtomb): New declaration.
17377         * lib/wcrtomb.c: New file.
17378         * m4/wcrtomb.m4: New file.
17379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17380         HAVE_WCRTOMB.
17381         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17382         HAVE_WCRTOMB.
17383         * modules/wcrtomb: New file.
17384         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17385
17386 2008-12-21  Bruno Haible  <bruno@clisp.org>
17387
17388         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17389         * modules/mbsrtowcs (Files): Likewise.
17390         * modules/wctob (Files): Likewise.
17391         * modules/c-strcase-tests (Files): Likewise.
17392         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17393         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17394         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17395         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17396         * modules/vasnprintf-posix-tests (Files): Likewise.
17397
17398 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17399
17400         gitlog-to-changelog: pass all command-line arguments to git-log
17401         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17402         it is sometimes convenient to filter the commits in various ways.
17403         gitlog-to-changelog only allows --since to specify a start date,
17404         but git-log itself supports many other filtering mechanisms.
17405         At the moment, I want to filter by branch name.  Rather than
17406         adding a --branch option to gitlog-to-changelog, it seems more
17407         flexible to simply pass all options directly to git-log and let
17408         git do the work.  Notice that this effectively makes --since a
17409         redundant option for gitlog-to-changelog, but removing it would
17410         require current usage to change since calls would then require
17411         an additional '--'.
17412
17413 2008-12-21  Bruno Haible  <bruno@clisp.org>
17414
17415         * modules/mbsnrtowcs-tests: New file.
17416         * tests/test-mbsnrtowcs1.sh: New file.
17417         * tests/test-mbsnrtowcs2.sh: New file.
17418         * tests/test-mbsnrtowcs3.sh: New file.
17419         * tests/test-mbsnrtowcs4.sh: New file.
17420         * tests/test-mbsnrtowcs.c: New file.
17421
17422         New module 'mbsnrtowcs'.
17423         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17424         * lib/mbsnrtowcs.c: New file.
17425         * lib/mbsrtowcs-state.c: New file.
17426         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17427         (internal_state): Remove variable.
17428         * m4/mbsnrtowcs.m4: New file.
17429         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17430         compilation units.
17431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17432         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17433         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17434         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17435         * modules/mbsnrtowcs: New file.
17436         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17437         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17438         portability problem.
17439
17440 2008-12-21  Bruno Haible  <bruno@clisp.org>
17441
17442         Work around mbsrtowcs bug.
17443         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17444         (gl_FUNC_MBSRTOWCS): Invoke it.
17445         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17446         m4/locale-zh.m4.
17447         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17448
17449 2008-12-21  Bruno Haible  <bruno@clisp.org>
17450
17451         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17452
17453 2008-12-21  Bruno Haible  <bruno@clisp.org>
17454
17455         Update doc for AIX.
17456         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17457         16-bit wchar_t type.
17458         * doc/posix-functions/btowc.texi: Likewise.
17459         * doc/posix-functions/fgetwc.texi: Likewise.
17460         * doc/posix-functions/fgetws.texi: Likewise.
17461         * doc/posix-functions/fputwc.texi: Likewise.
17462         * doc/posix-functions/fputws.texi: Likewise.
17463         * doc/posix-functions/fwide.texi: Likewise.
17464         * doc/posix-functions/fwprintf.texi: Likewise.
17465         * doc/posix-functions/fwscanf.texi: Likewise.
17466         * doc/posix-functions/getwchar.texi: Likewise.
17467         * doc/posix-functions/getwc.texi: Likewise.
17468         * doc/posix-functions/iswalnum.texi: Likewise.
17469         * doc/posix-functions/iswalpha.texi: Likewise.
17470         * doc/posix-functions/iswblank.texi: Likewise.
17471         * doc/posix-functions/iswcntrl.texi: Likewise.
17472         * doc/posix-functions/iswctype.texi: Likewise.
17473         * doc/posix-functions/iswdigit.texi: Likewise.
17474         * doc/posix-functions/iswgraph.texi: Likewise.
17475         * doc/posix-functions/iswlower.texi: Likewise.
17476         * doc/posix-functions/iswprint.texi: Likewise.
17477         * doc/posix-functions/iswpunct.texi: Likewise.
17478         * doc/posix-functions/iswspace.texi: Likewise.
17479         * doc/posix-functions/iswupper.texi: Likewise.
17480         * doc/posix-functions/iswxdigit.texi: Likewise.
17481         * doc/posix-functions/mbrtowc.texi: Likewise.
17482         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17483         * doc/posix-functions/mbstowcs.texi: Likewise.
17484         * doc/posix-functions/mbtowc.texi: Likewise.
17485         * doc/posix-functions/putwchar.texi: Likewise.
17486         * doc/posix-functions/putwc.texi: Likewise.
17487         * doc/posix-functions/swprintf.texi: Likewise.
17488         * doc/posix-functions/tolower.texi: Likewise.
17489         * doc/posix-functions/toupper.texi: Likewise.
17490         * doc/posix-functions/towctrans.texi: Likewise.
17491         * doc/posix-functions/ungetwc.texi: Likewise.
17492         * doc/posix-functions/vswprintf.texi: Likewise.
17493         * doc/posix-functions/wcrtomb.texi: Likewise.
17494         * doc/posix-functions/wcscat.texi: Likewise.
17495         * doc/posix-functions/wcschr.texi: Likewise.
17496         * doc/posix-functions/wcscmp.texi: Likewise.
17497         * doc/posix-functions/wcscoll.texi: Likewise.
17498         * doc/posix-functions/wcscpy.texi: Likewise.
17499         * doc/posix-functions/wcscspn.texi: Likewise.
17500         * doc/posix-functions/wcsftime.texi: Likewise.
17501         * doc/posix-functions/wcslen.texi: Likewise.
17502         * doc/posix-functions/wcsncat.texi: Likewise.
17503         * doc/posix-functions/wcsncmp.texi: Likewise.
17504         * doc/posix-functions/wcsncpy.texi: Likewise.
17505         * doc/posix-functions/wcspbrk.texi: Likewise.
17506         * doc/posix-functions/wcsrchr.texi: Likewise.
17507         * doc/posix-functions/wcsrtombs.texi: Likewise.
17508         * doc/posix-functions/wcsspn.texi: Likewise.
17509         * doc/posix-functions/wcsstr.texi: Likewise.
17510         * doc/posix-functions/wcstod.texi: Likewise.
17511         * doc/posix-functions/wcstof.texi: Likewise.
17512         * doc/posix-functions/wcstoimax.texi: Likewise.
17513         * doc/posix-functions/wcstok.texi: Likewise.
17514         * doc/posix-functions/wcstold.texi: Likewise.
17515         * doc/posix-functions/wcstoll.texi: Likewise.
17516         * doc/posix-functions/wcstol.texi: Likewise.
17517         * doc/posix-functions/wcstombs.texi: Likewise.
17518         * doc/posix-functions/wcstoull.texi: Likewise.
17519         * doc/posix-functions/wcstoul.texi: Likewise.
17520         * doc/posix-functions/wcstoumax.texi: Likewise.
17521         * doc/posix-functions/wcswidth.texi: Likewise.
17522         * doc/posix-functions/wcsxfrm.texi: Likewise.
17523         * doc/posix-functions/wctob.texi: Likewise.
17524         * doc/posix-functions/wctomb.texi: Likewise.
17525         * doc/posix-functions/wctrans.texi: Likewise.
17526         * doc/posix-functions/wctype.texi: Likewise.
17527         * doc/posix-functions/wcwidth.texi: Likewise.
17528         * doc/posix-functions/wmemchr.texi: Likewise.
17529         * doc/posix-functions/wmemcmp.texi: Likewise.
17530         * doc/posix-functions/wmemcpy.texi: Likewise.
17531         * doc/posix-functions/wmemmove.texi: Likewise.
17532         * doc/posix-functions/wmemset.texi: Likewise.
17533         * doc/posix-functions/wprintf.texi: Likewise.
17534         * doc/posix-functions/wscanf.texi: Likewise.
17535
17536 2008-12-21  Bruno Haible  <bruno@clisp.org>
17537
17538         Update doc for HP-UX 11.11.
17539         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17540         in HP-UX version 11.00, not in all versions of HP-UX 11.
17541         * doc/posix-functions/fwide.texi: Likewise.
17542         * doc/posix-functions/fwprintf.texi: Likewise.
17543         * doc/posix-functions/fwscanf.texi: Likewise.
17544         * doc/posix-functions/inet_ntop.texi: Likewise.
17545         * doc/posix-functions/inet_pton.texi: Likewise.
17546         * doc/posix-functions/mbrlen.texi: Likewise.
17547         * doc/posix-functions/mbrtowc.texi: Likewise.
17548         * doc/posix-functions/mbsinit.texi: Likewise.
17549         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17550         * doc/posix-functions/swprintf.texi: Likewise.
17551         * doc/posix-functions/swscanf.texi: Likewise.
17552         * doc/posix-functions/towctrans.texi: Likewise.
17553         * doc/posix-functions/vfwprintf.texi: Likewise.
17554         * doc/posix-functions/vswprintf.texi: Likewise.
17555         * doc/posix-functions/vwprintf.texi: Likewise.
17556         * doc/posix-functions/wcrtomb.texi: Likewise.
17557         * doc/posix-functions/wcsrtombs.texi: Likewise.
17558         * doc/posix-functions/wcsstr.texi: Likewise.
17559         * doc/posix-functions/wctob.texi: Likewise.
17560         * doc/posix-functions/wctrans.texi: Likewise.
17561         * doc/posix-functions/wmemchr.texi: Likewise.
17562         * doc/posix-functions/wmemcmp.texi: Likewise.
17563         * doc/posix-functions/wmemcpy.texi: Likewise.
17564         * doc/posix-functions/wmemmove.texi: Likewise.
17565         * doc/posix-functions/wmemset.texi: Likewise.
17566         * doc/posix-functions/wprintf.texi: Likewise.
17567         * doc/posix-functions/wscanf.texi: Likewise.
17568
17569 2008-12-21  Bruno Haible  <bruno@clisp.org>
17570
17571         Work around a portability problem.
17572         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17573         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17574
17575 2008-12-20  Bruno Haible  <bruno@clisp.org>
17576
17577         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17578         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17579         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17581         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17582
17583         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17584         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17585         set.
17586         (GNULIB_defined_mbstate_t): New macro.
17587         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17588         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17589         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17590         reuses the system's mbrtowc function but works around the bugs.
17591         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17592         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17593         macros.
17594         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17595         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17596         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17597         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17598         REPLACE_MBSINIT if mbsinit needs to be overridden.
17599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17600         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17601         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17602         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17603         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17604         m4/locale-zh.m4.
17605         (Depends): Add mbsinit.
17606         * modules/mbsinit (Depends): Add mbrtowc.
17607         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17608
17609 2008-12-20  Bruno Haible  <bruno@clisp.org>
17610
17611         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17612         so that there are no conversion errors on AIX.
17613         * tests/test-mbsrtowcs.c (main): LIkewise.
17614
17615 2008-12-20  Bruno Haible  <bruno@clisp.org>
17616
17617         Work around wctob bug on Solaris <= 9.
17618         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17619         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17621         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17622         * modules/wctob (Files): Add m4/locale-fr.m4.
17623         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17624
17625 2008-12-20  Bruno Haible  <bruno@clisp.org>
17626
17627         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17628         /dev/null.
17629         * tests/test-select-in.sh: Likewise.
17630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17631
17632 2008-12-20  Bruno Haible  <bruno@clisp.org>
17633
17634         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17635         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17636         Cygwin 1.5.x.
17637
17638 2008-12-20  Bruno Haible  <bruno@clisp.org>
17639
17640         Ensure mbstate_t is defined on HP-UX 11.11.
17641         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17642         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17643         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17644         AC_USE_SYSTEM_EXTENSIONS.
17645         * modules/fnmatch (Depends-on): Add extensions.
17646         * modules/mbrlen (Depends-on): Likewise.
17647         * modules/mbrtowc (Depends-on): Likewise.
17648         * modules/mbsinit (Depends-on): Likewise.
17649         * modules/mbsrtowcs (Depends-on): Likewise.
17650         * modules/mbswidth (Depends-on): Likewise.
17651         * modules/quotearg (Depends-on): Likewise.
17652         * modules/strftime (Depends-on): Likewise.
17653
17654 2008-12-20  Bruno Haible  <bruno@clisp.org>
17655
17656         Ensure wctob is declared on IRIX 6.5.
17657         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17658         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17659         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17661         of HAVE_WCTOB.
17662         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17663         HAVE_WCTOB.
17664         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17665
17666 2008-12-19  Bruno Haible  <bruno@clisp.org>
17667
17668         * modules/mbsrtowcs-tests: New file.
17669         * tests/test-mbsrtowcs1.sh: New file.
17670         * tests/test-mbsrtowcs2.sh: New file.
17671         * tests/test-mbsrtowcs3.sh: New file.
17672         * tests/test-mbsrtowcs4.sh: New file.
17673         * tests/test-mbsrtowcs.c: New file.
17674
17675         New module 'mbsrtowcs'.
17676         * lib/wchar.in.h (mbsrtowcs): New declaration.
17677         * lib/mbsrtowcs.c: New file.
17678         * m4/mbsrtowcs.m4: New file.
17679         * modules/mbsrtowcs: New file.
17680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17681         HAVE_MBSRTOWCS.
17682         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17683         HAVE_MBSRTOWCS.
17684         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17685
17686 2008-12-19  Bruno Haible  <bruno@clisp.org>
17687
17688         New module 'mbrlen'.
17689         * lib/wchar.in.h (mbrlen): New declaration.
17690         * lib/mbrlen.c: New file.
17691         * m4/mbrlen.m4: New file.
17692         * modules/mbrlen: New file.
17693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17694         HAVE_MBRLEN.
17695         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17696         HAVE_MBRLEN.
17697         * doc/posix-functions/mbrlen.texi: Document the new module.
17698
17699 2008-12-19  Bruno Haible  <bruno@clisp.org>
17700
17701         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17702         * modules/mbrtowc (Depends-on): Add verify.
17703         Suggested by Paul Eggert.
17704
17705 2008-12-18  Bruno Haible  <bruno@clisp.org>
17706
17707         * modules/mbsinit-tests: New file.
17708         * tests/test-mbsinit.sh: New file.
17709         * tests/test-mbsinit.c: New file.
17710
17711 2008-12-18  Bruno Haible  <bruno@clisp.org>
17712
17713         * modules/mbrtowc-tests: New file.
17714         * tests/test-mbrtowc1.sh: New file.
17715         * tests/test-mbrtowc2.sh: New file.
17716         * tests/test-mbrtowc3.sh: New file.
17717         * tests/test-mbrtowc4.sh: New file.
17718         * tests/test-mbrtowc.c: New file.
17719
17720         New module 'mbrtowc'.
17721         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17722         mbsinit and mbrtowc.
17723         (mbrtowc): New declaration.
17724         * lib/mbrtowc.c: New file.
17725         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17726         * modules/mbrtowc: New file.
17727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17728         HAVE_MBRTOWC.
17729         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17730         HAVE_MBRTOWC.
17731         * doc/posix-functions/mbrtowc.texi: Document the new module.
17732
17733 2008-12-18  Bruno Haible  <bruno@clisp.org>
17734
17735         New module 'wctob'.
17736         * lib/wchar.in.h (wctob): New declaration.
17737         * lib/wctob.c: New file.
17738         * m4/wctob.m4: New file.
17739         * modules/wctob: New file.
17740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17741         HAVE_WCTOB.
17742         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17743         * doc/posix-functions/wctob.texi: Document the new module.
17744
17745 2008-12-18  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17748         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17749
17750 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17751
17752         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17753         G. Christensen" <tgc@jupiterrise.com>.
17754
17755         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17756         G. Christensen" <tgc@jupiterrise.com>.
17757
17758         * lib/flock.c: Need to include string.h.  Reported by "Tom
17759         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17760         <ebb9@byu.net>.
17761
17762 2008-12-18  Bruno Haible  <bruno@clisp.org>
17763
17764         * m4/locale-ja.m4: New file, from GNU gettext.
17765
17766 2008-12-17  Bruno Haible  <bruno@clisp.org>
17767
17768         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17769         Suggested by Eric Blake.
17770
17771 2008-12-17  Bruno Haible  <bruno@clisp.org>
17772
17773         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17774
17775 2008-12-17  Bruno Haible  <bruno@clisp.org>
17776
17777         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17778         * modules/mbsinit (Depends-on): Add verify.
17779         Suggested by Paul Eggert.
17780
17781 2008-12-17  Bruno Haible  <bruno@clisp.org>
17782
17783         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17784         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17785         gl_FUNC_MBRTOWC.
17786         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17787         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17788         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17789         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17790         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17791         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17792         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17793         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17794         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17795         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17796         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17797         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17798         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17799         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17800         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17801         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17802         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17803         * modules/trim (configure.ac): Likewise.
17804
17805 2008-12-17  Bruno Haible  <bruno@clisp.org>
17806
17807         * modules/btowc-tests: New file.
17808         * tests/test-btowc1.sh: New file.
17809         * tests/test-btowc2.sh: New file.
17810         * tests/test-btowc.c: New file.
17811
17812         New module 'btowc'.
17813         * lib/wchar.in.h (btowc): New declaration.
17814         * lib/btowc.c: New file.
17815         * m4/btowc.m4: New file.
17816         * modules/btowc: New file.
17817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17818         HAVE_BTOWC.
17819         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17820         * doc/posix-functions/btowc.texi: Document the new module.
17821
17822 2008-12-17  Bruno Haible  <bruno@clisp.org>
17823
17824         New module 'mbsinit'.
17825         * lib/wchar.in.h (mbsinit): New declaration.
17826         * lib/mbsinit.c: New file.
17827         * m4/mbsinit.m4: New file.
17828         * modules/mbsinit: New file.
17829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17830         HAVE_MBSINIT.
17831         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17832         HAVE_MBSINIT.
17833         * doc/posix-functions/mbsinit.texi: Document the new module.
17834
17835 2008-12-16  Bruno Haible  <bruno@clisp.org>
17836
17837         * lib/unistd.in.h: Add comment.
17838         * tests/test-environ.c: Don't include <stdlib.h>.
17839
17840 2008-12-16  Bruno Haible  <bruno@clisp.org>
17841
17842         * lib/parse-duration.h (parse_duration): Document return value
17843         convention.
17844         * lib/parse-duration.c: Include specification header first. Add
17845         comments.
17846         (_): Remove macro.
17847         (parse_year_month_day, parse_hour_minute_second): Move side effects
17848         outside of strchr call.
17849         (parse_non_iso8601): Move side effects outside of isspace call.
17850         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17851         call.
17852
17853 2008-12-16  Bruno Haible  <bruno@clisp.org>
17854
17855         * tests/test-parse-duration.sh: Produce no output when the test
17856         succeeds.
17857
17858 2008-12-16  Bruno Haible  <bruno@clisp.org>
17859
17860         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17861         expressions.
17862
17863 2008-12-15  Bruno Haible  <bruno@clisp.org>
17864
17865         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17866         * doc/glibc-functions/flistxattr.texi: Likewise.
17867         * doc/glibc-functions/fopencookie.texi: Likewise.
17868         * doc/glibc-functions/fremovexattr.texi: Likewise.
17869         * doc/glibc-functions/fsetxattr.texi: Likewise.
17870         * doc/glibc-functions/getxattr.texi: Likewise.
17871         * doc/glibc-functions/lgetxattr.texi: Likewise.
17872         * doc/glibc-functions/listxattr.texi: Likewise.
17873         * doc/glibc-functions/llistxattr.texi: Likewise.
17874         * doc/glibc-functions/lremovexattr.texi: Likewise.
17875         * doc/glibc-functions/lsetxattr.texi: Likewise.
17876         * doc/glibc-functions/removexattr.texi: Likewise.
17877         * doc/glibc-functions/setxattr.texi: Likewise.
17878         * doc/posix-functions/open_memstream.texi: Likewise.
17879
17880 2008-12-15  Eric Blake  <ebb9@byu.net>
17881
17882         Update doc for cygwin 1.7.
17883         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17884         functions.
17885         * doc/posix-functions/fchmodat.texi: Likewise.
17886         * doc/posix-functions/fchownat.texi: Likewise.
17887         * doc/posix-functions/fdopendir.texi: Likewise.
17888         * doc/posix-functions/fmemopen.texi: Likewise.
17889         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17890         * doc/posix-functions/fstatat.texi: Likewise.
17891         * doc/posix-functions/futimens.texi: Likewise.
17892         * doc/posix-functions/gai_strerror.texi: Likewise.
17893         * doc/posix-functions/getaddrinfo.texi: Likewise.
17894         * doc/posix-functions/getnameinfo.texi: Likewise.
17895         * doc/posix-functions/if_freenameindex.texi: Likewise.
17896         * doc/posix-functions/if_indextoname.texi: Likewise.
17897         * doc/posix-functions/if_nameindex.texi: Likewise.
17898         * doc/posix-functions/if_nametoindex.texi: Likewise.
17899         * doc/posix-functions/insque.texi: Likewise.
17900         * doc/posix-functions/linkat.texi: Likewise.
17901         * doc/posix-functions/llrint.texi: Likewise.
17902         * doc/posix-functions/llrintf.texi: Likewise.
17903         * doc/posix-functions/llrintl.texi: Likewise.
17904         * doc/posix-functions/lockf.texi: Likewise.
17905         * doc/posix-functions/lrintl.texi: Likewise.
17906         * doc/posix-functions/mkdirat.texi: Likewise.
17907         * doc/posix-functions/mkfifoat.texi: Likewise.
17908         * doc/posix-functions/mknodat.texi: Likewise.
17909         * doc/posix-functions/mq_close.texi: Likewise.
17910         * doc/posix-functions/mq_getattr.texi: Likewise.
17911         * doc/posix-functions/mq_notify.texi: Likewise.
17912         * doc/posix-functions/mq_open.texi: Likewise.
17913         * doc/posix-functions/mq_receive.texi: Likewise.
17914         * doc/posix-functions/mq_send.texi: Likewise.
17915         * doc/posix-functions/mq_setattr.texi: Likewise.
17916         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17917         * doc/posix-functions/mq_timedsend.texi: Likewise.
17918         * doc/posix-functions/mq_unlink.texi: Likewise.
17919         * doc/posix-functions/open_memstream.texi: Likewise.
17920         * doc/posix-functions/openat.texi: Likewise.
17921         * doc/posix-functions/posix_fadvise.texi: Likewise.
17922         * doc/posix-functions/posix_fallocate.texi: Likewise.
17923         * doc/posix-functions/posix_madvise.texi: Likewise.
17924         * doc/posix-functions/posix_memalign.texi: Likewise.
17925         * doc/posix-functions/posix_openpt.texi: Likewise.
17926         * doc/posix-functions/readlinkat.texi: Likewise.
17927         * doc/posix-functions/remque.texi: Likewise.
17928         * doc/posix-functions/renameat.texi: Likewise.
17929         * doc/posix-functions/rintl.texi: Likewise.
17930         * doc/posix-functions/sem_unlink.texi: Likewise.
17931         * doc/posix-functions/shm_open.texi: Likewise.
17932         * doc/posix-functions/shm_unlink.texi: Likewise.
17933         * doc/posix-functions/signgam.texi: Likewise.
17934         * doc/posix-functions/sigset.texi: Likewise.
17935         * doc/posix-functions/stpcpy.texi: Likewise.
17936         * doc/posix-functions/stpncpy.texi: Likewise.
17937         * doc/posix-functions/strerror.texi: Likewise.
17938         * doc/posix-functions/strtod.texi: Likewise.
17939         * doc/posix-functions/symlinkat.texi: Likewise.
17940         * doc/posix-functions/unlinkat.texi: Likewise.
17941         * doc/posix-functions/utimensat.texi: Likewise.
17942         * doc/glibc-functions/bindresvport.texi: Likewise.
17943         * doc/glibc-functions/dn_expand.texi: Likewise.
17944         * doc/glibc-functions/exp10.texi: Likewise.
17945         * doc/glibc-functions/exp10f.texi: Likewise.
17946         * doc/glibc-functions/fgetxattr.texi: Likewise.
17947         * doc/glibc-functions/flistxattr.texi: Likewise.
17948         * doc/glibc-functions/fopencookie.texi: Likewise.
17949         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17950         * doc/glibc-functions/fremovexattr.texi: Likewise.
17951         * doc/glibc-functions/fsetxattr.texi: Likewise.
17952         * doc/glibc-functions/getifaddrs.texi: Likewise.
17953         * doc/glibc-functions/getxattr.texi: Likewise.
17954         * doc/glibc-functions/lgetxattr.texi: Likewise.
17955         * doc/glibc-functions/listxattr.texi: Likewise.
17956         * doc/glibc-functions/llistxattr.texi: Likewise.
17957         * doc/glibc-functions/lremovexattr.texi: Likewise.
17958         * doc/glibc-functions/lsetxattr.texi: Likewise.
17959         * doc/glibc-functions/pow10.texi: Likewise.
17960         * doc/glibc-functions/pow10f.texi: Likewise.
17961         * doc/glibc-functions/rcmd_af.texi: Likewise.
17962         * doc/glibc-functions/removexattr.texi: Likewise.
17963         * doc/glibc-functions/res_init.texi: Likewise.
17964         * doc/glibc-functions/res_mkquery.texi: Likewise.
17965         * doc/glibc-functions/res_query.texi: Likewise.
17966         * doc/glibc-functions/res_querydomain.texi: Likewise.
17967         * doc/glibc-functions/res_send.texi: Likewise.
17968         * doc/glibc-functions/rresvport_af.texi: Likewise.
17969         * doc/glibc-functions/setxattr.texi: Likewise.
17970         * doc/glibc-functions/strcasestr.texi: Likewise.
17971
17972 2008-12-15  Bruno Haible  <bruno@clisp.org>
17973
17974         Fix compilation error on OSF/1 4.0.
17975         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17976         <sys/time.h>, simply delegate to the system header.
17977         Reported by Daniel Richard G. <oss@teragram.com>.
17978
17979 2008-12-15  Bruno Haible  <bruno@clisp.org>
17980
17981         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17982         * doc/posix-functions/fchmodat.texi: Likewise.
17983         * doc/posix-functions/fchownat.texi: Likewise.
17984         * doc/posix-functions/fdopendir.texi: Likewise.
17985         * doc/posix-functions/fstatat.texi: Likewise.
17986         * doc/posix-functions/mkdirat.texi: Likewise.
17987         * doc/posix-functions/unlinkat.texi: Likewise.
17988
17989 2008-12-14  Bruno Haible  <bruno@clisp.org>
17990
17991         Update doc for POSIX:2008.
17992         * doc/posix-functions/faccessat.texi: New file.
17993         * doc/posix-functions/fchmodat.texi: New file.
17994         * doc/posix-functions/fchownat.texi: New file.
17995         * doc/posix-functions/fdopendir.texi: New file.
17996         * doc/posix-functions/fstatat.texi: New file.
17997         * doc/posix-functions/futimens.texi: New file.
17998         * doc/posix-functions/linkat.texi: New file.
17999         * doc/posix-functions/mkdirat.texi: New file.
18000         * doc/posix-functions/mkfifoat.texi: New file.
18001         * doc/posix-functions/mknodat.texi: New file.
18002         * doc/posix-functions/open_wmemstream.texi: New file.
18003         * doc/posix-functions/openat.texi: New file.
18004         * doc/posix-functions/psiginfo.texi: New file.
18005         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18006         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18007         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18008         * doc/posix-functions/readlinkat.texi: New file.
18009         * doc/posix-functions/renameat.texi: New file.
18010         * doc/posix-functions/strerror_l.texi: New file.
18011         * doc/posix-functions/symlinkat.texi: New file.
18012         * doc/posix-functions/unlinkat.texi: New file.
18013         * doc/posix-functions/utimensat.texi: New file.
18014         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18015
18016 2008-12-14  Bruno Haible  <bruno@clisp.org>
18017
18018         Update doc for POSIX:2008.
18019         * doc/posix-functions/alphasort.texi: Renamed from
18020         doc/glibc-functions/alphasort.texi.
18021         * doc/posix-functions/dirfd.texi: Renamed from
18022         doc/glibc-functions/dirfd.texi.
18023         * doc/posix-functions/dprintf.texi: Renamed from
18024         doc/glibc-functions/dprintf.texi.
18025         * doc/posix-functions/duplocale.texi: Renamed from
18026         doc/glibc-functions/duplocale.texi.
18027         * doc/posix-functions/fexecve.texi: Renamed from
18028         doc/glibc-functions/fexecve.texi.
18029         * doc/posix-functions/fmemopen.texi: Renamed from
18030         doc/glibc-functions/fmemopen.texi.
18031         * doc/posix-functions/freelocale.texi: Renamed from
18032         doc/glibc-functions/freelocale.texi.
18033         * doc/posix-functions/getdate_err.texi: Renamed from
18034         doc/glibc-functions/getdate_err.texi.
18035         * doc/posix-functions/isalnum_l.texi: Renamed from
18036         doc/glibc-functions/isalnum_l.texi.
18037         * doc/posix-functions/isalpha_l.texi: Renamed from
18038         doc/glibc-functions/isalpha_l.texi.
18039         * doc/posix-functions/isblank_l.texi: Renamed from
18040         doc/glibc-functions/isblank_l.texi.
18041         * doc/posix-functions/iscntrl_l.texi: Renamed from
18042         doc/glibc-functions/iscntrl_l.texi.
18043         * doc/posix-functions/isdigit_l.texi: Renamed from
18044         doc/glibc-functions/isdigit_l.texi.
18045         * doc/posix-functions/isgraph_l.texi: Renamed from
18046         doc/glibc-functions/isgraph_l.texi.
18047         * doc/posix-functions/islower_l.texi: Renamed from
18048         doc/glibc-functions/islower_l.texi.
18049         * doc/posix-functions/isprint_l.texi: Renamed from
18050         doc/glibc-functions/isprint_l.texi.
18051         * doc/posix-functions/ispunct_l.texi: Renamed from
18052         doc/glibc-functions/ispunct_l.texi.
18053         * doc/posix-functions/isspace_l.texi: Renamed from
18054         doc/glibc-functions/isspace_l.texi.
18055         * doc/posix-functions/isupper_l.texi: Renamed from
18056         doc/glibc-functions/isupper_l.texi.
18057         * doc/posix-functions/iswalnum_l.texi: Renamed from
18058         doc/glibc-functions/iswalnum_l.texi.
18059         * doc/posix-functions/iswalpha_l.texi: Renamed from
18060         doc/glibc-functions/iswalpha_l.texi.
18061         * doc/posix-functions/iswblank_l.texi: Renamed from
18062         doc/glibc-functions/iswblank_l.texi.
18063         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18064         doc/glibc-functions/iswcntrl_l.texi.
18065         * doc/posix-functions/iswctype_l.texi: Renamed from
18066         doc/glibc-functions/iswctype_l.texi.
18067         * doc/posix-functions/iswdigit_l.texi: Renamed from
18068         doc/glibc-functions/iswdigit_l.texi.
18069         * doc/posix-functions/iswgraph_l.texi: Renamed from
18070         doc/glibc-functions/iswgraph_l.texi.
18071         * doc/posix-functions/iswlower_l.texi: Renamed from
18072         doc/glibc-functions/iswlower_l.texi.
18073         * doc/posix-functions/iswprint_l.texi: Renamed from
18074         doc/glibc-functions/iswprint_l.texi.
18075         * doc/posix-functions/iswpunct_l.texi: Renamed from
18076         doc/glibc-functions/iswpunct_l.texi.
18077         * doc/posix-functions/iswspace_l.texi: Renamed from
18078         doc/glibc-functions/iswspace_l.texi.
18079         * doc/posix-functions/iswupper_l.texi: Renamed from
18080         doc/glibc-functions/iswupper_l.texi.
18081         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18082         doc/glibc-functions/iswxdigit_l.texi.
18083         * doc/posix-functions/isxdigit_l.texi: Renamed from
18084         doc/glibc-functions/isxdigit_l.texi.
18085         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18086         doc/glibc-functions/mbsnrtowcs.texi.
18087         * doc/posix-functions/mkdtemp.texi: Renamed from
18088         doc/glibc-functions/mkdtemp.texi.
18089         * doc/posix-functions/newlocale.texi: Renamed from
18090         doc/glibc-functions/newlocale.texi.
18091         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18092         doc/glibc-functions/nl_langinfo_l.texi.
18093         * doc/posix-functions/open_memstream.texi: Renamed from
18094         doc/glibc-functions/open_memstream.texi.
18095         * doc/posix-functions/opterr.texi: Renamed from
18096         doc/glibc-functions/opterr.texi.
18097         * doc/posix-functions/optind.texi: Renamed from
18098         doc/glibc-functions/optind.texi.
18099         * doc/posix-functions/optopt.texi: Renamed from
18100         doc/glibc-functions/optopt.texi.
18101         * doc/posix-functions/psignal.texi: Renamed from
18102         doc/glibc-functions/psignal.texi.
18103         * doc/posix-functions/scandir.texi: Renamed from
18104         doc/glibc-functions/scandir.texi.
18105         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18106         doc/glibc-functions/sched_get_priority_min.texi.
18107         * doc/posix-functions/signgam.texi: Renamed from
18108         doc/glibc-functions/signgam.texi.
18109         * doc/posix-functions/stpcpy.texi: Renamed from
18110         doc/glibc-functions/stpcpy.texi.
18111         * doc/posix-functions/stpncpy.texi: Renamed from
18112         doc/glibc-functions/stpncpy.texi.
18113         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18114         doc/glibc-functions/strcasecmp_l.texi.
18115         * doc/posix-functions/strcoll_l.texi: Renamed from
18116         doc/glibc-functions/strcoll_l.texi.
18117         * doc/posix-functions/strfmon_l.texi: Renamed from
18118         doc/glibc-functions/strfmon_l.texi.
18119         * doc/posix-functions/strftime_l.texi: Renamed from
18120         doc/glibc-functions/strftime_l.texi.
18121         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18122         doc/glibc-functions/strncasecmp_l.texi.
18123         * doc/posix-functions/strndup.texi: Renamed from
18124         doc/glibc-functions/strndup.texi.
18125         * doc/posix-functions/strnlen.texi: Renamed from
18126         doc/glibc-functions/strnlen.texi.
18127         * doc/posix-functions/strsignal.texi: Renamed from
18128         doc/glibc-functions/strsignal.texi.
18129         * doc/posix-functions/strxfrm_l.texi: Renamed from
18130         doc/glibc-functions/strxfrm_l.texi.
18131         * doc/posix-functions/timer_gettime.texi: Renamed from
18132         doc/glibc-functions/timer_gettime.texi.
18133         * doc/posix-functions/tolower_l.texi: Renamed from
18134         doc/glibc-functions/tolower_l.texi.
18135         * doc/posix-functions/toupper_l.texi: Renamed from
18136         doc/glibc-functions/toupper_l.texi.
18137         * doc/posix-functions/towctrans_l.texi: Renamed from
18138         doc/glibc-functions/towctrans_l.texi.
18139         * doc/posix-functions/towlower_l.texi: Renamed from
18140         doc/glibc-functions/towlower_l.texi.
18141         * doc/posix-functions/towupper_l.texi: Renamed from
18142         doc/glibc-functions/towupper_l.texi.
18143         * doc/posix-functions/uselocale.texi: Renamed from
18144         doc/glibc-functions/uselocale.texi.
18145         * doc/posix-functions/vdprintf.texi: Renamed from
18146         doc/glibc-functions/vdprintf.texi.
18147         * doc/posix-functions/wcpcpy.texi:
18148         Renamed from doc/glibc-functions/wcpcpy.texi.
18149         * doc/posix-functions/wcpncpy.texi: Renamed from
18150         doc/glibc-functions/wcpncpy.texi.
18151         * doc/posix-functions/wcscasecmp.texi: Renamed from
18152         doc/glibc-functions/wcscasecmp.texi.
18153         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18154         doc/glibc-functions/wcscasecmp_l.texi.
18155         * doc/posix-functions/wcscoll_l.texi: Renamed from
18156         doc/glibc-functions/wcscoll_l.texi.
18157         * doc/posix-functions/wcsdup.texi: Renamed from
18158         doc/glibc-functions/wcsdup.texi.
18159         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18160         doc/glibc-functions/wcsncasecmp.texi.
18161         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18162         doc/glibc-functions/wcsncasecmp_l.texi.
18163         * doc/posix-functions/wcsnlen.texi: Renamed from
18164         doc/glibc-functions/wcsnlen.texi.
18165         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18166         doc/glibc-functions/wcsnrtombs.texi.
18167         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18168         doc/glibc-functions/wcsxfrm_l.texi.
18169         * doc/posix-functions/wctrans_l.texi: Renamed from
18170         doc/glibc-functions/wctrans_l.texi.
18171         * doc/posix-functions/wctype_l.texi: Renamed from
18172         doc/glibc-functions/wctype_l.texi.
18173         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18174         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18175         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18176         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18177         these subsections.
18178         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18179         Remove sections.
18180
18181 2008-12-14  Bruno Haible  <bruno@clisp.org>
18182
18183         Update doc for POSIX:2008.
18184         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18185
18186 2008-12-14  Bruno Haible  <bruno@clisp.org>
18187
18188         Update doc for POSIX:2008.
18189         * doc/pastposix-functions/bcmp.texi: Renamed from
18190         doc/posix-functions/bcmp.texi.
18191         * doc/pastposix-functions/bcopy.texi: Renamed from
18192         doc/posix-functions/bcopy.texi.
18193         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18194         doc/posix-functions/bsd_signal.texi.
18195         * doc/pastposix-functions/bzero.texi: Renamed from
18196         doc/posix-functions/bzero.texi.
18197         * doc/pastposix-functions/ecvt.texi: Renamed from
18198         doc/posix-functions/ecvt.texi.
18199         * doc/pastposix-functions/fcvt.texi: Renamed from
18200         doc/posix-functions/fcvt.texi.
18201         * doc/pastposix-functions/ftime.texi: Renamed from
18202         doc/posix-functions/ftime.texi.
18203         * doc/pastposix-functions/gcvt.texi: Renamed from
18204         doc/posix-functions/gcvt.texi.
18205         * doc/pastposix-functions/getcontext.texi: Renamed from
18206         doc/posix-functions/getcontext.texi.
18207         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18208         doc/posix-functions/gethostbyaddr.texi.
18209         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18210         doc/posix-functions/gethostbyname.texi.
18211         * doc/pastposix-functions/getwd.texi: Renamed from
18212         doc/posix-functions/getwd.texi.
18213         * doc/pastposix-functions/h_errno.texi: Renamed from
18214         doc/posix-functions/h_errno.texi.
18215         * doc/pastposix-functions/index.texi: Renamed from
18216         doc/posix-functions/index.texi.
18217         * doc/pastposix-functions/makecontext.texi: Renamed from
18218         doc/posix-functions/makecontext.texi.
18219         * doc/pastposix-functions/mktemp.texi: Renamed from
18220         doc/posix-functions/mktemp.texi.
18221         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18222         doc/posix-functions/pthread_attr_getstackaddr.texi.
18223         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18224         doc/posix-functions/pthread_attr_setstackaddr.texi.
18225         * doc/pastposix-functions/rindex.texi: Renamed from
18226         doc/posix-functions/rindex.texi.
18227         * doc/pastposix-functions/scalb.texi: Renamed from
18228         doc/posix-functions/scalb.texi.
18229         * doc/pastposix-functions/setcontext.texi: Renamed from
18230         doc/posix-functions/setcontext.texi.
18231         * doc/pastposix-functions/swapcontext.texi: Renamed from
18232         doc/posix-functions/swapcontext.texi.
18233         * doc/pastposix-functions/ualarm.texi: Renamed from
18234         doc/posix-functions/ualarm.texi.
18235         * doc/pastposix-functions/usleep.texi: Renamed from
18236         doc/posix-functions/usleep.texi.
18237         * doc/pastposix-functions/vfork.texi: Renamed from
18238         doc/posix-functions/vfork.texi.
18239         * doc/pastposix-functions/wcswcs.texi: Renamed from
18240         doc/posix-functions/wcswcs.texi.
18241         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18242         (Function Substitutes): Update.
18243
18244 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18245
18246         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18247         m4/strerror.m4.
18248
18249 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18250             Bruno Haible  <bruno@clisp.org>
18251
18252         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18253
18254 2008-12-13  Bruno Haible  <bruno@clisp.org>
18255
18256         * modules/strtoull (Depends-on): Remove unistd.
18257
18258 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18259
18260         * modules/strtoull (Depends-on): Add stdlib.
18261
18262 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18263
18264         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18265
18266 2008-12-10  Jim Meyering  <meyering@redhat.com>
18267
18268         gl_ASSERT: don't say assertions are disabled when they're not
18269         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18270         "checking whether to enable assertions... no", when they are in
18271         fact enabled.  This is solely a bug in the output of configure.
18272         In spite of saying "no", NDEBUG was not defined in that case.
18273         Also, as noted by Eric Blake, leave assertions enabled upon
18274         --enable-assert=INVALID.
18275
18276 2008-12-10  Bruno Haible  <bruno@clisp.org>
18277
18278         Change MODULES.html to refer to POSIX:2008 where possible.
18279         * MODULES.html.sh (POSIX2008_URL): New variable.
18280         (posix_headers): Remove sys/timeb, ucontext.
18281         (posix2001_headers): New variable.
18282         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18283         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18284         index, makecontext, mktemp, pthread_attr_getstackaddr,
18285         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18286         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18287         (posix2001_functions): New variable.
18288         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18289         otherwise.
18290
18291 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18292
18293         add missing include to parse-duration.c
18294         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18295         * modules/parse-duration (Depends-on): Add xalloc.
18296
18297         fix sed script reading maint.mk
18298         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18299         (syntax-check-rules): Use it.
18300
18301 2008-12-09  Bruno Haible  <bruno@clisp.org>
18302
18303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18304         MacOS X 10.4/PowerPC.
18305         Reported by Simon Josefsson.
18306
18307 2008-12-08  Jim Meyering  <meyering@redhat.com>
18308
18309         work around mingw's lack of some S_IF definitions
18310         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18311         Reported by Simon Josefsson.
18312
18313 2008-12-08  Bruno Haible  <bruno@clisp.org>
18314
18315         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18316         applied to variables. Needed on MacOS X 10.4/PowerPC.
18317         Reported by Simon Josefsson.
18318
18319 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18320         and Eric Blake  <ebb9@byu.net>
18321
18322         assert: honor --enable-assert
18323         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18324         order to honor --enable-assert, rather than treating it as a
18325         synonym for --disable-assert.
18326
18327 2008-12-08  Jim Meyering  <meyering@redhat.com>
18328
18329         * lib/posixtm.c: Remove now-useless declaration of mktime.
18330
18331         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18332
18333 2008-12-07  Bruno Haible  <bruno@clisp.org>
18334
18335         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18336         test_once): Mark functions as static.
18337         * tests/test-tls.c (test_tls): Likewise.
18338
18339 2008-12-07  Bruno Haible  <bruno@clisp.org>
18340
18341         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18342         iconv_register_autodetect.
18343
18344 2008-12-07  Jim Meyering  <meyering@redhat.com>
18345
18346         posixtm.c: avoid a warning
18347         * lib/posixtm.c (posixtime): Don't initialize tm0.
18348         It's no longer needed to placate gcc4's -Wuninitialized,
18349         and the attempt to placate would elicit a new warning.
18350
18351         unicodeio.c: mark unused parameters
18352         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18353         (fallback_failure_callback): Likewise.
18354
18355 2008-12-07  Bruno Haible  <bruno@clisp.org>
18356
18357         * gnulib-tool (func_create_testdir): When building the tests
18358         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18359         Reported by Simon Josefsson.
18360
18361 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18362
18363         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18364
18365 2008-12-06  Bruno Haible  <bruno@clisp.org>
18366
18367         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18368         Suggested by Eric Blake.
18369
18370 2008-12-06  Bruno Haible  <bruno@clisp.org>
18371
18372         Fix a c-stack test failure on MacOS X.
18373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18374         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18375         handler for SIGBUS as well.
18376         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18377         install a signal handler for SIGBUS as well.
18378         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18379
18380 2008-12-06  Bruno Haible  <bruno@clisp.org>
18381
18382         Advocacy documentation.
18383         * doc/gnulib-intro.texi (Benefits): New section.
18384         * doc/gnulib.texi: Update.
18385
18386 2008-12-06  Bruno Haible  <bruno@clisp.org>
18387
18388         Document the 'manywarnings' module.
18389         * doc/manywarnings.texi: New file.
18390         * doc/gnulib.texi: Include it.
18391
18392 2008-12-05  Eric Blake  <ebb9@byu.net>
18393
18394         tests: silence some gcc warnings
18395         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18396         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18397         type mismatches.
18398
18399 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18400             Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18403
18404 2008-11-29  Jim Meyering  <meyering@redhat.com>
18405
18406         unicodeio.c: mark unused parameters
18407         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18408         (fallback_failure_callback): Likewise.
18409
18410         fts: fix a thinko
18411         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18412         (set_stat_type): Return S_IF*-valued "type" directly.
18413         Prompted by James Youngman's spotting a related bug.
18414         Confirmed by further testing through find.
18415
18416         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18417         * lib/fts.c (D_TYPE): Define.
18418         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18419         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18420         (s_ifmt_shift_bits): New function.
18421         (set_stat_type): New function.
18422         (fts_build): When not calling fts_stat, call set_stat_type
18423         to propagate dirent.d_type info to fts_read caller.
18424         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18425         fts_statp->st_mode type information may be valid.
18426
18427 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18428
18429         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18430         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18431         <sds@gnu.org>.
18432
18433 2008-11-20  Bruno Haible  <bruno@clisp.org>
18434
18435         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18436         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18437         INCLUDE_NEXT.
18438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18439         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18440         * modules/math (Makefile.am): Substitute
18441         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18442         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18443
18444 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18445             Bruno Haible  <bruno@clisp.org>
18446
18447         * lib/stdint.in.h: Define all type macros so that their expansion is
18448         a single typedef'ed token. Fixes a compilation failure in Boost which
18449         does "using ::int8_t;".
18450
18451 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18452
18453         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18454         gl_MANYWARN_ALL_GCC.
18455         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18456         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18457         * modules/manywarnings: New file.
18458         * MODULES.html.sh: Mention manywarnings module.
18459
18460 2008-11-18  Bruno Haible  <bruno@clisp.org>
18461
18462         * doc/gnulib-tool.texi (Unit tests): New section.
18463
18464 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18465
18466         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18467         paths like 'lib/po/foo.po'.
18468
18469 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18470
18471         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18472         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18473
18474 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18475
18476         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18477         parameter works.
18478
18479 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18480
18481         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18482
18483 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18484
18485         * modules/parse-duration-tests: New file.
18486         * tests/test-parse-duration.sh: New file.
18487         * tests/test-parse-duration.c: New file.
18488
18489         New module 'parse-duration'.
18490         * lib/parse-duration.h: New file.
18491         * lib/parse-duration.c: New file.
18492         * modules/parse-duration: New file.
18493
18494 2008-11-17  Bruno Haible  <bruno@clisp.org>
18495
18496         * tests/test-select-out.sh: Comment out the first pipe test.
18497         Reported by Simon Josefsson.
18498
18499 2008-11-17  Bruno Haible  <bruno@clisp.org>
18500
18501         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18502         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18503         gl_HOSTENT.
18504
18505 2008-11-17  Bruno Haible  <bruno@clisp.org>
18506
18507         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18508         -lnetwork and -lnet. Needed for Haiku and BeOS.
18509
18510 2008-11-16  Bruno Haible  <bruno@clisp.org>
18511
18512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18513
18514 2008-11-16  Bruno Haible  <bruno@clisp.org>
18515
18516         Avoid test failure on Haiku.
18517         * tests/test-fsync.c: Include <errno.h>.
18518         (main): Don't require that fsync (0) fails.
18519
18520 2008-11-15  Bruno Haible  <bruno@clisp.org>
18521
18522         New module 'hostent'.
18523         * modules/hostent: New file.
18524         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18525
18526 2008-11-15  Bruno Haible  <bruno@clisp.org>
18527
18528         New module 'servent'.
18529         * modules/servent: New file.
18530         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18531
18532 2008-11-15  Bruno Haible  <bruno@clisp.org>
18533
18534         Avoid generating same test program with two different rules.
18535         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18536         test-frexp to test-frexp-nolibm.
18537         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18538         test-frexpl to test-frexpl-nolibm.
18539
18540 2008-11-15  Bruno Haible  <bruno@clisp.org>
18541
18542         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18543         $(FREXPL_LIBM).
18544
18545 2008-11-15  Bruno Haible  <bruno@clisp.org>
18546
18547         * lib/netdb.in.h: Activate the definitions also when the system's
18548         <netdb.h> has 'struct addrinfo'.
18549         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18550         EAI_OVERFLOW or AI_NUMERICSERV.
18551         * doc/posix-headers/netdb.texi: Document the problem.
18552
18553 2008-11-15  Bruno Haible  <bruno@clisp.org>
18554
18555         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18556
18557         Make the 'sched' module work on platforms where <sched.h> exists but
18558         is incomplete (such as Haiku).
18559         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18560         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18561         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18562         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18563         HAVE_STRUCT_SCHED_PARAM.
18564         * modules/sched (Depends-on): Add include_next.
18565         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18566         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18567         * doc/posix-headers/sched.texi: Document the issue.
18568
18569 2008-11-13  Jim Meyering  <meyering@redhat.com>
18570
18571         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18572         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18573         test would fail due to the difference in the Report bugs to ...
18574         line.  The expected address is empty, "<>", while the actual
18575         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18576
18577 2008-11-12  Bruno Haible  <bruno@clisp.org>
18578
18579         lstat: don't compile lstat.c on systems lacking lstat
18580         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18581         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18582         Reported by Daniel P. Berrange via Jim Meyering.
18583
18584 2008-11-12  Jim Meyering  <meyering@redhat.com>
18585
18586         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18587
18588 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18589
18590         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18591         instead.
18592
18593 2008-11-12  Bruno Haible  <bruno@clisp.org>
18594
18595         * lib/unicodeio.c: Include unistr.h.
18596         (utf8_wctomb): Remove function.
18597         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18598
18599 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18600
18601         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18602         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18603         <bruno@clisp.org>.
18604         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18605
18606 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18607
18608         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18609         * doc/gnulib.texi: Add section for warnings.
18610
18611 2008-11-11  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/sockets.h: Add a comment.
18614
18615 2008-11-11  Karl Berry  <karl@gnu.org>
18616
18617         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18618
18619 2008-11-11  Eric Blake  <ebb9@byu.net>
18620
18621         fdl.texi: avoid git symlinks
18622         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18623
18624 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18625
18626         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18627
18628 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18629
18630         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18631         (gl_WARN_ADD): Substitute $2 if literal.
18632
18633 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18634
18635         * m4/warning.m4: Remove.
18636
18637 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18638
18639         * m4/warnings.m4: Almost complete rewrite. :-)
18640
18641 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18642
18643         * modules/warnings: New module.
18644         * m4/warnings.m4: New file.
18645         * MODULES.html.sh: Mention warnings module.
18646         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18647         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18648
18649 2008-11-10  Eric Blake  <ebb9@byu.net>
18650
18651         fdl.texi: make a symlink to the latest version
18652         * doc/standards.texi: Revert today's earlier change.
18653         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18654         * doc/fdl.texi: ...and replace this with a symlink to the newer
18655         fdl-1.3.texi.
18656
18657 2008-11-10  Bruno Haible  <bruno@clisp.org>
18658
18659         * tests/test-select-fd.c (main): Accept the result file name as fourth
18660         argument.
18661         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18662         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18663
18664 2008-11-10  Bruno Haible  <bruno@clisp.org>
18665
18666         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18667         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18668         as autoconf-substituted macros.
18669         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18671         gl_NETDB_H_DEFAULTS. Set these variables.
18672         * modules/netdb (Makefile.am): Substitute these variables.
18673
18674 2008-11-10  Eric Blake  <ebb9@byu.net>
18675
18676         standards.texi: include correct file for FDL 1.3
18677         * doc/standards.texi (GNU Free Documentation License): Change
18678         include file to pull in FDL 1.3, not 1.2.
18679
18680         fdl.texi: revert accidental change to license
18681         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18682
18683 2008-11-10  Bruno Haible  <bruno@clisp.org>
18684
18685         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18686         cross-compiling guesses also when the native compile gives no result.
18687
18688 2008-11-10  Bruno Haible  <bruno@clisp.org>
18689
18690         * lib/spawni.c (__spawni): Force variable into the stack.
18691
18692 2008-11-10  Bruno Haible  <bruno@clisp.org>
18693
18694         Add support for Haiku.
18695         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18696         glibc and BeOS, but also on Haiku.
18697         * lib/fpurge.c (fpurge): Likewise.
18698         * lib/freadable.c (freadable): Likewise.
18699         * lib/freadahead.c (freadahead): Likewise.
18700         * lib/freading.c (freading): Likewise.
18701         * lib/freadptr.c (freadptr): Likewise.
18702         * lib/freadseek.c (freadptrinc): Likewise.
18703         * lib/fseeko.c (rpl_fseeko): Likewise.
18704         * lib/fseterr.c (fseterr): Likewise.
18705         * lib/fwritable.c (fwritable): Likewise.
18706         * lib/fwriting.c (fwriting): Likewise.
18707         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18708
18709 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18710
18711         * lib/config.charset: Treat Haiku like BeOS.
18712
18713 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18714
18715         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18716         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18717
18718 2008-11-08  Bruno Haible  <bruno@clisp.org>
18719
18720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18721         AC_CACHE_CHECK.
18722
18723 2008-11-08  Bruno Haible  <bruno@clisp.org>
18724
18725         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18726
18727 2008-11-08  Bruno Haible  <bruno@clisp.org>
18728
18729         * tests/test-select-fd.c: New file.
18730         * tests/test-select-in.sh: New file.
18731         * tests/test-select-out.sh: New file.
18732         * tests/test-select-stdin.c: New file.
18733         * modules/select-tests (Files): Add the new files.
18734         (Depends-on): Add gettimeofday.
18735         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18736         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18737         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18738
18739 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18740             Bruno Haible  <bruno@clisp.org>
18741
18742         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18743
18744 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18745
18746         * build-aux/pmccabe2html: Added support for C++ source files.
18747
18748 2008-11-05  Ben Pfaff  <blp@gnu.org>
18749
18750         Fix lib/close.c build on Windows.
18751         * modules/close (Files): Add lib/w32sock.h.
18752
18753 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18754
18755         Accept Bison's NEWS format.
18756         * build-aux/announce-gen (print_news_deltas): Tweak
18757         $re_prefix.
18758
18759 2008-11-04  Bruno Haible  <bruno@clisp.org>
18760
18761         * modules/random_r (Maintainer): Add glibc.
18762
18763 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18764
18765         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18766         by karl@freefriends.org (Karl Berry).
18767         * doc/alloca.texi: Likewise.
18768         * doc/c-ctype.texi: Likewise.
18769         * doc/c-strcase.texi: Likewise.
18770         * doc/c-strcaseeq.texi: Likewise.
18771         * doc/c-strcasestr.texi: Likewise.
18772         * doc/c-strstr.texi: Likewise.
18773         * doc/c-strtod.texi: Likewise.
18774         * doc/c-strtold.texi: Likewise.
18775         * doc/ctime.texi: Likewise.
18776         * doc/error.texi: Likewise.
18777         * doc/fdl.texi: Likewise.
18778         * doc/gcd.texi: Likewise.
18779         * doc/getdate.texi: Likewise.
18780         * doc/gnulib-intro.texi: Likewise.
18781         * doc/gnulib-tool.texi: Likewise.
18782         * doc/gnulib.texi: Likewise.
18783         * doc/inet_ntoa.texi: Likewise.
18784         * doc/maintain.texi: Likewise.
18785         * doc/make-stds.texi: Likewise.
18786         * doc/quote.texi: Likewise.
18787         * doc/regexprops-generic.texi: Likewise.
18788         * doc/standards.texi: Likewise.
18789         * doc/verify.texi: Likewise.
18790         * doc/visibility.texi: Likewise.
18791         * doc/gnulib.texi (GNU Free Documentation License): Include
18792         fdl-1.3.texi instead of fdl.texi.
18793
18794 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18795
18796         * doc/fdl-1.3.texi: New file, from
18797         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18798         * modules/fdl-1.3: Add.
18799         * MODULES.html.sh: Add fdl-1.3.
18800
18801 2008-11-03  Bruno Haible  <bruno@clisp.org>
18802
18803         Make determination of absolute name of header file work with AIX xlc.
18804         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18805         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18806         preprocessing.
18807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18808         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18809
18810 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18811
18812         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18813         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18814         <ludo@gnu.org>.
18815
18816 2008-11-02  Bruno Haible  <bruno@clisp.org>
18817
18818         Mark 'strpbrk' obsolete.
18819         * modules/strpbrk (Status, Notice): New sections.
18820         * modules/strtok_r (Depends-on): Add strpbrk.
18821
18822 2008-11-02  Bruno Haible  <bruno@clisp.org>
18823
18824         Mark 'strdup' obsolete.
18825         * modules/strdup (Status, Notice): New sections.
18826         * modules/findprog (Depends-on): Add strdup.
18827         * modules/getaddrinfo (Depends-on): Likewise.
18828         * modules/localename (Depends-on): Likewise.
18829         * modules/relocatable-lib (Depends-on): Likewise.
18830         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18831         * modules/relocatable-prog (Depends-on): Likewise.
18832         * modules/trim (Depends-on): Likewise.
18833         * modules/unictype/gen-ctype (Depends-on): Likewise.
18834         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18835
18836 2008-11-02  Bruno Haible  <bruno@clisp.org>
18837
18838         Mark 'strcspn' obsolete.
18839         * modules/strcspn (Status, Notice): New sections.
18840
18841 2008-11-02  Bruno Haible  <bruno@clisp.org>
18842
18843         Mark 'rmdir' obsolete.
18844         * modules/rmdir (Status, Notice): New sections.
18845         * modules/clean-temp (Depends-on): Add rmdir.
18846         * modules/openat (Depends-on): Likewise.
18847
18848 2008-11-02  Bruno Haible  <bruno@clisp.org>
18849
18850         Mark 'raise' obsolete.
18851         * modules/raise (Status, Notice): New sections.
18852         (Include): Specify <signal.h>.
18853         * modules/stdio (Depends-on): Add raise.
18854         * modules/write (Depends-on): Likewise.
18855
18856 2008-11-02  Bruno Haible  <bruno@clisp.org>
18857
18858         Mark 'memset' obsolete.
18859         * modules/memset (Status, Notice): New sections.
18860
18861 2008-11-02  Bruno Haible  <bruno@clisp.org>
18862
18863         Mark 'memmove' obsolete.
18864         * modules/memmove (Status, Notice): New sections.
18865         * modules/argp (Depends-on): Add memmove.
18866         * modules/argz (Depends-on): Likewise.
18867         * modules/canonicalize (Depends-on): Likewise.
18868         * modules/canonicalize-lgpl (Depends-on): Likewise.
18869         * modules/fts (Depends-on): Likewise.
18870         * modules/getcwd (Depends-on): Likewise.
18871         * modules/human (Depends-on): Likewise.
18872         * modules/regex (Depends-on): Likewise.
18873         * modules/striconveh (Depends-on): Likewise.
18874         * modules/trim (Depends-on): Likewise.
18875         * modules/unistr/u8-move (Depends-on): Likewise.
18876         * modules/unistr/u16-move (Depends-on): Likewise.
18877         * modules/unistr/u32-move (Depends-on): Likewise.
18878
18879 2008-11-02  Bruno Haible  <bruno@clisp.org>
18880
18881         Mark 'memcpy' obsolete.
18882         * modules/memcpy (Status, Notice): New sections.
18883
18884 2008-11-02  Bruno Haible  <bruno@clisp.org>
18885
18886         Mark 'memcmp' obsolete.
18887         * modules/memcmp (Status, Notice): New sections.
18888         * modules/argmatch (Depends-on): Add memchr.
18889         * modules/backupfile (Depends-on): Likewise.
18890         * modules/c-strcasestr (Depends-on): Likewise.
18891         * modules/crypto/des (Depends-on): Likewise.
18892         * modules/csharpcomp (Depends-on): Likewise.
18893         * modules/fnmatch (Depends-on): Likewise.
18894         * modules/git-merge-changelog (Depends-on): Likewise.
18895         * modules/isnand (Depends-on): Likewise.
18896         * modules/isnand-nolibm (Depends-on): Likewise.
18897         * modules/isnanf (Depends-on): Likewise.
18898         * modules/isnanf-nolibm (Depends-on): Likewise.
18899         * modules/isnanl (Depends-on): Likewise.
18900         * modules/isnanl-nolibm (Depends-on): Likewise.
18901         * modules/mbchar (Depends-on): Likewise.
18902         * modules/memcoll (Depends-on): Likewise.
18903         * modules/quotearg (Depends-on): Likewise.
18904         * modules/regex (Depends-on): Likewise.
18905         * modules/relocatable-prog (Depends-on): Likewise.
18906         * modules/same (Depends-on): Likewise.
18907         * modules/signbit (Depends-on): Likewise.
18908         * modules/strcasestr-simple (Depends-on): Likewise.
18909         * modules/unictype/gen-ctype (Depends-on): Likewise.
18910         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18911         * modules/uniname/uniname (Depends-on): Likewise.
18912         * modules/unistr/u8-cmp (Depends-on): Likewise.
18913
18914 2008-11-02  Bruno Haible  <bruno@clisp.org>
18915
18916         Mark 'memchr' obsolete.
18917         * modules/memchr (Status, Notice): New sections.
18918         * modules/argp (Depends-on): Add memchr.
18919         * modules/base64 (Depends-on): Likewise.
18920         * modules/c-strcasestr (Depends-on): Likewise.
18921         * modules/chdir-long (Depends-on): Likewise.
18922         * modules/fnmatch (Depends-on): Likewise.
18923         * modules/getsubopt (Depends-on): Likewise.
18924         * modules/git-merge-changelog (Depends-on): Likewise.
18925         * modules/glob (Depends-on): Likewise.
18926         * modules/strcasestr-simple (Depends-on): Likewise.
18927         * modules/strnlen (Depends-on): Likewise.
18928
18929 2008-11-02  Bruno Haible  <bruno@clisp.org>
18930
18931         Mark 'atexit' obsolete.
18932         * modules/atexit (Status, Notice): New sections.
18933         * modules/chdir-long (Depends-on): Add atexit.
18934         * modules/wait-process (Depends-on): Likewise.
18935
18936 2008-11-02  Bruno Haible  <bruno@clisp.org>
18937
18938         * gnulib-tool: New option --with-obsolete.
18939         (func_usage): Document it.
18940         (func_modules_transitive_closure): Drop obsolete dependencies if
18941         incobsolete is not true.
18942         (func_import): Read and save the incobsolete variable to the cache.
18943
18944 2008-11-02  Bruno Haible  <bruno@clisp.org>
18945
18946         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18947         * gnulib-tool: New option --extract-status.
18948         (func_usage): Document it.
18949         (sed_extract_prog): Recognize it.
18950         (func_get_status): New function.
18951
18952 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18953
18954         * modules/sockets (License): Change from LGPL to LGPLv2+.
18955
18956 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18957
18958         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18959
18960 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18961
18962         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18963         Mention times and sys_times.
18964         * modules/sys_times, modules/sys_times-tests: New modules.
18965         * modules/times, modules/times-tests: Likewise
18966         * m4/sys_times_h.m4: New file.
18967         * lib/sys_times.in.h: Likewise
18968         * lib/times.c: Likewise.
18969         * tests/test-sys_times.c: Likewise.
18970         * tests/test-times.c: Likewise.
18971         * doc/posix-headers/sys_times.texi: Update.
18972         * doc/posix-functions/times.texi: Update.
18973
18974 2008-10-28  Jim Meyering  <meyering@redhat.com>
18975
18976         * modules/tempname (Depends-on): Add lstat.
18977
18978         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18979
18980 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18981
18982         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18983         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18984         using idiom used elsewhere in gnulib.
18985
18986 2008-10-27  Jim Meyering  <meyering@redhat.com>
18987
18988         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18989
18990 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18991
18992         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18993         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18994         programs.
18995         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18996
18997 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18998
18999         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19000
19001 2008-10-27  Bruno Haible  <bruno@clisp.org>
19002
19003         * tests/test-lstat.c: Include <stdio.h>.
19004
19005 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19006
19007         * modules/lstat-tests: New module.
19008         * tests/test-lstat.c: New file.
19009
19010 2008-10-26  Jim Meyering  <meyering@redhat.com>
19011
19012         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19013
19014 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19015             Bruno Haible  <bruno@clisp.org>
19016
19017         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19018         * modules/configmake (Include): Add a note that the include must come
19019         after all system headers.
19020         * lib/javaversion.c: Include configmake.h after all other includes.
19021
19022 2008-10-26  Bruno Haible  <bruno@clisp.org>
19023
19024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19025         HAVE_STRUCT_RANDOM_DATA to 1.
19026         (gl_STDLIB_H): Simplify.
19027
19028 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19029
19030         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19031         substitute HAVE_STRUCT_RANDOM_DATA.
19032         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19033         random_data.
19034         * modules/stdlib (Makefile.am): Substitute
19035         HAVE_STRUCT_RANDOM_DATA.
19036
19037 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19038
19039         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19040         * doc/gnulib-intro.texi (Copyright): Likewise.
19041
19042 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19043
19044         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19045         findings.
19046
19047 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19048             Bruno Haible  <bruno@clisp.org>
19049
19050         * lib/unistd.in.h: Include <winsock2.h>.
19051         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19052         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19053         Provide dummy declarations.
19054         (gethostname): Override.
19055         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19056         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19057         gl_PREREQ_SYS_H_WINSOCK2.
19058         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19059         * doc/posix-functions/gethostname.texi: More details.
19060
19061 2008-10-25  Bruno Haible  <bruno@clisp.org>
19062
19063         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19064         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19065         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19066
19067         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19068         here ...
19069         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19070         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19071         gl_UNISTD_H_DEFAULTS.
19072
19073 2008-10-25  Eric Blake  <ebb9@byu.net>
19074
19075         signbit: avoid spurious compiler failure
19076         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19077         declarations inside function.
19078
19079 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19080             Bruno Haible  <bruno@clisp.org>
19081
19082         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19083         * modules/random_r (Depends-on): Add stdint.
19084
19085 2008-10-24  Bruno Haible  <bruno@clisp.org>
19086
19087         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19088         Eggert.
19089         * modules/strerror (License): Likewise.
19090
19091 2008-10-24  Jim Meyering  <meyering@redhat.com>
19092
19093         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19094         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19095
19096 2008-10-24  Eric Blake  <ebb9@byu.net>
19097
19098         getgroups: fix compilation when getgroups is available
19099         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19100         but with <config.h> override of getgroups disabled.
19101
19102 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19103
19104         * doc/gnulib.texi (Header files): Add note about C++ problems.
19105         Explained by Bruno Haible <bruno@clisp.org>.
19106
19107 2008-10-23  Bruno Haible  <bruno@clisp.org>
19108
19109         Define a dummy SA_NODEFER macro on Interix.
19110         * lib/signal.in.h (SA_NODEFER): Define fallback.
19111         Reported by Aleksey Cheusov <cheusov@tut.by> via
19112         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19113
19114 2008-10-23  Bruno Haible  <bruno@clisp.org>
19115
19116         * modules/freadahead (License): Change to LGPLv2+.
19117         Suggested by Simon Josefsson.
19118
19119 2008-10-23  Jim Meyering  <meyering@redhat.com>
19120
19121         random_r: new module
19122         * modules/random_r: New file.
19123         * m4/random_r.m4: New file.
19124         * lib/random_r.c: New file, from glibc.
19125         * modules/random_r-tests: New file.
19126         * tests/test-random_r.c: New file.
19127         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19128          Declare.
19129         (RAND_MAX): Define.
19130         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19131         * modules/stdlib: Substitute them, too.
19132         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19133         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19134         * doc/glibc-functions/random_r.texi: Likewise.
19135         * doc/glibc-functions/setstate_r.texi: Likewise.
19136         * doc/glibc-functions/srandom_r.texi: Likewise.
19137         * config/srclist.txt: Mention it.
19138
19139 2008-10-23  David Lutterkort  <lutter@redhat.com>
19140
19141         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19142         link requirement
19143
19144 2008-10-23  Jim Meyering  <meyering@redhat.com>
19145
19146         selinux-h: mark parameters of stub functions as intentionally unused
19147         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19148         * lib/se-context.in.h: Likewise.
19149
19150 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19151
19152         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19153
19154 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19155
19156         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19157
19158 2008-10-22  Eric Blake  <ebb9@byu.net>
19159
19160         glthread/thread: avoid compiler warning
19161         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19162         Add unreachable abort to silence compiler.
19163
19164 2008-10-22  Eric Blake  <ebb9@byu.net>
19165
19166         netdb: also supply struct addrinfo for cygwin 1.5.x
19167         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19168         older cygwin.
19169         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19170         cygwin.
19171         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19172
19173 2008-10-22  Bruno Haible  <bruno@clisp.org>
19174
19175         * users.txt: Update entry about pspp.
19176
19177 2008-10-21  Bruno Haible  <bruno@clisp.org>
19178
19179         Simplification.
19180         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19181         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19182
19183         Simplification.
19184         * lib/ioctl.c (ioctl): Don't undefine.
19185         * lib/socket.c (socket): Don't undefine.
19186
19187         Remove unused module indicator macros.
19188         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19189         GNULIB_$1 as a C macro.
19190
19191         * doc/posix-functions/close.texi: Undo last change.
19192         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19193         Windows platforms.
19194
19195 2008-10-21  Bruno Haible  <bruno@clisp.org>
19196
19197         Add gethostname() declaration to <unistd.h>.
19198         * lib/unistd.in.h (gethostname): New declaration.
19199         * lib/gethostname.c: Include <unistd.h>.
19200         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19201         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19203         and HAVE_GETHOSTNAME.
19204         * modules/gethostname (Depends-on): Add unistd.
19205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19206         (Include): Specify <unistd.h>.
19207         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19208         HAVE_GETHOSTNAME.
19209         * tests/test-gethostname.c: Include <unistd.h> first.
19210
19211 2008-10-21  Bruno Haible  <bruno@clisp.org>
19212
19213         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19214         * modules/select-tests (Depends-on): Likewise.
19215         Reported by Simon Josefsson.
19216
19217 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19218
19219         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19220         * lib/accept.c: New file, based on winsock.c.
19221         * lib/bind.c: New file, based on winsock.c.
19222         * lib/connect.c: New file, based on winsock.c.
19223         * lib/getpeername.c: New file, based on winsock.c.
19224         * lib/getsockname.c: New file, based on winsock.c.
19225         * lib/getsockopt.c: New file, based on winsock.c.
19226         * lib/ioctl.c: New file, based on winsock.c.
19227         * lib/listen.c: New file, based on winsock.c.
19228         * lib/recv.c: New file, based on winsock.c.
19229         * lib/recvfrom.c: New file, based on winsock.c.
19230         * lib/send.c: New file, based on winsock.c.
19231         * lib/sendto.c: New file, based on winsock.c.
19232         * lib/setsockopt.c: New file, based on winsock.c.
19233         * lib/shutdown.c: New file, based on winsock.c.
19234         * lib/socket.c: New file, based on winsock.c.
19235         * lib/w32sock.h: New file, based on winsock.c.
19236         * lib/winsock.c: Remove file.
19237         * modules/accept: Likewise.
19238         * modules/bind: Likewise.
19239         * modules/connect: Likewise.
19240         * modules/getpeername: Likewise.
19241         * modules/getsockname: Likewise.
19242         * modules/getsockopt: Likewise.
19243         * modules/ioctl: Likewise.
19244         * modules/listen: Likewise.
19245         * modules/recv: Likewise.
19246         * modules/recvfrom: Likewise.
19247         * modules/send: Likewise.
19248         * modules/sendto: Likewise.
19249         * modules/setsockopt: Likewise.
19250         * modules/shutdown: Likewise.
19251         * modules/socket: Use socket.c instead of winsock.c.
19252         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19253         * doc/posix-functions/accept.texi: Doc fix.
19254         * doc/posix-functions/bind.texi: Doc fix.
19255         * doc/posix-functions/close.texi: Doc fix.
19256         * doc/posix-functions/connect.texi: Doc fix.
19257         * doc/posix-functions/getpeername.texi: Doc fix.
19258         * doc/posix-functions/getsockname.texi: Doc fix.
19259         * doc/posix-functions/getsockopt.texi: Doc fix.
19260         * doc/posix-functions/ioctl.texi: Doc fix.
19261         * doc/posix-functions/listen.texi: Doc fix.
19262         * doc/posix-functions/recv.texi: Doc fix.
19263         * doc/posix-functions/recvfrom.texi: Doc fix.
19264         * doc/posix-functions/send.texi: Doc fix.
19265         * doc/posix-functions/sendto.texi: Doc fix.
19266         * doc/posix-functions/setsockopt.texi: Doc fix.
19267         * doc/posix-functions/shutdown.texi: Doc fix.
19268         * doc/posix-functions/socket.texi: Doc fix.
19269
19270 2008-10-20  Bruno Haible  <bruno@clisp.org>
19271
19272         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19273         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19274         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19275         as an alias for SIGABRT.
19276         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19277         (sigaction): Map it to SIGABRT.
19278         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19279
19280 2008-10-20  Bruno Haible  <bruno@clisp.org>
19281
19282         * lib/fts.c: Don't include lstat.h.
19283         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19284
19285         Move the lstat() declaration to <sys/stat.h>.
19286         * lib/lstat.h: Remove file.
19287         * lib/sys_stat.in.h: Add special invocation convention.
19288         (lstat): New declaration.
19289         * lib/lstat.c (orig_lstat): New function.
19290         (rpl_lstat): Use orig_lstat instead of lstat.
19291         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19292         AC_C_INLINE. Set REPLACE_LSTAT.
19293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19294         and REPLACE_LSTAT.
19295         * modules/lstat (Files): Remove lib/lstat.h.
19296         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19297         (Include): Specify <sys/stat.h> instead of lstat.h.
19298         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19299         REPLACE_LSTAT.
19300         * NEWS: Mention the change.
19301
19302 2008-10-20  Bruno Haible  <bruno@clisp.org>
19303
19304         * modules/posix_spawn-tests: New file.
19305         * tests/test-posix_spawn3.c: New file.
19306
19307 2008-10-20  Bruno Haible  <bruno@clisp.org>
19308
19309         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19310         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19311         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19312         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19313         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19314
19315 2008-10-20  Bruno Haible  <bruno@clisp.org>
19316
19317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19318         of posix_spawn on AIX 5.3.
19319
19320 2008-10-20  Bruno Haible  <bruno@clisp.org>
19321
19322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19323
19324 2008-10-20  Bruno Haible  <bruno@clisp.org>
19325
19326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19327         of AC_LANG_PROGRAM.
19328
19329 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19330
19331         * lib/netdb.in.h: Don't define GNU specific constants until they
19332         are supported or needed.  Reported by Bruno Haible
19333         <bruno@clisp.org>.
19334
19335 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19336
19337         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19338
19339 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19340
19341         * lib/getaddrinfo.h: Remove file.
19342         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19343         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19344         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19345         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19346         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19347         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19348         * tests/test-getaddrinfo.c: Likewise.
19349         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19350         * NEWS: Mention change.
19351
19352 2008-10-19  Bruno Haible  <bruno@clisp.org>
19353
19354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19355
19356 2008-10-19  Bruno Haible  <bruno@clisp.org>
19357
19358         * lib/wait-process.c: Include simply <sys/wait.h>.
19359         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19360         WIFSTOPPED): Remove fallback definitions.
19361         * modules/wait-process (Depends-on): Add sys_wait.
19362
19363         New module 'sys_wait'.
19364         * modules/sys_wait: New file.
19365         * lib/sys_wait.in.h: New file, partially copied from
19366         lib/wait-process.c.
19367         * m4/sys_wait_h.m4: New file.
19368         * doc/posix-headers/sys_wait.texi: Mention the new module.
19369
19370 2008-10-19  Bruno Haible  <bruno@clisp.org>
19371
19372         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19373
19374 2008-10-19  Bruno Haible  <bruno@clisp.org>
19375
19376         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19377         * lib/wait-process.c (WAIT_T): Remove type.
19378         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19379         (wait_subprocess): Update.
19380
19381 2008-10-19  Bruno Haible  <bruno@clisp.org>
19382
19383         New module 'atoll'.
19384         * modules/atoll: New file.
19385         * lib/stdlib.in.h (atoll): New declaration.
19386         * lib/atoll.c: New file, from glibc with modifications.
19387         * m4/atoll.m4: New file.
19388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19389         HAVE_ATOLL.
19390         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19391         * doc/posix-functions/atoll.texi: Mention the new module.
19392
19393 2008-10-19  Bruno Haible  <bruno@clisp.org>
19394
19395         Add strtoull() declaration to <stdlib.h>.
19396         * lib/stdlib.in.h (strtoull): New declaration.
19397         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19398         Set HAVE_STRTOULL.
19399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19400         HAVE_STRTOULL.
19401         * modules/strtoull (Depends-on): Add stdlib.
19402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19403         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19404         HAVE_STRTOULL.
19405
19406 2008-10-19  Bruno Haible  <bruno@clisp.org>
19407
19408         Add strtoll() declaration to <stdlib.h>.
19409         * lib/stdlib.in.h (strtoll): New declaration.
19410         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19411         Set HAVE_STRTOLL.
19412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19413         HAVE_STRTOLL.
19414         * modules/strtoll (Depends-on): Add stdlib.
19415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19416         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19417
19418 2008-10-19  Bruno Haible  <bruno@clisp.org>
19419
19420         * modules/bcopy (Depends-on): Add strings.
19421         (Include): Specify <strings.h>.
19422
19423 2008-10-19  Bruno Haible  <bruno@clisp.org>
19424
19425         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19426
19427 2008-10-19  Bruno Haible  <bruno@clisp.org>
19428
19429         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19430         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19431         mingw.
19432
19433 2008-10-19  Bruno Haible  <bruno@clisp.org>
19434
19435         * lib/atanl.c: Don't include isnanl.h.
19436         * lib/cosl.c: Likewise.
19437         * lib/ldexpl.c: Likewise.
19438         * lib/logl.c: Likewise.
19439         * lib/sinl.c: Likewise.
19440         * lib/sqrtl.c: Likewise.
19441         * lib/tanl.c: Likewise.
19442
19443         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19444         * lib/isnanf.h: Remove file.
19445         * lib/isnand.h: Remove file.
19446         * lib/isnanl.h: Remove file.
19447         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19448         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19449         macros.
19450         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19451         HAVE_ISNANF, don't define it as a C macro.
19452         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19453         HAVE_ISNAND, don't define it as a C macro.
19454         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19455         HAVE_ISNANL, don't define it as a C macro.
19456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19457         HAVE_ISNAN[FDL].
19458         * modules/isnanf (Files): Remove lib/isnanf.h.
19459         (Depends-on): Add math.
19460         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19461         (Include): Specify <math.h> instead of isnanf.h.
19462         * modules/isnand (Files): Remove lib/isnand.h.
19463         (Depends-on): Add math.
19464         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19465         (Include): Specify <math.h> instead of isnand.h.
19466         * modules/isnanl (Files): Remove lib/isnanl.h.
19467         (Depends-on): Add math.
19468         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19469         (Include): Specify <math.h> instead of isnanl.h.
19470         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19471         HAVE_ISNAN[FDL].
19472         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19473         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19474         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19475         * NEWS: Mention the change.
19476
19477 2008-10-18  Bruno Haible  <bruno@clisp.org>
19478
19479         Add getusershell(), setusershell(), endusershell() declarations to
19480         <unistd.h>.
19481         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19482         declarations.
19483         * lib/getusershell.c: Include unistd.h.
19484         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19485         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19486         HAVE_GETUSERSHELL.
19487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19488         and HAVE_GETUSERSHELL.
19489         * modules/getusershell (Depends-on): Add unistd, extensions.
19490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19491         (Include): Specify <unistd.h>.
19492         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19493         HAVE_GETUSERSHELL.
19494
19495 2008-10-18  Bruno Haible  <bruno@clisp.org>
19496
19497         Add a getloadavg() declaration to <stdlib.h>.
19498         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19499         getloadavg declaration.
19500         (getloadavg): New declaration.
19501         * lib/getloadavg.c: Include <stdlib.h> first.
19502         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19503         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19504         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19506         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19507         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19509         (Include): Specify <stdlib.h>.
19510         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19511         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19512
19513 2008-10-18  Bruno Haible  <bruno@clisp.org>
19514
19515         * lib/dirchownmod.c: Don't include lchmod.h.
19516
19517         Move the lchmod() declaration to <sys/stat.h>.
19518         * lib/lchmod.h: Remove file.
19519         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19520         (lchmod): New declaration, moved here from lib/lchown.h.
19521         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19522         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19524         and HAVE_LCHMOD.
19525         * modules/lchmod (Files): Remove lib/lchmod.h.
19526         (Depends-on): Add sys_stat, extensions.
19527         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19528         (Include): Specify <sys/stat.h> instead of lchmod.h.
19529         * modules/sys_stat (Depends-on): Add link-warning.
19530         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19531         definition of GL_LINK_WARNING.
19532         * NEWS: Mention the change.
19533
19534 2008-10-18  Bruno Haible  <bruno@clisp.org>
19535
19536         * lib/fchdir.c: Don't include dirfd.h.
19537         * lib/fts.c: Likewise.
19538         * lib/getcwd.c: Likewise.
19539         * lib/glob.c: Likewise.
19540
19541         Move the dirfd() declaration to <dirent.h>.
19542         * lib/dirfd.h: Remove file.
19543         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19544         (dirfd): New declaration.
19545         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19546         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19547         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19548         HAVE_DECL_DIRFD.
19549         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19550         HAVE_DECL_DIRFD.
19551         * modules/dirfd (Files): Remove lib/dirfd.h.
19552         (Depends-on): Add dirent, extensions.
19553         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19554         (Include): Specify <dirent.h> instead of dirfd.h.
19555         * modules/dirent (Depends-on): Add link-warning.
19556         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19557         definition of GL_LINK_WARNING.
19558         * NEWS: Mention the change.
19559
19560 2008-10-18  Bruno Haible  <bruno@clisp.org>
19561
19562         Move the euidaccess() declaration to <unistd.h>.
19563         * lib/euidaccess.h: Remove file.
19564         * lib/unistd.in.h (euidaccess): New declaration.
19565         * lib/euidaccess.c: Don't include euidaccess.h.
19566         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19567         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19569         and HAVE_EUIDACCESS.
19570         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19571         (Depends-on): Add unistd.
19572         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19573         (Include): Specify <unistd.h> instead of euidaccess.h.
19574         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19575         HAVE_EUIDACCESS.
19576         * NEWS: Mention the change.
19577
19578 2008-10-18  Bruno Haible  <bruno@clisp.org>
19579
19580         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19581
19582         Move the getdomainname() declaration to <unistd.h>.
19583         * lib/getdomainname.h: Remove file.
19584         * lib/unistd.in.h (getdomainname): New declaration.
19585         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19586         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19587         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19588         HAVE_GETDOMAINNAME.
19589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19590         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19591         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19592         (Depends-on): Add unistd, extensions.
19593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19594         (Includes): Specify <unistd.h> instead of getdomainname.h.
19595         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19596         HAVE_GETDOMAINNAME.
19597         * NEWS: Mention the change.
19598
19599 2008-10-18  Bruno Haible  <bruno@clisp.org>
19600
19601         * modules/dirent: New file.
19602         * m4/dirent_h.m4: New file.
19603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19604         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19605         * modules/fchdir (Files): Remove lib/dirent.in.h.
19606         (Depends-on): Add dirent.
19607         (Makefile.am): Move rules to modules/dirent.
19608         * doc/posix-headers/dirent.texi: Mention the new module.
19609
19610 2008-10-18  Bruno Haible  <bruno@clisp.org>
19611
19612         Avoid -Wunused-parameter warnings in public gnulib header files.
19613         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19614         macro.
19615         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19616
19617 2008-10-18  Bruno Haible  <bruno@clisp.org>
19618
19619         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19620         * doc/glibc-functions/error.texi: Mention the module 'error'.
19621         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19622         * doc/glibc-functions/getdomainname.texi: Mention the module
19623         'getdomainname'.
19624         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19625         * doc/glibc-functions/getpagesize.texi: Mention the module
19626         'getpagesize'.
19627         * doc/glibc-functions/getusershell.texi: Mention the module
19628         'getusershell'.
19629         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19630         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19631         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19632         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19633         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19634         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19635         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19636         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19637         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19638         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19639         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19640         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19641         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19642         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19643
19644 2008-10-17  Bruno Haible  <bruno@clisp.org>
19645
19646         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19647         HP-UX and IRIX, use -0.0L.
19648         * tests/test-ceill.c (minus_zero): Likewise.
19649         * tests/test-floorl.c (minus_zero): Likewise.
19650         * tests/test-frexpl.c (minus_zero): Likewise.
19651         * tests/test-isnan.c (minus_zerol): Likewise.
19652         * tests/test-isnanl.h (minus_zero): Likewise.
19653         * tests/test-ldexpl.c (minus_zero): Likewise.
19654         * tests/test-roundl.c (minus_zero): Likewise.
19655         * tests/test-signbit.c (minus_zerol): Likewise.
19656         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19657         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19658         * tests/test-truncl.c (minus_zero): Likewise.
19659         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19660         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19661         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19662         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19663
19664 2008-10-17  Bruno Haible  <bruno@clisp.org>
19665
19666         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19667         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19668         that it gets activated only for gcc >= 3.0.
19669         * lib/dirent.in.h: Likewise.
19670         * lib/errno.in.h: Likewise.
19671         * lib/fcntl.in.h: Likewise.
19672         * lib/float.in.h: Likewise.
19673         * lib/iconv.in.h: Likewise.
19674         * lib/inttypes.in.h: Likewise.
19675         * lib/locale.in.h: Likewise.
19676         * lib/math.in.h: Likewise.
19677         * lib/netdb.in.h: Likewise.
19678         * lib/netinet_in.in.h: Likewise.
19679         * lib/search.in.h: Likewise.
19680         * lib/signal.in.h: Likewise.
19681         * lib/spawn.in.h: Likewise.
19682         * lib/stdarg.in.h: Likewise.
19683         * lib/stdint.in.h: Likewise.
19684         * lib/stdio.in.h: Likewise.
19685         * lib/stdlib.in.h: Likewise.
19686         * lib/string.in.h: Likewise.
19687         * lib/strings.in.h: Likewise.
19688         * lib/sys_file.in.h: Likewise.
19689         * lib/sys_ioctl.in.h: Likewise.
19690         * lib/sys_select.in.h: Likewise.
19691         * lib/sys_socket.in.h: Likewise.
19692         * lib/sys_stat.in.h: Likewise.
19693         * lib/sys_time.in.h: Likewise.
19694         * lib/sysexits.in.h: Likewise.
19695         * lib/time.in.h: Likewise.
19696         * lib/unistd.in.h: Likewise.
19697         * lib/wchar.in.h: Likewise.
19698         * lib/wctype.in.h: Likewise.
19699         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19700
19701 2008-10-17  Jim Meyering  <meyering@redhat.com>
19702
19703         ignore-value: don't depend on inline module
19704         * modules/ignore-value (Depends-on): Remove 'inline'.
19705         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19706         Suggestion from Bruno Haible.
19707
19708 2008-10-17  Bruno Haible  <bruno@clisp.org>
19709
19710         New implementation of condition variables for Win32.
19711         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19712         (gl_linked_waitqueue_t): New type.
19713         (gl_cond_t): Use it.
19714         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19715         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19716         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19717         (glthread_cond_init_func, glthread_cond_wait_func,
19718         glthread_cond_timedwait_func, glthread_cond_signal_func,
19719         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19720         Reimplemented on the basis of gl_linked_waitqueue_t.
19721         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19722         gl_waitqueue_t.
19723         (gl_rwlock_t): Update.
19724         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19725
19726 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19727
19728         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19729         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19730
19731 2008-10-17  Jim Meyering  <meyering@redhat.com>
19732
19733         ignore-value: new module
19734         * modules/ignore-value: New file.
19735         * lib/ignore-value.h: New file.
19736         * MODULES.html.sh (Compiler warning management): New section,
19737         just for this module.  More to come.
19738
19739 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19740
19741         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19742         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19743         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19744
19745 2008-10-16  Jim Meyering  <meyering@redhat.com>
19746
19747         openat-die.c: avoid 'no previous prototype' warning
19748         * lib/openat-die.c: Include "openat.h".
19749         Reported by Reuben Thomas <rrt@sc3d.org>.
19750
19751 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19752
19753         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19754         * lib/netdb.in.h: Fix typo.
19755         Reported by Bruno Haible  <bruno@clisp.org>
19756
19757         * lib/netdb.in.h: Include sys/socket.h for platforms without
19758         netdb.h, to get structures like hostent on MinGW.
19759         * modules/netdb (Depends-on): Add sys_socket.
19760
19761 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19762
19763         * modules/netdb, modules/netdb-tests: New file.
19764         * m4/netdb_h.m4: New file.
19765         * lib/netdb.in.h: Add, currently just an empty file pending
19766         definitions.
19767         * tests/test-netdb.c: New file.
19768         * doc/posix-headers/netdb.texi: Mention that we replace it if
19769         needed.
19770         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19771         netdb.
19772
19773 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19774
19775         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19776         with code.
19777
19778 2008-10-13  Bruno Haible  <bruno@clisp.org>
19779
19780         * lib/glthread/cond.c (glthread_cond_wait_func,
19781         glthread_cond_timedwait_func): Add a comment.
19782
19783 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19784
19785         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19786         * tests/test-select.c: Likewise,
19787
19788 2008-10-13  Bruno Haible  <bruno@clisp.org>
19789
19790         * lib/glthread/cond.c (glthread_cond_wait_func,
19791         glthread_cond_timedwait_func): Fix variable name.
19792         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19793
19794 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19795
19796         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19798         struct sockaddr.sa_len.
19799         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19800
19801 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19802
19803         * build-aux/pmccabe2html: Add css and css_url parameters.
19804
19805 2008-10-12  Bruno Haible  <bruno@clisp.org>
19806
19807         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19808         calling aclx_get.
19809         Reported by Rainer Tammer <tammer@tammer.net>.
19810
19811 2008-10-12  Bruno Haible  <bruno@clisp.org>
19812
19813         Use msvcrt aware primitives for creation/termination of Win32 threads.
19814         * lib/glthread/thread.c: Include <process.h>.
19815         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19816         (wrapper_func): Update signature.
19817         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19818
19819 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19820             Bruno Haible  <bruno@clisp.org>
19821
19822         Provide a Win32 implementation of the 'cond' module.
19823         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19824         * lib/glthread/cond.c (glthread_cond_init_func,
19825         glthread_cond_wait_func, glthread_cond_timedwait_func,
19826         glthread_cond_signal_func, glthread_cond_broadcast_func,
19827         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19828         * modules/cond (Dependencies): Add gettimeofday.
19829
19830 2008-10-11  Bruno Haible  <bruno@clisp.org>
19831
19832         Make sleep work on older versions of mingw.
19833         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19834         only whether it exists.
19835         * doc/posix-functions/sleep.texi: Mention the problem with older
19836         versions of mingw.
19837
19838 2008-10-11  Bruno Haible  <bruno@clisp.org>
19839
19840         New module 'shutdown'.
19841         * modules/shutdown: New file.
19842         * lib/sys_socket.in.h (shutdown): New declaration.
19843         * lib/winsock.c (shutdown): New function.
19844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19845         GNULIB_SHUTDOWN.
19846         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19847         * doc/posix-functions/shutdown.texi: Document the new module.
19848
19849 2008-10-11  Jim Meyering  <meyering@redhat.com>
19850
19851         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19852
19853 2008-10-11  Bruno Haible  <bruno@clisp.org>
19854
19855         New module 'fclose'.
19856         * modules/fclose: New file.
19857         * lib/stdio.in.h (fclose): New declaration.
19858         * lib/fclose.c: New file.
19859         * m4/fclose.m4: New file.
19860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19861         REPLACE_FCLOSE.
19862         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19863         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19864         REPLACE_FCLOSE.
19865         * modules/close (Depends-on): fclose.
19866         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19867
19868 2008-10-11  Bruno Haible  <bruno@clisp.org>
19869
19870         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19871         set errno and don't call _close.
19872
19873 2008-10-10  Bruno Haible  <bruno@clisp.org>
19874
19875         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19876         ACL, not afterwards. Fixes test failure on Cygwin.
19877
19878 2008-10-09  Ben Pfaff  <blp@gnu.org>
19879
19880         * build-aux/announce-gen: Fix gnulib version related part of usage
19881         message.  Die with a useful error message if no tarballs are
19882         found.
19883
19884 2008-10-10  Jim Meyering  <meyering@redhat.com>
19885
19886         bootstrap: use git's --depth=N option only if it's supported
19887         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19888         recognize the --depth option.  Reported by Pádraig Brady.
19889
19890 2008-10-09  Bruno Haible  <bruno@clisp.org>
19891
19892         New module 'ioctl'.
19893         * modules/ioctl: New file.
19894         * lib/sys_socket.in.h (ioctl): Remove declaration.
19895         * lib/winsock.c: Include <sys/ioctl.h>.
19896         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19897         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19898         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19899         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19900         * doc/posix-functions/ioctl.texi: Mention the new module.
19901
19902 2008-10-09  Bruno Haible  <bruno@clisp.org>
19903
19904         New module 'sys_ioctl'.
19905         * lib/sys_ioctl.in.h: New file.
19906         * m4/sys_ioctl_h.m4: New file.
19907         * modules/sys_ioctl: New file.
19908         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19909
19910 2008-10-09  Bruno Haible  <bruno@clisp.org>
19911
19912         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19913         * lib/winsock.c: Include <stdarg.h>.
19914         (rpl_ioctl): Change to second argument 'int' and then varargs.
19915
19916 2008-10-09  Bruno Haible  <bruno@clisp.org>
19917
19918         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19919         when the sys_socket module is present and the system has <winsock2.h>.
19920
19921 2008-10-09  Bruno Haible  <bruno@clisp.org>
19922
19923         * doc/posix-functions/close.texi: Mention module 'close' instead of
19924         module 'sys_socket'.
19925
19926 2008-10-09  Bruno Haible  <bruno@clisp.org>
19927
19928         * doc/glibc-headers/sys_ioctl.texi: New file.
19929         * doc/gnulib.texi: Include it.
19930
19931 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19932             Bruno Haible  <bruno@clisp.org>
19933
19934         Combine the two replacements of 'close'.
19935         * lib/sys_socket.in.h (close): Define to a reminder to include
19936         <unistd.h>.
19937         (_gl_close_fd_maybe_socket): New declaration.
19938         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19939         * lib/winsock.c (close): Remove undefinition.
19940         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19941         needed for the gnulib module 'close'.
19942         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19943         define to an error symbol or to a warning, if suitable.
19944         * lib/close.c: Include <sys/socket.h>.
19945         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19946         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19947         UNISTD_H_HAVE_WINSOCK2_H.
19948         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19950         UNISTD_H_HAVE_WINSOCK2_H.
19951         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19952         (configure.ac): Set a module indicator.
19953         (Makefile.am): Substitute GNULIB_CLOSE.
19954         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19955         * modules/poll-tests (Depends-on): Add close.
19956         * modules/select-tests (Depends-on): Likewise.
19957
19958 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19959             Bruno Haible  <bruno@clisp.org>
19960
19961         New module 'close'.
19962         * modules/close: New file.
19963         * lib/unistd.in.h (close): Move declaration out of the
19964         FCHDIR_REPLACEMENT scope.
19965         (_gl_unregister_fd): New declaration.
19966         * lib/close.c: New file.
19967         * lib/fchdir.c (rpl_close): Remove function.
19968         * m4/close.m4: New file.
19969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19970         close.
19971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19972         REPLACE_CLOSE.
19973         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19974         REPLACE_CLOSE.
19975         * modules/fchdir (Depends-on): Add close.
19976
19977 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19978             Bruno Haible  <bruno@clisp.org>
19979
19980         * lib/fcntl.in.h (open): Simplify conditionals.
19981         (_gl_register_fd): New declaration.
19982         * lib/fchdir.c (rpl_open): Remove function.
19983         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19984         also.
19985         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19987         open.
19988
19989 2008-10-09  Jim Meyering  <meyering@redhat.com>
19990
19991         GNUmakefile: use the more name-space-friendly "_version"
19992         * top/GNUmakefile (_dummy): Update.
19993         (_version): Rename from "version".
19994
19995 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19996             Bruno Haible  <bruno@clisp.org>
19997
19998         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19999         rpl_close.
20000         (_gl_register_fd): New function, extracted from rpl_open.
20001         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20002         (rpl_open, rpl_opendir): Use _gl_register_fd.
20003
20004 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20005
20006         Fix organization of 'open' replacement.
20007         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20008         (gl_FUNC_OPEN): Use it.
20009         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20010
20011 2008-10-08  Bruno Haible  <bruno@clisp.org>
20012
20013         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20014
20015 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20016
20017         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20018         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20019         listen).
20020
20021 2008-10-08  Eric Blake  <ebb9@byu.net>
20022
20023         GNUmakefile: add 'make version' target
20024         * top/GNUmakefile (_curr-ver): Split version update rules...
20025         (version): ...into a target.
20026
20027 2008-10-07  Bruno Haible  <bruno@clisp.org>
20028
20029         Use a more portable replacement expression for -0.0L.
20030         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20031         instead of -0.0L. Fix m4 quotation.
20032
20033         * tests/test-signbit.c: Include <float.h>.
20034         (minus_zero): New variable.
20035         (test_signbitl): Use minus_zero instead of -zero.
20036         * modules/signbit-tests (Depends-on): Add float.
20037
20038         * tests/test-ceill.c: Include <float.h>.
20039         (zero): Remove variable.
20040         (minus_zero): New variable.
20041         (main): Use minus_zero instead of -zero.
20042         * modules/ceill-tests (Depends-on): Add float.
20043
20044         * tests/test-floorl.c: Include <float.h>.
20045         (zero): Remove variable.
20046         (minus_zero): New variable.
20047         (main): Use minus_zero instead of -zero.
20048         * modules/floorl-tests (Depends-on): Add float.
20049
20050         * tests/test-roundl.c: Include <float.h>.
20051         (zero): Remove variable.
20052         (minus_zero): New variable.
20053         (main): Use minus_zero instead of -zero.
20054         * modules/roundl-tests (Depends-on): Add float.
20055
20056         * tests/test-truncl.c: Include <float.h>.
20057         (zero): Remove variable.
20058         (minus_zero): New variable.
20059         (main): Use minus_zero instead of -zero.
20060         * modules/truncl-tests (Depends-on): Add float.
20061
20062         * tests/test-frexpl.c (zero): Remove variable.
20063         (minus_zero): New variable.
20064         (main): Use minus_zero instead of -zero.
20065         * modules/frexpl-tests (Depends-on): Add float.
20066
20067         * tests/test-isnan.c (zerol): Remove variable.
20068         (minus_zerol): New variable.
20069         (test_long_double): Use minus_zerol instead of -zerol.
20070         * modules/isnan-tests (Depends-on): Add float.
20071
20072         * tests/test-isnanl.h (zero): Remove variable.
20073         (minus_zero): New variable.
20074         (main): Use minus_zero instead of -zero.
20075         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20076         * modules/isnanl-tests (Depends-on): Add float.
20077
20078         * tests/test-ldexpl.c (zero): Remove variable.
20079         (minus_zero): New variable.
20080         (main): Use minus_zero instead of -zero.
20081         * modules/ldexpl-tests (Depends-on): Add float.
20082
20083         * tests/test-snprintf-posix.h (zerol): Remove variable.
20084         (minus_zerol): New variable.
20085         (test_function): Use minus_zerol instead of -zerol.
20086         * modules/snprintf-posix-tests (Depends-on): Add float.
20087         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20088
20089         * tests/test-sprintf-posix.h (zerol): Remove variable.
20090         (minus_zerol): New variable.
20091         (test_function): Use minus_zerol instead of -zerol.
20092         * modules/sprintf-posix-tests (Depends-on): Add float.
20093         * modules/vsprintf-posix-tests (Depends-on): Add float.
20094
20095         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20096         (minus_zerol): New variable.
20097         (test_function): Use minus_zerol instead of -zerol.
20098         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20099
20100         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20101         (minus_zerol): New variable.
20102         (test_function): Use minus_zerol instead of -zerol.
20103         * modules/vasprintf-posix-tests (Depends-on): Add float.
20104
20105 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20106
20107         * MODULES.html.sh (Support for building documentation): Mention
20108         pmccabe2html.  Sort entries.
20109
20110         Add pmccabe2html module, from gnupdf.
20111         * build-aux/pmccabe.css: New file.
20112         * build-aux/pmccabe2html: New file.
20113         * m4/pmccabe2html.m4: New file.
20114         * modules/pmccabe2html: New file.
20115
20116 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20117
20118         flock: new module
20119         * MODULES.html.sh: Add to list of modules.
20120         * lib/flock.c: flock implementation for Windows and Unix systems
20121         which have fcntl.
20122         * doc/glibc-functions/flock.texi: Update documentation.
20123         * lib/sys_file.in.h: <sys/file.h> header file.
20124         * m4/flock.m4: M4 macros.
20125         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20126         * modules/flock: flock module.
20127         * modules/flock-tests: flock tests module.
20128         * modules/sys_file: sys/file.h module.
20129         * tests/test-flock.c: test suite for flock.
20130
20131 2008-10-06  Jim Meyering  <meyering@redhat.com>
20132
20133         bootstrap: check for LT_INIT more portably still ;-)
20134         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20135         Spotted by Bruno Haible.
20136
20137 2008-10-06  Eric Blake  <ebb9@byu.net>
20138
20139         test-signbit: avoid tripping Irix cc bug on -0.0L
20140         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20141         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20142         entire testsuite consistent and avoids an Irix 6.2 bug.
20143
20144 2008-10-05  Bruno Haible  <bruno@clisp.org>
20145             Jim Meyering  <jim@meyering.net>
20146
20147         Add an option for ignoring EPIPE during close_stdout.
20148         * lib/closeout.h: Include <stdbool.h>.
20149         (close_stdout_set_ignore_EPIPE): New declaration.
20150         * lib/closeout.c: Include <stdbool.h>.
20151         (ignore_EPIPE): New variable.
20152         (close_stdout_set_ignore_EPIPE): New function.
20153         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20154         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20155         failure.
20156         * modules/closeout (Depends-on): Add stdbool.
20157
20158 2008-10-05  Bruno Haible  <bruno@clisp.org>
20159
20160         * modules/accept: New file.
20161         * modules/bind: New file.
20162         * modules/connect: New file.
20163         * modules/getpeername: New file.
20164         * modules/getsockname: New file.
20165         * modules/getsockopt: New file.
20166         * modules/listen: New file.
20167         * modules/recv: New file.
20168         * modules/recvfrom: New file.
20169         * modules/send: New file.
20170         * modules/sendto: New file.
20171         * modules/setsockopt: New file.
20172         * modules/socket: New file.
20173         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20174         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20175         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20176         the particular module is requested. Add a link warning when the
20177         particular module is not requested.
20178         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20179         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20180         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20181         the particular module is requested.
20182         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20183         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20184         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20185         * modules/sys_socket (Depends-on): Add link-warning.
20186         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20187         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20188         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20189         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20190         GL_LINK_WARNING.
20191         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20192         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20193         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20194         * doc/posix-functions/getpeername.texi: Mention the new module
20195         'getpeername'.
20196         * doc/posix-functions/getsockname.texi: Mention the new module
20197         'getsockname'.
20198         * doc/posix-functions/getsockopt.texi: Mention the new module
20199         'getsockopt'.
20200         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20201         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20202         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20203         * doc/posix-functions/send.texi: Mention the new module 'send'.
20204         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20205         * doc/posix-functions/setsockopt.texi: Mention the new module
20206         'setsockopt'.
20207         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20208         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20209         listen, connect, accept.
20210         * modules/select-tests (Depends-on): Likewise.
20211
20212 2008-10-05  Bruno Haible  <bruno@clisp.org>
20213
20214         * lib/winsock.c (strerror): Remove unused #undef.
20215         (rpl_close): Remove unused local variable.
20216
20217         * modules/sys_socket (Depends-on); Add errno.
20218
20219 2008-10-05  Bruno Haible  <bruno@clisp.org>
20220
20221         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20222         (select): Add a link warning when the 'select' module is not used.
20223         * modules/sys_select (Depends-on): Add link-warning.
20224         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20225         Suggested by Paolo Bonzini.
20226
20227 2008-10-05  Jim Meyering  <meyering@redhat.com>
20228
20229         bootstrap: check for LT_INIT more portably
20230         * build-aux/bootstrap: Avoid using grep -E, since it's not
20231         portable enough.  Suggestion from Bruno Haible.
20232
20233 2008-10-05  Bruno Haible  <bruno@clisp.org>
20234
20235         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20236         as being fixed by gnulib.
20237
20238 2008-10-05  Bruno Haible  <bruno@clisp.org>
20239
20240         * modules/select-tests: New file, mostly copied from
20241         modules/sys_select-tests.
20242         * tests/test-select.c: New file, mostly copied from
20243         tests/test-sys_select.c.
20244         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20245         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20246         (Makefile.am): Remove test_sys_select_LDADD.
20247
20248         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20249         to an undefined symbol, for an error message.
20250         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20251         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20252         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20253         winsock-select.c here.
20254         * modules/sys_select (Files): Remove lib/winsock-select.c.
20255         (Depends-on): Remove alloca.
20256         (Makefile.am): Substitute GNULIB_SELECT.
20257         * modules/select: New file.
20258         * doc/posix-functions/select.texi: Update.
20259
20260 2008-10-05  Bruno Haible  <bruno@clisp.org>
20261
20262         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20263         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20264         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20265         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20266         getdtablesize.
20267         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20268         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20269
20270 2008-10-05  Bruno Haible  <bruno@clisp.org>
20271
20272         * modules/getdtablesize-tests: New file.
20273         * tests/test-getdtablesize.c: New file.
20274
20275         New module 'getdtablesize'.
20276         * lib/unistd.in.h (getdtablesize): New declaration.
20277         * lib/getdtablesize.c: New file.
20278         * m4/getdtablesize.m4: New file.
20279         * modules/getdtablesize: New file.
20280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20281         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20282         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20283         HAVE_GETDTABLESIZE.
20284         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20285
20286 2008-10-05  Bruno Haible  <bruno@clisp.org>
20287
20288         * modules/sched (Makefile.am): Fix typo.
20289         Reported by Simon Josefsson.
20290
20291 2008-10-05  Jim Meyering  <meyering@redhat.com>
20292
20293         bootstrap: check for LT_INIT, too
20294         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20295         are deprecated.  Suggestion from Ralf Wildenhues.
20296
20297 2008-10-05  Bruno Haible  <bruno@clisp.org>
20298
20299         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20300         overriding them by ours.
20301         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20302
20303 2008-10-05  Jim Meyering  <meyering@redhat.com>
20304
20305         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20306         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20307         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20308
20309 2008-10-04  Bruno Haible  <bruno@clisp.org>
20310
20311         * modules/dup2 (License): Change to LGPLv2+.
20312         * modules/sleep (License): Likewise.
20313         * modules/perror (License): Likewise.
20314         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20315         Blake.
20316         * modules/signal (License): Likewise.
20317         * modules/sigprocmask (License): Likewise.
20318         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20319         Meyering.
20320
20321 2008-10-04  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20324         Reported by Rainer Tammer <tammer@tammer.net>.
20325
20326 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20327             Bruno Haible  <bruno@clisp.org>
20328
20329         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20330         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20331         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20332
20333 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20334
20335         filevercmp: new module
20336         * lib/filevercmp.h: New function filevercmp comparing version strings.
20337         * lib/filevercmp.c: Implementation of filevercmp function.
20338         * modules/filevercmp: Module metadata.
20339         * tests/test-filevercmp.c: Unit test for new module.
20340         * modules/filevercmp-tests: Unit test metadata.
20341         * MODULES.html.sh: Add filevercmp module.
20342
20343 2008-10-03  Bruno Haible  <bruno@clisp.org>
20344
20345         * lib/c-ctype.h: Add comment.
20346         Reported by Jim Meyering.
20347
20348 2008-10-02  Bruno Haible  <bruno@clisp.org>
20349
20350         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20351
20352 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20353
20354         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20355         name of bootstrap.conf accordingly.
20356
20357 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20358
20359         * build-aux/bootstrap: Install git-merge-changelog configuration
20360         items into .gitconfig if needed.
20361
20362 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20363
20364         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20365         git repository, and initialize/update it accordingly.
20366
20367 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20368
20369         * modules/fsync-tests: New file.
20370         * tests/test-fsync.c: New file.
20371
20372         New module 'fsync'.
20373         * lib/fsync.c: New file.
20374         * m4/fsync.m4: New file.
20375         * modules/fsync: New file.
20376         * lib/unistd.in.h (fsync): New declaration.
20377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20378         GNULIB_FSYNC and HAVE_FSYNC.
20379         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20380         * MODULES.html.sh (posix_functions): Add fsync.
20381         * doc/posix-functions/fsync.texi: Mention the new module.
20382
20383 2008-10-02  Jim Meyering  <meyering@redhat.com>
20384
20385         fts.c: sync with similar code from coreutils' remove.c
20386         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20387         Guard also with "#if defined __linux__", since for now at least,
20388         this code is Linux-kernel-specific.
20389
20390 2008-10-02  Jim Meyering  <meyering@redhat.com>
20391
20392         fts: bug fixes
20393         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20394         Include <sys/vfs.h>, not <sys/statfs.h>.
20395
20396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20397         Include <sys/vfs.h>, not <sys/statfs.h>.
20398
20399 2008-10-01  Bruno Haible  <bruno@clisp.org>
20400
20401         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20402         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20403         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20404         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20405         * doc/posix-functions/posix_spawnp.texi: Likewise.
20406         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20407         whether posix_spawn actually works.
20408         * m4/pipe.m4 (gl_PIPE): Likewise.
20409         * modules/execute (Files): Add m4/posix_spawn.m4.
20410         * modules/pipe (Files): Add m4/posix_spawn.m4.
20411         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20412
20413 2008-10-01  Jim Meyering  <meyering@redhat.com>
20414
20415         remove trailing spaces
20416         * NEWS: Likewise.
20417         * lib/poll.c (poll): Likewise.
20418         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20419         * lib/winsock.c (rpl_close): Likewise.
20420         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20421         * modules/yield: Likewise.
20422         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20423         * tests/test-sys_select.c (connect_to_socket): Likewise.
20424
20425         fts.c: adjust a new interface to be more generally useful
20426         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20427         (fts_build): Adjust caller.
20428
20429 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20430
20431         * modules/cond-tests: New file.
20432         * tests/test-cond.c: New file.
20433
20434 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20435             Bruno Haible  <bruno@clisp.org>
20436
20437         * modules/cond (Dependencies): Add errno, time.
20438         * lib/glthread/cond.h: Include <time.h>.
20439         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20440         across platforms.
20441
20442 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20443             Bruno Haible  <bruno@clisp.org>
20444
20445         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20446
20447 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20448             Bruno Haible  <bruno@clisp.org>
20449
20450         * modules/tls-tests (Depends-on): Add thread, yield.
20451         (configure.ac): Remove all checks.
20452         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20453         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20454         gl_thread_self): Remove definitions. Include glthread/thread.h and
20455         glthread/yield.h instead.
20456         (test_tls): Pass an additional NULL argument to gl_thread_join.
20457
20458 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20459             Bruno Haible  <bruno@clisp.org>
20460
20461         * modules/lock-tests (Depends-on): Add thread, yield.
20462         (configure.ac): Remove all checks.
20463         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20464         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20465         gl_thread_self): Remove definitions. Include glthread/thread.h and
20466         glthread/yield.h instead.
20467         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20468         additional NULL argument to gl_thread_join.
20469
20470 2008-09-30  Bruno Haible  <bruno@clisp.org>
20471
20472         Fix the Win32 implementation of the 'thread' module.
20473         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20474         pointer type.
20475         (gl_thread_self): Invoke gl_thread_self_func.
20476         (gl_thread_self_func): New declaration.
20477         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20478         (do_init_self_key, init_self_key): New functions.
20479         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20480         Remove some fields.
20481         (running_threads, running_lock): Remove variables.
20482         (get_current_thread_handle): New function.
20483         (gl_thread_self_func, wrapper_func, glthread_create_func,
20484         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20485         simplified.
20486
20487 2008-09-30  Bruno Haible  <bruno@clisp.org>
20488
20489         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20490         files.
20491
20492 2008-09-30  Jim Meyering  <meyering@redhat.com>
20493
20494         fts.m4: correct the test for statfs.f_type
20495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20496         when checking for statfs.f_type.
20497
20498 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20499
20500         tests: avoid some compiler warnings
20501         * tests/test-memchr.c (main): Pass NULL indirectly.
20502         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20503
20504 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20505
20506         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20507         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20508         exactly specified dayshifts.
20509         (dayshift): New rule.
20510         (rel): Add dayshift.
20511         (relative_time_table) [tomorrow, yesterday, today, now]:
20512         Use tDAY_SHIFT in place of tDAY_UNIT.
20513         * tests/test-getdate.c: Add tests for now-disallowed countable
20514         dayshifts, e.g., "4 yesterday ago".
20515
20516 2008-09-29  Bruno Haible  <bruno@clisp.org>
20517
20518         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20519         * tests/test-posix_spawn1.in.sh: Renamed from
20520         tests/test-posix_spawn.in.sh.
20521         * tests/test-posix_spawn2.c: New file.
20522         * tests/test-posix_spawn2.in.sh: New file.
20523         * modules/posix_spawnp-tests (Files): Update.
20524         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20525
20526 2008-09-29  Bruno Haible  <bruno@clisp.org>
20527
20528         Propagate effects of putenv/setenv/unsetenv to child processes.
20529         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20530         * lib/pipe.c (create_pipe): Likewise.
20531
20532 2008-09-29  Bruno Haible  <bruno@clisp.org>
20533
20534         Enable use of shell scripts as executables in mingw.
20535         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20536         run the program as a shell script.
20537         * lib/pipe.c (create_pipe): Likewise.
20538         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20539         resulting array.
20540
20541 2008-09-29  Eric Blake  <ebb9@byu.net>
20542
20543         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20544
20545 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20546
20547         * doc/posix-functions/accept.texi: Update mingw problems.
20548         * doc/posix-functions/bind.texi: Update mingw problems.
20549         * doc/posix-functions/close.texi: Update mingw problems.
20550         * doc/posix-functions/connect.texi: Update mingw problems.
20551         * doc/posix-functions/getpeername.texi: Update mingw problems.
20552         * doc/posix-functions/getsockname.texi: Update mingw problems.
20553         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20554         * doc/posix-functions/ioctl.texi: Update mingw problems.
20555         * doc/posix-functions/listen.texi: Update mingw problems.
20556         * doc/posix-functions/recv.texi: Update mingw problems.
20557         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20558         * doc/posix-functions/select.texi: Update mingw problems.
20559         * doc/posix-functions/send.texi: Update mingw problems.
20560         * doc/posix-functions/sendto.texi: Update mingw problems.
20561         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20562         * doc/posix-functions/socket.texi: Update mingw problems.
20563
20564 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20565             Bruno Haible  <bruno@clisp.org>
20566
20567         * lib/sys_select.in.h: Include sys/time.h.
20568         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20569         * modules/sys_select: Depend on sys_time.
20570         * tests/test-sys_select.c: Test that sys/select.h defines struct
20571         timeval fully.
20572
20573 2008-09-29  Bruno Haible  <bruno@clisp.org>
20574
20575         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20576         * lib/sys_select.in.h: Likewise.
20577
20578 2008-09-29  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20581
20582 2008-09-29  Bruno Haible  <bruno@clisp.org>
20583
20584         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20585         Set LIBSOCKET instead of augmenting LIBS.
20586         * modules/sockets (Link): New section.
20587         * modules/sockets-tests (test_sockets_LDADD): New variable.
20588         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20589         * modules/poll-tests (test_poll_LDADD): New variable.
20590         * NEWS: Document the change.
20591
20592 2008-09-29  Bruno Haible  <bruno@clisp.org>
20593
20594         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20595         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20596         ARPA_INET_H directly.
20597         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20598
20599 2008-09-28  Bruno Haible  <bruno@clisp.org>
20600
20601         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20602         from gl_HEADER_SYS_SOCKET.
20603         (gl_HEADER_SYS_SOCKET): Invoke it.
20604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20605
20606 2008-09-28  Bruno Haible  <bruno@clisp.org>
20607
20608         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20609         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20610         Needed on OSF/1 4.0.
20611
20612 2008-09-28  Bruno Haible  <bruno@clisp.org>
20613
20614         Override open more carefully.
20615         * lib/open.c (orig_open): New function.
20616         (rpl_open): Use orig_open instead of open.
20617         * lib/fcntl.in.h: Add special invocation convention.
20618         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20619         (gl_FUNC_OPEN): Invoke it.
20620
20621         Override freopen more carefully.
20622         * lib/freopen.c (orig_freopen): New function.
20623         (rpl_freopen): Use orig_freopen instead of freopen.
20624         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20625         (gl_FUNC_FREOPEN): Invoke it.
20626
20627         Override fopen more carefully.
20628         * lib/fopen.c (orig_fopen): New function.
20629         (rpl_fopen): Use orig_fopen instead of fopen.
20630         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20631         (gl_FUNC_FOPEN): Invoke it.
20632         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20633
20634 2008-09-28  Bruno Haible  <bruno@clisp.org>
20635
20636         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20637         SIGPIPE.
20638
20639 2008-09-28  Bruno Haible  <bruno@clisp.org>
20640
20641         * tests/test-sigaction.c (handler, main): Disable the check whether
20642         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20643         glibc systems with LinuxThreads.
20644
20645 2008-09-28  Bruno Haible  <bruno@clisp.org>
20646
20647         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20648
20649         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20650         with AIX xlc.
20651         * lib/fcntl.in.h (open): Likewise.
20652         Reported by Rainer Tammer <tammer@tammer.net>.
20653
20654 2008-09-28  Bruno Haible  <bruno@clisp.org>
20655
20656         * modules/posix_spawnp-tests: New file.
20657         * tests/test-posix_spawn.c: New file.
20658         * tests/test-posix_spawn.in.sh: New file.
20659
20660         New module 'posix_spawnp'.
20661         * modules/posix_spawnp: New file.
20662         * lib/spawnp.c: New file, from GNU libc with modifications.
20663         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20664
20665         New module 'posix_spawn'.
20666         * modules/posix_spawn: New file.
20667         * lib/spawn.c: New file, from GNU libc with modifications.
20668         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20669
20670         New module 'posix_spawnattr_destroy'.
20671         * modules/posix_spawnattr_destroy: New file.
20672         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20673         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20674         module.
20675
20676         New module 'posix_spawnattr_setsigmask'.
20677         * modules/posix_spawnattr_setsigmask: New file.
20678         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20679         modifications.
20680         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20681         new module.
20682
20683         New module 'posix_spawnattr_getsigmask'.
20684         * modules/posix_spawnattr_getsigmask: New file.
20685         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20686         modifications.
20687         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20688         new module.
20689
20690         New module 'posix_spawnattr_setsigdefault'.
20691         * modules/posix_spawnattr_setsigdefault: New file.
20692         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20693         modifications.
20694         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20695         new module.
20696
20697         New module 'posix_spawnattr_getsigdefault'.
20698         * modules/posix_spawnattr_getsigdefault: New file.
20699         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20700         modifications.
20701         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20702         new module.
20703
20704         New module 'posix_spawnattr_setschedpolicy'.
20705         * modules/posix_spawnattr_setschedpolicy: New file.
20706         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20707         modifications.
20708         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20709         new module.
20710
20711         New module 'posix_spawnattr_getschedpolicy'.
20712         * modules/posix_spawnattr_getschedpolicy: New file.
20713         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20714         modifications.
20715         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20716         new module.
20717
20718         New module 'posix_spawnattr_setschedparam'.
20719         * modules/posix_spawnattr_setschedparam: New file.
20720         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20721         modifications.
20722         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20723         new module.
20724
20725         New module 'posix_spawnattr_getschedparam'.
20726         * modules/posix_spawnattr_getschedparam: New file.
20727         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20728         modifications.
20729         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20730         new module.
20731
20732         New module 'posix_spawnattr_setpgroup'.
20733         * modules/posix_spawnattr_setpgroup: New file.
20734         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20735         modifications.
20736         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20737         module.
20738
20739         New module 'posix_spawnattr_getpgroup'.
20740         * modules/posix_spawnattr_getpgroup: New file.
20741         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20742         modifications.
20743         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20744         module.
20745
20746         New module 'posix_spawnattr_setflags'.
20747         * modules/posix_spawnattr_setflags: New file.
20748         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20749         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20750         module.
20751
20752         New module 'posix_spawnattr_getflags'.
20753         * modules/posix_spawnattr_getflags: New file.
20754         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20755         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20756         module.
20757
20758         New module 'posix_spawnattr_init'.
20759         * modules/posix_spawnattr_init: New file.
20760         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20761         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20762         module.
20763
20764         New module 'posix_spawn_file_actions_destroy'.
20765         * modules/posix_spawn_file_actions_destroy: New file.
20766         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20767         modifications.
20768         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20769         the new module.
20770
20771         New module 'posix_spawn_file_actions_addopen'.
20772         * modules/posix_spawn_file_actions_addopen: New file.
20773         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20774         modifications.
20775         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20776         the new module.
20777
20778         New module 'posix_spawn_file_actions_adddup2'.
20779         * modules/posix_spawn_file_actions_adddup2: New file.
20780         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20781         modifications.
20782         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20783         the new module.
20784
20785         New module 'posix_spawn_file_actions_addclose'.
20786         * modules/posix_spawn_file_actions_addclose: New file.
20787         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20788         modifications.
20789         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20790         the new module.
20791
20792         New module 'posix_spawn_file_actions_init'.
20793         * modules/posix_spawn_file_actions_init: New file.
20794         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20795         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20796         new module.
20797
20798         New module 'posix_spawn-internal'.
20799         * modules/posix_spawn-internal: New file.
20800         * lib/spawn_int.h: New file, from GNU libc with modifications.
20801         * lib/spawni.c: New file, from GNU libc with modifications.
20802         * m4/posix_spawn.m4: New file.
20803
20804         New module 'spawn'.
20805         * modules/spawn: New file.
20806         * lib/spawn.in.h: New file, from GNU libc with modifications.
20807         * m4/spawn_h.m4: New file.
20808         * doc/posix-headers/spawn.texi: Mention the new module.
20809
20810 2008-09-28  Bruno Haible  <bruno@clisp.org>
20811
20812         * modules/sched-tests: New file.
20813         * tests/test-sched.c: New file.
20814
20815         New module 'sched'.
20816         * modules/sched: New file.
20817         * lib/sched.in.h: New file.
20818         * m4/sched_h.m4: New file.
20819         * doc/posix-headers/sched.texi: Mention the new module.
20820
20821 2008-09-27  Eric Blake  <ebb9@byu.net>
20822
20823         Fix previous patch, and tweak references to $0.
20824         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20825         (func_version, func_gnulib_dir): Don't call this program
20826         gnulib-tool.
20827         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20828         with using $0 in function.
20829         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20830         (func_fatal_error): Reuse the name the user invoked us with.
20831
20832 2008-09-27  Bruno Haible  <bruno@clisp.org>
20833
20834         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20835         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20836         (gl_ICONV_H): Not here.
20837         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20838         instead of assigning ICONV_H directly.
20839
20840         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20842         WCHAR_H directly.
20843
20844 2008-09-27  Bruno Haible  <bruno@clisp.org>
20845
20846         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20847         * modules/arpa_inet (Depends-on): Add link-warning.
20848         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20849         * modules/unistd (Makefile.am): Likewise.
20850
20851 2008-09-26  Bruno Haible  <bruno@clisp.org>
20852
20853         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20854         variables.
20855         (func_version): Essentially copied from gnulib-tool.
20856         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20857         func_readlink): Copied from gnulib-tool.
20858
20859 2008-09-26  Bruno Haible  <bruno@clisp.org>
20860
20861         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20862         invoking git-version-gen.
20863
20864 2008-09-26  Bruno Haible  <bruno@clisp.org>
20865
20866         * posix-modules: Update to directory names changed on 2008-01-19.
20867         Remove commas in output before splitting into words. No more need to
20868         avoid 'ftruncate' since 2007-02-19.
20869
20870 2008-09-26  Bruno Haible  <bruno@clisp.org>
20871
20872         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20873
20874 2008-09-26  Bruno Haible  <bruno@clisp.org>
20875
20876         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20877         * modules/fwriteerror (Depends-on): Add errno.
20878
20879 2008-09-26  Bruno Haible  <bruno@clisp.org>
20880
20881         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20882         * tests/test-vc-list-files-cvs.sh: Likewise.
20883
20884 2008-09-26  Bruno Haible  <bruno@clisp.org>
20885
20886         * doc/posix-headers/sys_resource.texi: Reorder items.
20887
20888 2008-09-26  Jim Meyering  <meyering@redhat.com>
20889
20890         fts: tweak inode comparison function
20891         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20892         inode numbers, as documented.
20893
20894         fts: sort dirent entries on inode number before traversing
20895         This avoids a quadratic, seek-related performance penalty when
20896         operating on a directory containing many entries (measurable at 10k;
20897         3.5 hours at 2 million entries with a cold cache) on certain types
20898         of file systems, including ext3 and ext4, but not tmpfs.
20899         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20900         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20901         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20902         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20903         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20904         (fts_build): Set the stat.st_ino member from D_INO.
20905         If it is likely to be useful, sort dirent entries on inode number.
20906
20907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20908         and the struct statfs.f_type member.
20909         * modules/fts (Depends-on): Add d-ino.
20910
20911 2008-09-26  Bruno Haible  <bruno@clisp.org>
20912
20913         * modules/sigpipe-die (Depends-on): Add sigpipe.
20914
20915         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20916         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20917         and GNULIB_STDIO_H_SIGPIPE are set.
20918         * lib/stdio-write.c: New file.
20919         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20920         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20921         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20922         REPLACE_STDIO_WRITE_FUNCS.
20923         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20924         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20925         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20926         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20927         * modules/stdio (Files): Add lib/stdio-write.c.
20928         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20929         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20930         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20931         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20932         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20933         REPLACE_FPRINTF_POSIX.
20934         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20935         REPLACE_PRINTF_POSIX.
20936         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20937         REPLACE_VFPRINTF_POSIX.
20938         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20939         REPLACE_VPRINTF_POSIX.
20940         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20941         SIGPIPE issue.
20942         * doc/posix-functions/fputc.texi: Likewise.
20943         * doc/posix-functions/fputs.texi: Likewise.
20944         * doc/posix-functions/fwrite.texi: Likewise.
20945         * doc/posix-functions/printf.texi: Likewise.
20946         * doc/posix-functions/putc.texi: Likewise.
20947         * doc/posix-functions/putchar.texi: Likewise.
20948         * doc/posix-functions/puts.texi: Likewise.
20949         * doc/posix-functions/vfprintf.texi: Likewise.
20950         * doc/posix-functions/vprintf.texi: Likewise.
20951
20952         * modules/safe-write (Depends-on): Add write.
20953
20954         * modules/sigpipe-tests: New file.
20955         * tests/test-sigpipe.c: New file.
20956         * tests/test-sigpipe.sh: New file.
20957
20958         * modules/write: New file.
20959         * lib/unistd.in.h: Include <sys/types.h>.
20960         (write): New declaration.
20961         * lib/write.c: New file.
20962         * m4/write.m4: New file.
20963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20964         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20965         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20966         GNULIB_WRITE, REPLACE_WRITE.
20967         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20968         and the SIGPIPE issue.
20969
20970         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20971         (raise): New declaration.
20972         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20973         (ext_signal): New function.
20974         (rpl_raise): New function.
20975         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20976         GNULIB_SIGNAL_H_SIGPIPE.
20977         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20978         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20979
20980         * modules/sigpipe: New file.
20981         * m4/sigpipe.m4: New file.
20982
20983 2008-09-25  Derek Price  <derek@ximbiot.com>
20984             Bruno Haible  <bruno@clisp.org>
20985
20986         * gnulib-tool (func_import): Report all license incompatibilities, not
20987         just the first one.
20988
20989 2008-09-25  Bruno Haible  <bruno@clisp.org>
20990
20991         * gnulib-tool (func_import): When computing the edits, consider not
20992         only the Makefile.ams that exist but also those that will be generated.
20993
20994 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20995
20996         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20997         fixes gnulib-tool --test warning about duplicate dependency.
20998
20999 2008-09-25  Bruno Haible  <bruno@clisp.org>
21000
21001         * gnulib-tool: Don't ask the user to perform edits in the generated
21002         Makefile.ams.
21003         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21004         apply to the Makefile.am being generated.
21005         (func_emit_tests_Makefile_am): Execute edits that apply to the
21006         Makefile.am being generated.
21007         (func_import): Setup list of Makefile.am edits before emitting the
21008         Makefile.ams, not at the end.
21009         (func_create_testdir): Update.
21010         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21011
21012 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21013
21014         * gnulib-tool (func_import): Store the --tests-base option in the
21015         comment in gnulib-cache.m4.
21016
21017 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21018
21019         * NEWS: Document increased portability that sys_select now provides.
21020
21021         * lib/sys_select.in.h: Install select wrapper.
21022         * lib/sys_socket.in.h: Use more descriptive name when there is no
21023         select wrapper.
21024         * lib/winsock-select.c: New.
21025         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21026         Require gl_HEADER_SYS_SOCKET.
21027         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21028         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21029         * tests/test-sys_select.c: Add functional tests.
21030
21031 2008-09-24  Eric Blake  <ebb9@byu.net>
21032
21033         open, fopen: close fd leak in last patch
21034         * lib/open.c (rpl_open): Close fd before returning error.
21035         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21036         * doc/posix-functions/open.texi (open): Document that Irix also
21037         has the bug.
21038         * doc/posix-functions/fopen.texi (fopen): Likewise.
21039         Reported by Paolo Bonzini.
21040
21041 2008-09-24  Bruno Haible  <bruno@clisp.org>
21042
21043         Ensure that a filename ending in a slash cannot be used to access a
21044         non-directory.
21045         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21046         to check whether it's really a directory.
21047         * lib/fopen.c: Include fcntl.h, unistd.h.
21048         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21049         and fdopen().
21050         * modules/fopen (Depends-on): Add unistd.
21051         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21052         * tests/test-fopen.c (main): Likewise.
21053         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21054         * doc/posix-functions/fopen.texi: Likewise.
21055         Reported by Eric Blake.
21056
21057 2008-09-23  Eric Blake  <ebb9@byu.net>
21058
21059         c-stack: avoid compiler optimizations when provoking overflow
21060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21061         recursion harder to optimize, to ensure a stack overflow occurs.
21062         * tests/test-c-stack.c (recurse): Likewise.
21063         Borrowed from libsigsegv.
21064
21065         c-stack: work around Irix sigaltstack bug
21066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21067         whether sigaltstack uses wrong end of stack_t (copied in part from
21068         libsigsegv).
21069         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21070         Irix bug, without requiring an over-allocation.
21071         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21072         bug.
21073
21074         fopen: document mingw bug on directories
21075         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21076         not allowing a stream visiting a directory, even though reading
21077         from such a stream is not portable.
21078
21079 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21080
21081         * lib/poll.c: Rewrite.
21082         * modules/poll: Depend on alloca.
21083
21084 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21085
21086         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21087         instead define prototypes for a full set of wrappers.  Ensure
21088         that Cygwin does not use the compatibility code, which is only
21089         for MinGW.
21090         * lib/winsock.c: New.
21091         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21092         * modules/sys_socket: Add lib/winsock.c.
21093
21094         * modules/poll-tests: Add errno and perror.
21095         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21096
21097 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21098
21099         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21100
21101 2008-09-23  Bruno Haible  <bruno@clisp.org>
21102
21103         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21104         * doc/glibc-functions/*: Likewise.
21105
21106 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21107
21108         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21109         success.
21110
21111 2008-09-22  Eric Blake  <ebb9@byu.net>
21112             Bruno Haible  <bruno@clisp.org>
21113
21114         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21115         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21116         supply %A but mishandle pseudo-NaN.
21117         Reported by Simon Josefsson.
21118
21119 2008-09-21  Bruno Haible  <bruno@clisp.org>
21120
21121         * tests/test-lock.c (main): Tweak skip message.
21122         * tests/test-tls.c (main): Likewise.
21123
21124 2008-09-21  Bruno Haible  <bruno@clisp.org>
21125
21126         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21127         whether 'struct sigaction' has sa_sigaction here...
21128         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21129         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21130
21131 2008-09-21  Bruno Haible  <bruno@clisp.org>
21132
21133         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21134         section.
21135         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21136         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21137         the new section.
21138         (Support for obsolete systems lacking POSIX:2001): New section.
21139         (String handling <string.h>): Move strdup to the new section.
21140         Suggested by Simon Josefsson and Paolo Bonzini.
21141
21142 2008-09-21  Bruno Haible  <bruno@clisp.org>
21143
21144         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21145         exponents in %e and %g results on 'long double'. Needed for mingw's
21146         improved *printf functions.
21147         * tests/test-vasprintf-posix.c (test_function): Likewise.
21148         * tests/test-snprintf-posix.h (test_function): Likewise.
21149         * tests/test-sprintf-posix.h (test_function): Likewise.
21150         Reported by Eric Blake.
21151
21152 2008-09-21  Bruno Haible  <bruno@clisp.org>
21153
21154         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21155         * tests/test-sprintf-posix.h (test_function): Likewise.
21156
21157 2008-09-21  Bruno Haible  <bruno@clisp.org>
21158
21159         * modules/getpass (Depends-on): Add strdup-posix.
21160
21161         New module 'strdup-posix'.
21162         * modules/strdup-posix: New file.
21163         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21164         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21166         REPLACE_STRDUP.
21167         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21168         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21170         strdup-posix.
21171
21172         * modules/strdup (Depends-on): Remove malloc-posix.
21173
21174 2008-09-20  Bruno Haible  <bruno@clisp.org>
21175
21176         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21177         Wildenhues.
21178
21179 2008-09-20  Bruno Haible  <bruno@clisp.org>
21180
21181         Ensure that wint_t gets defined on IRIX 5.3.
21182         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21183         * lib/wctype.in.h (wint_t): Likewise.
21184         (__wctype_wint_t): Remove type.
21185         (isw*): Use wint_t instead of __wctype_wint_t.
21186         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21187         * modules/wchar (Files): Add m4/wint_t.m4.
21188         (Makefile.am): Substitute HAVE_WINT_T.
21189         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21190         * tests/test-wctype.c: Check that wint_t is defined.
21191         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21192         * doc/posix-headers/wctype.texi: Likewise.
21193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21194
21195 2008-09-18  Bruno Haible  <bruno@clisp.org>
21196
21197         * gnulib-tool (func_exit): Update comment.
21198
21199 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21200
21201         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21202         assumes strdup exists and does not depend on strdup to return
21203         ENOMEM on out of memory conditions.
21204
21205 2008-09-18  Bruno Haible  <bruno@clisp.org>
21206
21207         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21208         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21209         digits for the exponent.
21210
21211 2008-09-18  Jim Meyering  <meyering@redhat.com>
21212             Bruno Haible  <bruno@clisp.org>
21213
21214         * lib/vasnprintf.c (decimal_point_char): Define also if
21215         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21216
21217 2008-09-16  Bruno Haible  <bruno@clisp.org>
21218         and Eric Blake  <ebb9@byu.net>
21219
21220         vasnprintf: support Irix 5.3
21221         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21222         that mishandle long double infinity.
21223         Reported by Tom G. Christensen.
21224
21225 2008-09-16  Bruno Haible  <bruno@clisp.org>
21226
21227         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21228         Solaris 9.
21229         * doc/glibc-functions/alphasort.texi: Likewise.
21230         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21231
21232 2008-09-16  Jim Meyering  <meyering@redhat.com>
21233
21234         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21235         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21236         a umask modification leak out of a subshell.  Otherwise, the
21237         opensolaris /bin/sh would be accepted and thus cause unwarranted
21238         failures in the coreutils test suite.
21239
21240 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21241
21242         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21243         to succeed.
21244
21245 2008-09-16  Jim Meyering  <meyering@redhat.com>
21246
21247         avoid spurious test failure when library is built without ACL support
21248         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21249         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21250         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21251         * tests/test-copy-acl.sh: Likewise.
21252
21253 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21254
21255         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21256         based on character occurrence counts.
21257
21258 2008-09-15  Eric Blake  <ebb9@byu.net>
21259
21260         tests: avoid some compiler warnings
21261         * tests/test-memchr.c (main): Pass NULL indirectly.
21262         * tests/test-closein.c (main): Avoid unused variable.
21263
21264 2008-09-15  Bruno Haible  <bruno@clisp.org>
21265
21266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21267         are missing on OpenBSD 4.0 individually.
21268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21269
21270 2008-09-15  Bruno Haible  <bruno@clisp.org>
21271
21272         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21273         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21274         * doc/posix-functions/perror.texi: Likewise.
21275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21276         is missing.
21277         Reported by Eric Blake.
21278
21279         * lib/errno.in.h: Use replacement values >= 2000.
21280         Reported by Eric Blake.
21281
21282 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21283
21284         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21285         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21286         limit.
21287         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21288         compareseq was aborted.
21289
21290 2008-09-14  Bruno Haible  <bruno@clisp.org>
21291
21292         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21293         yvec_edit_count.
21294         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21295         (fstrcmp_bounded): Simplify result computation accordingly.
21296
21297 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21298
21299         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21300         (fstrcmp): Define in terms of fstrcmp_bounded.
21301         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21302         lower_bound argument.
21303         Return quickly if the result is certainly < lower_bound.
21304         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21305
21306 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21307
21308         * lib/diffseq.h (EARLY_ABORT): New macro.
21309         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21310         evaluates to true.
21311
21312 2008-09-14  Bruno Haible  <bruno@clisp.org>
21313
21314         * modules/perror-tests: New file.
21315         * tests/test-perror.sh: New file.
21316         * tests/test-perror.c: New file.
21317
21318         New module 'perror'.
21319         * lib/stdio.in.h (perror): New declaration.
21320         * lib/perror.c: New file.
21321         * m4/perror.m4: New file.
21322         * modules/perror: New file.
21323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21324         * doc/posix-functions/perror.texi: Mention the perror module.
21325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21326         REPLACE_PERROR.
21327         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21328         REPLACE_PERROR.
21329
21330 2008-09-14  Bruno Haible  <bruno@clisp.org>
21331
21332         * modules/stdio (Makefile.am): Reorder to match the order in
21333         lib/stdio.in.h.
21334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21335
21336 2008-09-13  Bruno Haible  <bruno@clisp.org>
21337
21338         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21339
21340 2008-09-13  Bruno Haible  <bruno@clisp.org>
21341
21342         Extend strerror to cover the added errno values.
21343         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21344         (rpl_strerror): Provide error messages for the added errno values and
21345         for the WSA* values.
21346         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21347         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21348         strerror.
21349         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21350         * modules/strerror (Depends-on): Add errno.
21351         * doc/posix-functions/strerror.texi: Document the change.
21352         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21353         and EOVERFLOW.
21354
21355 2008-09-13  Bruno Haible  <bruno@clisp.org>
21356
21357         * modules/EOVERFLOW: Remove file.
21358         * m4/eoverflow.m4: Remove file.
21359         * modules/EOVERFLOW-tests: Remove file.
21360         * tests/test-EOVERFLOW.c: Remove file.
21361         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21362         * modules/ftell (Depends-on): Likewise.
21363         * modules/getdelim (Depends-on): Likewise.
21364         * modules/getugroups (Depends-on): Likewise.
21365         * modules/poll (Depends-on): Likewise.
21366         * modules/snprintf (Depends-on): Likewise.
21367         * modules/sprintf-posix (Depends-on): Likewise.
21368         * modules/vasnprintf (Depends-on): Likewise.
21369         * modules/vasprintf (Depends-on): Likewise.
21370         * modules/vfprintf-posix (Depends-on): Likewise.
21371         * modules/vsnprintf (Depends-on): Likewise.
21372         * modules/vsprintf-posix (Depends-on): Likewise.
21373         * modules/xvasprintf (Depends-on): Likewise.
21374         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21375         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21376         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21377         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21378         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21379         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21380         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21381         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21382         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21383         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21384         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21385         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21386         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21387         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21388         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21389         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21390         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21391         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21392         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21393         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21394         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21395         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21396         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21397         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21398         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21399         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21400         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21401         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21402         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21403         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21404         * MODULES.html.sh: Remove EOVERFLOW.
21405         * NEWS: Mention the change.
21406
21407 2008-09-13  Bruno Haible  <bruno@clisp.org>
21408
21409         * modules/errno-tests: New file.
21410         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21411
21412         * lib/errno.in.h: New file.
21413         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21414         * modules/errno: New file.
21415         * doc/posix-headers/errno.texi: Update documentation.
21416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21417
21418 2008-09-13  Bruno Haible  <bruno@clisp.org>
21419
21420         * tests/test-poll.c: Use #if for native Windows, rather than testing
21421         __MSVCRT__.
21422
21423 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21424             Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/glob.c: Don't include <pwd.h> on native Windows.
21427         (WINDOWS32): New macro.
21428         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21429
21430 2008-09-13  Bruno Haible  <bruno@clisp.org>
21431
21432         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21433         (ETIMEDOUT): Remove macro.
21434         (glthread_cond_timedwait_multithreaded): New declaration.
21435         (glthread_cond_timedwait): Use it.
21436         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21437         (glthread_cond_timedwait_multithreaded): New function.
21438
21439 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21440
21441         * modules/poll-tests: Do not check for io.h.
21442         * tests/test-poll.c: Check for __MSVCRT__ instead.
21443
21444 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21445
21446         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21447         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21448         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21449
21450 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21451
21452         * modules/poll-tests: New.
21453         * tests/test-poll.c: New.
21454
21455 2008-09-12  Eric Blake  <ebb9@byu.net>
21456
21457         frexp: test for NetBSD failure on -0.0
21458         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21459         not all, bugs from NetBSD 3.0 have been fixed.
21460         * doc/posix-functions/frexp.texi (frexp): Document bug.
21461         Reported by Thomas Klausner.
21462
21463         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21464         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21465         literal -0.0.
21466         Reported by Jonathan C. Patschke <jp@centtech.com>.
21467
21468 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21469
21470         * lib/glthread/cond.h: Use dummy implementation also if
21471         USE_WIN32_THREADS.
21472
21473 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21474
21475         * modules/fnmatch-posix (License): Change to LGPLv2+.
21476         * modules/fnmatch-gnu (License): Likewise.
21477
21478 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21479
21480         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21481
21482 2008-09-11  Jim Meyering  <meyering@redhat.com>
21483
21484         * users.txt: Add gtk-vnc.
21485
21486 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21487
21488         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21489         rotate amounts.
21490
21491         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21492         required for 16-bit and 8-bit rotates.
21493         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21494         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21495         UINT8_MAX instead of hard-coded constants.
21496         Suggested by Paul Eggert.
21497
21498 2008-09-07  Bruno Haible  <bruno@clisp.org>
21499
21500         * tests/test-striconveh.c (main): Check behaviour when converting from
21501         UTF-7.
21502
21503         Make striconveh work better with stateful encodings.
21504         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21505         that iconv does not increment the inptr when returning -1/EINVAL.
21506
21507 2008-09-07  Bruno Haible  <bruno@clisp.org>
21508
21509         * build-aux/config.rpath: Update according to libtool-2.2.6.
21510         * build-aux/config.libpath: Likewise.
21511
21512 2008-09-06  Bruno Haible  <bruno@clisp.org>
21513
21514         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21515         * lib/freadptr.c (freadptr): Likewise.
21516         * lib/freadseek.c (freadptrinc): Likewise.
21517         Reported by Simon Josefsson.
21518
21519 2008-09-06  Bruno Haible  <bruno@clisp.org>
21520
21521         * modules/freadptr (License): Change to LGPLv2+.
21522         * modules/freadseek (License): Likewise.
21523         Suggested by Eric Blake.
21524
21525         * modules/memchr2 (License): Change to LGPLv2+.
21526         Approved by Eric Blake.
21527
21528 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21529             Bruno Haible  <bruno@clisp.org>
21530
21531         Make gnulib-tool work with native 'sed' on AIX.
21532         * gnulib-tool (sed_noop): New variable.
21533         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21534         func_add_or_update, func_create_testdir): Use it to initialize sed
21535         script variables.
21536         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21537
21538 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21539             Bruno Haible  <bruno@clisp.org>
21540
21541         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21542         also works after #include directives.
21543
21544 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
21545
21546         getdate.y: reject an out-of-range timezone value
21547         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21548         the range [-24...+24].  When specified with only one or two digits,
21549         * tests/test-getdate.c: Tests for the fix.
21550         * doc/getdate.texi: Document this change.
21551
21552 2008-09-03  Bruno Haible  <bruno@clisp.org>
21553
21554         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21555
21556 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21557
21558         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21559         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21560         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21561         Blake <ebb9@byu.net>.
21562
21563         * tests/test-bitrotate.c: Add more test vectors.
21564
21565 2008-09-02  Eric Blake  <ebb9@byu.net>
21566
21567         vasnprintf-posix: handle large precision via %.*d
21568         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21569         when handling it ourselves.
21570         * tests/test-vasnprintf-posix.c (test_function): Add test.
21571         * tests/test-snprintf-posix.h (test_function): Likewise.
21572         * tests/test-sprintf-posix.h (test_function): Likewise.
21573         * tests/test-vasprintf-posix.c (test_function): Likewise.
21574         Reported by Alain Guibert.
21575
21576 2008-09-01  Eric Blake  <ebb9@byu.net>
21577
21578         c-stack: make configure-time check more robust
21579         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21580         successful sigaction call.
21581         Reported by Tom G. Christensen.
21582
21583 2008-09-01  Bruno Haible  <bruno@clisp.org>
21584
21585         New module 'findprog-lgpl'.
21586         * modules/findprog-lgpl: New file.
21587         * lib/findprog-lgpl.c: New file.
21588         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21589         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21590         to decide whether to use strdup or xstrdup, concatenated_filename or
21591         xconcatenated_filename.
21592
21593 2008-09-01  Bruno Haible  <bruno@clisp.org>
21594
21595         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21596         'xconcat-filename' (GPL).
21597         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21598         (License): Change to LGPLv2+.
21599         * modules/xconcat-filename: New file.
21600         * lib/concat-filename.h (concatenated_filename): Change specification.
21601         (xconcatenated_filename): New declaration.
21602         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21603         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21604         memory situations.
21605         * lib/xconcat-filename.c: New file.
21606         * NEWS: Mention the change.
21607         * lib/findprog.c: Include concat-filename.h, not filename.h.
21608         (find_in_path): Use xconcatenated_filename instead of
21609         concatenated_filename.
21610         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21611         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21612         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21613         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21614         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21615         instead of concatenated_filename.
21616         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21617         (execute_java_class): Use xconcatenated_filename instead of
21618         concatenated_filename.
21619         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21620         * modules/javacomp (Depends-on): Likewise.
21621         * modules/javaexec (Depends-on): Likewise.
21622
21623 2008-09-01  Bruno Haible  <bruno@clisp.org>
21624
21625         Split module 'filename' into 'filename' and 'concat-filename'.
21626         * modules/filename: Keep only lib/filename.h.
21627         (License): Change to LGPLv2+.
21628         * modules/concat-filename: New file, extracted from modules/filename.
21629         * lib/filename.h (concatenated_filename): Remove declaration.
21630         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21631         * lib/concat-filename.c: Include concat-filename.h.
21632         * NEWS: Mention the change.
21633
21634 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21635
21636         * lib/bitrotate.h (rotl8, rotr8): Add.
21637
21638         * modules/bitrotate (configure.ac): Need
21639         AC_REQUIRE([AC_C_INLINE]).
21640         (Description): Mention stdint.h.  Reported by Bruno Haible
21641         <bruno@clisp.org>.
21642
21643         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21644         Paolo Bonzini <bonzini@gnu.org>.
21645
21646 2008-08-31  Bruno Haible  <bruno@clisp.org>
21647
21648         Assume Solaris specific bi-arch conventions on Solaris systems.
21649         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21650         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21651         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21652         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21653         like acl_libdirstem.
21654         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21655         acl_libdirstem.
21656         * NEWS: Mention the change.
21657         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21658
21659 2008-08-31  Jim Meyering  <meyering@redhat.com>
21660
21661         * lib/strftime.h: Add comments describing the two added arguments.
21662
21663         remove duplicate #include directives
21664         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21665         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21666
21667 2008-08-31  Bruno Haible  <bruno@clisp.org>
21668
21669         New module 'sigpipe-die'.
21670         * modules/sigpipe-die: New file.
21671         * lib/sigpipe-die.h: New file.
21672         * lib/sigpipe-die.c: New file.
21673         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21674
21675 2008-08-31  Bruno Haible  <bruno@clisp.org>
21676
21677         Don't override previously installed signal handlers.
21678         * lib/fatal-signal.c (saved_sigactions): New variable.
21679         (uninstall_handlers): Reset the signal to the saved handler, not
21680         to SIG_DFL (except when ignored).
21681         (install_handlers): Save the previous handlers.
21682
21683 2008-08-30  Bruno Haible  <bruno@clisp.org>
21684
21685         * gnulib-tool (func_reset_sigpipe): New function.
21686         (func_get_automake_snippet, func_modules_transitive_closure,
21687         func_import): Invoke it before a join command that reads from stdin,
21688         to avoid "echo: write error: Broken pipe" error messages on stderr.
21689         Reported by Sam Steingold <sds@gnu.org>.
21690
21691 2008-08-30  Bruno Haible  <bruno@clisp.org>
21692
21693         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21694         Code copied from m4/open.m4.
21695         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21696         access and the filename ends in a slash. Code copied from lib/open.c.
21697         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21698         * tests/test-fopen.c (main): Check against bug with trailing slash.
21699
21700 2008-08-29  Bruno Haible  <bruno@clisp.org>
21701
21702         Avoid some "gcc -pedantic" warnings.
21703         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21704         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21705         * lib/dirent.in.h: Likewise.
21706         * lib/fcntl.in.h: Likewise.
21707         * lib/float.in.h: Likewise.
21708         * lib/iconv.in.h: Likewise.
21709         * lib/inttypes.in.h: Likewise.
21710         * lib/locale.in.h: Likewise.
21711         * lib/math.in.h: Likewise.
21712         * lib/netinet_in.in.h: Likewise.
21713         * lib/search.in.h: Likewise.
21714         * lib/signal.in.h: Likewise.
21715         * lib/stdarg.in.h: Likewise.
21716         * lib/stdint.in.h: Likewise.
21717         * lib/stdio.in.h: Likewise.
21718         * lib/stdlib.in.h: Likewise.
21719         * lib/string.in.h: Likewise.
21720         * lib/strings.in.h: Likewise.
21721         * lib/sys_select.in.h: Likewise.
21722         * lib/sys_socket.in.h: Likewise.
21723         * lib/sys_stat.in.h: Likewise.
21724         * lib/sys_time.in.h: Likewise.
21725         * lib/sysexits.in.h: Likewise.
21726         * lib/time.in.h: Likewise.
21727         * lib/unistd.in.h: Likewise.
21728         * lib/wchar.in.h: Likewise.
21729         * lib/wctype.in.h: Likewise.
21730         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21731         * modules/fchdir (Makefile.am): Likewise.
21732         * modules/fcntl (Makefile.am): Likewise.
21733         * modules/float (Makefile.am): Likewise.
21734         * modules/iconv_open (Makefile.am): Likewise.
21735         * modules/inttypes (Makefile.am): Likewise.
21736         * modules/locale (Makefile.am): Likewise.
21737         * modules/math (Makefile.am): Likewise.
21738         * modules/netinet_in (Makefile.am): Likewise.
21739         * modules/search (Makefile.am): Likewise.
21740         * modules/signal (Makefile.am): Likewise.
21741         * modules/stdarg (Makefile.am): Likewise.
21742         * modules/stdint (Makefile.am): Likewise.
21743         * modules/stdio (Makefile.am): Likewise.
21744         * modules/stdlib (Makefile.am): Likewise.
21745         * modules/string (Makefile.am): Likewise.
21746         * modules/strings (Makefile.am): Likewise.
21747         * modules/sys_select (Makefile.am): Likewise.
21748         * modules/sys_socket (Makefile.am): Likewise.
21749         * modules/sys_stat (Makefile.am): Likewise.
21750         * modules/sys_time (Makefile.am): Likewise.
21751         * modules/sysexits (Makefile.am): Likewise.
21752         * modules/time (Makefile.am): Likewise.
21753         * modules/unistd (Makefile.am): Likewise.
21754         * modules/wchar (Makefile.am): Likewise.
21755         * modules/wctype (Makefile.am): Likewise.
21756         Reported by Reuben Thomas <rrt@sc3d.org>.
21757
21758 2008-08-29  Bruno Haible  <bruno@clisp.org>
21759
21760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21761         any more.
21762
21763 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21764
21765         * MODULES.html.sh (Misc): Add bitrotate.
21766
21767         * modules/bitrotate: New file.
21768
21769         * lib/bitrotate.h: New file.
21770
21771         * modules/bitrotate-tests: New file.
21772
21773         * tests/test-bitrotate.c: New file.
21774
21775         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21776         on the bitrotate module.
21777
21778         * lib/arctwo.c: Use new bitrotate module.
21779
21780 2008-08-29  Jim Meyering  <meyering@redhat.com>
21781
21782         bootstrap: merge changes from coreutils
21783         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21784         of copied files.  Remove a kludge, now that this is fixed.
21785         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21786         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21787         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21788
21789 2008-08-29  Bruno Haible  <bruno@clisp.org>
21790
21791         * MODULES.html.sh: Remove --cvs-urls option.
21792
21793 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21794
21795         maint.mk: adjust to file name change
21796         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21797
21798 2008-08-28  Jim Meyering  <meyering@redhat.com>
21799
21800         * modules/getndelim2 (License): Relicense to LGPLv2+.
21801         Approved by Richard Stallman for the version of 1995, and by
21802         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21803
21804 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21805
21806         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21807         dummy if one is not available.  Do not touch them if
21808         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21809         (getc_maybe_unlocked): New.
21810         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21811
21812 2008-08-26  Eric Blake  <ebb9@byu.net>
21813
21814         doc/INSTALL: resync from autoconf
21815         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21816         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21817         moving...
21818         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21819         * INSTALL: Regenerate.
21820         * INSTALL.ISO: New file.
21821         * INSTALL.UTF-8: Likewise.
21822
21823 2008-08-26  Jim Meyering  <meyering@redhat.com>
21824
21825         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21826         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21827         these definitions conditional, so that they may be overridden, too.
21828
21829 2008-08-26  Bruno Haible  <bruno@clisp.org>
21830
21831         Generate INSTALL file variants with prettier quotes.
21832         * doc/Makefile (INSTALL_PRELUDE): New macro.
21833         (INSTALL): Use it.
21834         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21835
21836 2008-08-26  Bruno Haible  <bruno@clisp.org>
21837
21838         Run makeinfo in an English locale.
21839         * doc/Makefile (MAKEINFO): New variable.
21840
21841 2008-08-26  Bruno Haible  <bruno@clisp.org>
21842
21843         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21844         Suggested by Eric Blake.
21845
21846 2008-08-25  Bruno Haible  <bruno@clisp.org>
21847
21848         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21849
21850 2008-08-25  Eric Blake  <ebb9@byu.net>
21851
21852         c-stack: test that stack overflow can be caught
21853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21854         that platform allows handling stack overflow; at least OS/2 EMX
21855         has sigaltstack, but crashes before transferring control to
21856         handler on stack overflow.
21857         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21858         check for HAVE_STACK_OVERFLOW_HANDLING.
21859         Reported by Elbert Pol.
21860
21861 2008-08-25  Bruno Haible  <bruno@clisp.org>
21862
21863         * doc/posix-functions/strftime.texi: Fix description of strftime
21864         module.
21865
21866 2008-08-24  Bruno Haible  <bruno@clisp.org>
21867
21868         * tests/uniwidth/test-uc_width2.c: New file.
21869         * tests/uniwidth/test-uc_width2.sh: New file.
21870         * modules/uniwidth/width-tests (Files): Add the new files.
21871         (TESTS): Add uniwidth/test-uc_width2.sh.
21872         (TESTS_ENVIRONMENT): New variable.
21873         (check_PROGRAMS): Add test-uc_width2.
21874         (test_uc_width2_SOURCES): New variable.
21875
21876         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21877         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21878         not 0x00AB.
21879         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21880
21881 2008-08-22  Eric Blake  <ebb9@byu.net>
21882
21883         test-lock, test-tls: mention why a test is skipped
21884         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21885         skipped.
21886         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21887
21888         count-one-bits: relax license
21889         * modules/count-one-bits (License): Relicense to LGPLv2+.
21890         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21891
21892 2008-08-22  Andreas Schwab  <schwab@suse.de>
21893
21894         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21895         Remove spurious space in assignment.
21896
21897 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21898
21899         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21900         Paul Eggert <eggert@CS.UCLA.EDU>.
21901
21902 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21903
21904         * modules/gettext: Add m4/threadlib.m4.
21905
21906 2008-08-19  Eric Blake  <ebb9@byu.net>
21907
21908         test-c-stack: fix compilation failure on FreeBSD 5.0
21909         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21910         headers before <sys/resource.h>.
21911         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21912         the bug.
21913         Reported by Nelson H. F. Beebe.
21914
21915         strverscmp: migrate from "strverscmp.h" to <string.h>
21916         * modules/string (Makefile.am): Add new hooks.
21917         * modules/strverscmp (Files): Remove strverscmp.h.
21918         (Depends-on): Add string.
21919         (configure.ac): Add indicator.
21920         (Include): Mention new header.
21921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21922         defaults.
21923         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21924         results.
21925         * lib/strverscmp.h: Delete.
21926         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21927         * tests/test-strverscmp.c (includes): Adjust client.
21928         * lib/check-version.c (includes): Likewise.
21929         * NEWS: Document the change.
21930
21931         strverscmp: add unit test
21932         * modules/strverscmp-tests: New file.
21933         * tests/test-strverscmp.c: Likewise.
21934
21935 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21936
21937         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21938         regarding Windows crypto stuff, from Mono.
21939
21940 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21941
21942         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21943         if present, for intel RND.  Return error on failures.
21944
21945 2008-08-18  Ben Pfaff  <blp@gnu.org>
21946
21947         gitlog-to-changelog: give better diagnostic for failed pipe-open
21948         * build-aux/gitlog-to-changelog: Improve error message: suggest
21949         that the version of Git may be too old.
21950
21951 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21952
21953         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21954         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21955
21956 2008-08-18  Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21959         pthread_in_use().
21960
21961 2008-08-18  Bruno Haible  <bruno@clisp.org>
21962
21963         * lib/glthread/threadlib.c: Include <pthread.h>.
21964
21965 2008-08-18  Bruno Haible  <bruno@clisp.org>
21966
21967         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21968         glthread_recursive_lock_* macros.
21969         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21970         Fix syntax error.
21971
21972 2008-08-18  Bruno Haible  <bruno@clisp.org>
21973
21974         * lib/glthread/thread.c: Avoid forcing a context switch right after
21975         thread creation.
21976
21977 2008-08-17  Bruno Haible  <bruno@clisp.org>
21978
21979         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21980         * lib/glthread/thread.h: Provide Win32 specific implementation.
21981         * modules/thread (Files): Add lib/glthread/thread.c.
21982         (Depends-on): Add lock.
21983         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21984
21985 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21986
21987         New module 'yield'.
21988         * modules/yield: New file.
21989         * lib/glthread/yield.h: New file.
21990         * m4/yield.m4: New file.
21991         * MODULES.html.sh (Multithreading): Add yield.
21992
21993 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21994
21995         New module 'thread'.
21996         * modules/thread: New file.
21997         * lib/glthread/thread.h: New file.
21998         * m4/thread.m4: New file.
21999         * MODULES.html.sh (Multithreading): Add thread.
22000
22001 2008-08-17  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/glthread/lock.h: Include <stdlib.h> always.
22004         * lib/glthread/tls.h: Likewise.
22005         * lib/glthread/cond.h: Likewise.
22006
22007 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22008
22009         New module 'cond'.
22010         * modules/cond: New file.
22011         * lib/glthread/cond.h: New file.
22012         * lib/glthread/cond.c: New file.
22013         * m4/cond.m4: New file.
22014         * MODULES.html.sh (Multithreading): Add cond.
22015
22016 2008-08-16  Eric Blake  <ebb9@byu.net>
22017
22018         c-stack: fix regression on Irix 5.3 from 2008-06-21
22019         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22020         sa_sigaction...
22021         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22022         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22023         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22024         * modules/signal (Makefile.am): Use the value.
22025         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22026         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22027         * doc/posix-headers/signal.texi (signal.h): Document this
22028         portability issue.
22029         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22030         Reported by Tom G. Christensen.
22031
22032 2008-08-17  Bruno Haible  <bruno@clisp.org>
22033
22034         New module 'threadlib'.
22035         * modules/threadlib: New file.
22036         * lib/glthread/threadlib.c: New file, extracted from
22037         lib/glthread/lock.c.
22038         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22039         functions.
22040         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22041         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22042         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22043         macros.
22044         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22045         (gl_DISABLE_THREADS): Remove macro.
22046         * modules/lock (Files): Remove build-aux/config.rpath.
22047         (Depends-on): Remove havelib. Add threadlib.
22048         (configure.ac-early): Remove section.
22049         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22050         * modules/tls (Depends-on): Remove lock. Add threadlib.
22051         (Link): New section, copied from threadlib.
22052         * MODULES.html.sh (Multithreading): Add threadlib.
22053
22054 2008-08-14  Bruno Haible  <bruno@clisp.org>
22055
22056         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22057         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22058         glthread_rwlock_unlock, glthread_rwlock_destroy,
22059         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22060         glthread_recursive_lock_destroy): Define as macros always.
22061         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22062         glthread_lock_lock.
22063         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22064         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22065         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22066         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22067         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22068         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22069         (glthread_recursive_lock_lock_func): Renamed from
22070         glthread_recursive_lock_lock.
22071         (glthread_recursive_lock_unlock_func): Renamed from
22072         glthread_recursive_lock_unlock.
22073         (glthread_recursive_lock_destroy_func): Renamed from
22074         glthread_recursive_lock_destroy.
22075
22076 2008-08-14  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/glthread/lock.h: Renamed from lib/lock.h.
22079         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22080         * lib/glthread/tls.h: Renamed from lib/tls.h.
22081         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22082         * lib/fstrcmp.c: Update includes.
22083         * lib/strsignal.c: Update includes.
22084         * modules/lock (Files, Makefile.am): Update.
22085         (Include): Change to "glthread/lock.h".
22086         * modules/tls (Files, Makefile.am): Update.
22087         (Include): Change to "glthread/tls.h".
22088         * tests/test-lock.c: Update includes.
22089         * tests/test-tls.c: Update includes.
22090         * NEWS: Mention the renamed header files.
22091
22092 2008-08-11  Jim Meyering  <meyering@redhat.com>
22093
22094         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22095
22096 2008-08-11  Eric Blake  <ebb9@byu.net>
22097
22098         test-c-stack: avoid C99-ism
22099         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22100         before statement.
22101         Reported by Alain Guibert.
22102
22103 2008-08-10  Jim Meyering  <meyering@redhat.com>
22104
22105         ensure that return value of uinttostr et al are not ignored
22106         * lib/inttostr.h (__GNUC_PREREQ): Define.
22107         (__attribute_warn_unused_result__): Define.
22108         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22109
22110 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22111
22112         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22113         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22114
22115 2008-08-07  Jim Meyering  <meyering@redhat.com>
22116
22117         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22118
22119         * modules/mkstemp (License): Relicense under LGPLv2+.
22120         * modules/tempname (License): Likewise.
22121
22122 2008-08-06  Bruno Haible  <bruno@clisp.org>
22123
22124         * lib/poll.c (poll): Further micro-optimization.
22125
22126 2008-08-06  Jim Meyering  <meyering@redhat.com>
22127
22128         inet_pton.c: use locale-independent tolower
22129         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22130         (inet_pton6): Use c_tolower rather than tolower.
22131         * modules/inet_pton (Depends-on): Add c-ctype.
22132
22133 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22134
22135         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22136         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22137
22138 2008-08-06  Jim Meyering  <meyering@redhat.com>
22139
22140         * modules/inet_pton (License): Relicense under LGPLv2+.
22141
22142 2008-08-03  Bruno Haible  <bruno@clisp.org>
22143
22144         Additional non-aborting API for lock and tls.
22145         * lib/lock.h: Include <errno.h>.
22146         (glthread_lock_init): New macro/function.
22147         (gl_lock_init): Define as wrapper around glthread_lock_init.
22148         (glthread_lock_lock): New macro/function.
22149         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22150         (glthread_lock_unlock): New macro/function.
22151         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22152         (glthread_lock_destroy): New macro/function.
22153         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22154         (glthread_rwlock_init): New macro/function.
22155         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22156         (glthread_rwlock_rdlock): New macro/function.
22157         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22158         (glthread_rwlock_wrlock): New macro/function.
22159         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22160         (glthread_rwlock_unlock): New macro/function.
22161         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22162         (glthread_rwlock_destroy): New macro/function.
22163         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22164         (glthread_recursive_lock_init): New macro/function.
22165         (gl_recursive_lock_init): Define as wrapper around
22166         glthread_recursive_lock_init.
22167         (glthread_recursive_lock_lock): New macro/function.
22168         (gl_recursive_lock_lock): Define as wrapper around
22169         glthread_recursive_lock_lock.
22170         (glthread_recursive_lock_unlock): New macro/function.
22171         (gl_recursive_lock_unlock): Define as wrapper around
22172         glthread_recursive_lock_unlock.
22173         (glthread_recursive_lock_destroy): New macro/function.
22174         (gl_recursive_lock_destroy): Define as wrapper around
22175         glthread_recursive_lock_destroy.
22176         (glthread_once): New macro/function.
22177         (gl_once): Define as wrapper around glthread_once.
22178         Update function declarations.
22179         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22180         glthread_rwlock_init. Return error code.
22181         (glthread_rwlock_rdlock_multithreaded): Renamed from
22182         glthread_rwlock_rdlock. Return error code.
22183         (glthread_rwlock_wrlock_multithreaded): Renamed from
22184         glthread_rwlock_wrlock. Return error code.
22185         (glthread_rwlock_unlock_multithreaded): Renamed from
22186         glthread_rwlock_unlock. Return error code.
22187         (glthread_rwlock_destroy_multithreaded): Renamed from
22188         glthread_rwlock_destroy. Return error code.
22189         (glthread_recursive_lock_init_multithreaded): Renamed from
22190         glthread_recursive_lock_init. Return error code.
22191         (glthread_recursive_lock_lock_multithreaded): Renamed from
22192         glthread_recursive_lock_lock. Return error code.
22193         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22194         glthread_recursive_lock_unlock. Return error code.
22195         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22196         glthread_recursive_lock_destroy. Return error code.
22197         (glthread_once_call): Make static.
22198         (glthread_once_multithreaded): Renamed from glthread_once.
22199         * lib/tls.h: Include <errno.h>.
22200         (glthread_tls_key_init): New macro/function.
22201         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22202         (glthread_tls_set): New macro/function.
22203         (gl_tls_set): Define as wrapper around glthread_tls_set.
22204         (glthread_tls_key_destroy): New macro/function.
22205         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22206         Update function declarations.
22207         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22208         glthread_tls_get.
22209         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22210
22211 2008-08-04  Eric Blake  <ebb9@byu.net>
22212
22213         gnumakefile: use space, not TAB, outside of targets
22214         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22215
22216 2008-08-02  Jim Meyering  <meyering@redhat.com>
22217
22218         getdate.y: avoid locale-dependent date parsing failure
22219         In Turkish locales, getdate would fail to recognize keywords
22220         containing a lowercase "i".  The solution is not to rely on
22221         locale-sensitive case-conversion.
22222         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22223         (lookup_word): Use c_toupper in place of toupper.
22224         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22225         Reported by Vefa Bicakci <bicave@superonline.com> in
22226         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22227         * modules/getdate (Depends-on): Add c-ctype.
22228
22229 2008-08-02  Bruno Haible  <bruno@clisp.org>
22230
22231         * gnulib-tool (func_import): When updating or creating a .gitignore
22232         file, prepend each added line with a slash, and ignore leading slashes
22233         from the existing lines.
22234         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22235
22236 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22237
22238         Portability fix for GNU make 3.79.1.
22239         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22240         versions do not understand.
22241
22242 2008-08-01  Bruno Haible  <bruno@clisp.org>
22243
22244         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22245         * tests/test-isnanf.h (zero): New variable.
22246         (main): Avoid literal -0.0f.
22247         * tests/test-isnand.h (zero): New variable.
22248         (main): Avoid literal -0.0.
22249         * tests/test-isnanl.h (zero): New variable.
22250         (main): Avoid literal -0.0L.
22251         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22252         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22253         -0.0, -0.0L.
22254         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22255         (test_signbitd): Avoid literal -0.0.
22256         (test_signbitl): Avoid literal -0.0L.
22257         * tests/test-ceilf1.c (zero): New variable.
22258         (main): Avoid literal -0.0f.
22259         * tests/test-ceill.c (zero): New variable.
22260         (main): Avoid literal -0.0L.
22261         * tests/test-floorf1.c (zero): New variable.
22262         (main): Avoid literal -0.0f.
22263         * tests/test-floorl.c (zero): New variable.
22264         (main): Avoid literal -0.0L.
22265         * tests/test-roundf1.c (zero): New variable.
22266         (main): Avoid literal -0.0f.
22267         * tests/test-round1.c (zero): New variable.
22268         (main): Avoid literal -0.0.
22269         * tests/test-roundl.c (zero): New variable.
22270         (main): Avoid literal -0.0L.
22271         * tests/test-truncf1.c (zero): New variable.
22272         (main): Avoid literal -0.0f.
22273         * tests/test-trunc1.c (zero): New variable.
22274         (main): Avoid literal -0.0.
22275         * tests/test-truncl.c (zero): New variable.
22276         (main): Avoid literal -0.0L.
22277         * tests/test-frexp.c (zero): New variable.
22278         (main): Avoid literal -0.0.
22279         * tests/test-frexpl.c (zero): New variable.
22280         (main): Avoid literal -0.0L.
22281         * tests/test-ldexpl.c (zero): New variable.
22282         (main): Avoid literal -0.0L.
22283         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22284         (zerod, zerol): New variables.
22285         (test_function): Avoid literals -0.0, -0.0L.
22286         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22287         (zerod, zerol): New variables.
22288         (test_function): Avoid literals -0.0, -0.0L.
22289         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22290         (zerod, zerol): New variables.
22291         (test_function): Avoid literals -0.0, -0.0L.
22292         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22293         (zerod, zerol): New variables.
22294         (test_function): Avoid literals -0.0, -0.0L.
22295         * tests/test-strtod.c (zero): New variable.
22296         (main): Avoid literal -0.0.
22297         Reported by Jonathan C. Patschke <jp@centtech.com>.
22298
22299 2008-07-31  Jim Meyering  <meyering@redhat.com>
22300
22301         sha256.h: correct definition of SHA224_DIGEST_SIZE
22302         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22303         Reported by Paulie Pena IV <paulie4@gmail.com>.
22304         Define as 224 / 8, rather than as a literal.
22305         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22306         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22307         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22308
22309 2008-07-31  Bruno Haible  <bruno@clisp.org>
22310
22311         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22312         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22313         Reported by Jonathan Patschke <jp@centtech.com>.
22314
22315 2008-07-31  Bruno Haible  <bruno@clisp.org>
22316
22317         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22318         Reported by Paolo Bonzini <bonzini@gnu.org>.
22319
22320 2008-07-30  Eric Blake  <ebb9@byu.net>
22321
22322         test-strtod: allow compilation without -lm
22323         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22324         Reported by Dennis Clarke <blastwave@gmail.com>.
22325
22326 2008-07-28  Jim Meyering  <meyering@redhat.com>
22327
22328         bootstrap: work also when there are no .po files in po/
22329         * build-aux/bootstrap (update_po_files): Complete the change
22330         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22331
22332 2008-07-27  Jim Meyering  <meyering@redhat.com>
22333
22334         * users.txt: Add zile.
22335
22336 2008-07-26  Ben Pfaff  <blp@gnu.org>
22337
22338         Add missing dependencies on new m4/exponent[fdl].m4 files.
22339         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22340         * modules/isnand-nolibm: Add m4/exponentd.m4.
22341         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22342         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22343         m4/isnan[fdl].m4, because the macros actually used moved.
22344         Reported by Jim Meyering.
22345
22346 2008-07-14  Ben Pfaff  <blp@gnu.org>
22347
22348         Add isinf module.
22349         * lib/isinf.c: New file.
22350         * lib/math.in.h: Define isinf macro if we have decided to replace
22351         it.
22352         * m4/isinf.m4: New file.
22353         * m4/math_h.m4: Initialize and substitute variables for isinf
22354         module.
22355         * modules/isinf: New file.
22356         * modules/isinf-tests: New file.
22357         * modules/math: Add substitutions for new module.
22358         * tests/test-isinf.c: New file.
22359         * doc/posix-functions/isinf.texi: Mention new module.
22360         * MODULES.html.sh: Mention new module.
22361
22362 2008-07-14  Ben Pfaff  <blp@gnu.org>
22363
22364         Factor out some macros for use by additional modules.
22365         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22366         exponentf.m4.
22367         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22368         exponentd.m4.
22369         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22370         file exponentl.m4.
22371         * m4/exponentf.m4: New file.
22372         * m4/exponentd.m4: New file.
22373         * m4/exponentl.m4: New file.
22374         * modules/isnanf: Use new file m4/exponentf.m4.
22375         * modules/isnand: Use new file m4/exponentd.m4.
22376         * modules/isnanl: Use new file m4/exponentl.m4.
22377
22378 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22379
22380         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22381         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22382         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22383         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22384
22385         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22386         readlink on platforms without PATH_MAX.
22387
22388 2008-07-21  Eric Blake  <ebb9@byu.net>
22389
22390         Warn, not fail, on stale version.
22391         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22392
22393         Don't allow installation with stale devel version number.
22394         * top/GNUmakefile (_is-install-target): New macro.
22395         (_curr-ver): Forbid installation with stale version number.
22396
22397 2008-07-20  Bruno Haible  <bruno@clisp.org>
22398
22399         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22400         TESTS_ENVIRONMENT.
22401         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22402
22403 2008-07-20  Bruno Haible  <bruno@clisp.org>
22404
22405         * lib/c-stack.h (c_stack_action): Add documentation.
22406         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22407
22408 2008-07-20  Bruno Haible  <bruno@clisp.org>
22409
22410         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22411         * modules/readlink (License): Likewise.
22412
22413 2008-07-17  Eric Blake  <ebb9@byu.net>
22414
22415         * modules/c-stack (Link): Fix typo.
22416
22417         Make c-stack use libsigsegv, when available.
22418         * modules/c-stack (Depends-on): Add libsigsegv.
22419         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22420         needed.
22421         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22422         (segv_handler, overflow_handler, c_stack_action)
22423         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22424         implementation when libsigsegv is available, but only when using
22425         the library is necessary.
22426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22427         comment, explaining why XSI check fails on Linux.
22428         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22429         * tests/test-c-stack2.sh: Tweak skip message.
22430         * NEWS: Document new link-time requirements.
22431
22432 2008-07-16  Eric Blake  <ebb9@byu.net>
22433
22434         c-stack: Expose false positives when not using libsigsegv.
22435         * modules/c-stack-tests (Files): Expand test.
22436         * tests/test-c-stack.c (main): Add means to conditionally trigger
22437         non-overflow SIGSEGV.
22438         * tests/test-c-stack2.sh: New file.
22439
22440 2008-07-14  Bruno Haible  <bruno@clisp.org>
22441
22442         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22443         Reported by Eric Blake.
22444
22445 2008-07-14  Sam Steingold  <sds@gnu.org>
22446             Bruno Haible  <bruno@clisp.org>
22447
22448         New module libsigsegv.
22449         * modules/libsigsegv: New file.
22450         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22451         modifications.
22452         * MODULES.html.sh (Signal handling): New section.
22453
22454 2008-07-14  Bruno Haible  <bruno@clisp.org>
22455
22456         * modules/unictype/ctype-* (Description): Add the word "function".
22457         Improves the resulting doc in MODULES.html.
22458
22459 2008-07-12  Ben Pfaff  <blp@gnu.org>
22460
22461         Add longlong module.
22462         * modules/longlong: New file.
22463
22464 2008-07-12  Bruno Haible  <bruno@clisp.org>
22465
22466         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22467         to empty.
22468
22469 2008-07-10  Ben Pfaff  <blp@gnu.org>
22470
22471         Add isnan module.
22472         * doc/posix-functions/isnan.texi: Mention new module.
22473         * lib/math.in.h: Define isnan macro if we have decided to replace
22474         it.
22475         * m4/isnan.m4: New file.
22476         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22477         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22478         also.
22479         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22480         redundancy.
22481         * m4/math_h.m4: Initialize and substitute variables for isnan
22482         module.
22483         * modules/isnan: New file.
22484         * modules/isnan-tests: New file.
22485         * modules/math: Add substitutions for new module.
22486         * tests/test-isnan.c: New file.
22487         * MODULES.html.sh: Mention new module.
22488
22489 2008-07-10  Ben Pfaff  <blp@gnu.org>
22490
22491         Add isnanf module.
22492         * lib/isnanf.m4: New file.
22493         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22494         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22495         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22496         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22497         * modules/isnanf: New file.
22498         * modules/isnanf-tests: New file.
22499         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22500         files.
22501         * tests/test-isnanf-nolibm.c: factored most of its contents into
22502         new file tests/test-isnanf.h.
22503         * tests/test-isnanf.h: New file.
22504         * tests/test-isnanf.c: New file.
22505         * MODULES.html.sh: Mention new module.
22506         * doc/glibc-functions/isnanf.texi: Mention new module.
22507
22508 2008-07-10  Ben Pfaff  <blp@gnu.org>
22509
22510         Add isnand module.
22511         * lib/isnand.h: New file.
22512         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22513         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22514         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22515         functionality also.
22516         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22517         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22518         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22519         * modules/isnand: New file.
22520         * modules/isnand-tests: New file.
22521         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22522         files.
22523         * tests/test-isnand-nolibm.c: factored most of its contents into
22524         new file tests/test-isnand.h.
22525         * tests/test-isnand.h: New file.
22526         * tests/test-isnand.c: New file.
22527         * MODULES.html.sh: Mention new module.
22528
22529 2008-07-10  Ben Pfaff  <blp@gnu.org>
22530
22531         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22532         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22533         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22534         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22535         * modules/isnanf-nolibm: Update references to renamed files.
22536         * modules/isnand-nolibm: Likewise.
22537         * modules/isnanf-nolibm-tests: Likewise.
22538         * modules/isnand-nolibm-tests: Likewise.
22539         * lib/frexp.c: Likewise.
22540         * lib/isfinite.c: Likewise.
22541         * lib/signbitd.c: Likewise.
22542         * lib/signbitf.c: Likewise.
22543         * lib/vasnprintf.c: Likewise.
22544         * tests/test-ceilf1.c: Likewise.
22545         * tests/test-ceilf2.c: Likewise.
22546         * tests/test-floorf1.c: Likewise.
22547         * tests/test-floorf2.c: Likewise.
22548         * tests/test-frexp.c: Likewise.
22549         * tests/test-round1.c: Likewise.
22550         * tests/test-round2.c: Likewise.
22551         * tests/test-roundf1.c: Likewise.
22552         * tests/test-strtod.c: Likewise.
22553         * tests/test-trunc1.c: Likewise.
22554         * tests/test-trunc2.c: Likewise.
22555         * tests/test-truncf1.c: Likewise.
22556         * tests/test-truncf2.c: Likewise.
22557         * NEWS: Mention the renamed header files.
22558
22559 2008-07-11  Jim Meyering  <meyering@redhat.com>
22560
22561         vc-list-files: make the last-resort awk code more portable
22562         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22563         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22564         does not support it.
22565
22566 2008-07-10  Eric Blake  <ebb9@byu.net>
22567
22568         Work with tar's bootstrap.
22569         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22570         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22571         an m4 comment.
22572
22573 2008-07-09  Jim Meyering  <meyering@redhat.com>
22574
22575         posix-shell.m4: fix typo that made this test malfunction
22576         * m4/posix-shell.m4: Remove capitalization in variable name.
22577
22578 2008-07-08  Bruno Haible  <bruno@clisp.org>
22579
22580         * m4/onceonly.m4: Update comments.
22581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22582
22583 2008-07-04  Jim Meyering  <meyering@redhat.com>
22584
22585         * users.txt: Add vc-dwim.
22586         (bison, coreutils): Use the gitweb URL.
22587
22588 2008-07-03  Jim Meyering  <meyering@redhat.com>
22589
22590         * users.txt: Add libffcall.  From Sam Steingold.
22591
22592 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
22593
22594         getdate.y: do not ignore TZ with relative day, month or year offset
22595         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22596         relative-date-handling, since otherwise, the latter would clobber the
22597         sole output (an updated Start value) of the tz-handling block.
22598         * tests/test-getdate.c: Tests for the fix
22599
22600 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22601
22602         Recognize 'foo_LIBRARIES += libgnu.a'.
22603         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22604         makefile snippet has already specified an installation location,
22605         also using '+='.
22606
22607 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
22608
22609         getdate.y: factor out common actions
22610         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22611         Use them in place of open-coded actions.
22612
22613 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22614
22615         Add self-test for getdate module.
22616         * modules/getdate-tests: New file.
22617         * tests/test-getdate.c: New file.
22618
22619 2008-06-29  Bruno Haible  <bruno@clisp.org>
22620
22621         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22622         .gitignore.
22623         Reported by Sylvain Beucler <beuc@beuc.net>.
22624
22625 2008-06-29  Bruno Haible  <bruno@clisp.org>
22626
22627         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22628         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22629
22630 2008-06-29  Bruno Haible  <bruno@clisp.org>
22631
22632         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22633         EXTRA_DIST.
22634         Reported by Sylvain Beucler <beuc@beuc.net>.
22635
22636 2008-06-26  Jim Meyering  <meyering@redhat.com>
22637
22638         make several modules depend on the "open" module
22639         This provides slightly increased consistency when opening-for-write
22640         the name of a non-directory spelled with a trailing slash.
22641         * modules/chdir-safer: Likewise.
22642         * modules/chown: Likewise.
22643         * modules/clean-temp: Likewise.
22644         * modules/copy-file: Likewise.
22645         * modules/fchdir: Likewise.
22646         * modules/fcntl-safer: Likewise.
22647         * modules/pipe: Likewise.
22648         * modules/utime: Likewise.
22649         Prompted by Eric Blake and Bruno Haible.
22650
22651 2008-06-24  Andreas Schwab  <schwab@suse.de>
22652
22653         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22654         literals can be used as initializers for global variables.
22655
22656 2008-06-23  Eric Blake  <ebb9@byu.net>
22657
22658         Make gnulib-cache.m4 easier to diff.
22659         * gnulib-tool (func_import): Allow newlines when reading cached
22660         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22661
22662 2008-06-23  Bruno Haible  <bruno@clisp.org>
22663
22664         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22665         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22666         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22667         m4/signalblocking.m4.
22668         (gl_PREREQ_SIGACTION): Don't invoke it.
22669         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22670         gl_PREREQ_SIG_HANDLER_H.
22671         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22672         Don't check for sigaction here.
22673
22674 2008-06-23  Bruno Haible  <bruno@clisp.org>
22675
22676         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22677         (install_handlers): Don't set the SA_RESETHAND flag.
22678
22679 2008-06-23  Bruno Haible  <bruno@clisp.org>
22680
22681         * m4/sigaction.m4: Comment fixes.
22682         * lib/signal.in.h: Likewise.
22683
22684 2008-06-23  Eric Blake  <ebb9@byu.net>
22685
22686         Fix typo.
22687         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22688
22689         Avoid SA_ namespace.
22690         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22691         Reported by Ralf Wildenhues.
22692
22693         Avoid test failure due to SA_RESTORER.
22694         * tests/test-sigaction.c (SA_MASK): New macro.
22695         (main): Avoid failing due to extension flags being set.
22696         Reported by Jim Meyering.
22697
22698         Revert use of sig-handler.h in sigprocmask.c.
22699         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22700         it requires the existence of struct sigaction.
22701         * lib/sigprocmask.c (handler_t): Restore typedef.
22702         (rpl_signal, old_handlers): Use local type.
22703
22704 2008-06-22  Bruno Haible  <bruno@clisp.org>
22705
22706         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22707         conditionally.
22708         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22709
22710 2008-06-22  Bruno Haible  <bruno@clisp.org>
22711
22712         * doc/posix-functions/siginterrupt.texi: Move note.
22713
22714         * lib/signal.in.h (SA_RESTART): New macro.
22715         * lib/sigaction.c: Update comment.
22716
22717         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22718
22719         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22720         (gl_PREREQ_SIGPROCMASK): Invoke it.
22721         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22722
22723         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22724
22725         * lib/sigprocmask.c: Update a comment.
22726
22727 2008-06-21  Eric Blake  <ebb9@byu.net>
22728
22729         Use sigaction module rather than signal().
22730         * modules/c-stack (Depends-on): Add sigaction.
22731         * modules/fatal-signal (Depends-on): Likewise.
22732         * modules/nanosleep (Depends-on): Likewise.
22733         * modules/sigprocmask (Files): Add sig-handler.h.
22734         * modules/sigaction (Files): Likewise.
22735         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22736         Eggert.
22737         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22738         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22739         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22740         (init_fatal_signals): Likewise.
22741         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22742         (siginterrupt): Delete fallback.
22743         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22744         instead.
22745         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22746         siginterrupt.
22747
22748         New module sigaction, for mingw.
22749         * modules/sigaction: New module...
22750         * modules/sigaction-tests: ...and its test.
22751         * m4/sigaction.m4: New file.
22752         * lib/sigaction.c: Likewise.
22753         * tests/test-sigaction.c: Likewise.
22754         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22755         * modules/signal (Makefile.am): Likewise.
22756         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22757         needed.
22758         * doc/posix-headers/signal.texi (signal.h): Mention provided
22759         types.
22760         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22761         that sigaction is preferable.
22762         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22763         module.
22764         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22765         sigaction.
22766
22767         Improve robustness of sigprocmask by overriding signal.
22768         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22769         is in use.
22770         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22771         (SIGKILL, SIGSTOP): Provide fallbacks.
22772         (rpl_signal): Implement.
22773         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22774         signal can be called inside handlers.
22775
22776         Fix nanosleep module on mingw.
22777         * modules/nanosleep (Depends-on): Add sys_select.
22778         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22779
22780         Fix licensing of sigprocmask.
22781         * modules/raise (License): Relicense as LGPL.
22782
22783 2008-06-21  Bruno Haible  <bruno@clisp.org>
22784
22785         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22786         result if it contains question marks.
22787         Reported by Michael Geng <linux@michaelgeng.de>.
22788
22789 2008-06-19  Bruno Haible  <bruno@clisp.org>
22790
22791         Fix CVS-ism.
22792         * doc/gnulib.texi: Include updated-stamp.texi.
22793         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22794         (updated-stamp.texi): New rule.
22795         (gnulib.info): Depend on it.
22796         * doc/.gitignore: Add updated-stamp.texi.
22797         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22798
22799 2008-06-19  Bruno Haible  <bruno@clisp.org>
22800
22801         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22802         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22803
22804 2008-06-19  Eric Blake  <ebb9@byu.net>
22805
22806         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22807         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22808         Reported by Stepan Kasal.
22809
22810 2008-06-18  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22813         Reported by Eric Blake.
22814
22815 2008-06-18  Eric Blake  <ebb9@byu.net>
22816
22817         Work around cygwin 1.5.25 strsignal bug.
22818         * tests/test-strsignal.c: Allow for const char *.
22819         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22820
22821 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22822
22823         * users.txt: Update URL to article and add author/date
22824         information.
22825
22826 2008-06-17  Bruno Haible  <bruno@clisp.org>
22827
22828         New macro gl_DISABLE_THREADS.
22829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22830         if the user did not pass --enable-threads or --disable-threads option.
22831         (gl_DISABLE_THREADS): New macro.
22832         Reported by Eric Blake <ebb9@byu.net>.
22833
22834 2008-06-17  Bruno Haible  <bruno@clisp.org>
22835
22836         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22837         when the macro ignores it.
22838         Based on a patch by Eric Blake <ebb9@byu.net>.
22839
22840 2008-06-17  Bruno Haible  <bruno@clisp.org>
22841
22842         * modules/tls (License): Change to LGPLv2+.
22843         Reported by Eric Blake.
22844
22845 2008-06-17  Eric Blake  <ebb9@byu.net>
22846
22847         Simplify c-stack prerequisites.
22848         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22850         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22851         check.
22852         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22853         <sys/resource.h>.
22854
22855         Move c-stack test into testsuite.
22856         * modules/c-stack-tests: New file.
22857         * lib/c-stack.c [DEBUG]: Move test program...
22858         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22859         fail test if sigaltstack is lacking.
22860         * tests/test-c-stack.sh: New driver file.
22861
22862 2008-06-16  Eric Blake  <ebb9@byu.net>
22863
22864         Use raise module consistently.
22865         * modules/fatal-signal (Depends-on): Add raise.
22866         * modules/sigprocmask (Depends-on): Likewise.
22867         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22868         * lib/sigprocmask.c (sigprocmask): Likewise.
22869         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22870         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22871
22872         Fix compliance bug in sigpending.
22873         * lib/sigprocmask.c (sigpending): Return pending array via
22874         parameter, not return value.
22875
22876 2008-06-14  Eric Blake  <ebb9@byu.net>
22877
22878         Improve obstack-printf test code.
22879         * tests/test-obstack-printf.c (test_function): Fix comment, and
22880         simplify usage of obstack_* in macros.  Add a test for coverage.
22881         Reported by Bruno Haible.
22882
22883 2008-06-14  Bruno Haible  <bruno@clisp.org>
22884
22885         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22886         array size as a constant, not as a const variable.
22887         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22888         AC_USE_SYSTEM_EXTENSIONS.
22889         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22890         Test whether the obstack_printf function actually exists.
22891         * modules/obstack-printf (Depends-on): Add extensions.
22892         (Include): Remove obstack.h.
22893         * modules/obstack-printf-posix (Depends-on): Add extensions.
22894         (Include): Remove obstack.h.
22895
22896 2008-06-13  Eric Blake  <ebb9@byu.net>
22897
22898         Add obstack-printf and obstack-printf-posix modules.
22899         * modules/obstack-printf: New file.
22900         * modules/obstack-printf-posix: Likewise.
22901         * MODULES.html.sh (Misc): Mention them.
22902         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22903         Likewise.
22904         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22905         Likewise.
22906         * modules/stdio (Makefile.am): Accomodate new modules.
22907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22908         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22909         Declare.
22910         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22911         functions.
22912         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22913         (gl_REPLACE_OBSTACK_PRINTF): New macros
22914         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22915         * tests/test-obstack-printf.c: New file.
22916         * modules/obstack-printf-tests: Likewise.
22917         * modules/obstack-printf-posix-tests: Likewise.
22918
22919 2008-06-11  Bruno Haible  <bruno@clisp.org>
22920
22921         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22922         * lib/open.c: Include errno.h.
22923         (open): Fail when attempting to write to a file that has a trailing
22924         slash.
22925         * tests/test-open.c (main): Test against trailing slash bug.
22926         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22927
22928 2008-06-10  Bruno Haible  <bruno@clisp.org>
22929
22930         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22931         for $? to work inside the trap command, with various /bin/sh-s.
22932         * tests/test-vc-list-files-cvs.sh: Likewise.
22933
22934 2008-06-10  Bruno Haible  <bruno@clisp.org>
22935
22936         * lib/acl-internal.h: Don't include gettext.h here.
22937         * lib/set-mode-acl.c: Include gettext.h here.
22938         * lib/copy-acl.c: Likewise.
22939
22940 2008-06-10  Bruno Haible  <bruno@clisp.org>
22941
22942         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22943         * lib/wait-process.c (wait_subprocess): Likewise.
22944         * lib/execute.h (execute): Add termsigp argument.
22945         * lib/execute.c (execute): Likewise.
22946         * lib/csharpcomp.c (compile_csharp_using_pnet,
22947         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22948         * lib/csharpexec.c (execute_csharp_using_pnet,
22949         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22950         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22951         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22952         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22953         is_jikes_present): Update.
22954         * lib/javaexec.c (execute_java_class): Update.
22955         * lib/javaversion.c (execute_and_read_line): Update.
22956         * NEWS: Document the changes.
22957         Reported by Eric Blake.
22958
22959 2008-06-10  Eric Blake  <ebb9@byu.net>
22960
22961         Add missing include.
22962         * tests/test-strstr.c (includes): Add <signal.h>.
22963         * tests/test-strcasestr.c (includes): Likewise.
22964         * tests/test-memmem.c (includes): Likewise.
22965
22966 2008-06-10  Bruno Haible  <bruno@clisp.org>
22967
22968         * lib/wait-process.c (wait_subprocess): Add an assertion.
22969
22970 2008-06-10  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22973
22974 2008-06-10  Bruno Haible  <bruno@clisp.org>
22975
22976         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22977         using alarm().
22978         * tests/test-strcasestr.c (main): Likewise.
22979         * tests/test-strstr.c (main): Likewise.
22980
22981 2008-06-09  Bruno Haible  <bruno@clisp.org>
22982
22983         Work around the Solaris 10 ACE ACLs ABI change.
22984         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22985         declare if ACL_NO_TRIVIAL is present.
22986         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22987         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22988         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22989         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22990         define if ACL_NO_TRIVIAL is present.
22991         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22992         and use the current ABI.
22993         (file_has_acl): Use same #if condition as elsewhere.
22994         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22995         in use, and use the current ABI.
22996         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22997         Reported by Jim Meyering.
22998
22999 2008-06-09  Eric Blake  <ebb9@byu.net>
23000
23001         Work around environments that (stupidly) ignore SIGALRM.
23002         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23003         before using alarm().
23004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23006         Reported by Ian Beckwith <ianb@erislabs.net>.
23007
23008         Produce autobuild blurb earlier in log.
23009         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23010
23011 2008-06-09  Jim Meyering  <meyering@redhat.com>
23012         and OndÅ™ej Vašík  <ovasik@redhat.com>
23013
23014         utimens.c: correct kernel bug work-around
23015         OndÅ™ej Vašík found that the invalid return value of 280 indicates
23016         failure, not success, and the kernel bug we're trying to work
23017         around affects not just the utimensat call, but also the fallback
23018         futimens call.
23019         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23020         not success.
23021         [HAVE_FUTIMENS]: Use the same work-around, here.
23022
23023 2008-06-09  Jim Meyering  <meyering@redhat.com>
23024
23025         add more guards around definition of ACE_-related code
23026         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23027         ALLOW and ACE_OWNER are also defined.
23028
23029 2008-06-08  Bruno Haible  <bruno@clisp.org>
23030
23031         * lib/acl-internal.h: Add me as co-author.
23032         * lib/file-has-acl.c: Likewise.
23033         * lib/set-mode-acl.c: Likewise.
23034         * lib/copy-acl.c: Likewise.
23035
23036 2008-06-08  Bruno Haible  <bruno@clisp.org>
23037
23038         Add support for AIX ACLs.
23039         * lib/acl-internal.h (acl_nontrivial): New declaration.
23040         * lib/file-has-acl.c (acl_nontrivial): New function.
23041         (file_has_acl): Add implementation using AIX 4 ACL API.
23042         * lib/set-mode-acl.c (qset_acl): Likewise.
23043         * lib/copy-acl.c (qcopy_acl): Likewise.
23044
23045 2008-06-08  Bruno Haible  <bruno@clisp.org>
23046
23047         Add support for HP-UX ACLs.
23048         * lib/acl-internal.h (acl_nontrivial): New declaration.
23049         * lib/file-has-acl.c (acl_nontrivial): New function.
23050         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23051         * lib/set-mode-acl.c (qset_acl): Likewise.
23052         * lib/copy-acl.c (qcopy_acl): Likewise.
23053
23054 2008-06-08  Bruno Haible  <bruno@clisp.org>
23055
23056         Add support for Cygwin ACLs.
23057         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23058         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23059         the chmod_or_fchmod call.
23060         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23061
23062 2008-06-08  Bruno Haible  <bruno@clisp.org>
23063
23064         Fix bug with setuid modes in Solaris 10+ code.
23065         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23066         succeeded, when the mode contains some special bits.
23067
23068 2008-06-08  Bruno Haible  <bruno@clisp.org>
23069
23070         Add support for Solaris 7..10 ACLs.
23071         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23072         declarations.
23073         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23074         functions.
23075         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23076         * lib/set-mode-acl.c (qset_acl): Likewise.
23077         * lib/copy-acl.c (qcopy_acl): Likewise.
23078
23079 2008-06-08  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23082         declaration.
23083         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23084         (acl_access_nontrivial): Remove MacOS X case.
23085         (file_has_acl): Use acl_extended_nontrivial.
23086         * lib/copy-acl.c (qcopy_acl): Likewise.
23087
23088 2008-06-08  Bruno Haible  <bruno@clisp.org>
23089
23090         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23091
23092 2008-06-08  Jim Meyering  <meyering@redhat.com>
23093
23094         * modules/acl (Maintainer): Add Bruno Haible.
23095
23096 2008-06-07  Bruno Haible  <bruno@clisp.org>
23097
23098         Improve support for Tru64 ACLs.
23099         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23100         ACL on OSF/1.
23101
23102 2008-06-07  Bruno Haible  <bruno@clisp.org>
23103
23104         Add support for MacOS X ACLs.
23105         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23106         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23107         * lib/set-mode-acl.c (qset_acl): Likewise.
23108         * lib/copy-acl.c (qcopy_acl): Likewise.
23109
23110 2008-06-07  Bruno Haible  <bruno@clisp.org>
23111
23112         Fix memory leak introduced on 2008-05-22.
23113         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23114         use.
23115
23116 2008-06-07  Bruno Haible  <bruno@clisp.org>
23117
23118         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23119         to construct an empty ACL.
23120
23121 2008-06-07  Bruno Haible  <bruno@clisp.org>
23122
23123         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23124         precisely.
23125         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23126
23127 2008-06-07  Bruno Haible  <bruno@clisp.org>
23128
23129         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23130         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23131
23132 2008-06-07  Bruno Haible  <bruno@clisp.org>
23133
23134         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23135         regardless of POSIX.
23136         * doc/posix-functions/_longjmp.texi: Likewise.
23137         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23138         SystemV platform in this case.
23139
23140 2008-06-06  Eric Blake  <ebb9@byu.net>
23141
23142         Document abort() bugs.
23143         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23144
23145         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23146         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23147         sigsetjmp.
23148         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23149         siglongjmp, but only as a macro.
23150         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23151         is obsolete.
23152         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23153
23154         Tweak documentation to cover cygwin argz bugs.
23155         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23156         argz bug fix; no code change needed since no cygwin releases
23157         occurred between the last fix and the bug being tested.
23158         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23159         module and recently fixed cygwin bugs.
23160         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23161         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23162         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23163         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23164         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23165         Likewise.
23166         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23167         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23168         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23169         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23170         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23171         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23172         Likewise.
23173
23174         Avoid gcc warning on cygwin.
23175         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23176         !ACL_NO_TRIVIAL]: Avoid unused variable.
23177
23178 2008-06-05  Eric Blake  <ebb9@byu.net>
23179
23180         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23181         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23182         git-version-gen fails to come up with a version.
23183         Reported by Simon Josefsson.
23184
23185 2008-06-05  Jim Meyering  <meyering@redhat.com>
23186             Paul Eggert  <eggert@cs.ucla.edu>
23187
23188         utimens.c: work around a probable Linux kernel bug
23189         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23190         appears to be a kernel bug that causes utimensat to return 280
23191         instead of 0, indicating success.
23192
23193 2008-06-04  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23196         2008-06-01 commit.
23197
23198 2008-06-04  Bruno Haible  <bruno@clisp.org>
23199
23200         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23201         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23202         (file_has_acl): Use it. Save errno afterwards.
23203         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23204
23205 2008-06-03  Bruno Haible  <bruno@clisp.org>
23206
23207         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23208         draft code. Simplify #ifs.
23209         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23210         Put Solaris code after POSIX-draft code. Fix comments regarding
23211         Solaris 10, HP-UX. Mention Cygwin.
23212         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23213
23214 2008-06-03  Eric Blake  <ebb9@byu.net>
23215
23216         Provide fallback for older kernels.
23217         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23218         Provide runtime fallback if kernel lacks support.
23219         Reported by Mike Frysinger.
23220
23221 2008-06-02  Bruno Haible  <bruno@clisp.org>
23222
23223         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23224         it exists.
23225
23226 2008-06-02  Bruno Haible  <bruno@clisp.org>
23227
23228         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23229         * lib/copy-acl.c (qcopy_acl): Update comment.
23230
23231 2008-06-02  Bruno Haible  <bruno@clisp.org>
23232
23233         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23234         like ACL APIs.
23235
23236 2008-06-02  Bruno Haible  <bruno@clisp.org>
23237
23238         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23239         * tests/test-set-mode-acl.sh: Likewise.
23240         * tests/test-copy-acl.sh: Likewise.
23241         * tests/test-copy-file.sh: Likewise.
23242
23243 2008-06-02  Bruno Haible  <bruno@clisp.org>
23244
23245         * tests/test-file-has-acl.sh: Remove unused code.
23246
23247 2008-06-01  Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23250         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23251         messages.
23252         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23253
23254 2008-06-01  Bruno Haible  <bruno@clisp.org>
23255
23256         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23257         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23258         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23259         APIs.
23260         * modules/acl-tests (configure.ac): Remove tests now contained in
23261         m4/acl.m4.
23262
23263 2008-06-02  Jim Meyering  <meyering@redhat.com>
23264
23265         announce-gen: use a better key-server host name
23266         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23267         it may be more consistently reliable.  Suggested by Werner Koch
23268         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23269
23270 2008-06-01  Bruno Haible  <bruno@clisp.org>
23271
23272         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23273         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23274
23275 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23276
23277         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23278
23279 2008-06-01  Bruno Haible  <bruno@clisp.org>
23280
23281         New ACL tests.
23282         * tests/test-file-has-acl.sh: New file.
23283         * tests/test-file-has-acl.c: New file.
23284         * tests/test-set-mode-acl.sh: New file.
23285         * tests/test-set-mode-acl.c: New file.
23286         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23287         * tests/test-copy-acl.c: New file.
23288         * modules/acl-tests: New file, based on modules/copy-file-tests.
23289         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23290         (Depends-on): Add acl-tests.
23291         (configure.ac): Remove checks.
23292         (Makefile.am): Don't create test-sameacls program here any more.
23293
23294 2008-06-01  Bruno Haible  <bruno@clisp.org>
23295
23296         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23297         * tests/test-sameacls.c: Include progname.h.
23298         (main): Invoke set_program_name. Portability fixes for MacOS X,
23299         Solaris, HP-UX.
23300
23301 2008-06-01  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23304         function.
23305         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23306
23307 2008-06-01  Bruno Haible  <bruno@clisp.org>
23308
23309         * modules/rpmatch (Depends-on): Add strdup.
23310
23311 2008-06-01  Bruno Haible  <bruno@clisp.org>
23312
23313         * lib/pipe.c: Include unistd-safer.h.
23314         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23315         * modules/pipe (Depends-on): Add unistd-safer.
23316
23317 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23318
23319         * modules/autobuild (configure.ac): Call AB_INIT.
23320
23321 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23322
23323         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23324         Suggested by Bruno Haible <bruno@clisp.org>.
23325
23326 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23327
23328         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23329         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23330         <bruno@clisp.org>.
23331
23332 2008-05-29  Eric Blake  <ebb9@byu.net>
23333
23334         Prefer new POSIX 200x interfaces over futimesat.
23335         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23336         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23337         when available.
23338         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23339
23340 2008-05-28  Bruno Haible  <bruno@clisp.org>
23341
23342         * modules/stpcpy (License): Change to LGPLv2+.
23343         Requested by David Lutterkort <dlutter@redhat.com>.
23344
23345 2008-05-27  Bruno Haible  <bruno@clisp.org>
23346
23347         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23348         current mingw.
23349         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23350
23351 2008-05-27  Bruno Haible  <bruno@clisp.org>
23352
23353         * modules/iconv_open (Link): New section, from module 'iconv'.
23354         * modules/striconv (Link): Likewise.
23355         * modules/striconveh (Link): Likewise.
23356         * modules/xstriconv (Link): Likewise.
23357         * modules/unicodeio (Link): Likewise.
23358         * modules/propername (Link): Likewise.
23359         Reported by Jim Meyering.
23360
23361 2008-05-26  Jim Meyering  <meyering@redhat.com>
23362
23363         sha256: do not artificially restrict buffer length to be < 2^32
23364         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23365         uint32_t to size_t.
23366         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23367         to match.
23368
23369         avoid unaligned access errors, e.g., on sparc
23370         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23371         direct access through a possibly-unaligned uint64* pointer.
23372         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23373         direct access through a possibly-unaligned uint32* pointer.
23374         Prompted by this patch from Tom "spot" Callaway:
23375         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23376
23377         sha512.c: fix typo in comment
23378         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23379
23380 2008-05-25  Bruno Haible  <bruno@clisp.org>
23381
23382         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23383         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23384         (Makefile.am): Update lib_SOURCES.
23385
23386 2008-05-25  Bruno Haible  <bruno@clisp.org>
23387
23388         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23389
23390 2008-05-25  Jim Meyering  <meyering@redhat.com>
23391
23392         useless-if-before-free: freed expr may have white-space differences
23393         * build-aux/useless-if-before-free: Recognize cases in which the
23394         freed expression differs from the tested one in embedded white
23395         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23396         $1 was used, so we can't make any regexp shy.  Improved tests now
23397         detect this.
23398
23399         useless-if-before-free: accept white space in the expression.
23400         * build-aux/useless-if-before-free: For now, any white space
23401         in the expression must be identical in the free argument.
23402
23403         useless-if-before-free: efficiency tweak
23404         * build-aux/useless-if-before-free: Make the expression-matching
23405         regexp "shy".
23406         Make the *outer* regexp shy, not the expr-matching one.
23407
23408         update code-in-comment to accept cast of free arg
23409         * build-aux/useless-if-before-free: Update regexp.
23410
23411 2008-05-25  Bruno Haible  <bruno@clisp.org>
23412
23413         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23414         * modules/copy-file-tests (Files, Makefile.am): Update.
23415         * tests/test-copy-file.c (func_test_copy): Update.
23416
23417 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23418
23419         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23420
23421 2008-05-23  Bruno Haible  <bruno@clisp.org>
23422
23423         Improve support for ACLs on OSF/1.
23424         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23425         Remove fallback for unknown flavors of ACLs.
23426
23427 2008-05-22  Bruno Haible  <bruno@clisp.org>
23428
23429         Add support for ACLs on OSF/1.
23430         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23431         replacements.
23432         (acl_free_text): New macro fallback.
23433         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23434         acl_free.
23435         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23436         acl_free_text function. Require AC_C_INLINE.
23437
23438 2008-05-22  Bruno Haible  <bruno@clisp.org>
23439
23440         Make copy_acl work on MacOS X 10.5.
23441         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23442         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23443         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23444         If MODE_INSIDE_ACL, don't assume that every system has the same text
23445         representation for ACLs as FreeBSD.
23446         * lib/copy-acl.c (copy_acl): Add support for platforms with
23447         !MODE_INSIDE_ACL.
23448         * lib/file-has-acl.c (file_has_acl): Likewise.
23449         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23450         FreeBSD, MacOS X, or IRIX, respectively.
23451
23452 2008-05-22  Bruno Haible  <bruno@clisp.org>
23453
23454         * lib/acl.h: Don't include <sys/acl.h>.
23455         (GETACLCNT): Move fallback to lib/acl-internal.h.
23456         * lib/acl-internal.h: Include <sys/acl.h> here.
23457         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23458
23459 2008-05-22  Bruno Haible  <bruno@clisp.org>
23460
23461         Split off copy_acl function to separate file.
23462         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23463         * lib/acl.c (copy_acl): Moved function to separate file.
23464         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23465         * modules/acl (Files): Add lib/copy-acl.c.
23466         (Makefiles.am): Augment lib_SOURCES.
23467
23468 2008-05-22  Bruno Haible  <bruno@clisp.org>
23469
23470         * modules/copy-file-tests: New file.
23471         * tests/test-copy-file.sh: New file.
23472         * tests/test-copy-file.c: New file.
23473         * tests/test-copy-file-sameacls.c: New file.
23474
23475 2008-05-22  Eric Blake  <ebb9@byu.net>
23476
23477         Avoid gcc warning.
23478         * tests/test-memcmp.c (main): Pass NULL indirectly.
23479
23480 2008-05-21  Bruno Haible  <bruno@clisp.org>
23481
23482         Add reference doc about ACLs.
23483         * doc/acl-resources.txt: New file.
23484         * doc/acl-cygwin.txt: New file.
23485
23486 2008-05-21  Bruno Haible  <bruno@clisp.org>
23487
23488         Avoid one more warning from gcc.
23489         * lib/vasnprintf.c (IF_LINT): Update comments.
23490         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23491
23492 2008-05-21  Jim Meyering  <meyering@redhat.com>
23493
23494         avoid a warning from gcc
23495         * lib/vasnprintf.c (IF_LINT): Define.
23496         (scale10_round_decimal_long_double):
23497         Use it to avoid a "may be used uninitialized" warning.
23498         (scale10_round_decimal_double): Likewise.
23499
23500 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23501
23502         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23503         declared.
23504
23505 2008-05-20  Bruno Haible  <bruno@clisp.org>
23506
23507         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23508         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23509
23510 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23511
23512         * modules/memcmp-tests: New file.
23513         * tests/test-memcmp.c: New file.
23514
23515 2008-05-19  Bruno Haible  <bruno@clisp.org>
23516
23517         * modules/propername (Notice, configure.ac): Put quoted "..." into
23518         --keyword option.
23519         * lib/propername.h: Update comments accordingly.
23520         Reported by Eric Blake.
23521
23522 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23523
23524         * modules/getpass-gnu (Depends-on): Add fseeko.
23525
23526 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23527
23528         * modules/base64-tests: New file.
23529
23530 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23531
23532         * lib/base64.c (base64_decode_ctx): If a decode context structure
23533         was passed in use it to ignore newlines.  If a context structure
23534         was _not_ passed in, continue to treat newlines as garbage (this
23535         is the historical behavior).  Formerly base64_decode.
23536         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23537         takes a decode context structure.
23538         * lib/base64.h (base64_decode): Macro for four-argument calls.
23539         (base64_decode_alloc): Likewise.
23540         * lib/base64.c (base64_decode_ctx): If a decode context structure
23541         was passed in use it to ignore newlines.  If a context structure
23542         was _not_ passed in, continue to treat newlines as garbage (this
23543         is the historical behavior).  Formerly base64_decode.
23544         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23545         takes a decode context structure.
23546         * lib/base64.h (base64_decode): Macro for four-argument calls.
23547         (base64_decode_alloc): Likewise.
23548
23549 2008-05-19  Jim Meyering  <meyering@redhat.com>
23550
23551         avoid a warning from gcc
23552         * lib/trim.c (IF_LINT): Define.
23553         (trim2): Use it to avoid a "may be used uninitialized" warning.
23554
23555         Fix doc typo.
23556         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23557
23558 2008-05-19  Bruno Haible  <bruno@clisp.org>
23559
23560         * doc/glibc-functions/getpass.texi: Document limits of other
23561         implementations.
23562
23563 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23564             Bruno Haible <bruno@clisp.org>
23565
23566         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23567
23568 2008-05-18  Bruno Haible  <bruno@clisp.org>
23569
23570         * modules/propername: New file, from GNU gettext.
23571         * lib/propername.h: New file, from GNU gettext.
23572         * lib/propername.c: New file, from GNU gettext.
23573         * MODULES.html.sh (Internationalization functions): Add propername.
23574
23575 2008-05-16  Jim Meyering  <meyering@redhat.com>
23576             Bruno Haible  <bruno@clisp.org>
23577
23578         Avoid some warnings from "gcc -Wshadow".
23579         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23580
23581 2008-05-15  Eric Blake  <ebb9@byu.net>
23582
23583         Extend previous patch to cygwin 1.7.0.
23584         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23585         fast implementation in cygwin >= 1.7.0.
23586         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23588
23589 2008-05-15  Bruno Haible  <bruno@clisp.org>
23590
23591         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23592         implementation in glibc >= 2.9.
23593         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23595
23596 2008-05-15  Bruno Haible  <bruno@clisp.org>
23597
23598         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23599         (Unicode string functions): Add unilbrk/*.
23600         Reported by Karl Berry.
23601
23602 2008-05-15  Eric Blake  <ebb9@byu.net>
23603
23604         Fix violation of <stdbool.h> replacement in regex.
23605         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23606         * lib/regexec.c (re_search_internal): Likewise.
23607         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23608
23609 2008-05-15  Jim Meyering  <meyering@redhat.com>
23610
23611         avoid distracting test output when git or cvs is not found
23612         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23613         * tests/test-vc-list-files-git.sh: Likewise.
23614
23615 2008-05-15  Eric Blake  <ebb9@byu.net>
23616
23617         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23618         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23619         glibc version.
23620         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23621         * doc/posix-functions/strstr.texi (strstr): Likewise.
23622         * lib/str-two-way.h (MAX): Sychronize with glibc.
23623
23624 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23625
23626         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23627         opr.ctx_type.
23628         (calc_first): Initialize constraint field.
23629         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23630         Fix grammar.
23631         (duplicate_node): Merge constraint field for all node types.
23632         (calc_eclosure_iter): Look at constraint field for all node types.
23633         * lib/regex_internal.c (create_cd_newstate): Don't look at
23634         opr.ctx_type.
23635
23636 2008-05-14  Bruno Haible  <bruno@clisp.org>
23637
23638         Help GCC to do better code generation.
23639         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23640         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23641         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23642         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23643         Declare with attribute 'malloc' if supported.
23644
23645 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23646
23647         use "echo STR|wc -c" rather than unportable "expr length STR"
23648         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23649         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23650
23651 2008-05-14  Jim Meyering  <meyering@redhat.com>
23652
23653         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23654         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23655         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23656         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23657         via Collin Lasse.
23658
23659 2008-05-14  Eric Blake  <ebb9@byu.net>
23660
23661         Avoid quadratic growth in gl_LIBSOURCES.
23662         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23663         Suggested by Bruno Haible.
23664
23665         Test xmemdup0.
23666         * modules/xmemdup0-tests: New file.
23667         * tests/test-xmemdup0.c: Likewise.
23668
23669 2008-05-13  Eric Blake  <ebb9@byu.net>
23670
23671         Split xmemdup0 into its own module.
23672         * modules/xmemdup0: New file.
23673         * lib/xmemdup0.h: Likewise.
23674         * lib/xmemdup0.c: Likewise.
23675         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23676         * lib/xalloc.h (xmemdup0): Remove.
23677         * lib/xmalloc.c (xmemdup0): Likewise.
23678
23679 2008-05-13  Eric Blake  <ebb9@byu.net>
23680             Bruno Haible  <bruno@clisp.org>
23681
23682         Reduce number of forks required during autoconf.
23683         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23684         and gl_LIBSOURCES_DIR.
23685         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23686         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23687         m4_syscmd per file.
23688         <m4_foreach_w>: Move...
23689         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23690
23691 2008-05-13  Eric Blake  <ebb9@byu.net>
23692
23693         * gnulib-tool: Fix various comment typos.
23694
23695 2008-05-12  Bruno Haible  <bruno@clisp.org>
23696
23697         Tailor the linebreaking algorithm.
23698         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23699
23700 2008-05-12  Bruno Haible  <bruno@clisp.org>
23701
23702         Update to Unicode 5.0.0.
23703         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23704         LBP_JV, LBP_JT. Redistribute values.
23705         (unilbrk_table): Change size.
23706         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23707         Unicode TR#14 rev. 22.
23708         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23709         LBP_JV, LBP_JT. Redistribute values.
23710         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23711         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23712         Update.
23713         * lib/unilbrk/lbrkprop1.h: Regenerated.
23714         * lib/unilbrk/lbrkprop2.h: Regenerated.
23715         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23716         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23717         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23718         Likewise.
23719         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23720         Likewise.
23721         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23722         result.
23723         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23724         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23725         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23726         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23727         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23728         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23729
23730 2008-05-11  Bruno Haible  <bruno@clisp.org>
23731
23732         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23733
23734 2008-05-11  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23737         * modules/unilbrk/gen-lbrk: New file.
23738
23739 2008-05-11  Bruno Haible  <bruno@clisp.org>
23740
23741         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23742         * m4/sha512.m4 (gl_SHA512): Likewise.
23743
23744 2008-05-11  Jim Meyering  <meyering@redhat.com>
23745
23746         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23747         * modules/crypto/sha256: New file.
23748         * modules/crypto/sha512: Likewise.
23749         * lib/sha256.c: Likewise.
23750         * lib/sha256.h: Likewise.
23751         * lib/sha512.c: Likewise.
23752         * lib/sha512.h: Likewise.
23753         * lib/u64.h: Likewise.
23754         * m4/sha256.m4: Likewise.
23755         * m4/sha512.m4: Likewise.
23756         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23757
23758 2008-05-10  Bruno Haible  <bruno@clisp.org>
23759
23760         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23761         (Input/Output <stdio.h>): Add xprintf.
23762         (Signal handling <signal.h>): Add strsignal.
23763         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23764         (Core language properties): Add func.
23765         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23766         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23767         strings.
23768         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23769         (Input/output): New section.
23770         (File system functions): Add openat-die, stat-macros.
23771         (Networking functions): Add sockets.
23772         (Unicode string functions): Add unictype/*.
23773         (Support for building libraries and executables): Add gperf.
23774         (Support for building documentation): Add agpl-3.0.
23775         (Misc): Add nocrash.
23776
23777 2008-05-10  Bruno Haible  <bruno@clisp.org>
23778
23779         * modules/unictype/gen-ctype: New file.
23780
23781 2008-05-10  Jim Meyering  <meyering@redhat.com>
23782
23783         Make chdir-safer.c more efficient on a system with no symlinks.
23784         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23785         also if ELOOP is zero.  Suggested by Bruno Haible.
23786
23787         Make chdir-safer.c slightly safer.
23788         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23789         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23790
23791         Avoid compile failure on systems without ELOOP (like mingw).
23792         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23793         Reported by Bruno Haible.
23794
23795 2008-05-10  Bruno Haible  <bruno@clisp.org>
23796
23797         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23798         (is_utf8_encoding): Use a case-insensitive comparison.
23799         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23800         streq.
23801
23802 2008-05-10  Bruno Haible  <bruno@clisp.org>
23803
23804         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23805         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23806         * lib/unilbrk/ulc-common.h (iconv_string_length,
23807         iconv_string_keeping_offsets): Remove declarations.
23808         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23809         Don't include <iconv.h>, streq.h, xsize.h.
23810         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23811         conversion.
23812         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23813         <iconv.h>, streq.h, xsize.h.
23814         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23815         conversion.
23816         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23817         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23818         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23819         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23820
23821 2008-05-10  Bruno Haible  <bruno@clisp.org>
23822
23823         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23824         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23825
23826         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23827         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23828
23829         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23830         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23831
23832         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23833         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23834
23835         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23836         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23837
23838         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23839         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23840
23841         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23842         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23843
23844         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23845         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23846
23847 2008-05-10  Bruno Haible  <bruno@clisp.org>
23848
23849         Split up 'linebreak' module.
23850         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23851         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23852         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23853         modifications.
23854         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23855         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23856         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23857         lib/linebreak.c.
23858         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23859         lib/linebreak.c.
23860         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23861         lib/linebreak.c.
23862         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23863         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23864         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23865         lib/linebreak.c.
23866         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23867         lib/linebreak.c.
23868         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23869         lib/linebreak.c.
23870         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23871         lib/linebreak.c.
23872         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23873         lib/linebreak.c.
23874         * modules/unilbrk/base: New file.
23875         * modules/unilbrk/tables: New file.
23876         * modules/unilbrk/u8-possible-linebreaks: New file.
23877         * modules/unilbrk/u16-possible-linebreaks: New file.
23878         * modules/unilbrk/u32-possible-linebreaks: New file.
23879         * modules/unilbrk/ulc-common: New file.
23880         * modules/unilbrk/ulc-possible-linebreaks: New file.
23881         * modules/unilbrk/u8-width-linebreaks: New file.
23882         * modules/unilbrk/u16-width-linebreaks: New file.
23883         * modules/unilbrk/u32-width-linebreaks: New file.
23884         * modules/unilbrk/ulc-width-linebreaks: New file.
23885         * lib/linebreak.h: Remove file.
23886         * lib/linebreak.c: Remove file.
23887         * m4/linebreak.m4: Remove file.
23888         * modules/linebreak: Remove file.
23889         * NEWS: Mention the changes.
23890
23891 2008-05-09  Eric Blake  <ebb9@byu.net>
23892
23893         Add xmemdup0.
23894         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23895         implementation.
23896         * lib/xmalloc.c (xmemdup0): New C implementation.
23897
23898 2008-05-08  Bruno Haible  <bruno@clisp.org>
23899
23900         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23901
23902 2008-05-07  Eric Blake  <ebb9@byu.net>
23903
23904         Support cross-compilation of <wctype.h>.
23905         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23906         AC_CACHE_CHECK.
23907
23908 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23909
23910         * build-aux/vc-list-files: Add support for bzr.
23911
23912 2008-05-03  Jim Meyering  <meyering@redhat.com>
23913
23914         avoid failed assertion with tight malloc
23915         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23916
23917 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23918
23919         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23920         are needed from arpa/inet.h.
23921         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23922         Reported by Bruno Haible.
23923
23924 2008-05-02  Jim Meyering  <meyering@redhat.com>
23925
23926         avoid compilation error on FreeBSD 6
23927         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23928
23929 2008-05-01  Jim Meyering  <meyering@redhat.com>
23930
23931         useless-if-before-free: correct --help's exit status description
23932         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23933         for one or more matches, etc.  Reported by Bruno Haible.
23934
23935         vc-list-files: make the stand-alone gnulib test work
23936         * modules/vc-list-files-tests (configure.ac):
23937         Define and AC_SUBST abs_aux_dir.
23938         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23939         $(abs_top_srcdir) to each script and having each of them
23940         duplicate the work of setting PATH, set PATH here, using
23941         the new variable, abs_aux_dir instead.
23942         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23943         * tests/test-vc-list-files-git.sh: Likewise.
23944         Reported by Bruno Haible.
23945
23946 2008-05-01  Bruno Haible  <bruno@clisp.org>
23947
23948         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23949         reallocation. Rename 'done' to 'found_delimiter'.
23950
23951 2008-05-01  Jim Meyering  <meyering@redhat.com>
23952
23953         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23954         * build-aux/vc-list-files: Use `...`, not $(...).
23955
23956 2008-04-30  Jim Meyering  <meyering@redhat.com>
23957
23958         add tests for vc-list-files
23959         * modules/vc-list-files-tests: New module.
23960         * tests/test-vc-list-files-cvs.sh: New file.
23961         * tests/test-vc-list-files-git.sh: New file.
23962
23963         avoid a warning from gcc
23964         * lib/getndelim2.c (IF_LINT): Define.
23965         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23966
23967         vc-list-files: work properly with build-aux/cvsu, too
23968         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23969         to all cvs-based clauses.
23970
23971         vc-list-files: work properly in the CVS+awk case, too
23972         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23973
23974         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23975         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23976         take more than one file argument, so .  Add quotes, just in case $dir
23977         ever contains a shell meta-character.  Prompted by Soren Hansen in
23978         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23979
23980 2008-04-29  Eric Blake  <ebb9@byu.net>
23981
23982         Optimize getndelim2 to use block operations when possible.
23983         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23984         freadseek, and memchr2.
23985         * lib/getndelim2.c (getndelim2): Use them for block reads.
23986
23987 2008-04-29  Bruno Haible  <bruno@clisp.org>
23988
23989         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23990         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23991         * modules/inet_ntop (Depends-on): Add extensions.
23992         * modules/inet_pton (Depends-on): Likewise.
23993         Reported by Simon Josefsson.
23994
23995 2008-04-29  Jim Meyering  <meyering@redhat.com>
23996
23997         When the is more than one match in a block, match all of them.
23998         * build-aux/useless-if-before-free: Iterate through each block
23999         until there are no more matches.
24000
24001         Fix broken useless-if-before-free script.
24002         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24003         the expression to match cast of argument to free-like function.
24004
24005 2008-04-29  Eric Blake  <ebb9@byu.net>
24006
24007         Use new header.
24008         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24009
24010 2008-04-29  Jim Meyering  <meyering@redhat.com>
24011
24012         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24013         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24014         by gnulib to exist and to declare e.g., inet_ntop.
24015         Don't include "inet_ntop.h", now removed.
24016
24017         * m4/arpa_inet_h.m4: Remove trailing blanks.
24018
24019 2008-04-29  Eric Blake  <ebb9@byu.net>
24020
24021         Silence valgrind on safe reads beyond potential array bounds.
24022         * lib/rawmemchr.valgrind: New file.
24023         * lib/strchrnul.valgrind: Likewise.
24024         * modules/rawmemchr (Files): Distribute new file.
24025         * modules/strchrnul (Files): Likewise.
24026         Suggested by Bruno Haible.
24027
24028 2008-04-29  Bruno Haible  <bruno@clisp.org>
24029
24030         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24031         (inet_ntop, inet_pton): Change portability warning's wording.
24032         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24033         Invoke gl_CHECK_NEXT_HEADERS.
24034         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24035         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24036         set ARPA_INET_H.
24037         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24038         * modules/arpa_inet (Description): No longer only for systems that
24039         lack it.
24040         (Depends-on): Add include_next.
24041         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24042         HAVE_ARPA_INET_H.
24043
24044 2008-04-29  Jim Meyering  <meyering@redhat.com>
24045
24046         * modules/mkdir (License): Re-license as LGPLv2+.
24047
24048 2008-04-29  Bruno Haible  <bruno@clisp.org>
24049
24050         * modules/rawmemchr (Maintainer): Set to Eric.
24051         * modules/strchrnul (Maintainer): Likewise.
24052
24053 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24054
24055         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24056         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24057
24058         * modules/arpa_inet (arpa/inet.h): Use them.
24059
24060 2008-04-28  Eric Blake  <ebb9@byu.net>
24061
24062         Test getndelim2.
24063         * modules/getndelim2-tests: New file.
24064         * tests/test-getndelim2.c: Likewise.
24065         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24066         stream.
24067         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24068
24069         * MODULES.html.sh: Document new module.
24070
24071 2008-04-20  Bruno Haible  <bruno@clisp.org>
24072
24073         * lib/c-stack.c (die): Use raise.
24074         * modules/c-stack (Depends-on): Add raise.
24075
24076 2008-04-28  Bruno Haible  <bruno@clisp.org>
24077
24078         Expect rpmatch to be declared.
24079         * lib/yesno.c (rpmatch): Remove declaration.
24080
24081         Declare rpmatch.
24082         * lib/stdlib.in.h (rpmatch): New declaration.
24083         * lib/rpmatch.c: Include <stdlib.h> first.
24084         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24085         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24087         HAVE_RPMATCH.
24088         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24090         (Include): Set to <stdlib.h>.
24091         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24092         HAVE_RPMATCH.
24093         * NEWS: Document the change.
24094
24095 2008-04-28  Bruno Haible  <bruno@clisp.org>
24096
24097         Change rpmatch to use nl_langinfo when appropriate.
24098         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24099         (N_): New macro.
24100         (localized_pattern): New function/macro.
24101         (try): Remove match, nomatch arguments. Copy the pattern into safe
24102         memory before caching it.
24103         (rpmatch): Use localized_pattern. Add translator comments.
24104         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24105         Suggested by Eric Blake.
24106         * modules/rpmatch (Depends-on): Add stdbool.
24107
24108 2008-04-28  Eric Blake  <ebb9@byu.net>
24109
24110         Add rawmemchr module, matching glibc.
24111         * modules/string (Makefile.am): New indicator.
24112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24113         * lib/string.in.h (rawmemchr): Declare when appropriate.
24114         * modules/rawmemchr: New file.
24115         * m4/rawmemchr.m4: Likewise.
24116         * lib/rawmemchr.c: Likewise.
24117         * modules/rawmemchr-tests: Likewise.
24118         * tests/test-rawmemchr.c: Likewise.
24119         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24120         module.
24121         * modules/strchrnul (Depends-on): Add rawmemchr.
24122         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24123
24124         Whitespace cleanup.
24125         * tests/test-strchrnul.c: Reindent.
24126         * lib/strchrnul.c: Likewise.
24127
24128         Optimize and test strchrnul.
24129         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24130         * modules/strchrnul-tests: New file.
24131         * tests/test-strchrnul.c: Likewise.
24132
24133         Remove intprops dependency.
24134         * modules/memchr (Depends-on): Remove intprops.
24135         * modules/memrchr (Depends-on): Likewise.
24136         * modules/memchr2 (Depends-on): Likewise.
24137         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24138         * lib/memrchr.c (__memrchr): Likewise.
24139         * lib/memrchr2.c (memchr2): Likewise.
24140         Reported by Simon Josefsson.
24141
24142 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24143
24144         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24145         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24146
24147 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24148
24149         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24150
24151         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24152
24153         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24154
24155         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24156         declarations.
24157         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24158
24159         * m4/inet_pton.m4: Don't check for header files.
24160
24161         * m4/inet_ntop.m4: Don't check for header files.
24162
24163 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24164
24165         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24166         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24167         trigger for cygwin).
24168         Reported by Bruno Haible  <bruno@clisp.org>.
24169
24170 2008-04-28  Bruno Haible  <bruno@clisp.org>
24171
24172         * doc/posix-functions/strdup.texi: Mention mingw problem.
24173
24174 2008-04-27  Bruno Haible  <bruno@clisp.org>
24175
24176         * modules/stat-time-tests (Depends-on): Add sleep.
24177         * tests/test-stat-time.c (force_unlink): New function.
24178         (cleanup): Use it.
24179         (test_mtime): Remove the ctime related tests.
24180         (test_ctime): New function, containing the ctime related tests.
24181         (main): Call test_ctime, except on native Windows platforms.
24182
24183 2008-04-27  Bruno Haible  <bruno@clisp.org>
24184
24185         * lib/rpmatch.c (rpmatch): Add some comments.
24186         Reported by James Youngman <jay@gnu.org>.
24187
24188 2008-04-27  Bruno Haible  <bruno@clisp.org>
24189
24190         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24191         quiet NaNs.
24192
24193 2008-04-27  Bruno Haible  <bruno@clisp.org>
24194
24195         Make test-yesno.sh work on mingw.
24196         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24197         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24198         (main): Set stdin to binary mode.
24199         * modules/yesno-tests (Depends-on): Add binary-io.
24200
24201 2008-04-27  Bruno Haible  <bruno@clisp.org>
24202
24203         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24204         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24205         argument that lie outside the IEEE 854 domain.
24206         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24207         (gl_ISFINITE): Use it.
24208         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24209
24210 2008-04-27  Bruno Haible  <bruno@clisp.org>
24211
24212         Allow local renaming in config.h.
24213         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24214
24215 2008-04-27  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/memchr.c (__memchr): Change type of 'i'.
24218         * lib/memchr2.c (memchr2): Likewise.
24219
24220 2008-04-26  Eric Blake  <ebb9@byu.net>
24221         and Bruno Haible  <bruno@clisp.org>
24222
24223         Optimize and test memrchr.
24224         * modules/memrchr (Depends-on): Add intprops.
24225         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24226         * modules/memrchr-tests: New file.
24227         * tests/test-memrchr.c: New file.
24228
24229 2008-04-26  Bruno Haible  <bruno@clisp.org>
24230
24231         Add tentative support for DragonFly BSD.
24232         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24233         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24234         fp.
24235         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24236         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24237         * lib/fpurge.c (fpurge): Likewise.
24238         * lib/freadable.c (freaadable): Likewise.
24239         * lib/freadahead.c (freadahead): Likewise.
24240         * lib/freading.c (freading): Likewise.
24241         * lib/freadptr.c (freadptr): Likewise.
24242         * lib/freadseek.c (freadptrinc): Likewise.
24243         * lib/fseeko.c (fseeko): Likewise.
24244         * lib/fseterr.c (fseterr): Likewise.
24245         * lib/fwritable.c (fwritable): Likewise.
24246         * lib/fwriting.c (fwriting): Likewise.
24247
24248 2008-04-26  Bruno Haible  <bruno@clisp.org>
24249
24250         * lib/stdio-impl.h: New file.
24251         * lib/fbufmode.c: Include stdio-impl.h.
24252         (fbufmode): Use fp_, remove redundant #defines.
24253         * lib/fflush.c: Include stdio-impl.h.
24254         (clear_ungetc_buffer): Remove redundant #defines.
24255         * lib/fpurge.c: Include stdio-impl.h.
24256         (fpurge): Remove redundant #defines.
24257         * lib/freadable.c: Include stdio-impl.h.
24258         (freadable): Remove redundant #defines.
24259         * lib/freadahead.c: Include stdio-impl.h.
24260         (freadahead): Remove redundant #defines.
24261         * lib/freading.c: Include stdio-impl.h.
24262         (freading): Remove redundant #defines.
24263         * lib/freadptr.c: Include stdio-impl.h.
24264         (freadptr): Remove redundant #defines.
24265         * lib/freadseek.c: Include stdio-impl.h.
24266         (freadptrinc): Remove redundant #defines.
24267         * lib/fseeko.c: Include stdio-impl.h.
24268         (rpl_fseeko): Remove redundant #defines.
24269         * lib/fseterr.c: Include stdio-impl.h.
24270         (fseterr): Remove redundant #defines.
24271         * lib/fwritable.c: Include stdio-impl.h.
24272         (fwritable: Remove redundant #defines.
24273         * lib/fwriting.c: Include stdio-impl.h.
24274         (fwriting): Remove redundant #defines.
24275         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24276         * modules/fflush (Files): Likewise.
24277         * modules/fpurge (Files): Likewise.
24278         * modules/freadable (Files): Likewise.
24279         * modules/freadahead (Files): Likewise.
24280         * modules/freading (Files): Likewise.
24281         * modules/freadptr (Files): Likewise.
24282         * modules/freadseek (Files): Likewise.
24283         * modules/fseeko (Files): Likewise.
24284         * modules/fseterr (Files): Likewise.
24285         * modules/fwritable (Files): Likewise.
24286         * modules/fwriting (Files): Likewise.
24287
24288 2008-04-26  Bruno Haible  <bruno@clisp.org>
24289
24290         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24291         restore_seek_optimization, update_fpos_cache): New functions, extracted
24292         from rpl_fflush.
24293         (rpl_fflush): Use them.
24294         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24295         (gl_REPLACE_FFLUSH): Use it.
24296
24297 2008-04-26  Bruno Haible  <bruno@clisp.org>
24298
24299         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24300         on Solaris.
24301         * tests/test-xstrtoimax.sh: Likewise.
24302         * tests/test-xstrtoumax.sh: Likewise.
24303         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24304
24305 2008-04-26  Bruno Haible  <bruno@clisp.org>
24306
24307         * modules/memchr-tests: New file.
24308         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24309
24310 2008-04-26  Eric Blake  <ebb9@byu.net>
24311             Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/memchr.c: Include intprops.h.
24314         (__memchr): Optimize parallel detection of matching bytes. Rename local
24315         variables. Add explanatory comments.
24316
24317 2008-04-26  Bruno Haible  <bruno@clisp.org>
24318
24319         Fix module 'memchr', broken since 2000-10-28.
24320         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24321
24322 2008-04-26  Bruno Haible  <bruno@clisp.org>
24323
24324         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24325         comments.
24326
24327 2008-04-25  Eric Blake  <ebb9@byu.net>
24328
24329         Use native fstatat on cygwin 1.7.0.
24330         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24331         first.
24332
24333 2008-04-23  Eric Blake  <ebb9@byu.net>
24334
24335         Improve memchr2 performance.
24336         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24337         NUL bytes.
24338         * modules/memchr2 (Depends-on): Use intprops.h.
24339
24340 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24341
24342         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24343         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24344         <blp@cs.stanford.edu>.
24345
24346 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24347
24348         * lib/arpa_inet.in.h: New file.
24349
24350         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24351         (Makefile.am): Sed in substitute header file.
24352
24353         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24354         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24355
24356         * modules/inet_ntop (configure.ac): Use
24357         gl_ARPA_INET_MODULE_INDICATOR.
24358
24359         * modules/inet_pton (configure.ac): Use
24360         gl_ARPA_INET_MODULE_INDICATOR.
24361
24362 2008-04-22  Jim Meyering  <meyering@redhat.com>
24363
24364         * modules/verify (License): Re-license as LGPLv2+.
24365
24366 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24367
24368         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24369         parameter to void* as per POSIX standard (MinGW uses char*).
24370
24371 2008-04-21  Bruno Haible  <bruno@clisp.org>
24372
24373         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24374         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24375         Define to replacements if REPLACE_ISWCNTRL is 1.
24376         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24377         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24378         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24379         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24380         what it fixes.
24381         * doc/posix-functions/iswalpha.texi: Likewise.
24382         * doc/posix-functions/iswblank.texi: Likewise.
24383         * doc/posix-functions/iswcntrl.texi: Likewise.
24384         * doc/posix-functions/iswdigit.texi: Likewise.
24385         * doc/posix-functions/iswgraph.texi: Likewise.
24386         * doc/posix-functions/iswlower.texi: Likewise.
24387         * doc/posix-functions/iswprint.texi: Likewise.
24388         * doc/posix-functions/iswpunct.texi: Likewise.
24389         * doc/posix-functions/iswspace.texi: Likewise.
24390         * doc/posix-functions/iswupper.texi: Likewise.
24391         * doc/posix-functions/iswxdigit.texi: Likewise.
24392         Reported by Alain Guibert.
24393
24394 2008-04-21  Bruno Haible  <bruno@clisp.org>
24395
24396         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24397         Patch by Alain Guibert.
24398
24399 2008-04-21  Bruno Haible  <bruno@clisp.org>
24400
24401         Fix test failures on mingw.
24402         * tests/test-xstrtol.c (print_no_progname): New function.
24403         (main): Install it in error_print_progname hook.
24404         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24405         * tests/test-xstrtoimax.sh: Likewise.
24406         * tests/test-xstrtoumax.sh: Likewise.
24407
24408 2008-04-21  Bruno Haible  <bruno@clisp.org>
24409
24410         Fix test failure on mingw.
24411         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24412
24413 2008-04-21  Bruno Haible  <bruno@clisp.org>
24414
24415         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24416         Actually assign a value.
24417
24418 2008-04-20  Bruno Haible  <bruno@clisp.org>
24419
24420         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24421         take 2.
24422         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24423         'canonicalize-lgpl' module is also used.
24424         * lib/canonicalize-lgpl.c: Undo last change.
24425         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24426
24427 2008-04-20  Bruno Haible  <bruno@clisp.org>
24428
24429         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24430         config.h. Provide _mkdir based fallback for mingw.
24431         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24432         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24433         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24434         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24435         rather than defining mkdir in config.h.
24436         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24437         (gl_SYS_STAT_H_DEFAULTS): New macro.
24438         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24439         HAVE_IO_H any more.
24440         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24441         HAVE_DECL_MKDIR and HAVE_IO_H.
24442
24443 2008-04-20  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/isapipe.c: Port to native Windows platforms.
24446
24447 2008-04-20  Bruno Haible  <bruno@clisp.org>
24448
24449         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24450
24451 2008-04-21  Eric Blake  <ebb9@byu.net>
24452
24453         Work around preprocessors that don't handle UINTMAX_MAX.
24454         * lib/memchr2.c (memchr2): Avoid embedded #if.
24455         Reported by Alain Guibert, fix suggested by Bruno Haible.
24456
24457 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24458
24459         * doc/posix-functions/strftime.texi (strftime): Explain better
24460         Windows incompatibility.  Suggested by Micah Cowan
24461         <micah@cowan.name>.
24462
24463 2008-04-20  Bruno Haible  <bruno@clisp.org>
24464
24465         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24466         unistr/u8-mblen.
24467
24468 2008-04-20  Bruno Haible  <bruno@clisp.org>
24469
24470         Fix test failure on platforms with non-GNU iconv.
24471         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24472         (U_TO_U8): Use it, rather than u16_to_u8.
24473         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24474         units at the end of the input string.
24475         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24476
24477 2008-04-20  Bruno Haible  <bruno@clisp.org>
24478
24479         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24480         when the resulting length is 0.
24481         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24482
24483 2008-04-20  Bruno Haible  <bruno@clisp.org>
24484
24485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24486         works.
24487         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24488
24489 2008-04-20  Bruno Haible  <bruno@clisp.org>
24490
24491         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24492         * modules/tsearch-tests (configure.ac): Test for initstate function.
24493
24494 2008-04-20  Bruno Haible  <bruno@clisp.org>
24495
24496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24497         for nlink_t if missing.
24498         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24499
24500 2008-04-19  Bruno Haible  <bruno@clisp.org>
24501
24502         Work around snprintf bug on Linux libc5.
24503         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24505         gl_SNPRINTF_SIZE1.
24506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24507         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24508         that test failed.
24509         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24510         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24511         * modules/snprintf (Files): Add m4/printf.m4.
24512         * modules/vsnprintf (Files): Likewise.
24513         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24514         * doc/posix-functions/vsnprintf.texi: Likewise.
24515
24516 2008-04-19  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24519         from 0.0058 to less than 10^-7.
24520
24521 2008-04-19  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix rounding when a precision is given.
24524         * lib/vasnprintf.c (is_borderline): New function.
24525         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24526         9...9x.
24527         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24528         %e, %g.
24529         * tests/test-vasprintf-posix.c (test_function): Likewise.
24530         * tests/test-snprintf-posix.h (test_function): Likewise.
24531         * tests/test-sprintf-posix.h (test_function): Likewise.
24532         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24533         * tests/test-printf-posix.h (test_function): Likewise.
24534         * tests/test-printf-posix.output: Update.
24535         Reported by John Darrington <john@darrington.wattle.id.au> via
24536         Ben Pfaff <blp@cs.stanford.edu>.
24537
24538 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24539
24540         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24541         Suggested by Bruno Haible <bruno@clisp.org>.
24542
24543 2008-04-17  Bruno Haible  <bruno@clisp.org>
24544
24545         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24546         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24547         implementation.
24548         Patch by Bruce Merry <bmerry@gmail.com>.
24549
24550 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24551
24552         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24553         doesn't work under Windows.
24554
24555 2008-04-16  Bruno Haible  <bruno@clisp.org>
24556
24557         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24558         New macros.
24559         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24560         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24561         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24562         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24563         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24564         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24565         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24566         macros.
24567         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24568         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24569         Northern Sotho, Uighur.
24570
24571 2008-04-16  Bruno Haible  <bruno@clisp.org>
24572
24573         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24574         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24575         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24576         Reported by Daniel Bergström <daniel@octocode.com>.
24577
24578 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24579             Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24582         function.
24583         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24584         New functions, mostly extracted from gl_locale_name_default.
24585         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24586
24587 2008-04-16  Eric Blake  <ebb9@byu.net>
24588
24589         Adjust strtod detection to catch glibc 2.7 bug.
24590         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24591         Reported by John Gatewood Ham.
24592
24593 2008-04-16  Bruno Haible  <bruno@clisp.org>
24594
24595         Add tentative support for Linux libc5.
24596         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24597         * lib/fpurge.c (fpurge): Likewise.
24598         * lib/freadable.c (freadable): Likewise.
24599         * lib/freadahead.c (freadahead): Likewise.
24600         * lib/freading.c (freading): Likewise.
24601         * lib/freadptr.c (freadptr): Likewise.
24602         * lib/freadseek.c (freadptrinc): Likewise.
24603         * lib/fseeko.c (rpl_fseeko): Likewise.
24604         * lib/fseterr.c (fseterr): Likewise.
24605         * lib/fwritable.c (fwritable): Likewise.
24606         * lib/fwriting.c (fwriting): Likewise.
24607         Reported by Alain Guibert <alguibert+bts@free.fr>.
24608
24609 2008-04-15  Bruno Haible  <bruno@clisp.org>
24610
24611         * modules/mathl (configure.ac): Define module indicator.
24612
24613 2008-04-15  Bruno Haible  <bruno@clisp.org>
24614
24615         * lib/logl.c (logl): Remove unused variables.
24616
24617 2008-04-15  Bruno Haible  <bruno@clisp.org>
24618
24619         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24620         fails.
24621
24622 2008-04-15  Bruno Haible  <bruno@clisp.org>
24623
24624         * lib/trim.c (trim2): Fix argument of isspace() macro.
24625
24626 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24627
24628         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24629         to 0.
24630         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24631
24632 2008-04-14  Bruno Haible  <bruno@clisp.org>
24633
24634         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24635         AC_LANG_PROGRAM argument.
24636         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24637         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24640         * m4/math_h.m4 (gl_MATH_H): Likewise.
24641         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24643         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24644         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24645         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24646         * m4/regex.m4 (gl_REGEX): Likewise.
24647         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24648         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24650         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24651         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24652         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24655
24656 2008-04-14  Jim Meyering  <meyering@redhat.com>
24657
24658         test-strtod: fix typos: s/abs/fabs/
24659         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24660
24661 2008-04-13  Bruno Haible  <bruno@clisp.org>
24662
24663         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24664         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24665         module is also used and while not building the reloc-wrapper.
24666
24667 2008-04-13  Bruno Haible  <bruno@clisp.org>
24668
24669         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24670
24671 2008-04-13  Bruno Haible  <bruno@clisp.org>
24672
24673         Fix AIX compilation failure introduced on 2008-04-02.
24674         * tests/test-frexp.c (exp): Undefine before redefining.
24675         * tests/test-frexpl.c (exp): Likewise.
24676
24677 2008-04-13  Bruno Haible  <bruno@clisp.org>
24678
24679         Work around a HP-UX stdio bug.
24680         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24681         * tests/test-ftello.c (main): Likewise.
24682         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24683         * doc/posix-functions/ftello.texi: Likewise.
24684
24685 2008-04-13  Bruno Haible  <bruno@clisp.org>
24686
24687         Make test-signbit pass on HP-UX/hppa.
24688         * tests/test-signbit.c (minus_zerol): New variable.
24689         (test_signbitl): Use it.
24690
24691 2008-04-13  Bruno Haible  <bruno@clisp.org>
24692
24693         Make truncl work on OSF/1 4.0.
24694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24695         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24696         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24698         HAVE_DECL_TRUNCL.
24699         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24700         HAVE_DECL_TRUNCL.
24701         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24702
24703 2008-04-13  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24706
24707 2008-04-13  Bruno Haible  <bruno@clisp.org>
24708
24709         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24710         expression, so as to avoid HP-UX 11 cc compiler bug.
24711
24712 2008-04-13  Bruno Haible  <bruno@clisp.org>
24713
24714         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24715
24716 2008-04-13  Bruno Haible  <bruno@clisp.org>
24717
24718         * lib/git-merge-changelog.c: Remove empty declaration outside of
24719         functions.
24720
24721 2008-04-13  Bruno Haible  <bruno@clisp.org>
24722
24723         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24724
24725 2008-04-13  Bruno Haible  <bruno@clisp.org>
24726
24727         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24728         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24730         also if it exists but lacks definitions of the SHUT_* macros.
24731         * modules/sys_socket (Description): Update.
24732         Reported by Elbert Pol <e.pol@chello.nl>.
24733
24734 2008-04-13  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/localcharset.c (OS2): Don't redefine if already defined.
24737         Reported by Elbert Pol <e.pol@chello.nl>.
24738
24739 2008-04-13  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/binary-io.h [__EMX__]: Include <io.h>.
24742         Reported by Elbert Pol <e.pol@chello.nl>.
24743
24744 2008-04-12  Bruno Haible  <bruno@clisp.org>
24745
24746         * lib/fpucw.h: Enable the definitions also for x86_64.
24747         Needed for NetBSD/x86_64.
24748         Reported by Thomas Klausner <tk@giga.or.at>.
24749
24750 2008-04-12  Bruno Haible  <bruno@clisp.org>
24751
24752         * tests/test-strtod.c: Include isnand.h.
24753         (main): Use isnand instead of isnan.
24754         Reported by Jim Meyering.
24755
24756 2008-04-12  Bruno Haible  <bruno@clisp.org>
24757
24758         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24759         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24760
24761 2008-04-12  Jim Meyering  <meyering@redhat.com>
24762
24763         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24764
24765 2008-04-12  Bruno Haible  <bruno@clisp.org>
24766
24767         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24768         Reported by Elbert Pol <e.pol@chello.nl>.
24769
24770 2008-04-12  Eric Blake  <ebb9@byu.net>
24771
24772         Work around Solaris 10 math.h bug.
24773         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24774         (gl_MATH_H_DEFAULTS): Set up default.
24775         * modules/math (Makefile.am): Replace new indicators.
24776         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24777         * tests/test-math.c (main): Test this.
24778         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24779         * doc/posix-headers/math.texi (math.h): Mention bug.
24780         Reported by Nelson H. F. Beebe and Jim Meyering.
24781
24782 2008-04-11  Bruno Haible  <bruno@clisp.org>
24783
24784         Adapt to future versions of Apple GCC.
24785         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24786         Reported by Peter O'Gorman <peter@pogma.com>.
24787
24788 2008-04-11  Bruno Haible  <bruno@clisp.org>
24789
24790         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24791
24792 2008-04-11  Bruno Haible  <bruno@clisp.org>
24793
24794         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24795
24796         * modules/getaddrinfo-tests (Makefile.am): Define
24797         test_getaddrinfo_LDADD.
24798
24799 2008-04-11  Bruno Haible  <bruno@clisp.org>
24800
24801         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24802         (init): Fix syntax error.
24803         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24804         is declared.
24805
24806 2008-04-11  Bruno Haible  <bruno@clisp.org>
24807
24808         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24809         * modules/glob (Depends-on): Add stdbool.
24810
24811 2008-04-11  Bruno Haible  <bruno@clisp.org>
24812
24813         * lib/trim.c: Include <string.h>.
24814
24815 2008-04-11  Eric Blake  <ebb9@byu.net>
24816
24817         Avoid compile failure on OS/2.
24818         * lib/regex_internal.h (internal_function): Disable optimization
24819         on OS/2 (__EMX__), where it caused compiler error.
24820         Reported by Elbert Pol.
24821
24822 2008-04-11  Bruno Haible  <bruno@clisp.org>
24823
24824         Flush the standard error stream before aborting. Needed on mingw.
24825         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24826         * tests/test-array_list.c (ASSERT): Likewise.
24827         * tests/test-array_oset.c (ASSERT): Likewise.
24828         * tests/test-avltree_list.c (ASSERT): Likewise.
24829         * tests/test-avltree_oset.c (ASSERT): Likewise.
24830         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24831         * tests/test-binary-io.c (ASSERT): Likewise.
24832         * tests/test-byteswap.c (ASSERT): Likewise.
24833         * tests/test-c-ctype.c (ASSERT): Likewise.
24834         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24835         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24836         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24837         * tests/test-c-strstr.c (ASSERT): Likewise.
24838         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24839         * tests/test-canonicalize.c (ASSERT): Likewise.
24840         * tests/test-carray_list.c (ASSERT): Likewise.
24841         * tests/test-ceilf1.c (ASSERT): Likewise.
24842         * tests/test-ceilf2.c (ASSERT): Likewise.
24843         * tests/test-ceill.c (ASSERT): Likewise.
24844         * tests/test-count-one-bits.c (ASSERT): Likewise.
24845         * tests/test-fbufmode.c (ASSERT): Likewise.
24846         * tests/test-fflush2.c (ASSERT): Likewise.
24847         * tests/test-floorf1.c (ASSERT): Likewise.
24848         * tests/test-floorf2.c (ASSERT): Likewise.
24849         * tests/test-floorl.c (ASSERT): Likewise.
24850         * tests/test-fopen.c (ASSERT): Likewise.
24851         * tests/test-fpending.c (ASSERT): Likewise.
24852         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24853         * tests/test-fpurge.c (ASSERT): Likewise.
24854         * tests/test-freadable.c (ASSERT): Likewise.
24855         * tests/test-freadahead.c (ASSERT): Likewise.
24856         * tests/test-freading.c (ASSERT): Likewise.
24857         * tests/test-freadptr.c (ASSERT): Likewise.
24858         * tests/test-freadptr2.c (ASSERT): Likewise.
24859         * tests/test-freadseek.c (ASSERT): Likewise.
24860         * tests/test-freopen.c (ASSERT): Likewise.
24861         * tests/test-frexp.c (ASSERT): Likewise.
24862         * tests/test-frexpl.c (ASSERT): Likewise.
24863         * tests/test-fseek.c (ASSERT): Likewise.
24864         * tests/test-fseeko.c (ASSERT): Likewise.
24865         * tests/test-fstrcmp.c (ASSERT): Likewise.
24866         * tests/test-ftell.c (ASSERT): Likewise.
24867         * tests/test-ftello.c (ASSERT): Likewise.
24868         * tests/test-func.c (ASSERT): Likewise.
24869         * tests/test-fwritable.c (ASSERT): Likewise.
24870         * tests/test-fwriting.c (ASSERT): Likewise.
24871         * tests/test-getdelim.c (ASSERT): Likewise.
24872         * tests/test-getline.c (ASSERT): Likewise.
24873         * tests/test-i-ring.c (ASSERT): Likewise.
24874         * tests/test-iconv-utf.c (ASSERT): Likewise.
24875         * tests/test-iconv.c (ASSERT): Likewise.
24876         * tests/test-isfinite.c (ASSERT): Likewise.
24877         * tests/test-isnand.c (ASSERT): Likewise.
24878         * tests/test-isnanf.c (ASSERT): Likewise.
24879         * tests/test-isnanl.h (ASSERT): Likewise.
24880         * tests/test-ldexpl.c (ASSERT): Likewise.
24881         * tests/test-linked_list.c (ASSERT): Likewise.
24882         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24883         * tests/test-localename.c (ASSERT): Likewise.
24884         * tests/test-lseek.c (ASSERT): Likewise.
24885         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24886         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24887         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24888         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24889         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24890         * tests/test-mbschr.c (ASSERT): Likewise.
24891         * tests/test-mbscspn.c (ASSERT): Likewise.
24892         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24893         * tests/test-mbspbrk.c (ASSERT): Likewise.
24894         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24895         * tests/test-mbsrchr.c (ASSERT): Likewise.
24896         * tests/test-mbsspn.c (ASSERT): Likewise.
24897         * tests/test-mbsstr1.c (ASSERT): Likewise.
24898         * tests/test-mbsstr2.c (ASSERT): Likewise.
24899         * tests/test-mbsstr3.c (ASSERT): Likewise.
24900         * tests/test-memchr2.c (ASSERT): Likewise.
24901         * tests/test-memmem.c (ASSERT): Likewise.
24902         * tests/test-open.c (ASSERT): Likewise.
24903         * tests/test-printf-frexp.c (ASSERT): Likewise.
24904         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24905         * tests/test-printf-posix.c (ASSERT): Likewise.
24906         * tests/test-quotearg.c (ASSERT): Likewise.
24907         * tests/test-rbtree_list.c (ASSERT): Likewise.
24908         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24909         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24910         * tests/test-round1.c (ASSERT): Likewise.
24911         * tests/test-roundf1.c (ASSERT): Likewise.
24912         * tests/test-roundl.c (ASSERT): Likewise.
24913         * tests/test-signbit.c (ASSERT): Likewise.
24914         * tests/test-sleep.c (ASSERT): Likewise.
24915         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24916         * tests/test-snprintf.c (ASSERT): Likewise.
24917         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24918         * tests/test-stat-time.c (ASSERT): Likewise.
24919         * tests/test-strcasestr.c (ASSERT): Likewise.
24920         * tests/test-strerror.c (ASSERT): Likewise.
24921         * tests/test-striconv.c (ASSERT): Likewise.
24922         * tests/test-striconveh.c (ASSERT): Likewise.
24923         * tests/test-striconveha.c (ASSERT): Likewise.
24924         * tests/test-strsignal.c (ASSERT): Likewise.
24925         * tests/test-strstr.c (ASSERT): Likewise.
24926         * tests/test-strtod.c (ASSERT): Likewise.
24927         * tests/test-trunc1.c (ASSERT): Likewise.
24928         * tests/test-trunc2.c (ASSERT): Likewise.
24929         * tests/test-truncf1.c (ASSERT): Likewise.
24930         * tests/test-truncf2.c (ASSERT): Likewise.
24931         * tests/test-truncl.c (ASSERT): Likewise.
24932         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24933         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24934         * tests/test-vasnprintf.c (ASSERT): Likewise.
24935         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24936         * tests/test-vasprintf.c (ASSERT): Likewise.
24937         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24938         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24939         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24940         * tests/test-vsnprintf.c (ASSERT): Likewise.
24941         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24942         * tests/test-wcwidth.c (ASSERT): Likewise.
24943         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24944         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24945         * tests/test-xvasprintf.c (ASSERT): Likewise.
24946         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24947         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24948         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24949         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24950         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24951         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24952         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24953         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24954         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24955         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24956         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24957         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24958         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24959         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24960         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24961         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24962         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24963         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24964         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24965         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24966         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24967         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24968         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24969         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24970         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24971         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24972         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24973         * tests/unictype/test-combining.c (ASSERT): Likewise.
24974         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24975         * tests/unictype/test-digit.c (ASSERT): Likewise.
24976         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24977         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24978         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24979         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24980         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24981         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24982         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24983         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24984         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24985         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24986         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24987         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24988         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24989         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24990         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24991         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24992         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24993         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24994         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24995         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24996         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24997         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24998         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24999         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25000         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25001         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25002         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25003         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25004         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25005         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25006         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25007         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25008         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25009         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25010         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25011         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25012         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25013         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25014         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25015         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25016         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25017         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25018         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25019         Reported by Eric Blake.
25020
25021 2008-04-11  Bruno Haible  <bruno@clisp.org>
25022
25023         * lib/wchar.in.h: Tweak comment.
25024
25025 2008-04-11  Bruno Haible  <bruno@clisp.org>
25026
25027         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25028         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25029         gl_COMMON.
25030         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25031
25032 2008-04-11  Bruno Haible  <bruno@clisp.org>
25033
25034         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25035
25036 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25037
25038         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25039         of attempting to use non-existing /dev/*random.  Based on patch
25040         from Adam Strzelecki <ono@java.pl> in
25041         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25042
25043 2008-04-08  Bruno Haible  <bruno@clisp.org>
25044
25045         Add tentative support for emx+gcc.
25046         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25047         * lib/fpurge.c (fpurge): Likewise.
25048         * lib/freadable.c (freadable): Likewise.
25049         * lib/freadahead.c (freadahead): Likewise.
25050         * lib/freading.c (freading): Likewise.
25051         * lib/freadptr.c (freadptr): Likewise.
25052         * lib/freadseek.c (freadptrinc): Likewise.
25053         * lib/fseeko.c (rpl_fseeko): Likewise.
25054         * lib/fseterr.c (fseterr): Likewise.
25055         * lib/fwritable.c (fwritable): Likewise.
25056         * lib/fwriting.c (fwriting): Likewise.
25057         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25058
25059 2008-04-09  Eric Blake  <ebb9@byu.net>
25060
25061         Avoid some autoconf warnings.
25062         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25063         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25064         * m4/afs.m4 (gl_AFS): Likewise.
25065         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25066         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25067         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25068         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25069         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25070         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25071         (AC_CHECK_DECLS_ONCE): Likewise.
25072         Rename file...
25073         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25074         gnulib-tool requires autoconf 2.59 or better.
25075         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25076
25077 2008-04-08  Eric Blake  <ebb9@byu.net>
25078
25079         Use 'git describe --match' if present (added in git 1.5.5).
25080         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25081         if possible.
25082
25083 2008-04-08  Bruno Haible  <bruno@clisp.org>
25084
25085         Add tentative support for OpenServer.
25086         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25087         _ptr, _cnt.
25088         * lib/fpurge.c (fpurge): Likewise.
25089         * lib/freadable.c (freadable): Likewise.
25090         * lib/freadahead.c (freadahead): Likewise.
25091         * lib/freading.c (freading): Likewise.
25092         * lib/freadptr.c (freadptr): Likewise.
25093         * lib/freadseek.c (freadptrinc): Likewise.
25094         * lib/fseeko.c (rpl_fseeko): Likewise.
25095         * lib/fseterr.c (fseterr): Likewise.
25096         * lib/fwritable.c (fwritable): Likewise.
25097         * lib/fwriting.c (fwriting): Likewise.
25098         Reported by Roger Cornelius <rac@tenzing.org> and
25099         Brian K. White <brian@aljex.com>.
25100
25101 2008-04-06  Jim Meyering  <meyering@redhat.com>
25102
25103         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25104
25105 2008-04-06  Bruno Haible  <bruno@clisp.org>
25106
25107         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25108         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25109         * tests/test-printf-posix.sh: Likewise.
25110         * tests/test-vfprintf-posix.sh: Likewise.
25111         * tests/test-vprintf-posix.sh: Likewise.
25112         * tests/test-xprintf-posix.sh: Likewise.
25113
25114 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25115
25116         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25117         hide error from 'ls', needed on OS/2.
25118         Report by Elbert Pol <elbert.pol@gmail.com>.
25119
25120 2008-04-04  Eric Blake  <ebb9@byu.net>
25121
25122         Make test-fseeko.c failures meaningful.
25123         * tests/test-fseeko.c: Print line number on failure.
25124         * tests/test-fseek.c: Likewise.
25125         Reported by Nelson H. F. Beebe.
25126
25127         Improve strtod bug detection check.
25128         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25129         required for Solaris 10.
25130         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25131
25132 2008-04-04  Bruno Haible  <bruno@clisp.org>
25133
25134         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25135         by m4/setenv.m4.
25136
25137 2008-04-03  Eric Blake  <ebb9@byu.net>
25138
25139         Ensure sane .version contents.
25140         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25141         version string.
25142         * build-aux/git-version-gen: Improve documentation.
25143
25144         Make GNU make output nicer.
25145         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25146         MAKECMDGOALS to enforce message for all command line targets.  Set
25147         srcdir for use in maint.mk.
25148
25149         Another maintainer tweak.
25150         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25151         a target that regenerates version.
25152
25153 2008-04-03  Jim Meyering  <meyering@redhat.com>
25154
25155         vc-list-files: don't cause coreutils "make po-check" failure
25156         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25157
25158 2008-04-03  Eric Blake  <ebb9@byu.net>
25159
25160         Allow VPATH usage of vc-list-files.
25161         * build-aux/vc-list-files (scriptversion): Add timestamp.
25162         (options): Add --help, --version, -C.
25163         (CVS): Support installed cvsu.
25164
25165 2008-04-02  Bruno Haible  <bruno@clisp.org>
25166
25167         Avoid some "statement with no effect" warnings from gcc.
25168         * tests/test-wctype.c (main): Explicitly ignore unused values.
25169         Reported by Jim Meyering.
25170
25171 2008-04-02  Jim Meyering  <meyering@redhat.com>
25172
25173         Avoid some warnings from "gcc -Wshadow".
25174         * tests/test-frexp.c (exp): Define to a different identifier.
25175         * tests/test-frexpl.c (exp): Likewise.
25176
25177 2008-04-03  Jim Meyering  <meyering@redhat.com>
25178
25179         bootstrap: remove dangling *.[ch] symlinks from lib
25180         * build-aux/bootstrap [dangling symlink removal]: Move find's
25181         -depth option to precede all others, to avoid a warning.
25182         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25183
25184 2008-04-02  Bruno Haible  <bruno@clisp.org>
25185
25186         Avoid some warnings from "gcc -Wshadow".
25187         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25188         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25189         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25190         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25191         Reported by Jim Meyering.
25192
25193 2008-04-01  Bruno Haible  <bruno@clisp.org>
25194
25195         Fix test to work on IRIX 6.5 with cc.
25196         * tests/test-math.c (numeric_equal): New function.
25197         (main): Use it.
25198
25199 2008-04-01  Bruno Haible  <bruno@clisp.org>
25200
25201         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25202
25203 2008-04-01  Bruno Haible  <bruno@clisp.org>
25204
25205         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25206         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25207         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25208         (Depends-on): Remove math.
25209
25210         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25211         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25212         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25213         (Depends-on): Remove math.
25214
25215         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25216         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25217         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25218         (Depends-on): Remove math.
25219         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25220         (Depends-on): Remove math.
25221
25222         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25223         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25224         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25225         (Depends-on): Remove math.
25226         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25227         (Depends-on): Remove math.
25228
25229         * tests/test-round1.c: Include nan.h.
25230         (main): Use NaNd instead of NAN.
25231         * modules/round-tests (Files): Add tests/nan.h.
25232
25233         * tests/test-trunc1.c: Include nan.h.
25234         (main): Use NaNd instead of NAN.
25235         * modules/trunc-tests (Files): Add tests/nan.h.
25236
25237         * tests/test-roundf1.c: Include nan.h.
25238         (main): Use NaNf instead of NAN.
25239         * modules/roundf-tests (Files): Add tests/nan.h.
25240
25241         * tests/test-truncf1.c: Include nan.h.
25242         (main): Use NaNf instead of NAN.
25243         * modules/truncf-tests (Files): Add tests/nan.h.
25244
25245         * tests/test-ceilf1.c: Include nan.h.
25246         (main): Use NaNf instead of NAN.
25247         * modules/ceilf-tests (Files): Add tests/nan.h.
25248
25249         * tests/test-floorf1.c: Include nan.h.
25250         (main): Use NaNf instead of NAN.
25251         * modules/floorf-tests (Files): Add tests/nan.h.
25252
25253         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25254         (main): Use NaNf instead of NAN.
25255         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25256
25257         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25258         (main): Use NaNd instead of NAN.
25259         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25260
25261         * tests/test-frexp.c: Include nan.h.
25262         (main): Use NaNd instead of NAN.
25263         * modules/frexp-tests (Files): Add tests/nan.h.
25264
25265         * lib/isnan.c: Don't include <math.h>.
25266         (FUNC): Don't use NAN macro.
25267         * modules/isnand-nolibm (Depends-on): Remove math.
25268         * modules/isnanf-nolibm (Depends-on): Remove math.
25269         * modules/isnanl (Depends-on): Remove math.
25270         * modules/isnanl-nolibm (Depends-on): Remove math.
25271
25272         * tests/nan.h: New file.
25273
25274 2008-04-01  Eric Blake  <ebb9@byu.net>
25275
25276         Fix typos.
25277         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25278         values to be the right type.
25279
25280         For now, cater to gnulib strtod inaccuracies.
25281         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25282         fractional results.  While not as nice from a QoI perspective, it
25283         is a quicker patch than correctly implementing decimal to binary
25284         rounding.
25285
25286 2008-03-31  Eric Blake  <ebb9@byu.net>
25287
25288         Guarantee a definition of NAN.
25289         * lib/math.in.h (NAN): Define if missing.
25290         * tests/test-math.c (main): Test it.
25291         * doc/posix-headers/math.texi (math.h): Document this.
25292         * lib/isnan.c (rpl_isnand): Use it.
25293         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25294         * tests/test-floorf1.c (NaN): Likewise.
25295         * tests/test-frexp.c (NaN): Likewise.
25296         * tests/test-isnand.c (NaN): Likewise.
25297         * tests/test-isnanf.c (NaN): Likewise.
25298         * tests/test-round1.c (NaN): Likewise.
25299         * tests/test-roundf1.c (NaN): Likewise.
25300         * tests/test-snprintf-posix.h (NaN): Likewise.
25301         * tests/test-sprintf-posix.h (NaN): Likewise.
25302         * tests/test-trunc1.c (NaN): Likewise.
25303         * tests/test-truncf1.c (NaN): Likewise.
25304         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25305         * tests/test-vasprintf-posix.c (NaN): Likewise.
25306         * modules/isnand-nolibm (Depends-on): Add math.
25307         * modules/isnanf-nolibm (Depends-on): Likewise.
25308         * modules/isnanl (Depends-on): Likewise.
25309         * modules/isnanl-nolibm (Depends-on): Likewise.
25310         * modules/snprintf-posix-tests (Depends-on): Likewise.
25311         * modules/sprintf-posix-tests (Depends-on): Likewise.
25312         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25313         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25314         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25315         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25316
25317 2008-03-31  Bruno Haible  <bruno@clisp.org>
25318
25319         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25320         * doc/posix-functions/strtod.texi: Likewise.
25321
25322 2008-03-31  Bruno Haible  <bruno@clisp.org>
25323
25324         * tests/test-strtod.c (main): Don't use C99 syntax.
25325
25326 2008-03-31  Bruno Haible  <bruno@clisp.org>
25327
25328         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25329         Reported by Eric Blake.
25330
25331 2008-03-31  Jim Meyering  <meyering@redhat.com>
25332
25333         Don't compare actual signbit return values.
25334         * tests/test-strtod.c (main): Rather, compare only their
25335         zero/non-zero nature.
25336
25337 2008-03-31  Eric Blake  <ebb9@byu.net>
25338
25339         More strtod documentation.
25340         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25341         failures as distinct bugs.
25342
25343 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25346         Problem reported by Erik Benada in
25347         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25348
25349 2008-03-30  Bruno Haible  <bruno@clisp.org>
25350
25351         * tests/test-strtod.c: Add comments about which assertion fails on which
25352         platform.
25353         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25354
25355 2008-03-30  Eric Blake  <ebb9@byu.net>
25356
25357         Test signbit behavior on zeros.
25358         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25359         (test_signbitd, test_signbitl): Likewise.
25360
25361         More strtod touchups.
25362         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25363         sign of negative underflow, for now.  Use .5, not .1.
25364         * doc/posix-functions/strtod.texi (strtod): Mention these
25365         limitations.
25366         Reported by Jim Meyering.
25367
25368 2008-03-30  Bruno Haible  <bruno@clisp.org>
25369
25370         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25371         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25372
25373 2008-03-30  Bruno Haible  <bruno@clisp.org>
25374
25375         Avoid failure when attempting to return empty iconv results on some
25376         platforms.
25377         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25378         allocation, don't report ENOMEM when the resulting string is empty.
25379
25380 2008-03-30  Bruno Haible  <bruno@clisp.org>
25381
25382         Fix buffer overrun.
25383         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25384         Don't consider the width for tmp_length. Check count against tmp_length
25385         before doing the padding. Ensure enough allocation during padding.
25386
25387 2008-03-30  Eric Blake  <ebb9@byu.net>
25388
25389         strtod touchups.
25390         * lib/strtod.c (strtod): Avoid compiler warnings.
25391         Reported by Jim Meyering.
25392
25393 2008-03-30  Bruno Haible  <bruno@clisp.org>
25394
25395         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25396         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25397         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25398         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25399         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25400         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25401         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25402         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25403
25404         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25405         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25406         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25407         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25408         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25409         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25410         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25411         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25412
25413         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25414         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25415         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25416         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25417         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25418         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25419         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25420         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25421
25422         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25423         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25424
25425         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25426         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25427
25428         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25429         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25430
25431         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25433         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25434
25435         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25437         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25438
25439         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25441         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25442
25443         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25445         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25446
25447         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25448         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25450         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25451         (Depends-on): Add EOVERFLOW.
25452         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25453         (Depends-on): Add EOVERFLOW.
25454         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25455         (Depends-on): Add EOVERFLOW.
25456         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25457         (Depends-on): Add EOVERFLOW.
25458         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25459         (Depends-on): Add EOVERFLOW.
25460         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25461         (Depends-on): Add EOVERFLOW.
25462         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25463         (Depends-on): Add EOVERFLOW.
25464         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25465         (Depends-on): Add EOVERFLOW.
25466
25467         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25468         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25469         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25470
25471         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25473         * modules/snprintf (Depends-on): Add EOVERFLOW.
25474
25475         * lib/poll.c (EOVERFLOW): Remove fallback.
25476         * modules/poll (Depends-on): Add EOVERFLOW.
25477
25478         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25479         * modules/getugroups (Depends-on): Add EOVERFLOW.
25480
25481         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25482         * modules/getdelim (Depends-on): Add EOVERFLOW.
25483
25484         * lib/ftell.c (EOVERFLOW): Remove fallback.
25485         * modules/ftell (Depends-on): Add EOVERFLOW.
25486
25487         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25489         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25490
25491         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25492
25493         * modules/EOVERFLOW-tests: New file.
25494         * tests/test-EOVERFLOW.c: New file.
25495
25496         * modules/EOVERFLOW: New file.
25497         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25498
25499 2008-03-30  Bruno Haible  <bruno@clisp.org>
25500
25501         Fix bug introduced on 2007-06-10.
25502         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25503         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25504
25505 2008-03-30  Bruno Haible  <bruno@clisp.org>
25506
25507         Improve freadseek's efficiency after ungetc.
25508         * lib/freadseek.c: Include freadahead.h.
25509         (freadptrinc): New function, extracted from freadseek.
25510         (freadseek): Use it in a loop. Use freadahead to determine the number
25511         of loop iterations.
25512         * modules/freadseek (Depends-on): Add freadahead.
25513         (configure.ac): Require AC_C_INLINE.
25514
25515 2008-03-30  Bruno Haible  <bruno@clisp.org>
25516
25517         * lib/freadseek.c (freadseek): Don't ignore the return value of
25518         freadptr.
25519
25520 2008-03-29  Eric Blake  <ebb9@byu.net>
25521
25522         Add hex float support.
25523         * modules/strtod (Depends-on): Add c-ctype.
25524         (Link): Mention POW_LIB.
25525         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25526         whitespace between 'e' and exponent.
25527         * tests/test-strtod.c (main): Enable hex float tests.
25528         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25529         now provides.
25530
25531         Document various strtod bugs, with some fixes.
25532         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25533         "-0x", "inf", "nan", and hex constants.
25534         * doc/posix-functions/atof.texi (atof): Likewise.
25535         * modules/stdlib (Makefile.am): Support strtod.
25536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25537         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25538         detect additional strtod bugs.
25539         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25540         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25541         bool where appropriate.  Parse 'inf' and 'nan'.
25542         * tests/test-strtod.c: New file.
25543         * modules/strtod (Depends-on): Add stdbool, stdlib.
25544         (configure.ac): Turn on module indicator.
25545         * modules/strtod-tests: New module.
25546
25547 2008-03-29  Eric Blake  <ebb9@byu.net>
25548
25549         Fix ftell on mingw.
25550         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25551         * modules/ftell-tests (Depends-on): Add binary-io.
25552         * modules/ftello-tests (Depends-on): Likewise.
25553         * tests/test-ftell.c (main): Enhance test to cover behavior after
25554         ungetc.  Enforce binary mode.
25555         * tests/test-ftello.c (main): Likewise.
25556
25557         Pass test-freadseek on cygwin.
25558         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25559         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25560         ungetc buffer.
25561
25562         * tests/test-fflush2.c (main): Fix typo.
25563
25564 2008-03-29  Bruno Haible  <bruno@clisp.org>
25565
25566         * tests/test-fflush2.c (main): Temporarily disable the contents of
25567         this test.
25568         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25569         Reported by Eric Blake.
25570
25571 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25572
25573         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25574         (GC_SHA224_DIGEST_SIZE): Add.
25575
25576         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25577         (gc_hash_digest_length): Likewise.
25578         (gc_hash_buffer): Likewise.
25579
25580 2008-03-25  Bruno Haible  <bruno@clisp.org>
25581
25582         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25583         detail which gettext release to use.
25584         Reported by Simon Josefsson.
25585
25586 2008-03-26  Jim Meyering  <meyering@redhat.com>
25587
25588         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25589         * modules/gnumakefile (clean-GNUmakefile): Also, use
25590         test ... && ... || : syntax rather than if-then ... fi.
25591
25592         gnumakefile: Don't double-quote-expand $(VPATH) value.
25593         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25594
25595 2008-03-24  Eric Blake  <ebb9@byu.net>
25596
25597         Alter GNUmakefile to install into top directory.
25598         * modules/maintainer-makefile: Split, and add dependency...
25599         * modules/gnumakefile: to this new module.
25600         * build-aux/GNUmakefile: Move...
25601         * top/GNUmakefile: ...here.
25602         * build-aux/maint.mk: Move...
25603         * top/maint.mk: ...here.
25604         * MODULES.html.sh (Support for maintaining...): Document new
25605         module.
25606
25607 2008-03-23  Bruno Haible  <bruno@clisp.org>
25608
25609         * gnulib-tool: New options --vc-files, --no-vc-files.
25610         (func_usage): Document them.
25611         (vc_files): New variable.
25612         (func_import): Consider vc_files.
25613         (func_create_testdir): Set vc_files to empty.
25614         Suggested by Jim Meyering and Karl Berry.
25615
25616 2008-03-23  Bruno Haible  <bruno@clisp.org>
25617
25618         Fix regex compilation error on HP-UX 11.
25619         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25620         * modules/regex (Files): Add m4/mbstate_t.m4.
25621         Reported by Ton Voon <ton.voon@altinity.com>.
25622
25623 2008-03-23  Bruno Haible  <bruno@clisp.org>
25624
25625         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25626
25627 2008-03-23  Eric Blake  <ebb9@byu.net>
25628             Bruno Haible  <bruno@clisp.org>
25629
25630         Install files from top/ in the destination directory.
25631         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25632         augmentation also for the files from top/.
25633         (func_import, func_create_testdir): Rewrite file names:
25634         top/filename -> filename.
25635
25636 2008-03-23  Bruno Haible  <bruno@clisp.org>
25637
25638         Tweak "gnulib --version" output.
25639         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25640
25641 2008-03-23  Bruno Haible  <bruno@clisp.org>
25642
25643         Tweak "gnulib --version" output.
25644         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25645         rather than contents of ChangeLog, when possible.
25646
25647 2008-03-21  Eric Blake  <ebb9@byu.net>
25648
25649         More --version tweaks.
25650         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25651         date of last ChangeLog entry.
25652
25653 2008-03-21  Jim Meyering  <meyering@redhat.com>
25654
25655         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25656
25657 2008-03-20  Eric Blake  <ebb9@byu.net>
25658
25659         VPATH fix.
25660         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25661
25662 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25663
25664         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25665         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25666
25667 2008-03-20  Eric Blake  <ebb9@byu.net>
25668
25669         Sync GNUmakefile with coreutils.
25670         * build-aux/GNUmakefile (have-Makefile): Rename...
25671         (_have-Makefile): ...to this, for namespace consideration.
25672         (GNUmakefile.cfg): Include, if present.
25673         (_autoreconf): Define a default.
25674         (_is-dist-target): New rule for rebuilds to pick up intra-release
25675         version.
25676         (maint-cfg.mk): Rename...
25677         (cfg.mk): ...to this.
25678
25679 2008-03-18  Jim Meyering  <meyering@redhat.com>
25680
25681         New script and module: mktempd
25682         * MODULES.html.sh (maint+release support): Add mktempd.
25683         * build-aux/mktempd: New file.
25684         * modules/mktempd: New file.
25685
25686 2008-03-15  Jim Meyering  <meyering@redhat.com>
25687
25688         Undo last change.
25689         * lib/sha1.c, lib/md5.c: 63 != ~63.
25690         Reported by Andreas Schwab.
25691
25692         sha1.c, md5.c: Hoist a redundant expression.
25693         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25694         "ctx->buflen" only once, before calling *_process_block.
25695         * lib/md5.c (md5_process_bytes): Likewise.
25696
25697 2008-03-14  Eric Blake  <ebb9@byu.net>
25698
25699         Bump copyright year in files generated by gnulib-tool.
25700         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25701         gnulib-tool, rather than hard-coding it.
25702
25703         Fix 'gnulib-tool --version' output to work with git.
25704         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25705         (startup): ...here.
25706         (func_version): Use it to invoke git-version-gen, rather than
25707         relying on CVS keyword expansion.  Modernize wording.
25708         (cvsdatestamp, last_checkin_date, version): Kill unused
25709         variables.
25710
25711 2008-03-12  Jim Meyering  <meyering@redhat.com>
25712
25713         Recognize optional cast of the argument to free.
25714         * build-aux/useless-if-before-free: Update regexps.
25715
25716         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25717
25718 2008-03-11  Bruno Haible  <bruno@clisp.org>
25719
25720         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25721         by a single package.
25722         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25723         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25724         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25725         Reported by Sam Steingold <sds@gnu.org>.
25726
25727 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25728
25729         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25730         repositories.
25731
25732 2008-03-11  Bruno Haible  <bruno@clisp.org>
25733
25734         Avoid conflicts between local macro definitions.
25735         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25736         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25737
25738 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25739             Bruno Haible  <bruno@clisp.org>
25740
25741         Make va_copy work with some version of xlc on AIX 5.1.
25742         * lib/stdarg.in.h: New file.
25743         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25744         On AIX, use a <stdarg.h> file substitute.
25745         * modules/stdarg (Files): Add lib/stdarg.in.h.
25746         (Depends-on): Add include_next.
25747         (Makefile.am): Build a stdarg.h substitute if requested.
25748         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25749
25750 2008-03-10  Bruno Haible  <bruno@clisp.org>
25751
25752         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25754         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25755
25756 2008-03-10  Bruno Haible  <bruno@clisp.org>
25757
25758         * modules/stdlib (Depends-on): Add include_next, remove
25759         absolute-header.
25760
25761 2008-03-09  Bruno Haible  <bruno@clisp.org>
25762
25763         * lib/freadahead.h (freadahead): Document more precisely.
25764         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25765         the sum of both buffer sizes.
25766         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25767         * NEWS: Document the change.
25768
25769 2008-03-09  Bruno Haible  <bruno@clisp.org>
25770
25771         Extend freadptr to return also the buffer size.
25772         * lib/freadptr.h (freadptr): Add sizep argument.
25773         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25774         (freadptr): Add sizep argument. Determine buffer size like freadahead
25775         does.
25776         * tests/test-freadptr.c: Don't include freadahead.h.
25777         (main): Adapt for new calling convention of freadptr.
25778         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25779         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25780         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25781         tests/test-freadptr2.sh.
25782         (Depends): Remove freadahead.
25783         (TESTS): Add test-freadptr2.sh.
25784         (check_PROGRAMS): Add test-freadptr2.
25785
25786 2008-03-09  Bruno Haible  <bruno@clisp.org>
25787
25788         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25789         Report and solution by Simon Josefsson.
25790
25791 2008-03-06  Bruno Haible  <bruno@clisp.org>
25792
25793         Make fflush after ungetc work on BSD platforms.
25794         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25795         * tests/test-fflush2.c: New file.
25796         * tests/test-fflush2.sh: New file.
25797         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25798         tests/test-fflush2.c.
25799         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25800         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25801
25802 2008-03-06  Eric Blake  <ebb9@byu.net>
25803
25804         Likewise for ftello.
25805         * modules/ftello (Dependencies): Add extensions.
25806         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25807
25808 2008-03-06  Bruno Haible  <bruno@clisp.org>
25809
25810         * modules/fseeko (Dependencies): Add extensions.
25811         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25812         Needed on glibc systems.
25813
25814 2008-03-06  Bruno Haible  <bruno@clisp.org>
25815
25816         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25817         email address.
25818         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25819
25820 2008-03-06  Bruno Haible  <bruno@clisp.org>
25821
25822         * users.txt: Add libgnupdf.
25823
25824 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25825
25826         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25827         (Header File Substitutes, Function Substitutes,
25828         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25829         (Build robot for gnulib): Fix typo.
25830
25831 2008-03-06  Bruno Haible  <bruno@clisp.org>
25832
25833         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25834         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25835
25836 2008-03-06  Bruno Haible  <bruno@clisp.org>
25837
25838         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25839         * doc/gnulib.texi: Include it.
25840
25841 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25842
25843         * modules/func (License): Change license to unlimited; there was
25844         no LGPL parts in the module anyway.
25845
25846 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25847
25848         * modules/__func__: Renamed to modules/func.
25849         * modules/__func__-tests: Renamed to modules/func-tests.
25850         * tests/test-__func__.c: Renamed to tests/test-func.c.
25851         * m4/__func__.m4: Renamed to m4/func.m4.
25852         * doc/gnulib.texi (__func__): Section renamed to func.
25853         Suggested by Eric Blake <ebb9@byu.net>.
25854
25855 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25856
25857         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25858         about __func__.  Make example self-contained.  Suggested by Eric
25859         Blake <ebb9@byu.net>.
25860
25861         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25862         Suggested by Eric Blake <ebb9@byu.net>.
25863
25864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25865
25866         * modules/__func__: New file.
25867         * modules/__func__-tests: New file.
25868         * tests/test-__func__.c: New file.
25869         * m4/__func__.m4: New file.
25870         * doc/gnulib.texi (__func__): Document __func__ module.
25871
25872 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25873
25874         * modules/byteswap (License): Re-license as LGPLv2+.
25875
25876 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25877
25878         * doc/Makefile: Add pdf target.
25879
25880 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25881
25882         * modules/inline (License): Use 'unlimited', since there are only
25883         *.m4 files in this module.
25884
25885 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25886             Bruno Haible  <bruno@clisp.org>
25887
25888         Add support for HP C 7.1 on OpenVMS 8.3.
25889         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25890
25891 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25892
25893         Update VMS specifics.
25894         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25895
25896 2008-03-02  Jim Meyering  <meyering@redhat.com>
25897
25898         Remove the last dependency on the "free" module.
25899         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25900         Reported by Bob Proulx.
25901
25902         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25903
25904         Remove useless "if" tests before free.  Deprecate "free" module.
25905         * doc/posix-functions/free.texi: Mention that this
25906         module is no longer useful.
25907         * modules/free (Notice): Say this module is obsolete.
25908         * modules/readutmp (Depends-on): Remove free.
25909         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25910         * lib/putenv.c (putenv): Likewise.
25911         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25912         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25913         * tests/test-c-strcasestr.c (main): Likewise.
25914         * tests/test-c-strstr.c (main): Likewise.
25915         * tests/test-mbscasestr1.c (main): Likewise.
25916         * tests/test-mbscasestr2.c (main): Likewise.
25917         * tests/test-mbsstr1.c (main): Likewise.
25918         * tests/test-mbsstr2.c (main): Likewise.
25919         * tests/test-memmem.c (main): Likewise.
25920         * tests/test-strcasestr.c (main): Likewise.
25921         * tests/test-striconv.c (main): Likewise.
25922         * tests/test-striconveh.c (main): Likewise.
25923         * tests/test-striconveha.c (main): Likewise.
25924         * tests/test-strstr.c (main): Likewise.
25925
25926         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25927
25928         bootstrap: sync from coreutils again
25929         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25930
25931 2008-03-01  Jim Meyering  <meyering@redhat.com>
25932
25933         bootstrap: sync from coreutils
25934         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25935         also when the target doesn't exist.
25936
25937 2008-03-01  Eric Blake  <ebb9@byu.net>
25938
25939         Fix bugs in last patch.
25940         * lib/memchr2.c (memchr2): Fix typo.
25941         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25942         extension.
25943         Reported by Bruce Korb.
25944
25945         New module 'memchr2'.
25946         * modules/memchr2: New file.
25947         * modules/memchr2-tests: Likewise.
25948         * lib/memchr2.h: Likewise.
25949         * lib/memchr2.c: Likewise, based on memchr.c.
25950         * tests/test-memchr2.c: New test.
25951         * MODULES.html.sh (String handling): Add memchr2.
25952
25953 2008-02-29  Bruno Haible  <bruno@clisp.org>
25954
25955         * modules/freadseek-tests: New file.
25956         * tests/test-freadseek.sh: New file.
25957         * tests/test-freadseek.c: New file.
25958
25959         New module 'freadseek'.
25960         * modules/freadseek: New file.
25961         * lib/freadseek.h: New file.
25962         * lib/freadseek.c: New file.
25963         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25964
25965 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25966
25967         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25968         wydawca.
25969
25970         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25971         program_invocation_name and program_invocation_short_name are
25972         present.
25973
25974 2008-02-28  Bruno Haible  <bruno@clisp.org>
25975
25976         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25977         * tests/test-freadptr.sh: Also test non-seekable stdin.
25978
25979 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25980
25981         * build-aux/bootstrap (source_base, m4_base)
25982         (doc_base, tests_base): New variables.
25983         (gnulib_tool_options): Do not hardcode base directories, use
25984         the above variables instead.
25985
25986 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25987
25988         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25989
25990 2008-02-28  Bruno Haible  <bruno@clisp.org>
25991
25992         * modules/freadptr-tests: New file.
25993         * tests/test-freadptr.sh: New file.
25994         * tests/test-freadptr.c: New file.
25995
25996         New module 'freadptr'.
25997         * modules/freadptr: New file.
25998         * lib/freadptr.h: New file.
25999         * lib/freadptr.c: New file.
26000         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26001
26002 2008-02-26  Karl Berry  <karl@freefriends.org>
26003
26004         Sync from Libtool:
26005         * libltdl/argz.c (argz_add, argz_count): New functions.
26006         * libltdl/argz.in.h: Declare them.
26007         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26008
26009 2008-02-22  Bruno Haible  <bruno@clisp.org>
26010
26011         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26012         is a pointer type.  Needed for HP-UX 10.
26013         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26014         * doc/posix-functions/gmtime_r.texi: Likewise.
26015         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26016
26017 2008-02-24  Bruno Haible  <bruno@clisp.org>
26018
26019         * modules/environ-tests: New file.
26020         * tests/test-environ.c: New file.
26021
26022         New module 'environ'.
26023         * modules/environ: New file.
26024         * lib/unistd.in.h (environ): New declaration.
26025         * m4/environ.m4: New file.
26026         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26027         after use.
26028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26029         HAVE_DECL_ENVIRON.
26030         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26031         HAVE_DECL_ENVIRON.
26032         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26033         wrong claim that 'environ' is missing on some systems.
26034         * modules/execute (Depends-on): Add environ.
26035         * lib/execute.c (environ): Remove fallback declaration.
26036         * modules/pipe (Depends-on): Add environ.
26037         * lib/pipe.c (environ): Remove fallback declaration.
26038         * modules/setenv (Depends-on): Add environ.
26039         * lib/setenv.c (environ): Remove fallback declaration.
26040         * modules/unsetenv (Depends-on): Add environ.
26041         * lib/unsetenv.c (environ): Remove fallback declaration.
26042         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26043         m4/environ.m4.
26044         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26045         (gl_PREREQ_UNSETENV): Likewise.
26046
26047 2008-02-24  Bruno Haible  <bruno@clisp.org>
26048
26049         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26050
26051 2008-02-20  Bob Proulx  <bob@proulx.com>
26052
26053         Enable use of older two part flavor 'git describe'.
26054         * build-aux/git-version-gen: If using the older two part flavor of
26055         git version then recreate the third part now present in the
26056         newer three part flavor of git describe.
26057
26058 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26059
26060         * lib/fts.c (fts_build): Typo correction to comment.
26061
26062 2008-02-17  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26065         generating no-op conflicts.
26066
26067 2008-02-17  Bruno Haible  <bruno@clisp.org>
26068
26069         Speed up by 10%.
26070         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26071         result_entries, rather than an index-based loop.
26072
26073 2008-02-17  Bruno Haible  <bruno@clisp.org>
26074
26075         Speed up by 25%.
26076         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26077         'hashcode_cached'.
26078         (entry_create): New function.
26079         (entry_hashcode): Use the cached hashcode if possible.
26080         (read_changelog_file, try_split_merged_entry): Use entry_create.
26081
26082 2008-02-17  Bruno Haible  <bruno@clisp.org>
26083
26084         Speed up from O(n^2) to O(n) for long ChangeLog files.
26085         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26086         (read_changelog_file): Change implementation of entries_reversed list
26087         to rbtreehash.
26088         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26089
26090 2008-02-17  Bruno Haible  <bruno@clisp.org>
26091
26092         New option --split-merged-entry.
26093         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26094         (find_paragraph_end, try_split_merged_entry): New functions.
26095         (long_options): Add option --split-merged-entry.
26096         (usage): Document option --split-merged-entry.
26097         (main): Implement option --split-merged-entry.
26098         Reported by Eric Blake.
26099
26100 2008-02-17  Bruno Haible  <bruno@clisp.org>
26101
26102         * lib/git-merge-changelog.c: Include c-strstr.h.
26103         (main): Support the "git pull --rebase" situation.
26104         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26105         Reported by Eric Blake.
26106
26107 2008-02-16  Eric Blake  <ebb9@byu.net>
26108
26109         Avoid doubling \ in common case of "c-maybe" quoting style.
26110         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26111         eliding outer quotes.
26112         * lib/quotearg.h: Document this.
26113         * tests/test-quotearg.c (result_strings, inputs, results_g)
26114         (flag_results, locale_results): Test it by adding a new string to
26115         each test group.
26116         (compare_strings): Test new string.
26117
26118 2008-02-13  Eric Blake  <ebb9@byu.net>
26119
26120         Avoid trigraph quoting in default output.
26121         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26122         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26123         unless explicitly requested.
26124         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26125
26126 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26127
26128         Don't rely on signed integer overflowing to negative value.
26129         * lib/getugroups.c (getugroups): Include <limits.h>.
26130         Instead, compare against INT_MAX, and increment only if the test passes.
26131
26132 2008-02-13  Jim Meyering  <meyering@redhat.com>
26133         and Eric Blake  <ebb9@byu.net>
26134
26135         Avoid shadowing warning and compile errors on Linux.
26136         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26137         forwarding macros on Linux.
26138         (dcgettext): Define a stub, for Linux.
26139         (results_g, main): Avoid warnings.
26140
26141 2008-02-12  Eric Blake  <ebb9@byu.net>
26142
26143         Silence warning in last patch.
26144         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26145
26146         Quotearg part 4: add tests, fix c-maybe colon quoting.
26147         * lib/quotearg.h: Improve documentation.
26148         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26149         escapes when adding outer quotes.  When quoting trigraphs, use
26150         valid C notation.  When quoting NUL, omit extra characters if next
26151         character is not digit.  Alter prototype.
26152         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26153         callers.
26154         * modules/quotearg-tests: New module.
26155         * tests/test-quotearg.c: New test.
26156
26157 2008-02-07  Eric Blake  <ebb9@byu.net>
26158
26159         Quotearg part 3: add flag to control outer quote elision.
26160         * lib/quotearg.h (c_maybe_quoting_style): New style.
26161         (enum quoting_flags): Better documentation of flags.
26162         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26163         c-maybe style.
26164         (quotearg_buffer_restyled): Handle new flag to elide outer
26165         quotes.
26166
26167         Quotearg part 2: add flag that can control NUL elision.
26168         * lib/quotearg.h (set_quoting_flags): New prototype.
26169         * lib/quotearg.c (struct quoting_options): Add flag field.
26170         (set_quoting_flags): New function.
26171         (quotearg_buffer_restyled): Add flags parameter.
26172         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26173         (quotearg_n_options): Set the flag, since length cannot be
26174         returned.
26175         (quoting_options_from_style): Default flags correctly.
26176
26177         Quotearg part 1: more wrappers, restore quotearg_char state.
26178         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26179         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26180         (quotearg_colon_mem): New wrappers.
26181         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26182         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26183         functions.
26184         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26185         (quotearg_colon_mem): New functions.
26186
26187 2008-02-11  Bruno Haible  <bruno@clisp.org>
26188
26189         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26190         library in the current directory: it does not work with parallel make.
26191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26192
26193 2008-02-11  Bruno Haible  <bruno@clisp.org>
26194
26195         * .gitattributes: New file.
26196
26197 2008-02-11  Jim Meyering  <meyering@redhat.com>
26198
26199         useless-if-before-free: Fix reversed exit values.
26200         * build-aux/useless-if-before-free: Use correct values
26201         for EXIT_MATCH and EXIT_NO_MATCH.
26202
26203         * build-aux/useless-if-before-free: Close stdout carefully.
26204
26205 2008-02-10  Bruno Haible  <bruno@clisp.org>
26206
26207         New module 'git-merge-changelog'.
26208         * modules/git-merge-changelog: New file.
26209         * lib/git-merge-changelog.c: New file.
26210
26211 2008-02-10  Jim Meyering  <meyering@redhat.com>
26212
26213         useless-if-before-free: New option: --list (-l).
26214
26215         useless-if-before-free: Don't exit immediately upon open failure.
26216         * build-aux/useless-if-before-free: Exit 2 for errors.
26217         Upon failure to open a file, don't exit immediately.
26218         Rather, just warn and continue with any remaining files.
26219
26220 2008-02-10  Bruno Haible  <bruno@clisp.org>
26221
26222         New abstract list operation 'node_set_value'.
26223         * lib/gl_list.h (gl_list_node_set_value): New function.
26224         (struct gl_list_implementation): New field node_set_value.
26225         * lib/gl_list.c (gl_list_node_set_value): New function.
26226         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26227         (gl_array_list_implementation): Update.
26228         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26229         (gl_carray_list_implementation): Update.
26230         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26231         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26232         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26233         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26234         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26235         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26236         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26237         Update.
26238         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26239         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26240         (gl_sublist_list_implementation): Update.
26241
26242 2008-02-10  Bruno Haible  <bruno@clisp.org>
26243
26244         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26245         Needed when ELEMENT is #defined to 'some_type *'.
26246
26247 2008-02-10  Jim Meyering  <meyering@redhat.com>
26248
26249         New script and module: useless-if-before-free
26250         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26251         * build-aux/useless-if-before-free: New file.
26252         * modules/useless-if-before-free: New file.
26253
26254         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26255
26256         xstrtol_error: Fix typo.
26257         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26258         s/exit_failure/exit_status/.
26259
26260 2008-02-09  Jim Meyering  <meyering@redhat.com>
26261
26262         New script and module: gitlog-to-changelog
26263         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26264         * modules/gitlog-to-changelog: New file.
26265         * build-aux/gitlog-to-changelog: New file.
26266
26267 2008-02-08  Jim Meyering  <meyering@redhat.com>
26268
26269         Avoid two "parameter unused" warnings.
26270         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26271         Mark "st" as used.
26272
26273         Use "git COMMAND", not "git-COMMAND".
26274         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26275         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26276         * build-aux/git-version-gen: Use "git status", not "git-status".
26277
26278 2008-02-07  Bruno Haible  <bruno@clisp.org>
26279
26280         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26281         Avoids a crash on Windows Vista.
26282         Reported by Adam Strzelecki <ono@java.pl> via
26283         Simon Josefsson <simon@josefsson.org>.
26284
26285 2008-02-06  Bruno Haible  <bruno@clisp.org>
26286
26287         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26288         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26289         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26291         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26292         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26293         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26294         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26299         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26301         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26302         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26303         left-adjust flag.
26304         * tests/test-snprintf-posix.h (test_function): Likewise.
26305         * tests/test-sprintf-posix.h (test_function): Likewise.
26306         * tests/test-vasprintf-posix.c (test_function): Likewise.
26307         * doc/posix-functions/fprintf.texi: Update.
26308         * doc/posix-functions/printf.texi: Update.
26309         * doc/posix-functions/snprintf.texi: Update.
26310         * doc/posix-functions/sprintf.texi: Update.
26311         * doc/posix-functions/vfprintf.texi: Update.
26312         * doc/posix-functions/vprintf.texi: Update.
26313         * doc/posix-functions/vsnprintf.texi: Update.
26314         * doc/posix-functions/vsprintf.texi: Update.
26315         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26316
26317 2008-02-06  Bruno Haible  <bruno@clisp.org>
26318
26319         Fix bug introduced on 2008-01-26.
26320         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26321
26322 2008-02-06  Bruno Haible  <bruno@clisp.org>
26323
26324         Fix bug introduced on 2007-06-10.
26325         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26326         !NEED_PRINTF_FLAG_ZERO.
26327
26328 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26329
26330         getloadavg: use libperfstat on AIX5
26331         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26332
26333 2008-02-03  Bruno Haible  <bruno@clisp.org>
26334
26335         * lib/diffseq.h: Add comments about required #includes.
26336         Reported by Michael Biggs <gnulib@doubleplum.net>.
26337
26338 2008-02-01  Bruno Haible  <bruno@clisp.org>
26339
26340         * users.txt: Add gnuit.
26341
26342 2008-01-31  Bruno Haible  <bruno@clisp.org>
26343
26344         * lib/md4.c (set_uint32): Mark as inline.
26345         * lib/md5.c (set_uint32): Likewise.
26346         * lib/sha1.c (set_uint32): Likewise.
26347         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26348         * m4/md5.m4 (gl_MD5): Likewise.
26349         * m4/sha1.m4 (gl_SHA1): Likewise.
26350
26351 2008-01-31  Jim Meyering  <meyering@redhat.com>
26352
26353         Use "sizeof VAR", rather than a literal "4".
26354         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26355         * lib/md4.c (md4_read_ctx): Likewise.
26356         * lib/sha1.c (sha1_read_ctx): Likewise.
26357
26358 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26359
26360         * tests/test-sha1.c: New file, based on test-md5.c.
26361
26362         * modules/crypto/sha1-tests: New file.
26363
26364 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26365
26366         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26367
26368 2008-01-31  Jim Meyering  <meyering@redhat.com>
26369
26370         Prefer "sizeof v" over the equivalent "4".
26371         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26372         * lib/md5.c (set_uint32): Likewise.
26373         * lib/sha1.c (set_uint32): Likewise.
26374
26375 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26376
26377         * lib/sha1.c (set_uint32): Mark function as static.
26378
26379 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26380
26381         md2: clarify comments to say that alignment is not required.
26382         * lib/md2.h: Remove warning about alignment in comment.
26383         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26384         never been required.
26385
26386 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26387
26388         md4: adapt alignment constraint fix from sha1.
26389         * lib/md4.c (set_uint32): New function, from sha1.c
26390         (md4_read_ctx): Use it.
26391         (md4_finish_ctx): Doc fix.
26392         * lib/md4.h: Doc fix.
26393
26394 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26395
26396         md5: adapt alignment constraint fix from sha1.
26397         * lib/md5.c (set_uint32): New function, from sha1.c
26398         (md5_read_ctx): Use it.
26399         (md5_finish_ctx): Doc fix.
26400         * lib/md5.h: Doc fix.
26401
26402 2008-01-30  Peter Palfrader  <weasel@debian.org>
26403
26404         sha1: remove the result buffer alignment constraint
26405         * lib/sha1.c (set_uint32): New function.
26406         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26407         constraint.
26408         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26409         * lib/sha1.h: Likewise.
26410
26411 2008-01-30  Andreas Schwab  <schwab@suse.de>
26412             Bruno Haible  <bruno@clisp.org>
26413
26414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26415         correct definition of LDBL_MIN_EXP.
26416
26417 2008-01-30  Karl Berry  <karl@gnu.org>
26418
26419         * config/srclist-update: try to preserve x bit on updates.
26420         * config/srclistvars.sh: update for karl.
26421
26422 2008-01-29  Jim Meyering  <meyering@redhat.com>
26423
26424         vasnprintf.c: Avoid warning about unused label
26425         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26426         "overflow" label definition and associated code with the
26427         same cpp condition that guards the sole use of that label.
26428
26429 2008-01-26  Bruno Haible  <bruno@clisp.org>
26430
26431         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26432         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26433         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26434         * lib/isnanl-nolibm.h (isnanl): Likewise.
26435         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26436
26437 2008-01-26  Bruno Haible  <bruno@clisp.org>
26438
26439         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26440         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26441
26442 2008-01-26  Bruno Haible  <bruno@clisp.org>
26443
26444         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26445         GCC >= 4.0 built-in.
26446         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26447
26448 2008-01-26  Bruno Haible  <bruno@clisp.org>
26449
26450         Rename isnan, applicable to 'double' only, to isnand.
26451         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26452         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26453         (configure.ac): Update.
26454         (Include): Replace "isnan.h" with "isnand.h".
26455         * m4/isnand.m4: Renamed from m4/isnan.m4.
26456         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26457         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26458         instead of isnan.c.
26459         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26460         instead of HAVE_ISNAN_IN_LIBC.
26461         (isnand): Renamed from isnan.
26462         * lib/isnand.c: New file.
26463         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26464         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26465         (Makefile.am): Update.
26466         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26467         Include isnand.h instead of isnan.h.
26468         (main): Test isnand instead of isnan.
26469         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26470         isnan-nolibm.
26471         * modules/frexp (Depends-on): Likewise.
26472         * modules/frexp-tests (Depends-on): Likewise.
26473         * modules/frexp-nolibm (Depends-on): Likewise.
26474         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26475         * modules/isfinite (Depends-on): Likewise.
26476         * modules/round-tests (Depends-on): Likewise.
26477         * modules/signbit (Depends-on): Likewise.
26478         * modules/signbit-tests (Depends-on): Likewise.
26479         * modules/snprintf-posix (Depends-on): Likewise.
26480         * modules/sprintf-posix (Depends-on): Likewise.
26481         * modules/trunc-tests (Depends-on): Likewise.
26482         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26483         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26484         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26485         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26486         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26487         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26488         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26489         * modules/vasnprintf-posix (Depends-on): Likewise.
26490         * modules/vasprintf-posix (Depends-on): Likewise.
26491         * modules/vfprintf-posix (Depends-on): Likewise.
26492         * modules/vsnprintf-posix (Depends-on): Likewise.
26493         * modules/vsprintf-posix (Depends-on): Likewise.
26494         * lib/frexp.c: Include isnand.h instead of isnan.h.
26495         (ISNAN): Set to isnand instead of isnan.
26496         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26497         (gl_isfinited): Use isnand instead of isnan.
26498         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26499         (gl_signbitd): Use isnand instead of isnan.
26500         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26501         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26502         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26503         (main): Use isnand instead of isnan.
26504         * tests/test-round1.c: Include isnand.h.
26505         (main): Use isnand instead of isnan.
26506         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26507         (ISNAN): Set to isnand instead of isnan.
26508         * tests/test-trunc1.c: Include isnand.h.
26509         (main): Use isnand instead of isnan.
26510         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26511         (equal): Use isnand instead of isnan.
26512         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26513         isnand-nolibm.
26514         * NEWS: Mention the change.
26515
26516 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26517             Bruno Haible  <bruno@clisp.org>
26518
26519         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26520         the GCC builtins for signbits are present and set
26521         REPLACE_SIGNBIT_USING_GCC if so.
26522         * lib/math.in.h (signbit): Define using GCC builtins if
26523         REPLACE_SIGNBIT_USING_GCC is set.
26524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26525         REPLACE_SIGNBIT_USING_GCC.
26526         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26527
26528 2008-01-25  Jim Meyering  <meyering@redhat.com>
26529
26530         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26531         * lib/poll.c: Include <config.h>, not "config.h".
26532         * tests/test-getaddrinfo.c: Likewise.
26533
26534 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26535
26536         * modules/sockets-tests: New file.
26537
26538 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26539
26540         * modules/sockets: New module, can be used to call WSA_Startup and
26541         WSA_Cleanup when needed.
26542
26543         * lib/sockets.h, lib/sockets.c: New files.
26544
26545         * m4/sockets.m4: New file.
26546
26547         * tests/test-sockets.c: New file.
26548
26549 2008-01-19  Bruno Haible  <bruno@clisp.org>
26550
26551         * doc/posix-headers: Renamed from doc/headers.
26552         * doc/posix-functions: Renamed from doc/functions.
26553         * doc/gnulib.texi: Update.
26554
26555 2008-01-19  Bruno Haible  <bruno@clisp.org>
26556
26557         * doc/glibc-functions/strcasestr.texi: Include contents of
26558         doc/functions/strcasestr.texi, fixing the list of platforms.
26559         * doc/functions/strcasestr.texi: Remove file.
26560
26561 2008-01-19  Bruno Haible  <bruno@clisp.org>
26562
26563         * doc/glibc-functions/memmem.texi: Include contents of
26564         doc/functions/memmem.texi.
26565         * doc/functions/memmem.texi: Remove file.
26566
26567 2008-01-18  Bruno Haible  <bruno@clisp.org>
26568
26569         * doc/glibc-functions/*.texi: New files.
26570         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26571         to use the new files.
26572
26573 2008-01-17  Bruno Haible  <bruno@clisp.org>
26574
26575         * tests/test-gethostname.c (main): Fix printf statement.
26576
26577 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26578
26579         * modules/gethostname-tests: New file.
26580
26581         * tests/test-gethostname.c: New file.
26582
26583 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26584
26585         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26586         used by the UNAME case.  Reported by Bruno Haible
26587         <bruno@clisp.org>.
26588
26589 2008-01-17  Eric Blake  <ebb9@byu.net>
26590
26591         Convert c-strcasestr to be more efficient.
26592         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26593         (Depends-on): Add c-strcase, remove malloca, strnlen.
26594         * tests/test-c-strcasestr.c (main): Enhance test.
26595         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26596
26597 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26598
26599         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26600         Use it in creating po/Makevars.
26601
26602 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26603
26604         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26605         Applications that requires it should initialize libgcrypt
26606         manually.
26607
26608 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26609
26610         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26611
26612 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26613
26614         Fix problem with getdate on mingw32 reported by Simon Josefsson
26615         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26616         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26617         tzname", when deciding whether to declare tzname.
26618         * lib/strftime.c (tzname): Likewise.
26619
26620 2008-01-15  Bruno Haible  <bruno@clisp.org>
26621
26622         Work around a MacOS X 10.5 bug in frexpl().
26623         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26624         * doc/functions/frexpl.texi: Document the bug.
26625         Reported by Elias Pipping <pipping@gentoo.org>.
26626
26627 2008-01-14  Eric Blake  <ebb9@byu.net>
26628
26629         Touch up previous patch.
26630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26631         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26632
26633         Convert strcasestr module to use Two-Way algorithm.
26634         * modules/strcasestr-simple: New module, based on the old
26635         strcasestr, but with Two-Way rather than KMP.
26636         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26637         * lib/string.in.h (rpl_strcasestr): Declare.
26638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26639         performance.
26640         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26641         * modules/string (Makefile.am): Support strcasestr.
26642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26643         * modules/strcasestr-tests (Depends-on): Check for alarm.
26644         * tests/test-strcasestr.c: Augment test.
26645         * lib/str-two-way.h: Clean up stray macro.
26646         * NEWS: Document new module.
26647         * MODULES.html.sh (string handling): Likewise.
26648         * doc/functions/strcasestr.texi: New file.
26649         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26650         here, since it is not a POSIX function.
26651
26652 2008-01-14  Colin Watson  <cjwatson@debian.org>
26653             Bruno Haible  <bruno@clisp.org>
26654
26655         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26656         works fine; if not, set REPLACE_STRSIGNAL.
26657         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26659         REPLACE_STRSIGNAL.
26660         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26661         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26662         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26663
26664 2008-01-14  Bruno Haible  <bruno@clisp.org>
26665
26666         * modules/strsignal (Include): Change to <string.h>.
26667
26668 2008-01-14  Colin Watson  <cjwatson@debian.org>
26669
26670         * modules/argp (Notice): Add a notice recommending to change
26671         XGETTEXT_OPTIONS.
26672         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26673
26674 2008-01-13  Colin Watson  <cjwatson@debian.org>
26675
26676         * modules/strsignal-tests: New file.
26677         * tests/test-strsignal.c: New file.
26678
26679         * lib/strsignal.c: New file, from glibc with modifications.
26680         * lib/siglist.h: New file, from glibc with modifications.
26681         * lib/string.in.h (strsignal): New declaration.
26682         * m4/strsignal.m4: New file.
26683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26684         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26685         * modules/strsignal: New file.
26686         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26687         HAVE_DECL_STRSIGNAL.
26688
26689 2008-01-13  Bruno Haible  <bruno@clisp.org>
26690
26691         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26692         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26693         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26694         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26695
26696 2008-01-13  Bruno Haible  <bruno@clisp.org>
26697
26698         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26699         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26700         * lib/argp.h (__attribute__): Likewise.
26701         * lib/c-stack.c (__attribute__): Likewise.
26702         * lib/error.h (__attribute__): Likewise.
26703         * lib/fts.c (__attribute__): Likewise.
26704         * lib/openat.h (__attribute__): Likewise.
26705         * lib/stdio.in.h (__attribute__): Likewise.
26706         * lib/string.in.h (__attribute__): Likewise.
26707         * lib/utimens.c (__attribute__): Likewise.
26708         * lib/vasnprintf.h (__attribute__): Likewise.
26709         * lib/xalloc.h (__attribute__): Likewise.
26710         * lib/xprintf.h (__attribute__): Likewise.
26711         * lib/xstrtol.h (__attribute__): Likewise.
26712         * lib/xvasprintf.h (__attribute__): Likewise.
26713
26714 2008-01-12  Bruno Haible  <bruno@clisp.org>
26715
26716         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26717         * doc/glibc-headers/a.out.texi: New file.
26718         * doc/glibc-headers/aliases.texi: New file.
26719         * doc/glibc-headers/alloca.texi: New file.
26720         * doc/glibc-headers/ar.texi: New file.
26721         * doc/glibc-headers/argp.texi: New file.
26722         * doc/glibc-headers/argz.texi: New file.
26723         * doc/glibc-headers/byteswap.texi: New file.
26724         * doc/glibc-headers/crypt.texi: New file.
26725         * doc/glibc-headers/endian.texi: New file.
26726         * doc/glibc-headers/envz.texi: New file.
26727         * doc/glibc-headers/err.texi: New file.
26728         * doc/glibc-headers/error.texi: New file.
26729         * doc/glibc-headers/execinfo.texi: New file.
26730         * doc/glibc-headers/fpu_control.texi: New file.
26731         * doc/glibc-headers/fstab.texi: New file.
26732         * doc/glibc-headers/fts.texi: New file.
26733         * doc/glibc-headers/getopt.texi: New file.
26734         * doc/glibc-headers/ieee754.texi: New file.
26735         * doc/glibc-headers/ifaddrs.texi: New file.
26736         * doc/glibc-headers/libintl.texi: New file.
26737         * doc/glibc-headers/mcheck.texi: New file.
26738         * doc/glibc-headers/mntent.texi: New file.
26739         * doc/glibc-headers/obstack.texi: New file.
26740         * doc/glibc-headers/paths.texi: New file.
26741         * doc/glibc-headers/printf.texi: New file.
26742         * doc/glibc-headers/pty.texi: New file.
26743         * doc/glibc-headers/resolv.texi: New file.
26744         * doc/glibc-headers/shadow.texi: New file.
26745         * doc/glibc-headers/sysexits.texi: New file.
26746         * doc/glibc-headers/ttyent.texi: New file.
26747
26748 2008-01-12  Jim Meyering  <meyering@redhat.com>
26749
26750         announce-gen: emit Gnulib's git-based version string.
26751         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26752         New option --gnulib-version=V, where V is expected to be
26753         the output of running git describe in the gnulib directory.
26754         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26755         not useful, and plan to stop publishing an xdelta file with each
26756         coreutils release.
26757
26758         * build-aux/announce-gen: Also check for lzma-compressed files.
26759
26760 2008-01-11  Bruno Haible  <bruno@clisp.org>
26761
26762         * tests/test-memmem.c (main): Increase maximum allowed time.
26763         * tests/test-strstr.c (main): Likewise.
26764
26765 2008-01-11  Bruno Haible  <bruno@clisp.org>
26766
26767         * doc/functions/memmem.texi: Add more precisions about platforms.
26768         * doc/functions/strstr.texi: Likewise.
26769
26770 2008-01-10  Eric Blake  <ebb9@byu.net>
26771
26772         * m4/strstr.m4: Delete cruft from copy-n-paste.
26773         Reported by Bruno Haible.
26774
26775 2008-01-10  Bruno Haible  <bruno@clisp.org>
26776
26777         Make c-strstr rely on strstr.
26778         * lib/c-strstr.c: Don't include str-kmp.h.
26779         (c_strstr): Define in terms of strstr.
26780         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26781         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26782
26783 2008-01-10  Bruno Haible  <bruno@clisp.org>
26784
26785         * doc/gnulib.texi (String Functions in C Locale): New section.
26786         * doc/c-ctype.texi: New file.
26787         * doc/c-strcase.texi: New file.
26788         * doc/c-strcaseeq.texi: New file.
26789         * doc/c-strcasestr.texi: New file.
26790         * doc/c-strstr.texi: New file.
26791         * doc/c-strtod.texi: New file.
26792         * doc/c-strtold.texi: New file.
26793
26794 2008-01-10  Eric Blake  <ebb9@byu.net>
26795
26796         * lib/relocatable.h: Fix a comment.
26797
26798 2008-01-10  Eric Blake  <ebb9@byu.net>
26799
26800         Share two-way algorithm.
26801         * lib/str-two-way.h: New file, merged from...
26802         * lib/memmem.c: ...here...
26803         * lib/strstr.c: ...and here.
26804         * modules/memmem (Files): Use it.
26805         * modules/strstr (Files): Likewise.
26806
26807         Avoid quadratic strstr implementations.
26808         * lib/strstr.c: New file.
26809         * m4/strstr.m4: Likewise.
26810         * modules/strstr: Likewise.
26811         * modules/strstr-tests: Likewise.
26812         * tests/test-strstr.c: Likewise.
26813         * lib/string.in.h (rpl_strstr): Declare.
26814         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26816         * modules/string (Makefile.am): Likewise.
26817         * MODULES.html.sh (string handling): Mention new module.
26818         * doc/functions/strstr.texi (strstr): Document the bug.
26819
26820 2008-01-10  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/relocatable.h (relocate): State whether result is freshly
26823         allocated or not.
26824         * lib/relocatable.c (relocate): Return a freshly allocated string
26825         instead of a pointer to a privately held string.
26826         Reported by Sylvain Beucler <beuc@gnu.org>.
26827
26828 2008-01-10  Colin Watson  <cjwatson@debian.org>
26829
26830         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26831         s/S_ISNLK/S_ISLNK/.
26832
26833 2008-01-09  Bruno Haible  <bruno@clisp.org>
26834
26835         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26836         and other files.
26837         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26838         if it's only a guess.
26839         * modules/memmem: Simplify by depending on memmem-simple.
26840
26841 2008-01-09  Bruno Haible  <bruno@clisp.org>
26842
26843         Work around OpenBSD 4.0 tdelete() bug.
26844         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26845         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26846         macros and don't redefine the enum values.
26847         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26848         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26849         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26850
26851 2008-01-09  Bruno Haible  <bruno@clisp.org>
26852
26853         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26854         (main): Don't perform the tests if setlocale did not install a UTF-8
26855         locale. Needed on OpenBSD 4.0.
26856         * modules/wcwidth-tests (Depends-on): Add localcharset.
26857
26858 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26859
26860         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26861         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26862         * NEWS: announce this.
26863         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26864
26865 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26866         and Eric Blake  <ebb9@byu.net>
26867
26868         Add memmem-simple module.
26869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26870         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26871         * modules/memmem-simple: New file.
26872         * modules/memmem (Description): Tweak.
26873         * MODULES.html.sh (string handling): Mention new module.
26874         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26875         addressed by memmem-simple.
26876         * NEWS: Document the difference.
26877
26878 2008-01-09  Eric Blake  <ebb9@byu.net>
26879
26880         Give gcc some memmem optimization hints.
26881         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26882         (strcasestr): Declare as pure.
26883         * modules/memmem (Maintainer): Claim my implementation.
26884
26885 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26886
26887         Support AIX 6.1 and higher.
26888         * build-aux/config.libpath: Likewise.
26889         * build-aux/config.rpath: Likewise.
26890
26891 2008-01-08  Jim Meyering  <meyering@redhat.com>
26892             Bruno Haible  <bruno@clisp.org>
26893
26894         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26895         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26896         Reported by Peter Fales in
26897         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26898
26899 2008-01-08  Bruno Haible  <bruno@clisp.org>
26900
26901         * modules/unictype/category-of (Depends-on): Add
26902         unictype/category-none.
26903         * modules/unictype/category-and-tests (Depends-on): Add
26904         unictype/category-{L,N,Lu,Nd}.
26905         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26906         * modules/unictype/category-or-tests (Depends-on): Add
26907         unictype/category-{L,N}.
26908         * modules/unictype/category-name-tests (Depends-on): Add
26909         unictype/category-{Z,Nl}.
26910         Reported by Simon Josefsson.
26911
26912 2008-01-08  Bruno Haible  <bruno@clisp.org>
26913
26914         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26915         convention better.
26916         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26917         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26918         Reported by Peter Miller <millerp@canb.auug.org.au>.
26919
26920 2008-01-08  Eric Blake  <ebb9@byu.net>
26921
26922         Rewrite memmem to guarantee linear complexity without malloc.
26923         * lib/memmem.c (memmem): Use Two-Way rather than
26924         Knuth-Morris-Pratt, to allow O(1) space usage.
26925         (critical_factorization, two_way_short_needle)
26926         (two_way_long_needle): New functions.
26927         (knuth_morris_pratt): Delete.
26928         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26929         Add stdint.
26930         * tests/test-memmem.c (main): Add tests for periodic needle and
26931         sublinear performance.
26932         * doc/functions/memmem.texi (memmem): Document other deficiencies
26933         in cygwin and older glibc.
26934
26935 2008-01-08  Bruno Haible  <bruno@clisp.org>
26936
26937         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26938         augmentation.
26939
26940 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26941
26942         Add a configure time option: --disable-acl.
26943         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26944         AC_ARG_ENABLE(acl).
26945
26946 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26947
26948         * tests/test-localename.c: Don't include obsolete "setenv.h".
26949
26950         * modules/localename-tests (Depends-on): Need unsetenv.
26951
26952 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26953
26954         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26955
26956 2008-01-06  Colin Watson  <cjwatson@debian.org>
26957
26958         * users.txt: Add man-db.
26959
26960 2008-01-07  Bruno Haible  <bruno@clisp.org>
26961
26962         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26963         previous section name.
26964
26965 2008-01-07  Bruno Haible  <bruno@clisp.org>
26966
26967         * lib/progname.c (set_program_name): Don't strip off a leading
26968         "lt-" prefix outside a .libs directory.
26969         Suggested by Paul Eggert.
26970
26971 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26972             Bruno Haible  <bruno@clisp.org>
26973
26974         Improve memory cleanup in 'relocatable' module.
26975         * lib/relocatable.h (compute_curr_prefix): Change return type to
26976         'char *'.
26977         * lib/relocatable.c (compute_curr_prefix): Change return type to
26978         'char *'. Free curr_installdir after use.
26979         (relocate): Free curr_prefix_better after use.
26980         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26981
26982 2008-01-01  Bruno Haible  <bruno@clisp.org>
26983
26984         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26985         failure on older glibc systems.
26986         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26987
26988 2008-01-05  Eric Blake  <ebb9@byu.net>
26989
26990         Avoid quadratic system memmem.
26991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26992         Reported by Ralf Wildenhues.
26993
26994         Fix memmem test for mingw.
26995         * modules/memmem-tests (configure.ac): Check for alarm.
26996         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26997         it.
26998         * doc/functions/memmem.texi: New file.
26999         * doc/gnulib.texi (Function Substitutes): Add memmem.
27000         Reported by Bruno Haible.
27001
27002 2008-01-04  Bruno Haible  <bruno@clisp.org>
27003
27004         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27005         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27006         gl_HEADER_STRING_H_DEFAULTS.
27007
27008 2008-01-04  Eric Blake  <ebb9@byu.net>
27009
27010         Shorten duration of memmem test.
27011         * tests/test-memmem.c (main): Use alarm to declare failure if test
27012         is taking too long.
27013         Reported by Ralf Wildenhues.
27014
27015 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27016
27017         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27018         string, needed by strerror.
27019
27020 2008-01-03  Colin Watson  <cjwatson@debian.org>
27021             Bruno Haible  <bruno@clisp.org>
27022
27023         * doc/gnulib-tool.texi (Localization): New section.
27024
27025 2008-01-02  Bruno Haible  <bruno@clisp.org>
27026
27027         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27028         variables to 'unsigned char *' type.
27029         Reported by Paul Eggert.
27030
27031 2008-01-02  Jim Meyering  <jim@meyering.net>
27032
27033         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27034
27035 2007-12-31  Jim Meyering  <jim@meyering.net>
27036
27037         Avoid use of private FTS type name.
27038         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27039
27040 2007-12-30  Karl Berry  <karl@gnu.org>
27041
27042         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27043         work around defect in Texinfo and/or the standalone Info browser.
27044
27045 2007-12-30  Bruno Haible  <bruno@clisp.org>
27046
27047         Unify 5 copies of the KMP code.
27048         * lib/str-kmp.h: New file.
27049         * lib/c-strcasestr.c: Include str-kmp.h.
27050         (knuth_morris_pratt): Remove function.
27051         (c_strcasestr): Update.
27052         * lib/c-strstr.c: Include str-kmp.h.
27053         (knuth_morris_pratt): Remove function.
27054         (c_strcasestr): Update.
27055         * lib/mbscasestr.c: Include str-kmp.h.
27056         (knuth_morris_pratt_unibyte): Remove function.
27057         * lib/mbsstr.c: Include str-kmp.h.
27058         (knuth_morris_pratt_unibyte): Remove function.
27059         * lib/strcasestr.c: Include str-kmp.h.
27060         (knuth_morris_pratt): Remove function.
27061         (strcasestr): Update.
27062         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27063         * modules/c-strstr (Files): Likewise.
27064         * modules/mbscasestr (Files): Likewise.
27065         * modules/mbsstr (Files): Likewise.
27066         * modules/strcasestr (Files): Likewise.
27067         Suggested by Paul Eggert.
27068
27069 2007-12-30  Bruno Haible  <bruno@clisp.org>
27070
27071         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27072         defined.
27073
27074 2007-12-30  Bruno Haible  <bruno@clisp.org>
27075
27076         * lib/xmalloca.h: Include xalloc.h.
27077         (xnmalloca): New macro.
27078
27079 2007-12-30  Bruno Haible  <bruno@clisp.org>
27080
27081         * lib/malloca.h (nmalloca): New macro.
27082         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27083         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27084         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27085         knuth_morris_pratt_multibyte): Likewise.
27086         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27087         knuth_morris_pratt_multibyte): Likewise.
27088         * lib/memmem.c (knuth_morris_pratt): Likewise.
27089         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27090
27091 2007-12-25  Bruno Haible  <bruno@clisp.org>
27092
27093         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27094         * lib/glob.c: Don't include openat.h.
27095         (link_exists2_p): Add back the code that deals with the
27096         !GLOB_ALTDIRFUNC case.
27097         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27098         let it do the filename concatenation.
27099         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27100         * modules/glob (Depends-on): Remove openat.
27101
27102 2007-12-31  Bruno Haible  <bruno@clisp.org>
27103
27104         * modules/dirfd (License): Change to LGPLv2+.
27105         Approved by Jim Meyering.
27106
27107 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27108
27109         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27110         when multiplying M by sizeof (size_t).
27111
27112 2007-12-10  Martin Lambers  <marlam@marlam.de>
27113
27114         Override getpagesize on mingw.
27115         * lib/getpagesize.c: New file.
27116         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27117         * modules/getpagesize (Files): Add lib/getpagesize.c.
27118         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27120         REPLACE_GETPAGESIZE.
27121         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27122
27123 2007-12-25  Bruno Haible  <bruno@clisp.org>
27124
27125         * modules/localcharset (Notice): New field.
27126         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27127         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27128
27129 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27130             Bruno Haible  <bruno@clisp.org>
27131
27132         Avoid using the syntax symbol() in formatted documentation.
27133         * MODULES.html.sh (func_module): When replacing symbol() with a
27134         hyperlink, remove the parentheses. Show an error if some remain.
27135         Recognize and render the '...' syntax.
27136         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27137         Rework. Add paragraph about GCC's inlining.
27138         * doc/alloca.texi: Likewise.
27139         * doc/error.texi: Remove parentheses from symbol reference.
27140         * doc/gnulib-intro.texi: Likewise.
27141         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27142         * modules/fnmatch (Description): Reword to say "the ... function".
27143         * modules/full-read (Description): Likewise.
27144         * modules/full-write (Description): Likewise.
27145         * modules/safe-read (Description): Likewise.
27146         * modules/safe-write (Description): Likewise.
27147         * modules/strchrnul (Description): Likewise.
27148         * modules/trim (Description): Likewise.
27149         * modules/error (Description): Remove parentheses from symbol
27150         references.
27151         * modules/verror (Description): Likewise.
27152         Reported by Karl Berry.
27153
27154 2007-12-25  Bruno Haible  <bruno@clisp.org>
27155
27156         Fixup after 2007-10-16 commit.
27157         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27158
27159 2007-12-24  Bruno Haible  <bruno@clisp.org>
27160
27161         Make --enable-relocatable work with DESTDIR.
27162         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27163         to compute installdir from destprog.
27164         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27165         also set the RELOC_DESTDIR variable.
27166         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27167
27168 2007-12-24  Bruno Haible  <bruno@clisp.org>
27169
27170         Fix link error due to xalloc_die().
27171         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27172         of xreadlink.
27173         * lib/relocwrapper.c: Update comments.
27174         * build-aux/install-reloc: Remove xreadlink.c from file list.
27175         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27176         xreadlink.c.
27177         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27178
27179 2007-12-24  Bruno Haible  <bruno@clisp.org>
27180
27181         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27182         * lib/setenv.h: Remove file.
27183         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27184         lib/setenv.h.
27185         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27186         (Depends-on): Add stdlib.
27187         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27188         gl_FUNC_UNSETENV.
27189         (Include): Replace setenv.h with <stdlib.h>.
27190         * modules/unsetenv: New file.
27191         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27192         * lib/unsetenv.c: Include <stdlib.h> first.
27193         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27194         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27195         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27196         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27197         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27198         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27200         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27201         * doc/functions/unsetenv.texi: Update.
27202         * modules/xsetenv (Depends-on): Add unsetenv.
27203         * modules/getdate (Depends-on): Likewise.
27204         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27205         * lib/xsetenv.c: Don't include setenv.h.
27206         * lib/getdate.y: Likewise.
27207         * lib/relocwrapper.c: Likewise.
27208         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27209         (Depends-on): Add stdlib.
27210         * NEWS: Mention the changes.
27211         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27212
27213 2007-12-23  Bruno Haible  <bruno@clisp.org>
27214
27215         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27216         indentation.
27217
27218 2007-12-23  Bruno Haible  <bruno@clisp.org>
27219
27220         * lib/c-strcasestr.c: Add more comments.
27221         * lib/c-strstr.c: Likewise.
27222         * lib/mbscasestr.c: Likewise.
27223         * lib/mbsstr.c: Likewise.
27224         * lib/strcasestr.c: Likewise.
27225         * lib/memmem.c: Likewise.
27226
27227 2007-12-23  Bruno Haible  <bruno@clisp.org>
27228
27229         * tests/test-memmem.c: Include <string.h> first.
27230
27231 2007-12-22  Bruno Haible  <bruno@clisp.org>
27232
27233         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27234         the contents of $testsbase.
27235         Reported by Ralf Wildenhues.
27236
27237 2007-12-22  Bruno Haible  <bruno@clisp.org>
27238
27239         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27240         two variables local_ldadd_before, local_ldadd_last.
27241
27242 2007-12-20  Eric Blake  <ebb9@byu.net>
27243
27244         Work around circular library issue when cross-compiling.
27245         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27246         that progname.o does not need to pull in rpl_memcmp.
27247
27248 2007-12-19  Eric Blake  <ebb9@byu.net>
27249
27250         Fix memmem to avoid O(n^2) worst-case complexity.
27251         * lib/memmem.c (knuth_morris_pratt): New function.
27252         (memmem): Use it if first few naive iterations fail.
27253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27254         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27255         * modules/memchr (License): Likewise.
27256         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27257         malloca.
27258         * tests/test-memmem.c: Rewrite, borrowing ideas from
27259         test-mbsstr1.c; the old version wouldn't even compile!
27260         * modules/memmem-tests: New file.
27261         * lib/string.in.h (rpl_memmem): Add declaration.
27262         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27264         REPLACE_MEMMEM.
27265
27266 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27267
27268         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27269         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27270         before any system include files, and undef after them all.  This
27271         should fix a problem on VMS reported by John E. Malmberg in
27272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27273
27274 2007-12-17  Eric Blake  <ebb9@byu.net>
27275
27276         Revert addition of verify, for BSD/OS.
27277         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27278         can't handle large files, for the sake of obsolete platforms.
27279         * modules/fseeko (Depends-on): Remove verify.
27280         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27281         * doc/functions/ftello.texi (ftello): Likewise.
27282         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27283         Reported by Larry Jones.
27284
27285 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27286
27287         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27288         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27289
27290 2007-12-17  Jim Meyering  <meyering@redhat.com>
27291
27292         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27293         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27294         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27295         * modules/getcwd (Depends-on): Add openat.
27296         Reported by Petr Salinger.
27297
27298 2007-12-17  Bruno Haible  <bruno@clisp.org>
27299
27300         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27301         avoid a segmentation fault of the configure test on x86_64 systems.
27302
27303 2007-12-15  Jim Meyering  <meyering@redhat.com>
27304
27305         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27306
27307 2007-12-13  Eric Blake  <ebb9@byu.net>
27308
27309         Another fseek test.
27310         * tests/test-fseek.c (main): Also test ungetc handling.
27311         * tests/test-fseeko.c (main): Likewise.
27312         * modules/fseeko (Depends-on): Add verify.
27313         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27314         large.
27315         Reported by Larry Jones.
27316
27317         Fix fseeko on mingw.
27318         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27319         seek.
27320
27321         Beef up fseek tests.
27322         * tests/test-fseek.c (main): Also test eof handling.
27323         * tests/test-fseeko.c (main): Likewise.
27324         Reported by Larry Jones.
27325
27326 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27327
27328         Fix fseeko on BSD-based platforms.
27329         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27330         successful seek.
27331
27332 2007-12-12  Eric Blake  <ebb9@byu.net>
27333
27334         Allow circular dependency of separate libtests.a
27335         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27336         when use_libtests.
27337
27338 2007-12-11  Eric Blake  <ebb9@byu.net>
27339
27340         Fix bug with -0.0L in previous patch.
27341         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27342         * tests/test-isnan.c (main): Also test on zeroes.
27343         * tests/test-isnanf.c (main): Likewise.
27344         * tests/test-isnanl.h (main): Likewise.
27345
27346         Detect pseudo-denormals on x86 even when cross-compiling.
27347         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27348         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27349         invalid bit patterns that happen to satisfy ==.
27350
27351         Avoid link failures with separate libtests.a.
27352         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27353         last, to satisfy circular dependencies.
27354
27355 2007-12-11  Eric Blake  <ebb9@byu.net>
27356         and Bruno Haible  <bruno@clisp.org>
27357
27358         Fix OpenBSD 4.0 <float.h> handling of long double.
27359         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27360         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27361         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27362
27363 2007-12-11  Jim Meyering  <meyering@redhat.com>
27364
27365         * users.txt: Add libvirt.
27366
27367         Support versions of autoconf prior to 2.59c.
27368         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27369         if it is not already defined.
27370
27371 2007-12-09  Bruno Haible  <bruno@clisp.org>
27372
27373         Let 'gnulib-tool --import' collect sources needed for the tests in
27374         tests/ rather than in lib/.
27375         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27376         argument. If true, add rules to generate libtests.a, and put libtests.a
27377         into $(LDADD). Consider source files in subdirectories and set
27378         uses_subdirs.
27379         (func_emit_initmacro_start, func_emit_initmacro_end,
27380         func_emit_initmacro_done): Pass all arguments explicitly.
27381         (func_import): Determine two module lists main_modules,
27382         testsrelated_modules. Determine use_libtests. Determine two variables
27383         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27384         instead of just sed_transform_lib_file. Determine two variables
27385         main_files and testsrelated_files. Compute 'files' as the union of
27386         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27387         func_add_or_update. In the generated gnulib-comp.m4, collect the
27388         object files for tests/ in different variables than those for lib/.
27389         Substitute LIBTESTS_LIBDEPS.
27390         (func_create_testdir): Combine the uses_subdirs results from
27391         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27392
27393 2007-12-09  Bruno Haible  <bruno@clisp.org>
27394
27395         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27396         the build-aux directory.
27397
27398 2007-12-09  Bruno Haible  <bruno@clisp.org>
27399
27400         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27401         introduced on 2006-09-09.
27402
27403 2007-12-07  Jim Meyering  <meyering@redhat.com>
27404
27405         Let these macros work also with autoconf-2.59.
27406         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27407         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27409
27410 2007-12-06  Jim Meyering  <meyering@redhat.com>
27411
27412         Avoid a configure-time syntax error in gl_FUNC_ACL.
27413         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27414         function in each branch, before testing the cache variable.
27415
27416 2007-12-04  Eric Blake  <ebb9@byu.net>
27417
27418         Make scripts executable.
27419         * build-aux/config.guess: Add execute permissions.
27420         * build-aux/config.sub: Likewise.
27421         * build-aux/gendocs.sh: Likewise.
27422
27423         Fix frexp on mingw.
27424         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27425         cross-compiling.
27426         * doc/functions/frexp.texi (frexp): Document the bug.
27427
27428         Make cygwin fseeko check more reliable.
27429         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27430         version numbers, rather than unrelated feature check.
27431         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27432         * doc/functions/ftello.texi (ftello): Likewise.
27433         Reported by Bruno Haible.
27434
27435         * m4/strerror.m4: Bump version number.
27436
27437 2007-12-03  Bruno Haible  <bruno@clisp.org>
27438
27439         * doc/functions/mprotect.texi: Mention the mingw problem.
27440
27441 2007-12-03  Eric Blake  <ebb9@byu.net>
27442
27443         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27444         REPLACE_STRERROR is initialized before this macro.
27445
27446 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27447
27448         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27449         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27450         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27451         put -lsec in even for programs other than 'ls'.  This fixes a problem
27452         for gettext reported by Bruno Haible in
27453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27454         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27455         Add support for Solaris 10.  This isn't efficient, but should get the
27456         job done for now.
27457
27458 2007-12-03  James Youngman  <jay@gnu.org>
27459
27460         * doc/regexprops-generic.texi: change "an close-group" to "a
27461         close-group" and "illegal" to "not allowed".
27462
27463 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27464
27465         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27466         pr_byname.h. Needed for the rare case when the maintainer has done
27467         "make maintainer-clean" in the source directory and then attempts a
27468         build outside the source directory.
27469         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27470         scripts_byname.h.
27471
27472 2007-12-02  Martin Lambers <marlam@marlam.de>
27473             Bruno Haible  <bruno@clisp.org>
27474
27475         * lib/getpagesize.h: Remove file.
27476         * lib/unistd.in.h: Include declaration of getpagesize here.
27477         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27478         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27479         HAVE_SYS_PARAM_H.
27480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27481         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27482         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27483         (Depends-on): Add unistd.
27484         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27485         (Include): Use <unistd.h> instead of getpagesize.h.
27486         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27487         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27488         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27489         gl_GETPAGESIZE invocation, already handled by module dependency.
27490         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27491
27492 2007-12-02  Bruno Haible  <bruno@clisp.org>
27493
27494         * modules/strings-tests: New file.
27495         * tests/test-strings.c: New file.
27496
27497         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27498         * lib/strings.in.h: New file.
27499         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27500         * m4/strings_h.m4: New file.
27501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27502         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27503         * modules/strings: New file.
27504         * modules/string (Makefile.am): Update.
27505         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27506         Reported by Karl Berry.
27507
27508 2007-12-01  Eric Blake  <ebb9@byu.net>
27509
27510         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27511         accomodate fix in cygwin 1.5.25.
27512
27513 2007-12-01  Jim Meyering  <meyering@redhat.com>
27514
27515         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27516         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27517         that would inhibit utf8-optimization of a regexp containing line-
27518         or buffer-anchors, e.g., `^', `$'.
27519
27520 2007-11-30  Bruno Haible  <bruno@clisp.org>
27521
27522         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27523         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27524         glthread_recursive_lock_init.
27525         * lib/lock.c (glthread_recursive_lock_init)
27526         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27527         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27528
27529 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27530
27531         New function qset_acl, like set_acl but with syscall semantics.
27532         * lib/acl.h (qset_acl): New decl.
27533         * lib/acl.c (qset_acl): New function.
27534         (set_acl): Use new function.  Use more-consistent diagnostics.
27535
27536 2007-11-28  Jim Meyering  <meyering@redhat.com>
27537
27538         * modules/physmem (License): Change from GPL to LGPLv2+.
27539
27540 2007-11-26  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27543         'long double' type has excess precision.
27544         Reported by Jim Meyering in
27545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27546
27547 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27548
27549         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27550         Sync from <http://gnu.org/licenses>.
27551         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27552         with license text from same location.
27553         * doc/maintain.texi, doc/standards.texi:  Sync from
27554         <http://savannah.gnu.org/projects/gnustandards>.
27555
27556 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
27557         and Jim Meyering  <meyering@redhat.com>
27558
27559         Adjust getdate' grammar to accept a slightly more regular language.
27560         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27561         Before, the former was rejected.
27562         * lib/getdate.y (digits_to_date_time): New function, factored
27563         out of ...
27564         (number): ...here.  Just call digits_to_date_time.
27565         (hybrid): New non-terminal to handle an <unsigned number,
27566         signed relative offset> sequence consistently.
27567
27568 2007-11-18  Jim Meyering  <meyering@redhat.com>
27569
27570         Pull my changes from coreutils:
27571         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27572         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27573         use of $gnulib_tool_option_extras, so that it's separated from the
27574         preceding argument.
27575
27576         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27577         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27578         parent destination directories before copying a file into place.
27579
27580 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27581
27582         bootstrap: work also with 4-argument variant of AC_INIT
27583         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27584
27585 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27586
27587         Port test-getaddrinfo to Solaris.
27588         Problem reported by Bruno Haible in
27589         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27590         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27591         explanation of setting 'hints'.
27592         Don't reject an implementation merely because it returns EAI_SERVICE.
27593         (EAI_SERVICE): Define to 0 if not defined.
27594
27595 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27596
27597         The license of gnu-make and posix-shell is now "GPLed build tool".
27598         * modules/gnu-make (License): Likewise.
27599         * modules/posix-shell (License): Likewise.
27600
27601         New module posix-shell, for determining a POSIX shell
27602         or perhaps something that is close enough to a POSIX shell.
27603         * m4/posix-shell.m4: New file.
27604         * modules/posix-shell: New file.
27605
27606         * MODULES.html.sh: Mention new module.
27607
27608         New module gnu-make, for determining whether we're using GNU Make.
27609         * m4/gnu-make.m4: New file.
27610         * modules/gnu-make: New file.
27611         * MODULES.html.sh: Mention new module.
27612
27613 2007-11-14  Jim Meyering  <meyering@redhat.com>
27614
27615         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27616         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27617         use this macro to create a function _definition_.
27618         Remove useless "#undef ARGMATCH_DIE".
27619
27620 2007-11-14  Bruno Haible  <bruno@clisp.org>
27621
27622         * lib/config.charset: Update for OpenBSD 4.1.
27623         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27624
27625 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27626
27627         Document 64-bit #if problems in stdint.texi.
27628         * doc/headers/stdint.texi (stdint.h): Mention problems with
27629         64-bit-#if, and how to work around them.
27630
27631         Don't insist on 'long long int' support in the preprocessor.  It
27632         breaks too many things.  For example, PRIdMAX still uses a 'long
27633         long int' format with the latest Sun compiler, even though
27634         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27635         preprocessor problem.  This causes the latest coreutils to dump
27636         core on Solaris 10 sparc with the Sun C compiler.
27637         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27638         the troublesome expressions at configure-time, not at #if-time.
27639         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27640         preprocessor.
27641         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27642         compile-time C checks, done at 'configure'-time.
27643         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27644         * modules/inttypes (Makefile): Substitute the new symbols that
27645         gl_INTTYPES_H now generates.
27646         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27647
27648 2007-11-12  Bruno Haible  <bruno@clisp.org>
27649
27650         Tests for Unicode character classification functions.
27651
27652         * modules/unictype/bidicategory-byname-tests: New file.
27653         * modules/unictype/bidicategory-name-tests: New file.
27654         * modules/unictype/bidicategory-of-tests: New file.
27655         * modules/unictype/bidicategory-test-tests: New file.
27656         * modules/unictype/block-list-tests: New file.
27657         * modules/unictype/block-of-tests: New file.
27658         * modules/unictype/block-test-tests: New file.
27659         * modules/unictype/category-C-tests: New file.
27660         * modules/unictype/category-Cc-tests: New file.
27661         * modules/unictype/category-Cf-tests: New file.
27662         * modules/unictype/category-Cn-tests: New file.
27663         * modules/unictype/category-Co-tests: New file.
27664         * modules/unictype/category-Cs-tests: New file.
27665         * modules/unictype/category-L-tests: New file.
27666         * modules/unictype/category-Ll-tests: New file.
27667         * modules/unictype/category-Lm-tests: New file.
27668         * modules/unictype/category-Lo-tests: New file.
27669         * modules/unictype/category-Lt-tests: New file.
27670         * modules/unictype/category-Lu-tests: New file.
27671         * modules/unictype/category-M-tests: New file.
27672         * modules/unictype/category-Mc-tests: New file.
27673         * modules/unictype/category-Me-tests: New file.
27674         * modules/unictype/category-Mn-tests: New file.
27675         * modules/unictype/category-N-tests: New file.
27676         * modules/unictype/category-Nd-tests: New file.
27677         * modules/unictype/category-Nl-tests: New file.
27678         * modules/unictype/category-No-tests: New file.
27679         * modules/unictype/category-P-tests: New file.
27680         * modules/unictype/category-Pc-tests: New file.
27681         * modules/unictype/category-Pd-tests: New file.
27682         * modules/unictype/category-Pe-tests: New file.
27683         * modules/unictype/category-Pf-tests: New file.
27684         * modules/unictype/category-Pi-tests: New file.
27685         * modules/unictype/category-Po-tests: New file.
27686         * modules/unictype/category-Ps-tests: New file.
27687         * modules/unictype/category-S-tests: New file.
27688         * modules/unictype/category-Sc-tests: New file.
27689         * modules/unictype/category-Sk-tests: New file.
27690         * modules/unictype/category-Sm-tests: New file.
27691         * modules/unictype/category-So-tests: New file.
27692         * modules/unictype/category-Z-tests: New file.
27693         * modules/unictype/category-Zl-tests: New file.
27694         * modules/unictype/category-Zp-tests: New file.
27695         * modules/unictype/category-Zs-tests: New file.
27696         * modules/unictype/category-and-not-tests: New file.
27697         * modules/unictype/category-and-tests: New file.
27698         * modules/unictype/category-byname-tests: New file.
27699         * modules/unictype/category-name-tests: New file.
27700         * modules/unictype/category-none-tests: New file.
27701         * modules/unictype/category-of-tests: New file.
27702         * modules/unictype/category-or-tests: New file.
27703         * modules/unictype/category-test-withtable-tests: New file.
27704         * modules/unictype/combining-class-tests: New file.
27705         * modules/unictype/ctype-alnum-tests: New file.
27706         * modules/unictype/ctype-alpha-tests: New file.
27707         * modules/unictype/ctype-blank-tests: New file.
27708         * modules/unictype/ctype-cntrl-tests: New file.
27709         * modules/unictype/ctype-digit-tests: New file.
27710         * modules/unictype/ctype-graph-tests: New file.
27711         * modules/unictype/ctype-lower-tests: New file.
27712         * modules/unictype/ctype-print-tests: New file.
27713         * modules/unictype/ctype-punct-tests: New file.
27714         * modules/unictype/ctype-space-tests: New file.
27715         * modules/unictype/ctype-upper-tests: New file.
27716         * modules/unictype/ctype-xdigit-tests: New file.
27717         * modules/unictype/decimal-digit-tests: New file.
27718         * modules/unictype/digit-tests: New file.
27719         * modules/unictype/mirror-tests: New file.
27720         * modules/unictype/numeric-tests: New file.
27721         * modules/unictype/property-alphabetic-tests: New file.
27722         * modules/unictype/property-ascii-hex-digit-tests: New file.
27723         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27724         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27725         * modules/unictype/property-bidi-block-separator-tests: New file.
27726         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27727         * modules/unictype/property-bidi-common-separator-tests: New file.
27728         * modules/unictype/property-bidi-control-tests: New file.
27729         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27730         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27731         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27732         * modules/unictype/property-bidi-european-digit-tests: New file.
27733         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27734         * modules/unictype/property-bidi-left-to-right-tests: New file.
27735         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27736         * modules/unictype/property-bidi-other-neutral-tests: New file.
27737         * modules/unictype/property-bidi-pdf-tests: New file.
27738         * modules/unictype/property-bidi-segment-separator-tests: New file.
27739         * modules/unictype/property-bidi-whitespace-tests: New file.
27740         * modules/unictype/property-byname-tests: New file.
27741         * modules/unictype/property-combining-tests: New file.
27742         * modules/unictype/property-composite-tests: New file.
27743         * modules/unictype/property-currency-symbol-tests: New file.
27744         * modules/unictype/property-dash-tests: New file.
27745         * modules/unictype/property-decimal-digit-tests: New file.
27746         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27747         * modules/unictype/property-deprecated-tests: New file.
27748         * modules/unictype/property-diacritic-tests: New file.
27749         * modules/unictype/property-extender-tests: New file.
27750         * modules/unictype/property-format-control-tests: New file.
27751         * modules/unictype/property-grapheme-base-tests: New file.
27752         * modules/unictype/property-grapheme-extend-tests: New file.
27753         * modules/unictype/property-grapheme-link-tests: New file.
27754         * modules/unictype/property-hex-digit-tests: New file.
27755         * modules/unictype/property-hyphen-tests: New file.
27756         * modules/unictype/property-id-continue-tests: New file.
27757         * modules/unictype/property-id-start-tests: New file.
27758         * modules/unictype/property-ideographic-tests: New file.
27759         * modules/unictype/property-ids-binary-operator-tests: New file.
27760         * modules/unictype/property-ids-trinary-operator-tests: New file.
27761         * modules/unictype/property-ignorable-control-tests: New file.
27762         * modules/unictype/property-iso-control-tests: New file.
27763         * modules/unictype/property-join-control-tests: New file.
27764         * modules/unictype/property-left-of-pair-tests: New file.
27765         * modules/unictype/property-line-separator-tests: New file.
27766         * modules/unictype/property-logical-order-exception-tests: New file.
27767         * modules/unictype/property-lowercase-tests: New file.
27768         * modules/unictype/property-math-tests: New file.
27769         * modules/unictype/property-non-break-tests: New file.
27770         * modules/unictype/property-not-a-character-tests: New file.
27771         * modules/unictype/property-numeric-tests: New file.
27772         * modules/unictype/property-other-alphabetic-tests: New file.
27773         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27774         * modules/unictype/property-other-grapheme-extend-tests: New file.
27775         * modules/unictype/property-other-id-continue-tests: New file.
27776         * modules/unictype/property-other-id-start-tests: New file.
27777         * modules/unictype/property-other-lowercase-tests: New file.
27778         * modules/unictype/property-other-math-tests: New file.
27779         * modules/unictype/property-other-uppercase-tests: New file.
27780         * modules/unictype/property-paired-punctuation-tests: New file.
27781         * modules/unictype/property-paragraph-separator-tests: New file.
27782         * modules/unictype/property-pattern-syntax-tests: New file.
27783         * modules/unictype/property-pattern-white-space-tests: New file.
27784         * modules/unictype/property-private-use-tests: New file.
27785         * modules/unictype/property-punctuation-tests: New file.
27786         * modules/unictype/property-quotation-mark-tests: New file.
27787         * modules/unictype/property-radical-tests: New file.
27788         * modules/unictype/property-sentence-terminal-tests: New file.
27789         * modules/unictype/property-soft-dotted-tests: New file.
27790         * modules/unictype/property-space-tests: New file.
27791         * modules/unictype/property-terminal-punctuation-tests: New file.
27792         * modules/unictype/property-test-tests: New file.
27793         * modules/unictype/property-titlecase-tests: New file.
27794         * modules/unictype/property-unassigned-code-value-tests: New file.
27795         * modules/unictype/property-unified-ideograph-tests: New file.
27796         * modules/unictype/property-uppercase-tests: New file.
27797         * modules/unictype/property-variation-selector-tests: New file.
27798         * modules/unictype/property-white-space-tests: New file.
27799         * modules/unictype/property-xid-continue-tests: New file.
27800         * modules/unictype/property-xid-start-tests: New file.
27801         * modules/unictype/property-zero-width-tests: New file.
27802         * modules/unictype/scripts-tests: New file.
27803         * modules/unictype/syntax-c-ident-tests: New file.
27804         * modules/unictype/syntax-c-whitespace-tests: New file.
27805         * modules/unictype/syntax-java-ident-tests: New file.
27806         * modules/unictype/syntax-java-whitespace-tests: New file.
27807         * tests/unictype/test-bidi_byname.c: New file.
27808         * tests/unictype/test-bidi_name.c: New file.
27809         * tests/unictype/test-bidi_of.c: New file.
27810         * tests/unictype/test-bidi_test.c: New file.
27811         * tests/unictype/test-block_list.c: New file.
27812         * tests/unictype/test-block_of.c: New file.
27813         * tests/unictype/test-block_test.c: New file.
27814         * tests/unictype/test-categ_and.c: New file.
27815         * tests/unictype/test-categ_and_not.c: New file.
27816         * tests/unictype/test-categ_byname.c: New file.
27817         * tests/unictype/test-categ_name.c: New file.
27818         * tests/unictype/test-categ_none.c: New file.
27819         * tests/unictype/test-categ_of.c: New file.
27820         * tests/unictype/test-categ_or.c: New file.
27821         * tests/unictype/test-categ_test_withtable.c: New file.
27822         * tests/unictype/test-combining.c: New file.
27823         * tests/unictype/test-decdigit.c: New file.
27824         * tests/unictype/test-digit.c: New file.
27825         * tests/unictype/test-mirror.c: New file.
27826         * tests/unictype/test-numeric.c: New file.
27827         * tests/unictype/test-pr_byname.c: New file.
27828         * tests/unictype/test-pr_test.c: New file.
27829         * tests/unictype/test-predicate-part1.h: New file.
27830         * tests/unictype/test-predicate-part2.h: New file.
27831         * tests/unictype/test-scripts.c: New file.
27832         * tests/unictype/test-sy_c_ident.c: New file.
27833         * tests/unictype/test-sy_java_ident.c: New file.
27834
27835         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27836         for Unicode 5.0.0.
27837         * tests/unictype/test-categ_Cc.c: Likewise.
27838         * tests/unictype/test-categ_Cf.c: Likewise.
27839         * tests/unictype/test-categ_Cn.c: Likewise.
27840         * tests/unictype/test-categ_Co.c: Likewise.
27841         * tests/unictype/test-categ_Cs.c: Likewise.
27842         * tests/unictype/test-categ_L.c: Likewise.
27843         * tests/unictype/test-categ_Ll.c: Likewise.
27844         * tests/unictype/test-categ_Lm.c: Likewise.
27845         * tests/unictype/test-categ_Lo.c: Likewise.
27846         * tests/unictype/test-categ_Lt.c: Likewise.
27847         * tests/unictype/test-categ_Lu.c: Likewise.
27848         * tests/unictype/test-categ_M.c: Likewise.
27849         * tests/unictype/test-categ_Mc.c: Likewise.
27850         * tests/unictype/test-categ_Me.c: Likewise.
27851         * tests/unictype/test-categ_Mn.c: Likewise.
27852         * tests/unictype/test-categ_N.c: Likewise.
27853         * tests/unictype/test-categ_Nd.c: Likewise.
27854         * tests/unictype/test-categ_Nl.c: Likewise.
27855         * tests/unictype/test-categ_No.c: Likewise.
27856         * tests/unictype/test-categ_P.c: Likewise.
27857         * tests/unictype/test-categ_Pc.c: Likewise.
27858         * tests/unictype/test-categ_Pd.c: Likewise.
27859         * tests/unictype/test-categ_Pe.c: Likewise.
27860         * tests/unictype/test-categ_Pf.c: Likewise.
27861         * tests/unictype/test-categ_Pi.c: Likewise.
27862         * tests/unictype/test-categ_Po.c: Likewise.
27863         * tests/unictype/test-categ_Ps.c: Likewise.
27864         * tests/unictype/test-categ_S.c: Likewise.
27865         * tests/unictype/test-categ_Sc.c: Likewise.
27866         * tests/unictype/test-categ_Sk.c: Likewise.
27867         * tests/unictype/test-categ_Sm.c: Likewise.
27868         * tests/unictype/test-categ_So.c: Likewise.
27869         * tests/unictype/test-categ_Z.c: Likewise.
27870         * tests/unictype/test-categ_Zl.c: Likewise.
27871         * tests/unictype/test-categ_Zp.c: Likewise.
27872         * tests/unictype/test-categ_Zs.c: Likewise.
27873         * tests/unictype/test-ctype_alnum.c: Likewise.
27874         * tests/unictype/test-ctype_alpha.c: Likewise.
27875         * tests/unictype/test-ctype_blank.c: Likewise.
27876         * tests/unictype/test-ctype_cntrl.c: Likewise.
27877         * tests/unictype/test-ctype_digit.c: Likewise.
27878         * tests/unictype/test-ctype_graph.c: Likewise.
27879         * tests/unictype/test-ctype_lower.c: Likewise.
27880         * tests/unictype/test-ctype_print.c: Likewise.
27881         * tests/unictype/test-ctype_punct.c: Likewise.
27882         * tests/unictype/test-ctype_space.c: Likewise.
27883         * tests/unictype/test-ctype_upper.c: Likewise.
27884         * tests/unictype/test-ctype_xdigit.c: Likewise.
27885         * tests/unictype/test-decdigit.h: Likewise.
27886         * tests/unictype/test-digit.h: Likewise.
27887         * tests/unictype/test-numeric.h: Likewise.
27888         * tests/unictype/test-pr_alphabetic.c: Likewise.
27889         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27890         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27891         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27892         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27893         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27894         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27895         * tests/unictype/test-pr_bidi_control.c: Likewise.
27896         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27897         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27898         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27899         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27900         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27901         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27902         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27903         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27904         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27905         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27906         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27907         * tests/unictype/test-pr_combining.c: Likewise.
27908         * tests/unictype/test-pr_composite.c: Likewise.
27909         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27910         * tests/unictype/test-pr_dash.c: Likewise.
27911         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27912         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27913         * tests/unictype/test-pr_deprecated.c: Likewise.
27914         * tests/unictype/test-pr_diacritic.c: Likewise.
27915         * tests/unictype/test-pr_extender.c: Likewise.
27916         * tests/unictype/test-pr_format_control.c: Likewise.
27917         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27918         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27919         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27920         * tests/unictype/test-pr_hex_digit.c: Likewise.
27921         * tests/unictype/test-pr_hyphen.c: Likewise.
27922         * tests/unictype/test-pr_id_continue.c: Likewise.
27923         * tests/unictype/test-pr_id_start.c: Likewise.
27924         * tests/unictype/test-pr_ideographic.c: Likewise.
27925         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27926         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27927         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27928         * tests/unictype/test-pr_iso_control.c: Likewise.
27929         * tests/unictype/test-pr_join_control.c: Likewise.
27930         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27931         * tests/unictype/test-pr_line_separator.c: Likewise.
27932         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27933         * tests/unictype/test-pr_lowercase.c: Likewise.
27934         * tests/unictype/test-pr_math.c: Likewise.
27935         * tests/unictype/test-pr_non_break.c: Likewise.
27936         * tests/unictype/test-pr_not_a_character.c: Likewise.
27937         * tests/unictype/test-pr_numeric.c: Likewise.
27938         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27939         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27940         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27941         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27942         * tests/unictype/test-pr_other_id_start.c: Likewise.
27943         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27944         * tests/unictype/test-pr_other_math.c: Likewise.
27945         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27946         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27947         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27948         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27949         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27950         * tests/unictype/test-pr_private_use.c: Likewise.
27951         * tests/unictype/test-pr_punctuation.c: Likewise.
27952         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27953         * tests/unictype/test-pr_radical.c: Likewise.
27954         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27955         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27956         * tests/unictype/test-pr_space.c: Likewise.
27957         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27958         * tests/unictype/test-pr_titlecase.c: Likewise.
27959         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27960         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27961         * tests/unictype/test-pr_uppercase.c: Likewise.
27962         * tests/unictype/test-pr_variation_selector.c: Likewise.
27963         * tests/unictype/test-pr_white_space.c: Likewise.
27964         * tests/unictype/test-pr_xid_continue.c: Likewise.
27965         * tests/unictype/test-pr_xid_start.c: Likewise.
27966         * tests/unictype/test-pr_zero_width.c: Likewise.
27967         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27968         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27969
27970 2007-11-12  Bruno Haible  <bruno@clisp.org>
27971
27972         Unicode character classification functions.
27973         * lib/unictype.h: New file.
27974         * modules/unictype/base: New file.
27975         * modules/unictype/category-L: New file.
27976         * modules/unictype/category-Lu: New file.
27977         * modules/unictype/category-Ll: New file.
27978         * modules/unictype/category-Lt: New file.
27979         * modules/unictype/category-Lm: New file.
27980         * modules/unictype/category-Lo: New file.
27981         * modules/unictype/category-M: New file.
27982         * modules/unictype/category-Mn: New file.
27983         * modules/unictype/category-Mc: New file.
27984         * modules/unictype/category-Me: New file.
27985         * modules/unictype/category-N: New file.
27986         * modules/unictype/category-Nd: New file.
27987         * modules/unictype/category-Nl: New file.
27988         * modules/unictype/category-No: New file.
27989         * modules/unictype/category-P: New file.
27990         * modules/unictype/category-Pc: New file.
27991         * modules/unictype/category-Pd: New file.
27992         * modules/unictype/category-Ps: New file.
27993         * modules/unictype/category-Pe: New file.
27994         * modules/unictype/category-Pi: New file.
27995         * modules/unictype/category-Pf: New file.
27996         * modules/unictype/category-Po: New file.
27997         * modules/unictype/category-S: New file.
27998         * modules/unictype/category-Sm: New file.
27999         * modules/unictype/category-Sc: New file.
28000         * modules/unictype/category-Sk: New file.
28001         * modules/unictype/category-So: New file.
28002         * modules/unictype/category-Z: New file.
28003         * modules/unictype/category-Zs: New file.
28004         * modules/unictype/category-Zl: New file.
28005         * modules/unictype/category-Zp: New file.
28006         * modules/unictype/category-C: New file.
28007         * modules/unictype/category-Cc: New file.
28008         * modules/unictype/category-Cf: New file.
28009         * modules/unictype/category-Cs: New file.
28010         * modules/unictype/category-Co: New file.
28011         * modules/unictype/category-Cn: New file.
28012         * modules/unictype/category-or: New file.
28013         * modules/unictype/category-of: New file.
28014         * modules/unictype/category-test: New file.
28015         * modules/unictype/category-test-withtable: New file.
28016         * modules/unictype/category-byname: New file.
28017         * modules/unictype/category-none: New file.
28018         * modules/unictype/category-and: New file.
28019         * modules/unictype/category-and-not: New file.
28020         * modules/unictype/category-name: New file.
28021         * modules/unictype/combining-class: New file.
28022         * modules/unictype/category-all: New file.
28023         * modules/unictype/bidicategory-all: New file.
28024         * modules/unictype/bidicategory-byname: New file.
28025         * modules/unictype/bidicategory-name: New file.
28026         * modules/unictype/bidicategory-of: New file.
28027         * modules/unictype/bidicategory-test: New file.
28028         * modules/unictype/decimal-digit: New file.
28029         * modules/unictype/digit: New file.
28030         * modules/unictype/numeric: New file.
28031         * modules/unictype/mirror: New file.
28032         * modules/unictype/property-white-space: New file.
28033         * modules/unictype/property-alphabetic: New file.
28034         * modules/unictype/property-other-alphabetic: New file.
28035         * modules/unictype/property-not-a-character: New file.
28036         * modules/unictype/property-default-ignorable-code-point: New file.
28037         * modules/unictype/property-other-default-ignorable-code-point: New
28038         file.
28039         * modules/unictype/property-deprecated: New file.
28040         * modules/unictype/property-logical-order-exception: New file.
28041         * modules/unictype/property-variation-selector: New file.
28042         * modules/unictype/property-private-use: New file.
28043         * modules/unictype/property-unassigned-code-value: New file.
28044         * modules/unictype/property-uppercase: New file.
28045         * modules/unictype/property-other-uppercase: New file.
28046         * modules/unictype/property-lowercase: New file.
28047         * modules/unictype/property-other-lowercase: New file.
28048         * modules/unictype/property-titlecase: New file.
28049         * modules/unictype/property-soft-dotted: New file.
28050         * modules/unictype/property-id-start: New file.
28051         * modules/unictype/property-other-id-start: New file.
28052         * modules/unictype/property-id-continue: New file.
28053         * modules/unictype/property-other-id-continue: New file.
28054         * modules/unictype/property-xid-start: New file.
28055         * modules/unictype/property-xid-continue: New file.
28056         * modules/unictype/property-pattern-white-space: New file.
28057         * modules/unictype/property-pattern-syntax: New file.
28058         * modules/unictype/property-join-control: New file.
28059         * modules/unictype/property-grapheme-base: New file.
28060         * modules/unictype/property-grapheme-extend: New file.
28061         * modules/unictype/property-other-grapheme-extend: New file.
28062         * modules/unictype/property-grapheme-link: New file.
28063         * modules/unictype/property-bidi-control: New file.
28064         * modules/unictype/property-bidi-left-to-right: New file.
28065         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28066         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28067         * modules/unictype/property-bidi-european-digit: New file.
28068         * modules/unictype/property-bidi-eur-num-separator: New file.
28069         * modules/unictype/property-bidi-eur-num-terminator: New file.
28070         * modules/unictype/property-bidi-arabic-digit: New file.
28071         * modules/unictype/property-bidi-common-separator: New file.
28072         * modules/unictype/property-bidi-block-separator: New file.
28073         * modules/unictype/property-bidi-segment-separator: New file.
28074         * modules/unictype/property-bidi-whitespace: New file.
28075         * modules/unictype/property-bidi-non-spacing-mark: New file.
28076         * modules/unictype/property-bidi-boundary-neutral: New file.
28077         * modules/unictype/property-bidi-pdf: New file.
28078         * modules/unictype/property-bidi-embedding-or-override: New file.
28079         * modules/unictype/property-bidi-other-neutral: New file.
28080         * modules/unictype/property-hex-digit: New file.
28081         * modules/unictype/property-ascii-hex-digit: New file.
28082         * modules/unictype/property-ideographic: New file.
28083         * modules/unictype/property-unified-ideograph: New file.
28084         * modules/unictype/property-radical: New file.
28085         * modules/unictype/property-ids-binary-operator: New file.
28086         * modules/unictype/property-ids-trinary-operator: New file.
28087         * modules/unictype/property-zero-width: New file.
28088         * modules/unictype/property-space: New file.
28089         * modules/unictype/property-non-break: New file.
28090         * modules/unictype/property-iso-control: New file.
28091         * modules/unictype/property-format-control: New file.
28092         * modules/unictype/property-dash: New file.
28093         * modules/unictype/property-hyphen: New file.
28094         * modules/unictype/property-punctuation: New file.
28095         * modules/unictype/property-line-separator: New file.
28096         * modules/unictype/property-paragraph-separator: New file.
28097         * modules/unictype/property-quotation-mark: New file.
28098         * modules/unictype/property-sentence-terminal: New file.
28099         * modules/unictype/property-terminal-punctuation: New file.
28100         * modules/unictype/property-currency-symbol: New file.
28101         * modules/unictype/property-math: New file.
28102         * modules/unictype/property-other-math: New file.
28103         * modules/unictype/property-paired-punctuation: New file.
28104         * modules/unictype/property-left-of-pair: New file.
28105         * modules/unictype/property-combining: New file.
28106         * modules/unictype/property-composite: New file.
28107         * modules/unictype/property-decimal-digit: New file.
28108         * modules/unictype/property-numeric: New file.
28109         * modules/unictype/property-diacritic: New file.
28110         * modules/unictype/property-extender: New file.
28111         * modules/unictype/property-ignorable-control: New file.
28112         * modules/unictype/property-test: New file.
28113         * modules/unictype/property-byname: New file.
28114         * modules/unictype/property-all: New file.
28115         * modules/unictype/scripts: New file.
28116         * modules/unictype/scripts-all: New file.
28117         * modules/unictype/block-of: New file.
28118         * modules/unictype/block-test: New file.
28119         * modules/unictype/block-list: New file.
28120         * modules/unictype/block-all: New file.
28121         * modules/unictype/syntax-c-whitespace: New file.
28122         * modules/unictype/syntax-java-whitespace: New file.
28123         * modules/unictype/syntax-c-ident: New file.
28124         * modules/unictype/syntax-java-ident: New file.
28125         * modules/unictype/ctype-alnum: New file.
28126         * modules/unictype/ctype-alpha: New file.
28127         * modules/unictype/ctype-cntrl: New file.
28128         * modules/unictype/ctype-digit: New file.
28129         * modules/unictype/ctype-graph: New file.
28130         * modules/unictype/ctype-lower: New file.
28131         * modules/unictype/ctype-print: New file.
28132         * modules/unictype/ctype-punct: New file.
28133         * modules/unictype/ctype-space: New file.
28134         * modules/unictype/ctype-upper: New file.
28135         * modules/unictype/ctype-xdigit: New file.
28136         * modules/unictype/ctype-blank: New file.
28137         * lib/unictype/bidi_byname.c: New file.
28138         * lib/unictype/bidi_name.c: New file.
28139         * lib/unictype/bidi_of.c: New file.
28140         * lib/unictype/bidi_test.c: New file.
28141         * lib/unictype/bitmap.h: New file.
28142         * lib/unictype/block_test.c: New file.
28143         * lib/unictype/blocks.c: New file.
28144         * lib/unictype/categ_C.c: New file.
28145         * lib/unictype/categ_Cc.c: New file.
28146         * lib/unictype/categ_Cf.c: New file.
28147         * lib/unictype/categ_Cn.c: New file.
28148         * lib/unictype/categ_Co.c: New file.
28149         * lib/unictype/categ_Cs.c: New file.
28150         * lib/unictype/categ_L.c: New file.
28151         * lib/unictype/categ_Ll.c: New file.
28152         * lib/unictype/categ_Lm.c: New file.
28153         * lib/unictype/categ_Lo.c: New file.
28154         * lib/unictype/categ_Lt.c: New file.
28155         * lib/unictype/categ_Lu.c: New file.
28156         * lib/unictype/categ_M.c: New file.
28157         * lib/unictype/categ_Mc.c: New file.
28158         * lib/unictype/categ_Me.c: New file.
28159         * lib/unictype/categ_Mn.c: New file.
28160         * lib/unictype/categ_N.c: New file.
28161         * lib/unictype/categ_Nd.c: New file.
28162         * lib/unictype/categ_Nl.c: New file.
28163         * lib/unictype/categ_No.c: New file.
28164         * lib/unictype/categ_P.c: New file.
28165         * lib/unictype/categ_Pc.c: New file.
28166         * lib/unictype/categ_Pd.c: New file.
28167         * lib/unictype/categ_Pe.c: New file.
28168         * lib/unictype/categ_Pf.c: New file.
28169         * lib/unictype/categ_Pi.c: New file.
28170         * lib/unictype/categ_Po.c: New file.
28171         * lib/unictype/categ_Ps.c: New file.
28172         * lib/unictype/categ_S.c: New file.
28173         * lib/unictype/categ_Sc.c: New file.
28174         * lib/unictype/categ_Sk.c: New file.
28175         * lib/unictype/categ_Sm.c: New file.
28176         * lib/unictype/categ_So.c: New file.
28177         * lib/unictype/categ_Z.c: New file.
28178         * lib/unictype/categ_Zl.c: New file.
28179         * lib/unictype/categ_Zp.c: New file.
28180         * lib/unictype/categ_Zs.c: New file.
28181         * lib/unictype/categ_and.c: New file.
28182         * lib/unictype/categ_and_not.c: New file.
28183         * lib/unictype/categ_byname.c: New file.
28184         * lib/unictype/categ_name.c: New file.
28185         * lib/unictype/categ_none.c: New file.
28186         * lib/unictype/categ_of.c: New file.
28187         * lib/unictype/categ_or.c: New file.
28188         * lib/unictype/categ_test.c: New file.
28189         * lib/unictype/combining.c: New file.
28190         * lib/unictype/ctype_alnum.c: New file.
28191         * lib/unictype/ctype_alpha.c: New file.
28192         * lib/unictype/ctype_blank.c: New file.
28193         * lib/unictype/ctype_cntrl.c: New file.
28194         * lib/unictype/ctype_digit.c: New file.
28195         * lib/unictype/ctype_graph.c: New file.
28196         * lib/unictype/ctype_lower.c: New file.
28197         * lib/unictype/ctype_print.c: New file.
28198         * lib/unictype/ctype_punct.c: New file.
28199         * lib/unictype/ctype_space.c: New file.
28200         * lib/unictype/ctype_upper.c: New file.
28201         * lib/unictype/ctype_xdigit.c: New file.
28202         * lib/unictype/decdigit.c: New file.
28203         * lib/unictype/digit.c: New file.
28204         * lib/unictype/identsyntaxmap.h: New file.
28205         * lib/unictype/mirror.c: New file.
28206         * lib/unictype/numeric.c: New file.
28207         * lib/unictype/pr_alphabetic.c: New file.
28208         * lib/unictype/pr_ascii_hex_digit.c: New file.
28209         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28210         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28211         * lib/unictype/pr_bidi_block_separator.c: New file.
28212         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28213         * lib/unictype/pr_bidi_common_separator.c: New file.
28214         * lib/unictype/pr_bidi_control.c: New file.
28215         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28216         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28217         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28218         * lib/unictype/pr_bidi_european_digit.c: New file.
28219         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28220         * lib/unictype/pr_bidi_left_to_right.c: New file.
28221         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28222         * lib/unictype/pr_bidi_other_neutral.c: New file.
28223         * lib/unictype/pr_bidi_pdf.c: New file.
28224         * lib/unictype/pr_bidi_segment_separator.c: New file.
28225         * lib/unictype/pr_bidi_whitespace.c: New file.
28226         * lib/unictype/pr_byname.c: New file.
28227         * lib/unictype/pr_byname.gperf: New file.
28228         * lib/unictype/pr_combining.c: New file.
28229         * lib/unictype/pr_composite.c: New file.
28230         * lib/unictype/pr_currency_symbol.c: New file.
28231         * lib/unictype/pr_dash.c: New file.
28232         * lib/unictype/pr_decimal_digit.c: New file.
28233         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28234         * lib/unictype/pr_deprecated.c: New file.
28235         * lib/unictype/pr_diacritic.c: New file.
28236         * lib/unictype/pr_extender.c: New file.
28237         * lib/unictype/pr_format_control.c: New file.
28238         * lib/unictype/pr_grapheme_base.c: New file.
28239         * lib/unictype/pr_grapheme_extend.c: New file.
28240         * lib/unictype/pr_grapheme_link.c: New file.
28241         * lib/unictype/pr_hex_digit.c: New file.
28242         * lib/unictype/pr_hyphen.c: New file.
28243         * lib/unictype/pr_id_continue.c: New file.
28244         * lib/unictype/pr_id_start.c: New file.
28245         * lib/unictype/pr_ideographic.c: New file.
28246         * lib/unictype/pr_ids_binary_operator.c: New file.
28247         * lib/unictype/pr_ids_trinary_operator.c: New file.
28248         * lib/unictype/pr_ignorable_control.c: New file.
28249         * lib/unictype/pr_iso_control.c: New file.
28250         * lib/unictype/pr_join_control.c: New file.
28251         * lib/unictype/pr_left_of_pair.c: New file.
28252         * lib/unictype/pr_line_separator.c: New file.
28253         * lib/unictype/pr_logical_order_exception.c: New file.
28254         * lib/unictype/pr_lowercase.c: New file.
28255         * lib/unictype/pr_math.c: New file.
28256         * lib/unictype/pr_non_break.c: New file.
28257         * lib/unictype/pr_not_a_character.c: New file.
28258         * lib/unictype/pr_numeric.c: New file.
28259         * lib/unictype/pr_other_alphabetic.c: New file.
28260         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28261         * lib/unictype/pr_other_grapheme_extend.c: New file.
28262         * lib/unictype/pr_other_id_continue.c: New file.
28263         * lib/unictype/pr_other_id_start.c: New file.
28264         * lib/unictype/pr_other_lowercase.c: New file.
28265         * lib/unictype/pr_other_math.c: New file.
28266         * lib/unictype/pr_other_uppercase.c: New file.
28267         * lib/unictype/pr_paired_punctuation.c: New file.
28268         * lib/unictype/pr_paragraph_separator.c: New file.
28269         * lib/unictype/pr_pattern_syntax.c: New file.
28270         * lib/unictype/pr_pattern_white_space.c: New file.
28271         * lib/unictype/pr_private_use.c: New file.
28272         * lib/unictype/pr_punctuation.c: New file.
28273         * lib/unictype/pr_quotation_mark.c: New file.
28274         * lib/unictype/pr_radical.c: New file.
28275         * lib/unictype/pr_sentence_terminal.c: New file.
28276         * lib/unictype/pr_soft_dotted.c: New file.
28277         * lib/unictype/pr_space.c: New file.
28278         * lib/unictype/pr_terminal_punctuation.c: New file.
28279         * lib/unictype/pr_test.c: New file.
28280         * lib/unictype/pr_titlecase.c: New file.
28281         * lib/unictype/pr_unassigned_code_value.c: New file.
28282         * lib/unictype/pr_unified_ideograph.c: New file.
28283         * lib/unictype/pr_uppercase.c: New file.
28284         * lib/unictype/pr_variation_selector.c: New file.
28285         * lib/unictype/pr_white_space.c: New file.
28286         * lib/unictype/pr_xid_continue.c: New file.
28287         * lib/unictype/pr_xid_start.c: New file.
28288         * lib/unictype/pr_zero_width.c: New file.
28289         * lib/unictype/scripts.c: New file.
28290         * lib/unictype/sy_c_ident.c: New file.
28291         * lib/unictype/sy_c_whitespace.c: New file.
28292         * lib/unictype/sy_java_ident.c: New file.
28293         * lib/unictype/sy_java_whitespace.c: New file.
28294
28295         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28296         Unicode 5.0.0.
28297         * lib/unictype/blocks.h: Likewise.
28298         * lib/unictype/categ_C.h: Likewise.
28299         * lib/unictype/categ_Cc.h: Likewise.
28300         * lib/unictype/categ_Cf.h: Likewise.
28301         * lib/unictype/categ_Cn.h: Likewise.
28302         * lib/unictype/categ_Co.h: Likewise.
28303         * lib/unictype/categ_Cs.h: Likewise.
28304         * lib/unictype/categ_L.h: Likewise.
28305         * lib/unictype/categ_Ll.h: Likewise.
28306         * lib/unictype/categ_Lm.h: Likewise.
28307         * lib/unictype/categ_Lo.h: Likewise.
28308         * lib/unictype/categ_Lt.h: Likewise.
28309         * lib/unictype/categ_Lu.h: Likewise.
28310         * lib/unictype/categ_M.h: Likewise.
28311         * lib/unictype/categ_Mc.h: Likewise.
28312         * lib/unictype/categ_Me.h: Likewise.
28313         * lib/unictype/categ_Mn.h: Likewise.
28314         * lib/unictype/categ_N.h: Likewise.
28315         * lib/unictype/categ_Nd.h: Likewise.
28316         * lib/unictype/categ_Nl.h: Likewise.
28317         * lib/unictype/categ_No.h: Likewise.
28318         * lib/unictype/categ_P.h: Likewise.
28319         * lib/unictype/categ_Pc.h: Likewise.
28320         * lib/unictype/categ_Pd.h: Likewise.
28321         * lib/unictype/categ_Pe.h: Likewise.
28322         * lib/unictype/categ_Pf.h: Likewise.
28323         * lib/unictype/categ_Pi.h: Likewise.
28324         * lib/unictype/categ_Po.h: Likewise.
28325         * lib/unictype/categ_Ps.h: Likewise.
28326         * lib/unictype/categ_S.h: Likewise.
28327         * lib/unictype/categ_Sc.h: Likewise.
28328         * lib/unictype/categ_Sk.h: Likewise.
28329         * lib/unictype/categ_Sm.h: Likewise.
28330         * lib/unictype/categ_So.h: Likewise.
28331         * lib/unictype/categ_Z.h: Likewise.
28332         * lib/unictype/categ_Zl.h: Likewise.
28333         * lib/unictype/categ_Zp.h: Likewise.
28334         * lib/unictype/categ_Zs.h: Likewise.
28335         * lib/unictype/categ_of.h: Likewise.
28336         * lib/unictype/combining.h: Likewise.
28337         * lib/unictype/ctype_alnum.h: Likewise.
28338         * lib/unictype/ctype_alpha.h: Likewise.
28339         * lib/unictype/ctype_blank.h: Likewise.
28340         * lib/unictype/ctype_cntrl.h: Likewise.
28341         * lib/unictype/ctype_digit.h: Likewise.
28342         * lib/unictype/ctype_graph.h: Likewise.
28343         * lib/unictype/ctype_lower.h: Likewise.
28344         * lib/unictype/ctype_print.h: Likewise.
28345         * lib/unictype/ctype_punct.h: Likewise.
28346         * lib/unictype/ctype_space.h: Likewise.
28347         * lib/unictype/ctype_upper.h: Likewise.
28348         * lib/unictype/ctype_xdigit.h: Likewise.
28349         * lib/unictype/decdigit.h: Likewise.
28350         * lib/unictype/digit.h: Likewise.
28351         * lib/unictype/mirror.h: Likewise.
28352         * lib/unictype/numeric.h: Likewise.
28353         * lib/unictype/pr_alphabetic.h: Likewise.
28354         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28355         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28356         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28357         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28358         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28359         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28360         * lib/unictype/pr_bidi_control.h: Likewise.
28361         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28362         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28363         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28364         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28365         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28366         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28367         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28368         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28369         * lib/unictype/pr_bidi_pdf.h: Likewise.
28370         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28371         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28372         * lib/unictype/pr_combining.h: Likewise.
28373         * lib/unictype/pr_composite.h: Likewise.
28374         * lib/unictype/pr_currency_symbol.h: Likewise.
28375         * lib/unictype/pr_dash.h: Likewise.
28376         * lib/unictype/pr_decimal_digit.h: Likewise.
28377         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28378         * lib/unictype/pr_deprecated.h: Likewise.
28379         * lib/unictype/pr_diacritic.h: Likewise.
28380         * lib/unictype/pr_extender.h: Likewise.
28381         * lib/unictype/pr_format_control.h: Likewise.
28382         * lib/unictype/pr_grapheme_base.h: Likewise.
28383         * lib/unictype/pr_grapheme_extend.h: Likewise.
28384         * lib/unictype/pr_grapheme_link.h: Likewise.
28385         * lib/unictype/pr_hex_digit.h: Likewise.
28386         * lib/unictype/pr_hyphen.h: Likewise.
28387         * lib/unictype/pr_id_continue.h: Likewise.
28388         * lib/unictype/pr_id_start.h: Likewise.
28389         * lib/unictype/pr_ideographic.h: Likewise.
28390         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28391         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28392         * lib/unictype/pr_ignorable_control.h: Likewise.
28393         * lib/unictype/pr_iso_control.h: Likewise.
28394         * lib/unictype/pr_join_control.h: Likewise.
28395         * lib/unictype/pr_left_of_pair.h: Likewise.
28396         * lib/unictype/pr_line_separator.h: Likewise.
28397         * lib/unictype/pr_logical_order_exception.h: Likewise.
28398         * lib/unictype/pr_lowercase.h: Likewise.
28399         * lib/unictype/pr_math.h: Likewise.
28400         * lib/unictype/pr_non_break.h: Likewise.
28401         * lib/unictype/pr_not_a_character.h: Likewise.
28402         * lib/unictype/pr_numeric.h: Likewise.
28403         * lib/unictype/pr_other_alphabetic.h: Likewise.
28404         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28405         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28406         * lib/unictype/pr_other_id_continue.h: Likewise.
28407         * lib/unictype/pr_other_id_start.h: Likewise.
28408         * lib/unictype/pr_other_lowercase.h: Likewise.
28409         * lib/unictype/pr_other_math.h: Likewise.
28410         * lib/unictype/pr_other_uppercase.h: Likewise.
28411         * lib/unictype/pr_paired_punctuation.h: Likewise.
28412         * lib/unictype/pr_paragraph_separator.h: Likewise.
28413         * lib/unictype/pr_pattern_syntax.h: Likewise.
28414         * lib/unictype/pr_pattern_white_space.h: Likewise.
28415         * lib/unictype/pr_private_use.h: Likewise.
28416         * lib/unictype/pr_punctuation.h: Likewise.
28417         * lib/unictype/pr_quotation_mark.h: Likewise.
28418         * lib/unictype/pr_radical.h: Likewise.
28419         * lib/unictype/pr_sentence_terminal.h: Likewise.
28420         * lib/unictype/pr_soft_dotted.h: Likewise.
28421         * lib/unictype/pr_space.h: Likewise.
28422         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28423         * lib/unictype/pr_titlecase.h: Likewise.
28424         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28425         * lib/unictype/pr_unified_ideograph.h: Likewise.
28426         * lib/unictype/pr_uppercase.h: Likewise.
28427         * lib/unictype/pr_variation_selector.h: Likewise.
28428         * lib/unictype/pr_white_space.h: Likewise.
28429         * lib/unictype/pr_xid_continue.h: Likewise.
28430         * lib/unictype/pr_xid_start.h: Likewise.
28431         * lib/unictype/pr_zero_width.h: Likewise.
28432         * lib/unictype/scripts.h: Likewise.
28433         * lib/unictype/scripts_byname.gperf: Likewise.
28434         * lib/unictype/sy_c_ident.h: Likewise.
28435         * lib/unictype/sy_c_whitespace.h: Likewise.
28436         * lib/unictype/sy_java_ident.h: Likewise.
28437         * lib/unictype/sy_java_whitespace.h: Likewise.
28438
28439         * lib/unictype/Makefile: New file.
28440         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28441         glibc.
28442         * lib/unictype/3level.h: New file, copied from glibc.
28443         * lib/unictype/3levelbit.h: New file.
28444
28445 2007-11-11  Bruno Haible  <bruno@clisp.org>
28446
28447         * modules/gperf: New file.
28448         * modules/iconv_open (Depends-on): Add it.
28449         (Makefile.am): Remove the GPERF definition.
28450
28451 2007-11-11  Bruno Haible  <bruno@clisp.org>
28452
28453         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28454         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28455
28456 2007-11-11  Bruno Haible  <bruno@clisp.org>
28457
28458         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28459         (usage): Remove function.
28460
28461 2007-11-11  Bruno Haible  <bruno@clisp.org>
28462
28463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28464         gl_FUNC_CEILF_LIBS.
28465         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28466         gl_FUNC_CEIL_LIBS.
28467         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28468         gl_FUNC_CEILL_LIBS.
28469         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28470         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28471         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28472
28473 2007-11-11  Bruno Haible  <bruno@clisp.org>
28474
28475         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28476         roundf were declared but do not exist on functions.
28477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28478         roundl were declared but do not exist on functions.
28479         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28480         HAVE_FLOORL_AND_CEILL, respectively.
28481         Needed for Sun C on Solaris 10.
28482
28483 2007-11-11  Bruno Haible  <bruno@clisp.org>
28484
28485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28486         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28487         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28488         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28489         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28490         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28491         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28492         HAVE_DECL_ROUNDF.
28493         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28494         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28496         of HAVE_DECL_ROUND*.
28497         * modules/math (Makefile.am): Update.
28498
28499 2007-11-10  Bruno Haible  <bruno@clisp.org>
28500
28501         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28502         ptrdiff_t as m4/intl.m4.
28503
28504 2007-11-10  Jim Meyering  <meyering@redhat.com>
28505
28506         Avoid link failure for the argmatch test.
28507         * tests/test-argmatch.c (usage): Define function to avoid a link
28508         failure: argmatch_die requires a usage function.
28509
28510 2007-11-09  Bruno Haible  <bruno@clisp.org>
28511
28512         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28513         * doc/functions/vsnprintf.texi: Likewise.
28514         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28515         with a size argument < 2.
28516
28517 2007-11-09  Bruno Haible  <bruno@clisp.org>
28518
28519         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28520         buffer. Fixes an inefficiency introduced on 2007-11-03.
28521
28522 2007-11-09  Bruno Haible  <bruno@clisp.org>
28523
28524         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28525         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28526
28527 2007-11-08  Jim Meyering  <meyering@redhat.com>
28528
28529         Change cache variable name prefix "jm_" to "gl_" everywhere.
28530         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28531         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28532         * m4/uptime.m4: s/gl_/jm_/
28533
28534 2007-11-07  Bruno Haible  <bruno@clisp.org>
28535
28536         Update to GNU gettext 0.17.
28537         * m4/intl.m4: Update to GNU gettext 0.17.
28538         * m4/po.m4: Likewise.
28539         * modules/gettext (Files): Remove m4/ulonglong.m4.
28540         (configure.ac): Require gettext infrastructure from version 0.17.
28541
28542 2007-11-06  Bruno Haible  <bruno@clisp.org>
28543
28544         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28545         symbolic values are not defined in a public header.
28546         * lib/freadable.c (freadable) [QNX]: Likewise.
28547         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28548         * lib/freading.c (freading) [QNX]: Likewise.
28549         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28550         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28551         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28552         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28553         Reported by Alain Magloire.
28554
28555         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28556
28557 2007-11-05  Bruno Haible  <bruno@clisp.org>
28558
28559         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28560         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28561         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28562         Reported by Eric Blake.
28563
28564 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28565             Bruno Haible  <bruno@clisp.org>
28566
28567         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28568         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28569         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28570         (malloc): Undefine also before including <stdlib.h>.
28571         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28572         Needed on OSF/1 4.0.
28573
28574 2007-11-05  Jim Meyering  <meyering@redhat.com>
28575
28576         git-version-gen: sync from coreutils.
28577         * build-aux/git-version-gen: Add comments.
28578         Change the first '-' to '.' in the snapshot version string,
28579         e.g., 6.9-377-08144 -> 6.9.377-08144
28580         Remove first parameter.
28581         Don't declare a version "-dirty" merely because a time
28582         stamp has changed.
28583
28584 2007-11-04  Bruno Haible  <bruno@clisp.org>
28585
28586         * lib/lock.h: Protect all macro definitions containing an 'if'
28587         statement through a "do { ... } while (0)".
28588         * lib/tls.h: Likewise.
28589
28590 2007-11-04  Bruno Haible  <bruno@clisp.org>
28591
28592         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28593
28594 2007-11-04  Bruno Haible  <bruno@clisp.org>
28595
28596         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28597         * modules/fprintf-posix (Depends-on): Add nocrash.
28598         * modules/snprintf-posix (Depends-on): Likewise.
28599         * modules/sprintf-posix (Depends-on): Likewise.
28600         * modules/vasnprintf-posix (Depends-on): Likewise.
28601         * modules/vasprintf-posix (Depends-on): Likewise.
28602         * modules/vfprintf-posix (Depends-on): Likewise.
28603         * modules/vsnprintf-posix (Depends-on): Likewise.
28604         * modules/vsprintf-posix (Depends-on): Likewise.
28605         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28606         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28607         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28609         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28610         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28611         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28612
28613 2007-11-04  Bruno Haible  <bruno@clisp.org>
28614
28615         * modules/nocrash: New file.
28616         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28617         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28618
28619 2007-11-04  Bruno Haible  <bruno@clisp.org>
28620
28621         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28622         precision handling.
28623         * tests/test-vasprintf-posix.c (test_function): Likewise.
28624         * tests/test-snprintf-posix.h (test_function): Likewise.
28625         * tests/test-sprintf-posix.h (test_function): Likewise.
28626
28627         Fix *printf behaviour for large precisions on mingw and BeOS.
28628         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28629         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28631         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28633         gl_PRINTF_PRECISION and test its result. Invoke
28634         gl_PREREQ_VASNPRINTF_PRECISION.
28635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28642         * doc/functions/fprintf.texi: Update.
28643         * doc/functions/printf.texi: Update.
28644         * doc/functions/snprintf.texi: Update.
28645         * doc/functions/sprintf.texi: Update.
28646         * doc/functions/vfprintf.texi: Update.
28647         * doc/functions/vprintf.texi: Update.
28648         * doc/functions/vsnprintf.texi: Update.
28649         * doc/functions/vsprintf.texi: Update.
28650
28651 2007-11-04  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28654
28655 2007-11-04  Bruno Haible  <bruno@clisp.org>
28656
28657         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28658         Reported by Sylvain Beucler <beuc@gnu.org>.
28659
28660 2007-11-03  Bruno Haible  <bruno@clisp.org>
28661
28662         * tests/test-fprintf-posix2.sh: New file.
28663         * tests/test-fprintf-posix2.c: New file.
28664         * modules/fprintf-posix-tests (Files): Add them.
28665         (TESTS): Add test-fprintf-posix2.sh.
28666         (configure.ac): Check for getrlimit and setrlimit.
28667         (check_PROGRAMS): Add test-fprintf-posix2.
28668
28669         * tests/test-printf-posix2.sh: New file.
28670         * tests/test-printf-posix2.c: New file.
28671         * modules/printf-posix-tests (Files): Add them.
28672         (TESTS): Add test-printf-posix2.sh.
28673         (configure.ac): Check for getrlimit and setrlimit.
28674         (check_PROGRAMS): Add test-printf-posix2.
28675
28676         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28677         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28678         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28679         (decode_double): New function, copied from decode_long_double.
28680         (scale10_round_decimal_decoded): New function, extracted from
28681         scale10_round_decimal_long_double.
28682         (scale10_round_decimal_long_double): Use it.
28683         (scale10_round_decimal_double): New function.
28684         (floorlog10): New function.
28685         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28687         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28689         gl_PRINTF_ENOMEM and test its result. Invoke
28690         gl_PREREQ_VASNPRINTF_ENOMEM.
28691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28693         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28698         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28699         * modules/snprintf-posix (Depends-on): Likewise.
28700         * modules/sprintf-posix (Depends-on): Likewise.
28701         * modules/vasnprintf-posix (Depends-on): Likewise.
28702         * modules/vasprintf-posix (Depends-on): Likewise.
28703         * modules/vfprintf-posix (Depends-on): Likewise.
28704         * modules/vsnprintf-posix (Depends-on): Likewise.
28705         * modules/vsprintf-posix (Depends-on): Likewise.
28706         * doc/functions/fprintf.texi: Update.
28707         * doc/functions/printf.texi: Update.
28708         * doc/functions/snprintf.texi: Update.
28709         * doc/functions/sprintf.texi: Update.
28710         * doc/functions/vfprintf.texi: Update.
28711         * doc/functions/vprintf.texi: Update.
28712         * doc/functions/vsnprintf.texi: Update.
28713         * doc/functions/vsprintf.texi: Update.
28714
28715 2007-11-03  Bruno Haible  <bruno@clisp.org>
28716
28717         * modules/frexp-nolibm-tests: New file.
28718
28719         * modules/frexp-nolibm: New file.
28720         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28721
28722 2007-11-03  Bruno Haible  <bruno@clisp.org>
28723
28724         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28725         value is C99 compliant.
28726         Needed for OSF/1 5.1.
28727
28728 2007-11-03  Bruno Haible  <bruno@clisp.org>
28729
28730         Fix out-of-memory handling of vasnprintf.
28731         * lib/printf-parse.c: Include <errno.h>.
28732         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28733         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28734         is already set.
28735
28736 2007-11-02  Eric Blake  <ebb9@byu.net>
28737
28738         Fix tests on cygwin.
28739         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28740
28741 2007-11-01  Bruno Haible  <bruno@clisp.org>
28742
28743         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28744         warning.
28745         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28746         needed for POSIX compatibility.
28747
28748 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28749
28750         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28751         for compatibility with GNU.
28752
28753 2007-11-01  Bruno Haible  <bruno@clisp.org>
28754
28755         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28756         (putenv): Renamed from rpl_putenv. Change argument type from
28757         'const char *' to 'char *'.
28758         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28759         of defining putenv in config.h, just set REPLACE_PUTENV.
28760         * modules/putenv (Depends-on): Add stdlib.
28761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28762         (Include): Use <stdlib.h>.
28763         * lib/stdlib.in.h (putenv): New declaration.
28764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28765         REPLACE_PUTENV.
28766         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28767         REPLACE_PUTENV.
28768         Needed for MacOS X 10.5.0.
28769         Reported by Peter O'Gorman <peter@pogma.com>.
28770
28771 2007-11-01  Jim Meyering  <meyering@redhat.com>
28772
28773         Treat an empty date string exactly like "0".
28774         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28775         if the remaining date string (to be parsed) is empty, use "0".
28776         Reported by Mischa Molhoek and discussed in this thread:
28777         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28778
28779 2007-10-31  Bruno Haible  <bruno@clisp.org>
28780
28781         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28782         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28783         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28784         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28785         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28786         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28787
28788 2007-10-31  Bruno Haible  <bruno@clisp.org>
28789
28790         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28791         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28792         (AC_TYPE_LONG_LONG_INT): Use it.
28793         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28794         it as well.
28795         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28796         to m4/longlong.m4.
28797         * modules/stdint (Files): Remove m4/ulonglong.m4.
28798         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28799         m4/ulonglong.m4.
28800         * modules/strtoumax (Files): Likewise.
28801
28802 2007-10-30  Bruno Haible  <bruno@clisp.org>
28803
28804         * modules/xvasprintf-posix: New file.
28805         Suggested by Eric Blake.
28806
28807 2007-10-30  Bruno Haible  <bruno@clisp.org>
28808
28809         * modules/xprintf-posix-tests: New file.
28810         * tests/test-xprintf-posix.sh: New file.
28811         * tests/test-xprintf-posix.c: New file.
28812         * tests/test-xfprintf-posix.c: New file.
28813
28814         * modules/xprintf-posix: New file.
28815
28816 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28817
28818         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28819         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28820         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28821
28822 2007-10-29  Bruno Haible  <bruno@clisp.org>
28823
28824         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28825         contain the special marker '_cv_'.
28826         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28827         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28828         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28829         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28830         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28831         Reported by Ralf Wildenhues.
28832
28833 2007-10-29  Bruno Haible  <bruno@clisp.org>
28834
28835         * gnulib-tool (func_import): When --lgpl is not specified, set
28836         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28837         GPLv3.
28838         Reported by Simon Josefsson.
28839
28840 2007-10-28  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28843         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28844         HAVE_DECL_ISFINITE.
28845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28846         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28847         HAVE_DECL_ISFINITE.
28848
28849 2007-10-28  Bruno Haible  <bruno@clisp.org>
28850
28851         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28852         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28853
28854 2007-10-28  Bruno Haible  <bruno@clisp.org>
28855
28856         Fix link errors with Sun C 5.0 on Solaris 10.
28857         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28858         function is declared but not present in the compiler's libm.
28859         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28860         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28861         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28862         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28863         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28864         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28865         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28867         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28868         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28869         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28870         HAVE_DECL_FLOORL.
28871
28872 2007-10-28  Bruno Haible  <bruno@clisp.org>
28873
28874         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28875         gl_FUNC_FLOORL. Cache the result.
28876         (gl_FUNC_FLOORL): Use it.
28877         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28878         gl_FUNC_CEILL. Cache the result.
28879         (gl_FUNC_CEILL): Use it.
28880
28881         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28882         gl_FUNC_FLOOR. Cache the result.
28883         (gl_FUNC_FLOOR): Use it.
28884         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28885         gl_FUNC_CEIL. Cache the result.
28886         (gl_FUNC_CEIL): Use it.
28887
28888         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28889         gl_FUNC_FLOORF. Cache the result.
28890         (gl_FUNC_FLOORF): Use it.
28891         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28892         gl_FUNC_CEILF. Cache the result.
28893         (gl_FUNC_CEILF): Use it.
28894
28895 2007-10-28  Bruno Haible  <bruno@clisp.org>
28896
28897         * gnulib-tool: Allow specifying the LGPL version number through
28898         --lgpl=2 or --lgpl=3.
28899         (func_usage): Document --lgpl with argument.
28900         Handle --lgpl=... arguments.
28901         (func_import): Recognize also gl_LGPL calls with an argument. When
28902         --lgpl=2 is used and the module's license is just LGPL, report an
28903         error. Set sed_transform_lib_file according to the lgpl variable. In
28904         the generated files, use --lgpl or gl_LGPL invocations with argument,
28905         if necessary.
28906         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28907         an LGPv2+ license.
28908         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28909         gl_LGPL macro.
28910
28911 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28912             Bruno Haible  <bruno@clisp.org>
28913
28914         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28915         (u16_uctomb_aux): Likewise.
28916         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28917         !HAVE_INLINE.
28918         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28919
28920 2007-10-28  Bruno Haible  <bruno@clisp.org>
28921
28922         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28923         Invoke AM_GETTEXT_OPTION if it exists.
28924         * modules/vasprintf: Likewise.
28925         * modules/verror: Likewise.
28926         * modules/xprintf: Likewise.
28927         * modules/xvasprintf: Likewise.
28928
28929 2007-10-27  Ben Pfaff  <blp@gnu.org>
28930
28931         * lib/math.in.h: Define isfinite macro and prototypes for
28932         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28933         implementations.
28934         * m4/math_h.m4: New substitutions for isfinite module.
28935         * lib/isfinite.c: New file.
28936         * m4/isfinite.m4: New file.
28937         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28938         * modules/isfinite: New file.
28939         * modules/isfinite-tests: New file.
28940         * tests/tests-isfinite.c: New file.
28941         * doc/functions/isfinite.texi: Mention isfinite module.
28942         * MODULES.html.sh: Mention new module.
28943
28944 2007-10-27  Ben Pfaff  <blp@gnu.org>
28945
28946         Ralf Wildenhues reported that Tru64 4.0D declares the round
28947         functions but does not have definitions.
28948         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28949         cannot be found in any library, set the output variable to
28950         "missing" instead of "".
28951         * m4/round.m4: Also use our substitute if we cannot find round in
28952         any library, even if it is declared.
28953         * m4/roundf.m4: Likewise for roundf.
28954         * m4/roundl.m4: Likewise for roundl.
28955         * lib/math.in.h: Undefine roundf, round, roundl before defining
28956         their replacements, to allow for hypothetical systems where these
28957         may be defined as macros but not available in libraries.
28958
28959 2007-10-27  Bruno Haible  <bruno@clisp.org>
28960
28961         * doc/gnulib.texi: Invoke @firstparagraphindent.
28962         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28963         changes in gnulib.
28964         (Source changes): New section.
28965
28966 2007-10-26  Bruno Haible  <bruno@clisp.org>
28967
28968         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28969         borrowed from autoconf.
28970
28971 2007-10-26  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28974         strerror returned the empty string. Needed on HP-UX 11.00.
28975
28976 2007-10-24  Micah Cowan  <micah@cowan.name>
28977
28978         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28979         * build-aux/bootstrap: Remove support for now-unnecessary option,
28980         --cvs-user, and envvars CVS_USER, CVS_RSH.
28981
28982 2007-10-24  Jim Meyering  <meyering@redhat.com>
28983
28984         Avoid diagnostics from sha1sum when there is no cached checksum.
28985         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28986         if the po.s1 file hasn't been created yet.
28987
28988         * build-aux/bootstrap: Sync from coreutils:
28989         2007-10-24  Jim Meyering  <meyering@redhat.com>
28990         Get gnulib from the git repository, not from an obsolete cvs one.
28991         * build-aux/bootstrap: Suggestion from Micah Cowan.
28992         2007-10-04  Jim Meyering  <jim@meyering.net>
28993         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28994         (update_po_files): Work also when there are no .po files in po/.
28995
28996 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         * README: Append ".git" to git and cg examples.
28999         Problem reported by Benoit Sigoure.
29000
29001 2007-10-23  Micah Cowan  <micah@cowan.name>
29002
29003         * users.txt: Add wget.
29004
29005 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29006
29007         Fix linking of some unistdio tests on FreeBSD.
29008         * modules/unistdio/u16-vsnprintf-tests
29009         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29010         * modules/unistdio/u16-vsprintf-tests
29011         (test_u16_vsnprintf1_LDADD): Likewise.
29012         * modules/unistdio/u32-vsnprintf-tests
29013         (test_u32_vsnprintf1_LDADD): Likewise.
29014         * modules/unistdio/u32-vsprintf-tests
29015         (test_u32_vsprintf1_LDADD): Likewise.
29016         * modules/unistdio/u8-vsnprintf-tests
29017         (test_u8_vsnprintf1_LDADD): Likewise.
29018         * modules/unistdio/u8-vsprintf-tests
29019         (test_u8_vsprintf1_LDADD): Likewise.
29020         * modules/unistdio/ulc-vsnprintf-tests
29021         (test_ulc_vsnprintf1_LDADD): Likewise.
29022         * modules/unistdio/ulc-vsprintf-tests
29023         (test_ulc_vsprintf1_LDADD): Likewise.
29024
29025         Fix linking of some uniconv tests on FreeBSD.
29026         * modules/uniconv/u16-conv-from-enc-tests
29027         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29028         * modules/uniconv/u16-conv-to-enc-tests
29029         (test_u16_conv_to_enc_LDADD): Likewise.
29030         * modules/uniconv/u16-strconv-from-enc-tests
29031         (test_u16_strconv_from_enc_LDADD): Likewise.
29032         * modules/uniconv/u16-strconv-to-enc-tests
29033         (test_u16_strconv_to_enc_LDADD): Likewise.
29034         * modules/uniconv/u32-conv-from-enc-tests
29035         (test_u32_conv_from_enc_LDADD): Likewise.
29036         * modules/uniconv/u32-conv-to-enc-tests
29037         (test_u32_conv_to_enc_LDADD): Likewise.
29038         * modules/uniconv/u32-strconv-from-enc-tests
29039         (test_u32_strconv_from_enc_LDADD): Likewise.
29040         * modules/uniconv/u32-strconv-to-enc-tests
29041         (test_u32_strconv_to_enc_LDADD): Likewise.
29042         * modules/uniconv/u8-conv-from-enc-tests
29043         (test_u8_conv_from_enc_LDADD): Likewise.
29044         * modules/uniconv/u8-conv-to-enc-tests
29045         (test_u8_conv_to_enc_LDADD): Likewise.
29046         * modules/uniconv/u8-strconv-from-enc-tests
29047         (test_u8_strconv_from_enc_LDADD): Likewise.
29048         * modules/uniconv/u8-strconv-to-enc-tests
29049         (test_u8_strconv_to_enc_LDADD): Likewise.
29050
29051 2007-10-22  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29054         size.
29055
29056 2007-10-22  Eric Blake  <ebb9@byu.net>
29057
29058         Tweak x*printf documentation.
29059         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29060         variable name and comments.
29061         Suggested by Bruno Haible.
29062
29063 2007-10-22  Bruno Haible  <bruno@clisp.org>
29064
29065         * lib/acl.c (copy_acl): Fix file name in comment.
29066
29067 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29068
29069         Fix Tru64 problem with stdbool.h.
29070         * lib/stdbool.in.h (false, true):
29071         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29072         Don't declare as an enum in this situation; it runs afoul of Tru64.
29073         Problem reported by Steven M. Schweda in
29074         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29075
29076 2007-10-22  Eric Blake  <ebb9@byu.net>
29077
29078         Also wrap vf?printf.
29079         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29080         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29081         (xvprintf, xvfprintf): New functions.
29082
29083 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29084
29085         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29086         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29087
29088         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29089         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29090
29091 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29092
29093         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29094         by Bruno Haible.
29095
29096 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29097
29098         * lib/getloadavg.c
29099         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29100         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29101
29102         * tests/test-i-ring.c: Work for C89.
29103
29104 2007-10-22  Bruno Haible  <bruno@clisp.org>
29105
29106         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29107         -1u, in preprocessor expression, so that we don't test for the bug
29108         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29110
29111 2007-10-22  Eric Blake  <ebb9@byu.net>
29112
29113         * tests/test-yesno.sh: Silence stderr during test.
29114
29115 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29116
29117         * modules/crypto/gc-camellia: New file.
29118
29119         * m4/gc-camellia.m4: New file.
29120
29121         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29122
29123         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29124
29125 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29126
29127         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29128         --help to stdout.  Reported by sms@antinode.org (Steven
29129         M. Schweda).
29130
29131 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29132
29133         * users.txt: Fix link to libksba.
29134
29135 2007-10-21  Ben Pfaff  <blp@gnu.org>
29136
29137         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29138         round.c roundf implementation that depends on floorf and ceilf to
29139         be tested unconditionally.
29140
29141 2007-10-21  Ben Pfaff  <blp@gnu.org>
29142
29143         * m4/check-libm-func.m4: Removed.
29144         * m4/check-math-lib.m4: New file.
29145         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29146         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29147         definition and lack of AC_LIBOBJ([roundf]).
29148         * m4/roundl.m4: Ditto, and similarly for roundl.
29149         * modules/round: Reference new m4 file.
29150         * modules/roundf: Ditto.
29151         * modules/roundl: Ditto.
29152         * tests/test-round2.c (main): Use ROUND instead of round.
29153         Bug report from Bruno Haible.
29154
29155 2007-10-21  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29158         context.
29159
29160 2007-10-21  Bruno Haible  <bruno@clisp.org>
29161
29162         * tests/test-wcwidth.c (main): Allow negative result for some control
29163         characters.
29164
29165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29166         Needed on OSF/1 5.1.
29167
29168 2007-10-21  Bruno Haible  <bruno@clisp.org>
29169
29170         * tests/test-floorf1.c: Include isnanf.h.
29171         (main): Use isnanf() instead of isnan().
29172         * tests/test-ceilf1.c: Include isnanf.h.
29173         (main): Use isnanf() instead of isnan().
29174         * tests/test-truncf1.c: Include isnanf.h.
29175         (main): Use isnanf() instead of isnan().
29176         * tests/test-roundf1.c: Include isnanf.h.
29177         (main): Use isnanf() instead of isnan().
29178
29179 2007-10-21  Eric Blake  <ebb9@byu.net>
29180
29181         * users.txt: Update URL for m4.
29182
29183 2007-10-21  Bruno Haible  <bruno@clisp.org>
29184
29185         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29186
29187 2007-10-21  Bruno Haible  <bruno@clisp.org>
29188
29189         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29190         Git's management files if the CVS files are not present.
29191
29192 2007-10-20  Bruno Haible  <bruno@clisp.org>
29193
29194         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29195         gcc-3.4.x.
29196
29197 2007-10-20  Ben Pfaff  <blp@gnu.org>
29198
29199         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29200         implementations.
29201         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29202         * lib/round.c: New file.
29203         * lib/roundf.c: New file.
29204         * lib/roundl.c: New file.
29205         * m4/round.m4: New file.
29206         * m4/roundf.m4: New file.
29207         * m4/roundl.m4: New file.
29208         * m4/check-libm-func-m4: New file.
29209         * modules/math: Replace round, roundf, roundl related @VARS@ in
29210         math.in.h.
29211         * modules/round: New file.
29212         * modules/round-tests: New file.
29213         * modules/roundf: New file.
29214         * modules/roundf-tests: New file.
29215         * modules/roundl: New file.
29216         * modules/roundl-tests: New file.
29217         * tests/test-round1.c: New file.
29218         * tests/test-round2.c: New file.
29219         * tests/test-roundf1.c: New file.
29220         * tests/test-roundf2.c: New file.
29221         * tests/test-roundl.c: New file.
29222         * doc/functions/round.texi: Mention round module.
29223         * doc/functions/roundf.texi: Mention roundf module.
29224         * doc/functions/roundl.texi: Mention roundl module.
29225         * MODULES.html.sh: Mention new modules.
29226         Thanks to Bruno Haible for suggestions.
29227
29228 2007-10-20  Jim Meyering  <meyering@redhat.com>
29229
29230         * lib/xprintf.c: Include <config.h> unconditionally.
29231
29232         Change xprintf's license to GPL.
29233         * modules/xprintf (License): s/LGPL/GPL/, since this module
29234         depends on modules (exit and exitfail) which are GPL.
29235         Suggestion from Bruno Haible.
29236
29237         xprintf fixes.
29238         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29239         Use a clearer diagnostic.
29240         Patch from Bruno Haible.
29241
29242 2007-10-20  Bruno Haible  <bruno@clisp.org>
29243
29244         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29245         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29247
29248 2007-10-20  Bruno Haible  <bruno@clisp.org>
29249
29250         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29251         precision in the comparison result > x - 1 or similar.
29252         * tests/test-ceilf2.c (correct_result_p): Likewise.
29253         * tests/test-truncf2.c (correct_result_p): Likewise.
29254         * tests/test-trunc2.c (correct_result_p): Likewise.
29255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29256
29257 2007-10-20  Bruno Haible  <bruno@clisp.org>
29258
29259         * modules/ceil: New file.
29260         * m4/ceil.m4: New file.
29261         * doc/functions/ceil.texi: Mention the 'ceil' module.
29262
29263 2007-10-20  Bruno Haible  <bruno@clisp.org>
29264
29265         * modules/floor: New file.
29266         * m4/floor.m4: New file.
29267         * doc/functions/floor.texi: Mention the 'floor' module.
29268
29269 2007-10-20  Bruno Haible  <bruno@clisp.org>
29270
29271         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29272         of %a.
29273         * modules/floorf-tests (Depends-on): Likewise.
29274         * modules/truncf-tests (Depends-on): Likewise.
29275         * modules/trunc-tests (Depends-on): Likewise.
29276         Reported by Ben Pfaff.
29277
29278 2007-10-19  Jim Meyering  <meyering@redhat.com>
29279
29280         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29281         Don't bother testing specific errno values.  Just test ferror.
29282
29283         New module: xprintf
29284         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29285
29286 2007-10-19  Bruno Haible  <bruno@clisp.org>
29287
29288         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29289         syntax.
29290         * modules/javaexec (Makefile.am): Likewise.
29291         * modules/relocatable-prog (Makefile.am): Likewise.
29292         Suggested by Jim Meyering.
29293
29294 2007-10-18  Bruno Haible  <bruno@clisp.org>
29295
29296         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29297         Reported by Jim Meyering.
29298
29299 2007-10-18  Eric Blake  <ebb9@byu.net>
29300
29301         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29302
29303 2007-10-18  Bruno Haible  <bruno@clisp.org>
29304
29305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29306         the format string into writable memory. Needed in Fortify conditions.
29307
29308 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29309             Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29312         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29313         * modules/trim (Depends-on): Add mbchar.
29314         (configure.ac): Add gl_FUNC_MBRTOWC.
29315         (Makefile.am): Augment lib_SOURCES.
29316
29317 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29318
29319         Modify glob.c to use fstatat and dirfd, to simplify it.
29320         Suggested by Eric Blake.
29321         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29322         Don't include <stdbool.h>; not used.
29323         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29324         (link_exists_p): Simplify implementation, since we can now assume
29325         dirfd and fstatat.
29326         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29327
29328 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29329
29330         * gnulib-tool (func_get_dependencies): Fix sed script to
29331         match only tests.
29332
29333 2007-10-17  Bruno Haible  <bruno@clisp.org>
29334
29335         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29336         allow locale names without encoding suffix.
29337         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29339
29340 2007-10-16  Bruno Haible  <bruno@clisp.org>
29341
29342         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29343         * lib/getgroups.c (getgroups): Likewise.
29344         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29345
29346 2007-10-16  Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29349         * modules/malloc-posix (License): Likewise.
29350         * modules/realloc-posix (License): Likewise.
29351         * modules/calloc-posix (License): Likewise.
29352         * modules/intprops (License): Change from GPL to LGPL, with
29353         Paul Eggert's approval.
29354
29355 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29356
29357         Merge glibc changes into lib/glob.c.
29358
29359         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29360         2007-10-15 04:59:03 UTC.  Here are the changes:
29361
29362         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29363
29364         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29365
29366         * lib/glob.c: Add some branch prediction throughout.
29367
29368         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29369
29370         [BZ #5103]
29371         * lib/glob.c (glob): Recognize patterns starting \/.
29372
29373         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29374
29375         [BZ #3996]
29376         * lib/glob.c (attribute_hidden): Define if not defined.
29377         (glob): Unescape dirname, filename or username when needed and not
29378         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29379         is NULL.  Handle unescaped [ in pattern without closing ].
29380         Don't pass GLOB_CHECK down to recursive glob for directories.
29381         (__glob_pattern_type): New function.
29382         (__glob_pattern_p): Implement using __glob_pattern_type.
29383         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29384         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29385         Remove unreachable code.
29386
29387         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29388
29389         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29390         explain why there are no leaks.
29391
29392         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29393
29394         [BZ #3253]
29395         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29396         time, rather allocate increasingly bigger arrays of pointers, if
29397         possible with alloca, if too large with malloc.
29398
29399 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29400
29401         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29402         Problem reported by H.Merijn Brand in
29403         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29404         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29405         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29406
29407 2007-10-15  Bruno Haible  <bruno@clisp.org>
29408
29409         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29410         with explicit rpl_ prefix.
29411         * lib/fopen.c (fopen): Likewise.
29412         * lib/freopen.c (freopen): Likewise.
29413         * lib/iconv.c (iconv): Likewise.
29414         * lib/iconv_close.c (iconv_close): Likewise.
29415
29416 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29417
29418         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29419
29420 2007-10-15  Bruno Haible  <bruno@clisp.org>
29421
29422         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29423         <stddef.h> instead of <stdlib.h> since we only need NULL.
29424         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29425
29426 2007-10-15  Bruno Haible  <bruno@clisp.org>
29427
29428         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29429         Replace paragraph talking about LIBOBJS.
29430         Reported by Colin Watson <cjwatson@debian.org>.
29431
29432 2007-10-15  Bruno Haible  <bruno@clisp.org>
29433
29434         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29435         <stdlib.h> before using NULL.
29436
29437 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29438
29439         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29440         Reported by Albert Chin <china@thewrittenword.com>.
29441
29442 2007-10-14  Bruno Haible  <bruno@clisp.org>
29443
29444         * modules/iconv_open-utf-tests: New file.
29445         * tests/test-iconv-utf.c: New file.
29446
29447         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29448         * modules/iconv_open-utf: New file.
29449         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29450         (iconv, iconv_close): New declarations.
29451         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29452         be defined.
29453         (iconv_open): Add special handling of conversion between UTF-8 and
29454         UTF-{16,32}{BE,LE}.
29455         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29456         * lib/iconv_close.c: New file.
29457         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29458         gl_FUNC_ICONV_OPEN.
29459         (gl_FUNC_ICONV_OPEN): Use it.
29460         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29461         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29462         and REPLACE_ICONV_UTF.
29463         * modules/iconv_open (Depends-on): Add c-strcase.
29464         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29465         ICONV_CONST.
29466         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29467
29468 2007-10-13  Albert Chin  <china@thewrittenword.com>
29469             Bruno Haible  <bruno@clisp.org>
29470
29471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29472         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29473
29474 2007-10-13  Bruno Haible  <bruno@clisp.org>
29475
29476         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29477         defined, use the ISO C99 inline semantics.
29478         * lib/argp.h (ARGP_EI): Likewise.
29479
29480 2007-10-13  Bruno Haible  <bruno@clisp.org>
29481
29482         Handle 'inline' change in gcc 4.3.0.
29483         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29484         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29485         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29486         argp_fmtstream_point): Disable 'extern' declaration if the function
29487         definition is going to be provided inline.
29488         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29489         semantics, not the ISO C99 inline semantics.
29490         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29491         'extern' declaration if the function definition is going to be provided
29492         inline.
29493         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29494         the GNU C inline semantics, not the ISO C99 inline semantics. With
29495         GCC 4.2, avoid a warning.
29496
29497 2007-10-13  Bruno Haible  <bruno@clisp.org>
29498
29499         * lib/freading.h (freading): Enable the use of __freading for
29500         glibc >= 2.7.
29501         * lib/freading.c (freading): Likewise.
29502
29503 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29504
29505         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29506         "warning: C99 inline functions are not supported; using GNU89".
29507
29508 2007-10-12  Bruno Haible  <bruno@clisp.org>
29509
29510         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29511         of 2.
29512         * tests/test-ceilf2.c: New file.
29513         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29514
29515         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29516         * modules/ceilf-tests: Update.
29517
29518 2007-10-12  Bruno Haible  <bruno@clisp.org>
29519
29520         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29521         of 2.
29522         * tests/test-floorf2.c: New file.
29523         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29524
29525         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29526         * modules/floorf-tests: Update.
29527
29528 2007-10-12  Bruno Haible  <bruno@clisp.org>
29529
29530         * tests/test-trunc2.c: New file.
29531         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29532
29533         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29534         * modules/trunc-tests: Update.
29535
29536 2007-10-12  Bruno Haible  <bruno@clisp.org>
29537
29538         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29539         of 2.
29540         * tests/test-truncf2.c: New file.
29541         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29542
29543         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29544         * modules/truncf-tests: Update.
29545
29546 2007-10-11  Eric Blake  <ebb9@byu.net>
29547
29548         Don't claim strerror is broken on Interix.
29549         * doc/functions/strerror.texi (strerror): Known broken systems are
29550         now Solaris 8, and not Interix.
29551         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29552         Interix on cross-compile.
29553         Reported by Martin Koeppe in
29554         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29555
29556 2007-10-11  Bruno Haible  <bruno@clisp.org>
29557
29558         * modules/i-ring-tests: New file.
29559         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29560         instead of assert.
29561
29562 2007-10-11  Bruno Haible  <bruno@clisp.org>
29563
29564         * modules/filenamecat-tests: New file.
29565         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29566         * lib/filenamecat.c: Remove test code.
29567
29568 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29569
29570         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29571
29572         * lib/strerror.c: Include <string.h> always, to test interface,
29573         and to remove the need for the dummy.
29574         Include intprops.h to compute width instead of doing it ourselves
29575         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29576         (strerror): Define it to return NULL if there's no system strerror.
29577         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29578         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29579         ancient pre-strerror Unix systems well any more.  Saying "unknown
29580         system error" is enough.
29581         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29582         simpler strerror.c implementation.
29583         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29584         Simplify the tests to reflect the simpler strerror implementation.
29585         * modules/strerror (Depends-on): Add intprops.
29586
29587 2007-10-09  Eric Blake  <ebb9@byu.net>
29588
29589         Silence test-fpending.
29590         * modules/fpending-tests (Files): Add wrapper script.
29591         * tests/test-fpending.sh: New file.
29592
29593 2007-10-09  Bruno Haible  <bruno@clisp.org>
29594
29595         * MODULES.html.sh (func_module): Don't create a hyperlink for
29596         function names like 'printf_frexp'.
29597         (Misc): Add crc, memxor.
29598         (Characteristics of floating types): New section.
29599         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29600         isnanf-nolibm, signbit, trunc, truncf, truncl.
29601         (Enhancements for ISO C 99 functions): New subsection Input/output.
29602         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29603         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29604         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29605         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29606         (Enhancements for POSIX:2001 functions): Add chdir-long.
29607         (File system functions): Add areadlink, chdir-safer, read-file.
29608         Remove cycle-check.
29609         (File system as inode set): New section.
29610         (Date and time): Add gethrxtime.
29611         (Multithreading): Add openmp.
29612         (Internationalization functions): Add localename.
29613         (Unicode string functions): Add unistr/u*-mbsnlen.
29614         (Support for maintaining and releasing projects): Add git-version-gen.
29615         (Lone files): Remove directories.
29616
29617 2007-10-08  Ben Pfaff  <blp@gnu.org>
29618
29619         * lib/xmalloca.h: Fix typo in comment.
29620
29621 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29622
29623         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29624         when avoiding problems with integer overflow.  Use a portable test
29625         instead.
29626
29627 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29628
29629         * modules/dummy (License): Change to LGPLv2+.
29630         * modules/float (License): Likewise
29631         * modules/realloc (License): Likewise
29632         * modules/stdlib (License): Likewise
29633
29634 2007-10-07  Bruno Haible  <bruno@clisp.org>
29635
29636         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29637         * floor.c (TWO_MANT_DIG): Likewise.
29638         * ceil.c (TWO_MANT_DIG): Likewise.
29639         Reported by Ben Pfaff.
29640
29641 2007-10-07  Bruno Haible  <bruno@clisp.org>
29642
29643         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29644         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29645         * lib/frexp.c (FUNC): Likewise.
29646         * lib/printf-frexp.h (printf_frexp): Likewise.
29647         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29648         * lib/printf-frexp.c (FUNC): Likewise.
29649         Suggested by Jim Meyering.
29650
29651 2007-10-07  Jim Meyering  <meyering@redhat.com>
29652
29653         Make xnanosleep's integer overflow test more robust.
29654         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29655         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29656
29657 2007-10-07  Bruno Haible  <bruno@clisp.org>
29658
29659         * NEWS: Mention the license change.
29660
29661         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29662         abbreviations in the modules files.
29663
29664         Change copyright notice from GPLv2+ to GPLv3+.
29665         * README: Change copyright notice.
29666         * MODULES.html.sh: Likewise.
29667         * build-aux/bootstrap.conf: Likewise.
29668         * build-aux/config.libpath: Likewise.
29669         * build-aux/csharpcomp.sh.in: Likewise.
29670         * build-aux/csharpexec.sh.in: Likewise.
29671         * build-aux/install-reloc: Likewise.
29672         * build-aux/javacomp.sh.in: Likewise.
29673         * build-aux/javaexec.sh.in: Likewise.
29674         * build-aux/ldd.sh.in: Likewise.
29675         * build-aux/reloc-ldflags: Likewise.
29676         * build-aux/relocatable.sh.in: Likewise.
29677         * build-aux/x-to-1.in: Likewise.
29678         * check-module: Likewise.
29679         * config/srclistvars.sh: Likewise.
29680         * gnulib-tool: Likewise.
29681         * lib/acl-internal.h: Likewise.
29682         * lib/acl.c: Likewise.
29683         * lib/acl.h: Likewise.
29684         * lib/acl_entries.c: Likewise.
29685         * lib/areadlink-with-size.c: Likewise.
29686         * lib/areadlink.c: Likewise.
29687         * lib/areadlink.h: Likewise.
29688         * lib/argmatch.c: Likewise.
29689         * lib/argmatch.h: Likewise.
29690         * lib/argp-ba.c: Likewise.
29691         * lib/argp-eexst.c: Likewise.
29692         * lib/argp-fmtstream.c: Likewise.
29693         * lib/argp-fmtstream.h: Likewise.
29694         * lib/argp-fs-xinl.c: Likewise.
29695         * lib/argp-help.c: Likewise.
29696         * lib/argp-namefrob.h: Likewise.
29697         * lib/argp-parse.c: Likewise.
29698         * lib/argp-pin.c: Likewise.
29699         * lib/argp-pv.c: Likewise.
29700         * lib/argp-pvh.c: Likewise.
29701         * lib/argp-xinl.c: Likewise.
29702         * lib/argp.h: Likewise.
29703         * lib/at-func.c: Likewise.
29704         * lib/atanl.c: Likewise.
29705         * lib/backupfile.c: Likewise.
29706         * lib/backupfile.h: Likewise.
29707         * lib/basename.c: Likewise.
29708         * lib/binary-io.h: Likewise.
29709         * lib/byteswap.in.h: Likewise.
29710         * lib/c-stack.c: Likewise.
29711         * lib/c-stack.h: Likewise.
29712         * lib/c-strcasestr.c: Likewise.
29713         * lib/c-strcasestr.h: Likewise.
29714         * lib/c-strstr.c: Likewise.
29715         * lib/c-strstr.h: Likewise.
29716         * lib/c-strtod.c: Likewise.
29717         * lib/calloc.c: Likewise.
29718         * lib/canon-host.c: Likewise.
29719         * lib/canon-host.h: Likewise.
29720         * lib/canonicalize-lgpl.c: Likewise.
29721         * lib/canonicalize.c: Likewise.
29722         * lib/canonicalize.h: Likewise.
29723         * lib/ceil.c: Likewise.
29724         * lib/ceilf.c: Likewise.
29725         * lib/ceill.c: Likewise.
29726         * lib/chdir-long.c: Likewise.
29727         * lib/chdir-long.h: Likewise.
29728         * lib/chdir-safer.c: Likewise.
29729         * lib/chdir-safer.h: Likewise.
29730         * lib/chown.c: Likewise.
29731         * lib/classpath.c: Likewise.
29732         * lib/classpath.h: Likewise.
29733         * lib/clean-temp.c: Likewise.
29734         * lib/clean-temp.h: Likewise.
29735         * lib/cloexec.c: Likewise.
29736         * lib/close-stream.c: Likewise.
29737         * lib/closein.c: Likewise.
29738         * lib/closein.h: Likewise.
29739         * lib/closeout.c: Likewise.
29740         * lib/closeout.h: Likewise.
29741         * lib/concat-filename.c: Likewise.
29742         * lib/copy-file.c: Likewise.
29743         * lib/copy-file.h: Likewise.
29744         * lib/count-one-bits.h: Likewise.
29745         * lib/crc.c: Likewise.
29746         * lib/crc.h: Likewise.
29747         * lib/creat-safer.c: Likewise.
29748         * lib/csharpcomp.c: Likewise.
29749         * lib/csharpcomp.h: Likewise.
29750         * lib/csharpexec.c: Likewise.
29751         * lib/csharpexec.h: Likewise.
29752         * lib/cycle-check.c: Likewise.
29753         * lib/cycle-check.h: Likewise.
29754         * lib/diacrit.c: Likewise.
29755         * lib/diacrit.h: Likewise.
29756         * lib/diffseq.h: Likewise.
29757         * lib/dirchownmod.c: Likewise.
29758         * lib/dirent.in.h: Likewise.
29759         * lib/dirfd.c: Likewise.
29760         * lib/dirfd.h: Likewise.
29761         * lib/dirname.c: Likewise.
29762         * lib/dirname.h: Likewise.
29763         * lib/dummy.c: Likewise.
29764         * lib/dup-safer.c: Likewise.
29765         * lib/dup2.c: Likewise.
29766         * lib/eealloc.h: Likewise.
29767         * lib/error.c: Likewise.
29768         * lib/error.h: Likewise.
29769         * lib/euidaccess.c: Likewise.
29770         * lib/exclude.c: Likewise.
29771         * lib/exclude.h: Likewise.
29772         * lib/execute.c: Likewise.
29773         * lib/execute.h: Likewise.
29774         * lib/exitfail.c: Likewise.
29775         * lib/exitfail.h: Likewise.
29776         * lib/expl.c: Likewise.
29777         * lib/fatal-signal.c: Likewise.
29778         * lib/fatal-signal.h: Likewise.
29779         * lib/fbufmode.c: Likewise.
29780         * lib/fbufmode.h: Likewise.
29781         * lib/fchdir.c: Likewise.
29782         * lib/fchmodat.c: Likewise.
29783         * lib/fchownat.c: Likewise.
29784         * lib/fcntl--.h: Likewise.
29785         * lib/fcntl-safer.h: Likewise.
29786         * lib/fcntl.in.h: Likewise.
29787         * lib/fd-safer.c: Likewise.
29788         * lib/fflush.c: Likewise.
29789         * lib/file-has-acl.c: Likewise.
29790         * lib/file-set.c: Likewise.
29791         * lib/file-type.c: Likewise.
29792         * lib/file-type.h: Likewise.
29793         * lib/fileblocks.c: Likewise.
29794         * lib/filemode.c: Likewise.
29795         * lib/filemode.h: Likewise.
29796         * lib/filename.h: Likewise.
29797         * lib/filenamecat.c: Likewise.
29798         * lib/filenamecat.h: Likewise.
29799         * lib/findprog.c: Likewise.
29800         * lib/findprog.h: Likewise.
29801         * lib/float.in.h: Likewise.
29802         * lib/floor.c: Likewise.
29803         * lib/floorf.c: Likewise.
29804         * lib/floorl.c: Likewise.
29805         * lib/fopen-safer.c: Likewise.
29806         * lib/fopen.c: Likewise.
29807         * lib/fpending.c: Likewise.
29808         * lib/fpending.h: Likewise.
29809         * lib/fprintf.c: Likewise.
29810         * lib/fprintftime.h: Likewise.
29811         * lib/fpucw.h: Likewise.
29812         * lib/fpurge.c: Likewise.
29813         * lib/fpurge.h: Likewise.
29814         * lib/freadable.c: Likewise.
29815         * lib/freadable.h: Likewise.
29816         * lib/freadahead.c: Likewise.
29817         * lib/freadahead.h: Likewise.
29818         * lib/freading.c: Likewise.
29819         * lib/freading.h: Likewise.
29820         * lib/free.c: Likewise.
29821         * lib/freopen.c: Likewise.
29822         * lib/frexp.c: Likewise.
29823         * lib/frexpl.c: Likewise.
29824         * lib/fseek.c: Likewise.
29825         * lib/fseterr.c: Likewise.
29826         * lib/fseterr.h: Likewise.
29827         * lib/fstatat.c: Likewise.
29828         * lib/fstrcmp.c: Likewise.
29829         * lib/fstrcmp.h: Likewise.
29830         * lib/fsusage.c: Likewise.
29831         * lib/fsusage.h: Likewise.
29832         * lib/ftell.c: Likewise.
29833         * lib/ftello.c: Likewise.
29834         * lib/fts-cycle.c: Likewise.
29835         * lib/fts.c: Likewise.
29836         * lib/fts_.h: Likewise.
29837         * lib/full-read.c: Likewise.
29838         * lib/full-read.h: Likewise.
29839         * lib/full-write.c: Likewise.
29840         * lib/full-write.h: Likewise.
29841         * lib/fwritable.c: Likewise.
29842         * lib/fwritable.h: Likewise.
29843         * lib/fwriteerror.c: Likewise.
29844         * lib/fwriteerror.h: Likewise.
29845         * lib/fwriting.c: Likewise.
29846         * lib/fwriting.h: Likewise.
29847         * lib/gcd.c: Likewise.
29848         * lib/gcd.h: Likewise.
29849         * lib/getcwd.c: Likewise.
29850         * lib/getdate.h: Likewise.
29851         * lib/getdate.y: Likewise.
29852         * lib/getdomainname.c: Likewise.
29853         * lib/getdomainname.h: Likewise.
29854         * lib/getgroups.c: Likewise.
29855         * lib/gethostname.c: Likewise.
29856         * lib/gethrxtime.c: Likewise.
29857         * lib/gethrxtime.h: Likewise.
29858         * lib/getloadavg.c: Likewise.
29859         * lib/getndelim2.c: Likewise.
29860         * lib/getndelim2.h: Likewise.
29861         * lib/getnline.c: Likewise.
29862         * lib/getnline.h: Likewise.
29863         * lib/getopt.c: Likewise.
29864         * lib/getopt.in.h: Likewise.
29865         * lib/getopt1.c: Likewise.
29866         * lib/getopt_int.h: Likewise.
29867         * lib/getpagesize.h: Likewise.
29868         * lib/getsubopt.c: Likewise.
29869         * lib/gettime.c: Likewise.
29870         * lib/getugroups.c: Likewise.
29871         * lib/getugroups.h: Likewise.
29872         * lib/getusershell.c: Likewise.
29873         * lib/gl_anyavltree_list1.h: Likewise.
29874         * lib/gl_anyavltree_list2.h: Likewise.
29875         * lib/gl_anyhash_list1.h: Likewise.
29876         * lib/gl_anyhash_list2.h: Likewise.
29877         * lib/gl_anylinked_list1.h: Likewise.
29878         * lib/gl_anylinked_list2.h: Likewise.
29879         * lib/gl_anyrbtree_list1.h: Likewise.
29880         * lib/gl_anyrbtree_list2.h: Likewise.
29881         * lib/gl_anytree_list1.h: Likewise.
29882         * lib/gl_anytree_list2.h: Likewise.
29883         * lib/gl_anytree_oset.h: Likewise.
29884         * lib/gl_anytreehash_list1.h: Likewise.
29885         * lib/gl_anytreehash_list2.h: Likewise.
29886         * lib/gl_array_list.c: Likewise.
29887         * lib/gl_array_list.h: Likewise.
29888         * lib/gl_array_oset.c: Likewise.
29889         * lib/gl_array_oset.h: Likewise.
29890         * lib/gl_avltree_list.c: Likewise.
29891         * lib/gl_avltree_list.h: Likewise.
29892         * lib/gl_avltree_oset.c: Likewise.
29893         * lib/gl_avltree_oset.h: Likewise.
29894         * lib/gl_avltreehash_list.c: Likewise.
29895         * lib/gl_avltreehash_list.h: Likewise.
29896         * lib/gl_carray_list.c: Likewise.
29897         * lib/gl_carray_list.h: Likewise.
29898         * lib/gl_linked_list.c: Likewise.
29899         * lib/gl_linked_list.h: Likewise.
29900         * lib/gl_linkedhash_list.c: Likewise.
29901         * lib/gl_linkedhash_list.h: Likewise.
29902         * lib/gl_list.c: Likewise.
29903         * lib/gl_list.h: Likewise.
29904         * lib/gl_oset.c: Likewise.
29905         * lib/gl_oset.h: Likewise.
29906         * lib/gl_rbtree_list.c: Likewise.
29907         * lib/gl_rbtree_list.h: Likewise.
29908         * lib/gl_rbtree_oset.c: Likewise.
29909         * lib/gl_rbtree_oset.h: Likewise.
29910         * lib/gl_rbtreehash_list.c: Likewise.
29911         * lib/gl_rbtreehash_list.h: Likewise.
29912         * lib/gl_sublist.c: Likewise.
29913         * lib/gl_sublist.h: Likewise.
29914         * lib/group-member.c: Likewise.
29915         * lib/group-member.h: Likewise.
29916         * lib/hard-locale.c: Likewise.
29917         * lib/hard-locale.h: Likewise.
29918         * lib/hash-pjw.c: Likewise.
29919         * lib/hash-pjw.h: Likewise.
29920         * lib/hash-triple.c: Likewise.
29921         * lib/hash.c: Likewise.
29922         * lib/hash.h: Likewise.
29923         * lib/human.c: Likewise.
29924         * lib/human.h: Likewise.
29925         * lib/i-ring.c: Likewise.
29926         * lib/i-ring.h: Likewise.
29927         * lib/idcache.c: Likewise.
29928         * lib/imaxabs.c: Likewise.
29929         * lib/imaxdiv.c: Likewise.
29930         * lib/inet_pton.c: Likewise.
29931         * lib/inet_pton.h: Likewise.
29932         * lib/intprops.h: Likewise.
29933         * lib/inttostr.c: Likewise.
29934         * lib/inttostr.h: Likewise.
29935         * lib/inttypes.in.h: Likewise.
29936         * lib/isapipe.c: Likewise.
29937         * lib/isdir.c: Likewise.
29938         * lib/isnan.c: Likewise.
29939         * lib/isnan.h: Likewise.
29940         * lib/isnanf.c: Likewise.
29941         * lib/isnanf.h: Likewise.
29942         * lib/isnanl-nolibm.h: Likewise.
29943         * lib/isnanl.c: Likewise.
29944         * lib/isnanl.h: Likewise.
29945         * lib/javacomp.c: Likewise.
29946         * lib/javacomp.h: Likewise.
29947         * lib/javaexec.c: Likewise.
29948         * lib/javaexec.h: Likewise.
29949         * lib/javaversion.c: Likewise.
29950         * lib/javaversion.h: Likewise.
29951         * lib/javaversion.java: Likewise.
29952         * lib/lbrkprop.h: Likewise.
29953         * lib/lchmod.h: Likewise.
29954         * lib/lchown.c: Likewise.
29955         * lib/ldexpl.c: Likewise.
29956         * lib/linebreak.c: Likewise.
29957         * lib/linebreak.h: Likewise.
29958         * lib/linebuffer.c: Likewise.
29959         * lib/linebuffer.h: Likewise.
29960         * lib/locale.in.h: Likewise.
29961         * lib/logl.c: Likewise.
29962         * lib/long-options.c: Likewise.
29963         * lib/long-options.h: Likewise.
29964         * lib/lstat.c: Likewise.
29965         * lib/lstat.h: Likewise.
29966         * lib/math.in.h: Likewise.
29967         * lib/mbchar.c: Likewise.
29968         * lib/mbchar.h: Likewise.
29969         * lib/mbfile.h: Likewise.
29970         * lib/mbiter.h: Likewise.
29971         * lib/mbscasecmp.c: Likewise.
29972         * lib/mbscasestr.c: Likewise.
29973         * lib/mbschr.c: Likewise.
29974         * lib/mbscspn.c: Likewise.
29975         * lib/mbslen.c: Likewise.
29976         * lib/mbsncasecmp.c: Likewise.
29977         * lib/mbsnlen.c: Likewise.
29978         * lib/mbspbrk.c: Likewise.
29979         * lib/mbspcasecmp.c: Likewise.
29980         * lib/mbsrchr.c: Likewise.
29981         * lib/mbssep.c: Likewise.
29982         * lib/mbsspn.c: Likewise.
29983         * lib/mbsstr.c: Likewise.
29984         * lib/mbstok_r.c: Likewise.
29985         * lib/mbswidth.c: Likewise.
29986         * lib/mbswidth.h: Likewise.
29987         * lib/mbuiter.h: Likewise.
29988         * lib/memcasecmp.c: Likewise.
29989         * lib/memcasecmp.h: Likewise.
29990         * lib/memchr.c: Likewise.
29991         * lib/memcmp.c: Likewise.
29992         * lib/memcoll.c: Likewise.
29993         * lib/memcoll.h: Likewise.
29994         * lib/memcpy.c: Likewise.
29995         * lib/memrchr.c: Likewise.
29996         * lib/mkancesdirs.c: Likewise.
29997         * lib/mkdir-p.c: Likewise.
29998         * lib/mkdir-p.h: Likewise.
29999         * lib/mkdir.c: Likewise.
30000         * lib/mkdirat.c: Likewise.
30001         * lib/mkdtemp.c: Likewise.
30002         * lib/mkstemp-safer.c: Likewise.
30003         * lib/mkstemp.c: Likewise.
30004         * lib/modechange.c: Likewise.
30005         * lib/modechange.h: Likewise.
30006         * lib/mountlist.c: Likewise.
30007         * lib/mountlist.h: Likewise.
30008         * lib/mpsort.c: Likewise.
30009         * lib/nanosleep.c: Likewise.
30010         * lib/obstack.c: Likewise.
30011         * lib/obstack.h: Likewise.
30012         * lib/open-safer.c: Likewise.
30013         * lib/open.c: Likewise.
30014         * lib/openat-die.c: Likewise.
30015         * lib/openat-priv.h: Likewise.
30016         * lib/openat-proc.c: Likewise.
30017         * lib/openat.c: Likewise.
30018         * lib/openat.h: Likewise.
30019         * lib/pagealign_alloc.c: Likewise.
30020         * lib/pagealign_alloc.h: Likewise.
30021         * lib/physmem.c: Likewise.
30022         * lib/physmem.h: Likewise.
30023         * lib/pipe-safer.c: Likewise.
30024         * lib/pipe.c: Likewise.
30025         * lib/pipe.h: Likewise.
30026         * lib/posixtm.c: Likewise.
30027         * lib/posixtm.h: Likewise.
30028         * lib/posixver.c: Likewise.
30029         * lib/printf-frexp.c: Likewise.
30030         * lib/printf-frexp.h: Likewise.
30031         * lib/printf-frexpl.c: Likewise.
30032         * lib/printf-frexpl.h: Likewise.
30033         * lib/printf.c: Likewise.
30034         * lib/progname.c: Likewise.
30035         * lib/progname.h: Likewise.
30036         * lib/progreloc.c: Likewise.
30037         * lib/putenv.c: Likewise.
30038         * lib/quote.c: Likewise.
30039         * lib/quote.h: Likewise.
30040         * lib/quotearg.c: Likewise.
30041         * lib/quotearg.h: Likewise.
30042         * lib/raise.c: Likewise.
30043         * lib/readline.c: Likewise.
30044         * lib/readline.h: Likewise.
30045         * lib/readlink.c: Likewise.
30046         * lib/readtokens.c: Likewise.
30047         * lib/readtokens.h: Likewise.
30048         * lib/readtokens0.c: Likewise.
30049         * lib/readtokens0.h: Likewise.
30050         * lib/readutmp.c: Likewise.
30051         * lib/readutmp.h: Likewise.
30052         * lib/realloc.c: Likewise.
30053         * lib/relocwrapper.c: Likewise.
30054         * lib/rename-dest-slash.c: Likewise.
30055         * lib/rename.c: Likewise.
30056         * lib/rmdir.c: Likewise.
30057         * lib/rpmatch.c: Likewise.
30058         * lib/safe-read.c: Likewise.
30059         * lib/safe-read.h: Likewise.
30060         * lib/safe-write.c: Likewise.
30061         * lib/safe-write.h: Likewise.
30062         * lib/same-inode.h: Likewise.
30063         * lib/same.c: Likewise.
30064         * lib/same.h: Likewise.
30065         * lib/save-cwd.c: Likewise.
30066         * lib/save-cwd.h: Likewise.
30067         * lib/savedir.c: Likewise.
30068         * lib/savedir.h: Likewise.
30069         * lib/savewd.c: Likewise.
30070         * lib/savewd.h: Likewise.
30071         * lib/search.in.h: Likewise.
30072         * lib/setenv.c: Likewise.
30073         * lib/setenv.h: Likewise.
30074         * lib/settime.c: Likewise.
30075         * lib/sh-quote.c: Likewise.
30076         * lib/sh-quote.h: Likewise.
30077         * lib/sig2str.c: Likewise.
30078         * lib/sig2str.h: Likewise.
30079         * lib/signal.in.h: Likewise.
30080         * lib/signbitd.c: Likewise.
30081         * lib/signbitf.c: Likewise.
30082         * lib/signbitl.c: Likewise.
30083         * lib/sigprocmask.c: Likewise.
30084         * lib/sincosl.c: Likewise.
30085         * lib/sleep.c: Likewise.
30086         * lib/sprintf.c: Likewise.
30087         * lib/sqrtl.c: Likewise.
30088         * lib/stat-time.h: Likewise.
30089         * lib/stdio--.h: Likewise.
30090         * lib/stdio-safer.h: Likewise.
30091         * lib/stdlib--.h: Likewise.
30092         * lib/stdlib-safer.h: Likewise.
30093         * lib/stdlib.in.h: Likewise.
30094         * lib/stpcpy.c: Likewise.
30095         * lib/stpncpy.c: Likewise.
30096         * lib/strchrnul.c: Likewise.
30097         * lib/strcspn.c: Likewise.
30098         * lib/strerror.c: Likewise.
30099         * lib/strftime.c: Likewise.
30100         * lib/strftime.h: Likewise.
30101         * lib/striconveh.c: Likewise.
30102         * lib/striconveh.h: Likewise.
30103         * lib/striconveha.c: Likewise.
30104         * lib/striconveha.h: Likewise.
30105         * lib/stripslash.c: Likewise.
30106         * lib/strnlen1.c: Likewise.
30107         * lib/strnlen1.h: Likewise.
30108         * lib/strtod.c: Likewise.
30109         * lib/strtoimax.c: Likewise.
30110         * lib/strtok_r.c: Likewise.
30111         * lib/strtol.c: Likewise.
30112         * lib/strtoll.c: Likewise.
30113         * lib/strtoul.c: Likewise.
30114         * lib/strtoull.c: Likewise.
30115         * lib/sysexits.in.h: Likewise.
30116         * lib/tempname.c: Likewise.
30117         * lib/tempname.h: Likewise.
30118         * lib/timespec.h: Likewise.
30119         * lib/tls.c: Likewise.
30120         * lib/tls.h: Likewise.
30121         * lib/tmpdir.c: Likewise.
30122         * lib/tmpdir.h: Likewise.
30123         * lib/tmpfile-safer.c: Likewise.
30124         * lib/tmpfile.c: Likewise.
30125         * lib/trigl.c: Likewise.
30126         * lib/trigl.h: Likewise.
30127         * lib/trim.c: Likewise.
30128         * lib/trim.h: Likewise.
30129         * lib/trunc.c: Likewise.
30130         * lib/truncf.c: Likewise.
30131         * lib/truncl.c: Likewise.
30132         * lib/tsearch.c: Likewise.
30133         * lib/unicodeio.c: Likewise.
30134         * lib/unicodeio.h: Likewise.
30135         * lib/unistd--.h: Likewise.
30136         * lib/unistd-safer.h: Likewise.
30137         * lib/unistdio/ulc-fprintf.c: Likewise.
30138         * lib/unistdio/ulc-vfprintf.c: Likewise.
30139         * lib/unlinkdir.c: Likewise.
30140         * lib/unlinkdir.h: Likewise.
30141         * lib/unlocked-io.h: Likewise.
30142         * lib/unsetenv.c: Likewise.
30143         * lib/userspec.c: Likewise.
30144         * lib/utime.c: Likewise.
30145         * lib/utimecmp.c: Likewise.
30146         * lib/utimecmp.h: Likewise.
30147         * lib/utimens.c: Likewise.
30148         * lib/verify.h: Likewise.
30149         * lib/verror.c: Likewise.
30150         * lib/verror.h: Likewise.
30151         * lib/version-etc-fsf.c: Likewise.
30152         * lib/version-etc.c: Likewise.
30153         * lib/version-etc.h: Likewise.
30154         * lib/vfprintf.c: Likewise.
30155         * lib/vprintf.c: Likewise.
30156         * lib/vsprintf.c: Likewise.
30157         * lib/w32spawn.h: Likewise.
30158         * lib/wait-process.c: Likewise.
30159         * lib/wait-process.h: Likewise.
30160         * lib/wcwidth.c: Likewise.
30161         * lib/write-any-file.c: Likewise.
30162         * lib/xalloc-die.c: Likewise.
30163         * lib/xalloc.h: Likewise.
30164         * lib/xasprintf.c: Likewise.
30165         * lib/xgetcwd.c: Likewise.
30166         * lib/xgetcwd.h: Likewise.
30167         * lib/xgetdomainname.c: Likewise.
30168         * lib/xgetdomainname.h: Likewise.
30169         * lib/xgethostname.c: Likewise.
30170         * lib/xmalloc.c: Likewise.
30171         * lib/xmalloca.c: Likewise.
30172         * lib/xmalloca.h: Likewise.
30173         * lib/xmemcoll.c: Likewise.
30174         * lib/xnanosleep.c: Likewise.
30175         * lib/xreadlink.c: Likewise.
30176         * lib/xreadlink.h: Likewise.
30177         * lib/xsetenv.c: Likewise.
30178         * lib/xsetenv.h: Likewise.
30179         * lib/xstriconv.c: Likewise.
30180         * lib/xstriconv.h: Likewise.
30181         * lib/xstrndup.c: Likewise.
30182         * lib/xstrndup.h: Likewise.
30183         * lib/xstrtod.c: Likewise.
30184         * lib/xstrtod.h: Likewise.
30185         * lib/xstrtol-error.c: Likewise.
30186         * lib/xstrtol.c: Likewise.
30187         * lib/xstrtol.h: Likewise.
30188         * lib/xtime.h: Likewise.
30189         * lib/xvasprintf.c: Likewise.
30190         * lib/xvasprintf.h: Likewise.
30191         * lib/yesno.c: Likewise.
30192         * lib/yesno.h: Likewise.
30193         * posix-modules: Likewise.
30194         * tests/test-alloca-opt.c: Likewise.
30195         * tests/test-arcfour.c: Likewise.
30196         * tests/test-arctwo.c: Likewise.
30197         * tests/test-argmatch.c: Likewise.
30198         * tests/test-argp-2.sh: Likewise.
30199         * tests/test-argp.c: Likewise.
30200         * tests/test-arpa_inet.c: Likewise.
30201         * tests/test-array_list.c: Likewise.
30202         * tests/test-array_oset.c: Likewise.
30203         * tests/test-atexit.c: Likewise.
30204         * tests/test-avltree_list.c: Likewise.
30205         * tests/test-avltree_oset.c: Likewise.
30206         * tests/test-avltreehash_list.c: Likewise.
30207         * tests/test-base64.c: Likewise.
30208         * tests/test-binary-io.c: Likewise.
30209         * tests/test-byteswap.c: Likewise.
30210         * tests/test-c-ctype.c: Likewise.
30211         * tests/test-c-strcasecmp.c: Likewise.
30212         * tests/test-c-strcasestr.c: Likewise.
30213         * tests/test-c-strncasecmp.c: Likewise.
30214         * tests/test-c-strstr.c: Likewise.
30215         * tests/test-canonicalize-lgpl.c: Likewise.
30216         * tests/test-canonicalize.c: Likewise.
30217         * tests/test-carray_list.c: Likewise.
30218         * tests/test-ceilf.c: Likewise.
30219         * tests/test-ceill.c: Likewise.
30220         * tests/test-count-one-bits.c: Likewise.
30221         * tests/test-crc.c: Likewise.
30222         * tests/test-dirname.c: Likewise.
30223         * tests/test-fbufmode.c: Likewise.
30224         * tests/test-fcntl.c: Likewise.
30225         * tests/test-fflush.c: Likewise.
30226         * tests/test-floorf.c: Likewise.
30227         * tests/test-floorl.c: Likewise.
30228         * tests/test-fopen.c: Likewise.
30229         * tests/test-fprintf-posix.c: Likewise.
30230         * tests/test-fprintf-posix.h: Likewise.
30231         * tests/test-fpurge.c: Likewise.
30232         * tests/test-freadable.c: Likewise.
30233         * tests/test-freadahead.c: Likewise.
30234         * tests/test-freading.c: Likewise.
30235         * tests/test-freopen.c: Likewise.
30236         * tests/test-frexp.c: Likewise.
30237         * tests/test-frexpl.c: Likewise.
30238         * tests/test-fseek.c: Likewise.
30239         * tests/test-fseeko.c: Likewise.
30240         * tests/test-fseterr.c: Likewise.
30241         * tests/test-fstrcmp.c: Likewise.
30242         * tests/test-ftell.c: Likewise.
30243         * tests/test-ftello.c: Likewise.
30244         * tests/test-fwritable.c: Likewise.
30245         * tests/test-fwriting.c: Likewise.
30246         * tests/test-getaddrinfo.c: Likewise.
30247         * tests/test-getpass.c: Likewise.
30248         * tests/test-gettimeofday.c: Likewise.
30249         * tests/test-hmac-md5.c: Likewise.
30250         * tests/test-hmac-sha1.c: Likewise.
30251         * tests/test-iconv.c: Likewise.
30252         * tests/test-iconvme.c: Likewise.
30253         * tests/test-inttypes.c: Likewise.
30254         * tests/test-isnan.c: Likewise.
30255         * tests/test-isnanf.c: Likewise.
30256         * tests/test-isnanl-nolibm.c: Likewise.
30257         * tests/test-isnanl.c: Likewise.
30258         * tests/test-isnanl.h: Likewise.
30259         * tests/test-ldexpl.c: Likewise.
30260         * tests/test-linked_list.c: Likewise.
30261         * tests/test-linkedhash_list.c: Likewise.
30262         * tests/test-locale.c: Likewise.
30263         * tests/test-localename.c: Likewise.
30264         * tests/test-lock.c: Likewise.
30265         * tests/test-lseek.c: Likewise.
30266         * tests/test-malloca.c: Likewise.
30267         * tests/test-math.c: Likewise.
30268         * tests/test-mbscasecmp.c: Likewise.
30269         * tests/test-mbscasestr1.c: Likewise.
30270         * tests/test-mbscasestr2.c: Likewise.
30271         * tests/test-mbscasestr3.c: Likewise.
30272         * tests/test-mbscasestr4.c: Likewise.
30273         * tests/test-mbschr.c: Likewise.
30274         * tests/test-mbscspn.c: Likewise.
30275         * tests/test-mbsncasecmp.c: Likewise.
30276         * tests/test-mbspbrk.c: Likewise.
30277         * tests/test-mbspcasecmp.c: Likewise.
30278         * tests/test-mbsrchr.c: Likewise.
30279         * tests/test-mbsspn.c: Likewise.
30280         * tests/test-mbsstr1.c: Likewise.
30281         * tests/test-mbsstr2.c: Likewise.
30282         * tests/test-mbsstr3.c: Likewise.
30283         * tests/test-md5.c: Likewise.
30284         * tests/test-memmem.c: Likewise.
30285         * tests/test-netinet_in.c: Likewise.
30286         * tests/test-open.c: Likewise.
30287         * tests/test-printf-frexp.c: Likewise.
30288         * tests/test-printf-frexpl.c: Likewise.
30289         * tests/test-printf-posix.c: Likewise.
30290         * tests/test-printf-posix.h: Likewise.
30291         * tests/test-rbtree_list.c: Likewise.
30292         * tests/test-rbtree_oset.c: Likewise.
30293         * tests/test-rbtreehash_list.c: Likewise.
30294         * tests/test-read-file.c: Likewise.
30295         * tests/test-rijndael.c: Likewise.
30296         * tests/test-search.c: Likewise.
30297         * tests/test-signbit.c: Likewise.
30298         * tests/test-sleep.c: Likewise.
30299         * tests/test-snprintf-posix.c: Likewise.
30300         * tests/test-snprintf-posix.h: Likewise.
30301         * tests/test-snprintf.c: Likewise.
30302         * tests/test-sprintf-posix.c: Likewise.
30303         * tests/test-sprintf-posix.h: Likewise.
30304         * tests/test-stat-time.c: Likewise.
30305         * tests/test-stdbool.c: Likewise.
30306         * tests/test-stdint.c: Likewise.
30307         * tests/test-stdio.c: Likewise.
30308         * tests/test-stdlib.c: Likewise.
30309         * tests/test-stpncpy.c: Likewise.
30310         * tests/test-strcasestr.c: Likewise.
30311         * tests/test-striconv.c: Likewise.
30312         * tests/test-striconveh.c: Likewise.
30313         * tests/test-striconveha.c: Likewise.
30314         * tests/test-string.c: Likewise.
30315         * tests/test-sys_select.c: Likewise.
30316         * tests/test-sys_socket.c: Likewise.
30317         * tests/test-sys_stat.c: Likewise.
30318         * tests/test-sys_time.c: Likewise.
30319         * tests/test-sysexits.c: Likewise.
30320         * tests/test-time.c: Likewise.
30321         * tests/test-tls.c: Likewise.
30322         * tests/test-trunc.c: Likewise.
30323         * tests/test-truncf.c: Likewise.
30324         * tests/test-truncl.c: Likewise.
30325         * tests/test-unistd.c: Likewise.
30326         * tests/test-vasnprintf-posix.c: Likewise.
30327         * tests/test-vasnprintf-posix2.c: Likewise.
30328         * tests/test-vasnprintf.c: Likewise.
30329         * tests/test-vasprintf-posix.c: Likewise.
30330         * tests/test-vasprintf.c: Likewise.
30331         * tests/test-verify.c: Likewise.
30332         * tests/test-vfprintf-posix.c: Likewise.
30333         * tests/test-vprintf-posix.c: Likewise.
30334         * tests/test-vsnprintf-posix.c: Likewise.
30335         * tests/test-vsnprintf.c: Likewise.
30336         * tests/test-vsprintf-posix.c: Likewise.
30337         * tests/test-wchar.c: Likewise.
30338         * tests/test-wctype.c: Likewise.
30339         * tests/test-wcwidth.c: Likewise.
30340         * tests/test-xstrtol.c: Likewise.
30341         * tests/test-xvasprintf.c: Likewise.
30342         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30343         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30344         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30345         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30346         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30347         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30348         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30349         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30350         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30351         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30352         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30353         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30354         * tests/uniname/test-uninames.c: Likewise.
30355         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30356         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30357         * tests/unistdio/test-u16-printf1.h: Likewise.
30358         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30359         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30360         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30361         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30362         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30363         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30364         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30365         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30366         * tests/unistdio/test-u32-printf1.h: Likewise.
30367         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30368         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30369         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30370         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30371         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30372         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30373         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30374         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30375         * tests/unistdio/test-u8-printf1.h: Likewise.
30376         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30377         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30378         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30379         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30380         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30381         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30382         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30383         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30384         * tests/unistdio/test-ulc-printf1.h: Likewise.
30385         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30386         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30387         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30388         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30389         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30390         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30391         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30392         * tests/uniwidth/test-u16-width.c: Likewise.
30393         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30394         * tests/uniwidth/test-u32-width.c: Likewise.
30395         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30396         * tests/uniwidth/test-u8-width.c: Likewise.
30397         * tests/uniwidth/test-uc_width.c: Likewise.
30398         * config/srclist-update: Likewise.
30399         (fixlicense): Update to GPLv3+.
30400
30401         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30402         * tests/test-tsearch.c: Change copyright notice.
30403
30404         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30405         * lib/c-strcaseeq.h: Change copyright notice.
30406         * lib/streq.h: Likewise.
30407         * lib/uniconv.h: Likewise.
30408         * lib/uniconv/u-conv-from-enc.h: Likewise.
30409         * lib/uniconv/u-conv-to-enc.h: Likewise.
30410         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30411         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30412         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30413         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30414         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30415         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30416         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30417         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30418         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30419         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30420         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30421         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30422         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30423         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30424         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30425         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30426         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30427         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30428         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30429         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30430         * lib/uniname.h: Likewise.
30431         * lib/uniname/uniname.c: Likewise.
30432         * lib/unistdio.h: Likewise.
30433         * lib/unistdio/u-asnprintf.h: Likewise.
30434         * lib/unistdio/u-asprintf.h: Likewise.
30435         * lib/unistdio/u-printf-args.c: Likewise.
30436         * lib/unistdio/u-printf-args.h: Likewise.
30437         * lib/unistdio/u-printf-parse.h: Likewise.
30438         * lib/unistdio/u-snprintf.h: Likewise.
30439         * lib/unistdio/u-sprintf.h: Likewise.
30440         * lib/unistdio/u-vasprintf.h: Likewise.
30441         * lib/unistdio/u-vsnprintf.h: Likewise.
30442         * lib/unistdio/u-vsprintf.h: Likewise.
30443         * lib/unistdio/u16-asnprintf.c: Likewise.
30444         * lib/unistdio/u16-asprintf.c: Likewise.
30445         * lib/unistdio/u16-printf-parse.c: Likewise.
30446         * lib/unistdio/u16-snprintf.c: Likewise.
30447         * lib/unistdio/u16-sprintf.c: Likewise.
30448         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30449         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30450         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30451         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30452         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30453         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30454         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30455         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30456         * lib/unistdio/u16-vasnprintf.c: Likewise.
30457         * lib/unistdio/u16-vasprintf.c: Likewise.
30458         * lib/unistdio/u16-vsnprintf.c: Likewise.
30459         * lib/unistdio/u16-vsprintf.c: Likewise.
30460         * lib/unistdio/u32-asnprintf.c: Likewise.
30461         * lib/unistdio/u32-asprintf.c: Likewise.
30462         * lib/unistdio/u32-printf-parse.c: Likewise.
30463         * lib/unistdio/u32-snprintf.c: Likewise.
30464         * lib/unistdio/u32-sprintf.c: Likewise.
30465         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30466         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30467         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30468         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30469         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30470         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30471         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30472         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30473         * lib/unistdio/u32-vasnprintf.c: Likewise.
30474         * lib/unistdio/u32-vasprintf.c: Likewise.
30475         * lib/unistdio/u32-vsnprintf.c: Likewise.
30476         * lib/unistdio/u32-vsprintf.c: Likewise.
30477         * lib/unistdio/u8-asnprintf.c: Likewise.
30478         * lib/unistdio/u8-asprintf.c: Likewise.
30479         * lib/unistdio/u8-printf-parse.c: Likewise.
30480         * lib/unistdio/u8-snprintf.c: Likewise.
30481         * lib/unistdio/u8-sprintf.c: Likewise.
30482         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30483         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30484         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30485         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30486         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30487         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30488         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30489         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30490         * lib/unistdio/u8-vasnprintf.c: Likewise.
30491         * lib/unistdio/u8-vasprintf.c: Likewise.
30492         * lib/unistdio/u8-vsnprintf.c: Likewise.
30493         * lib/unistdio/u8-vsprintf.c: Likewise.
30494         * lib/unistdio/ulc-asnprintf.c: Likewise.
30495         * lib/unistdio/ulc-asprintf.c: Likewise.
30496         * lib/unistdio/ulc-printf-parse.c: Likewise.
30497         * lib/unistdio/ulc-snprintf.c: Likewise.
30498         * lib/unistdio/ulc-sprintf.c: Likewise.
30499         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30500         * lib/unistdio/ulc-vasprintf.c: Likewise.
30501         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30502         * lib/unistdio/ulc-vsprintf.c: Likewise.
30503         * lib/unistr.h: Likewise.
30504         * lib/unistr/u-cpy-alloc.h: Likewise.
30505         * lib/unistr/u-cpy.h: Likewise.
30506         * lib/unistr/u-endswith.h: Likewise.
30507         * lib/unistr/u-move.h: Likewise.
30508         * lib/unistr/u-set.h: Likewise.
30509         * lib/unistr/u-startswith.h: Likewise.
30510         * lib/unistr/u-stpcpy.h: Likewise.
30511         * lib/unistr/u-stpncpy.h: Likewise.
30512         * lib/unistr/u-strcat.h: Likewise.
30513         * lib/unistr/u-strcpy.h: Likewise.
30514         * lib/unistr/u-strcspn.h: Likewise.
30515         * lib/unistr/u-strdup.h: Likewise.
30516         * lib/unistr/u-strlen.h: Likewise.
30517         * lib/unistr/u-strncat.h: Likewise.
30518         * lib/unistr/u-strncpy.h: Likewise.
30519         * lib/unistr/u-strnlen.h: Likewise.
30520         * lib/unistr/u-strpbrk.h: Likewise.
30521         * lib/unistr/u-strspn.h: Likewise.
30522         * lib/unistr/u-strstr.h: Likewise.
30523         * lib/unistr/u-strtok.h: Likewise.
30524         * lib/unistr/u16-check.c: Likewise.
30525         * lib/unistr/u16-chr.c: Likewise.
30526         * lib/unistr/u16-cmp.c: Likewise.
30527         * lib/unistr/u16-cpy-alloc.c: Likewise.
30528         * lib/unistr/u16-cpy.c: Likewise.
30529         * lib/unistr/u16-endswith.c: Likewise.
30530         * lib/unistr/u16-mblen.c: Likewise.
30531         * lib/unistr/u16-mbsnlen.c: Likewise.
30532         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30533         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30534         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30535         * lib/unistr/u16-mbtouc.c: Likewise.
30536         * lib/unistr/u16-mbtoucr.c: Likewise.
30537         * lib/unistr/u16-move.c: Likewise.
30538         * lib/unistr/u16-next.c: Likewise.
30539         * lib/unistr/u16-prev.c: Likewise.
30540         * lib/unistr/u16-set.c: Likewise.
30541         * lib/unistr/u16-startswith.c: Likewise.
30542         * lib/unistr/u16-stpcpy.c: Likewise.
30543         * lib/unistr/u16-stpncpy.c: Likewise.
30544         * lib/unistr/u16-strcat.c: Likewise.
30545         * lib/unistr/u16-strchr.c: Likewise.
30546         * lib/unistr/u16-strcmp.c: Likewise.
30547         * lib/unistr/u16-strcpy.c: Likewise.
30548         * lib/unistr/u16-strcspn.c: Likewise.
30549         * lib/unistr/u16-strdup.c: Likewise.
30550         * lib/unistr/u16-strlen.c: Likewise.
30551         * lib/unistr/u16-strmblen.c: Likewise.
30552         * lib/unistr/u16-strmbtouc.c: Likewise.
30553         * lib/unistr/u16-strncat.c: Likewise.
30554         * lib/unistr/u16-strncmp.c: Likewise.
30555         * lib/unistr/u16-strncpy.c: Likewise.
30556         * lib/unistr/u16-strnlen.c: Likewise.
30557         * lib/unistr/u16-strpbrk.c: Likewise.
30558         * lib/unistr/u16-strrchr.c: Likewise.
30559         * lib/unistr/u16-strspn.c: Likewise.
30560         * lib/unistr/u16-strstr.c: Likewise.
30561         * lib/unistr/u16-strtok.c: Likewise.
30562         * lib/unistr/u16-to-u32.c: Likewise.
30563         * lib/unistr/u16-to-u8.c: Likewise.
30564         * lib/unistr/u16-uctomb-aux.c: Likewise.
30565         * lib/unistr/u16-uctomb.c: Likewise.
30566         * lib/unistr/u32-check.c: Likewise.
30567         * lib/unistr/u32-chr.c: Likewise.
30568         * lib/unistr/u32-cmp.c: Likewise.
30569         * lib/unistr/u32-cpy-alloc.c: Likewise.
30570         * lib/unistr/u32-cpy.c: Likewise.
30571         * lib/unistr/u32-endswith.c: Likewise.
30572         * lib/unistr/u32-mblen.c: Likewise.
30573         * lib/unistr/u32-mbsnlen.c: Likewise.
30574         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30575         * lib/unistr/u32-mbtouc.c: Likewise.
30576         * lib/unistr/u32-mbtoucr.c: Likewise.
30577         * lib/unistr/u32-move.c: Likewise.
30578         * lib/unistr/u32-next.c: Likewise.
30579         * lib/unistr/u32-prev.c: Likewise.
30580         * lib/unistr/u32-set.c: Likewise.
30581         * lib/unistr/u32-startswith.c: Likewise.
30582         * lib/unistr/u32-stpcpy.c: Likewise.
30583         * lib/unistr/u32-stpncpy.c: Likewise.
30584         * lib/unistr/u32-strcat.c: Likewise.
30585         * lib/unistr/u32-strchr.c: Likewise.
30586         * lib/unistr/u32-strcmp.c: Likewise.
30587         * lib/unistr/u32-strcpy.c: Likewise.
30588         * lib/unistr/u32-strcspn.c: Likewise.
30589         * lib/unistr/u32-strdup.c: Likewise.
30590         * lib/unistr/u32-strlen.c: Likewise.
30591         * lib/unistr/u32-strmblen.c: Likewise.
30592         * lib/unistr/u32-strmbtouc.c: Likewise.
30593         * lib/unistr/u32-strncat.c: Likewise.
30594         * lib/unistr/u32-strncmp.c: Likewise.
30595         * lib/unistr/u32-strncpy.c: Likewise.
30596         * lib/unistr/u32-strnlen.c: Likewise.
30597         * lib/unistr/u32-strpbrk.c: Likewise.
30598         * lib/unistr/u32-strrchr.c: Likewise.
30599         * lib/unistr/u32-strspn.c: Likewise.
30600         * lib/unistr/u32-strstr.c: Likewise.
30601         * lib/unistr/u32-strtok.c: Likewise.
30602         * lib/unistr/u32-to-u16.c: Likewise.
30603         * lib/unistr/u32-to-u8.c: Likewise.
30604         * lib/unistr/u32-uctomb.c: Likewise.
30605         * lib/unistr/u8-check.c: Likewise.
30606         * lib/unistr/u8-chr.c: Likewise.
30607         * lib/unistr/u8-cmp.c: Likewise.
30608         * lib/unistr/u8-cpy-alloc.c: Likewise.
30609         * lib/unistr/u8-cpy.c: Likewise.
30610         * lib/unistr/u8-endswith.c: Likewise.
30611         * lib/unistr/u8-mblen.c: Likewise.
30612         * lib/unistr/u8-mbsnlen.c: Likewise.
30613         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30614         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30615         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30616         * lib/unistr/u8-mbtouc.c: Likewise.
30617         * lib/unistr/u8-mbtoucr.c: Likewise.
30618         * lib/unistr/u8-move.c: Likewise.
30619         * lib/unistr/u8-next.c: Likewise.
30620         * lib/unistr/u8-prev.c: Likewise.
30621         * lib/unistr/u8-set.c: Likewise.
30622         * lib/unistr/u8-startswith.c: Likewise.
30623         * lib/unistr/u8-stpcpy.c: Likewise.
30624         * lib/unistr/u8-stpncpy.c: Likewise.
30625         * lib/unistr/u8-strcat.c: Likewise.
30626         * lib/unistr/u8-strchr.c: Likewise.
30627         * lib/unistr/u8-strcmp.c: Likewise.
30628         * lib/unistr/u8-strcpy.c: Likewise.
30629         * lib/unistr/u8-strcspn.c: Likewise.
30630         * lib/unistr/u8-strdup.c: Likewise.
30631         * lib/unistr/u8-strlen.c: Likewise.
30632         * lib/unistr/u8-strmblen.c: Likewise.
30633         * lib/unistr/u8-strmbtouc.c: Likewise.
30634         * lib/unistr/u8-strncat.c: Likewise.
30635         * lib/unistr/u8-strncmp.c: Likewise.
30636         * lib/unistr/u8-strncpy.c: Likewise.
30637         * lib/unistr/u8-strnlen.c: Likewise.
30638         * lib/unistr/u8-strpbrk.c: Likewise.
30639         * lib/unistr/u8-strrchr.c: Likewise.
30640         * lib/unistr/u8-strspn.c: Likewise.
30641         * lib/unistr/u8-strstr.c: Likewise.
30642         * lib/unistr/u8-strtok.c: Likewise.
30643         * lib/unistr/u8-to-u16.c: Likewise.
30644         * lib/unistr/u8-to-u32.c: Likewise.
30645         * lib/unistr/u8-uctomb-aux.c: Likewise.
30646         * lib/unistr/u8-uctomb.c: Likewise.
30647         * lib/unitypes.h: Likewise.
30648         * lib/uniwidth.h: Likewise.
30649         * lib/uniwidth/cjk.h: Likewise.
30650         * lib/uniwidth/u16-strwidth.c: Likewise.
30651         * lib/uniwidth/u16-width.c: Likewise.
30652         * lib/uniwidth/u32-strwidth.c: Likewise.
30653         * lib/uniwidth/u32-width.c: Likewise.
30654         * lib/uniwidth/u8-strwidth.c: Likewise.
30655         * lib/uniwidth/u8-width.c: Likewise.
30656         * lib/uniwidth/width.c: Likewise.
30657
30658 2007-10-07  Bruno Haible  <bruno@clisp.org>
30659
30660         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30661         The file is still under LGPL (see modules/inttypes).
30662
30663 2007-10-06  Bruno Haible  <bruno@clisp.org>
30664
30665         * modules/trunc (Dependencies): Add 'extensions'.
30666         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30667         Reported by Ben Pfaff <blp@gnu.org>.
30668
30669 2007-10-06  Bruno Haible  <bruno@clisp.org>
30670
30671         * modules/freopen-tests: New file.
30672         * tests/test-freopen.c: New file.
30673
30674         * modules/fopen-tests: New file.
30675         * tests/test-fopen.c: New file.
30676
30677         * modules/fopen: New file.
30678         * lib/fopen.c: New file.
30679         * m4/fopen.m4: New file.
30680         * modules/freopen: New file.
30681         * lib/freopen.c: New file.
30682         * m4/freopen.m4: New file.
30683         * lib/stdio.in.h (fopen, freopen): New declarations.
30684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30685         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30686         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30687         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30688         * doc/functions/fopen.texi: Mention the 'fopen' module.
30689         * doc/functions/freopen.texi: Mention the 'freopen' module.
30690
30691 2007-10-06  Bruno Haible  <bruno@clisp.org>
30692
30693         * modules/open-tests: New file.
30694         * tests/test-open.c: New file.
30695
30696         * modules/open: New file.
30697         * lib/open.c: New file.
30698         * m4/open.m4: New file.
30699         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30700         lib/open.c does.
30701         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30702         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30703         macros.
30704         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30705         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30706         REPLACE_OPEN.
30707         * doc/functions/open.texi: Mention the 'open' module.
30708
30709 2007-10-04  Bruno Haible  <bruno@clisp.org>
30710
30711         * modules/ceill-tests: New file.
30712         * tests/test-ceill.c: New file.
30713
30714         * modules/ceill: New file.
30715         * lib/ceill.c: Replace entire file.
30716         * m4/ceill.m4: New file.
30717         * lib/math.in.h (ceill): Replace declaration.
30718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30719         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30720         * doc/functions/ceill.texi: Mention the 'ceill' module.
30721         * modules/mathl (Files): Remove lib/ceill.c.
30722         (Depends-on): Add ceill.
30723
30724 2007-10-04  Bruno Haible  <bruno@clisp.org>
30725
30726         * modules/ceilf-tests: New file.
30727         * tests/test-ceilf.c: New file.
30728
30729         * modules/ceilf: New file.
30730         * lib/ceil.c: New file.
30731         * lib/ceilf.c: New file.
30732         * m4/ceilf.m4: New file.
30733         * lib/math.in.h (ceilf): New declaration.
30734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30735         HAVE_DECL_CEILF.
30736         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30737         HAVE_DECL_CEILF.
30738         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30739
30740 2007-10-04  Bruno Haible  <bruno@clisp.org>
30741
30742         * modules/floorl-tests: New file.
30743         * tests/test-floorl.c: New file.
30744
30745         * modules/floorl: New file.
30746         * lib/floorl.c: Replace entire file.
30747         * m4/floorl.m4: New file.
30748         * lib/math.in.h (floorl): Replace declaration.
30749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30750         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30751         * doc/functions/floorl.texi: Mention the 'floorl' module.
30752         * modules/mathl (Files): Remove lib/floorl.c.
30753         (Depends-on): Add floorl.
30754
30755 2007-10-04  Bruno Haible  <bruno@clisp.org>
30756
30757         * modules/floorf-tests: New file.
30758         * tests/test-floorf.c: New file.
30759
30760         * modules/floorf: New file.
30761         * lib/floor.c: New file.
30762         * lib/floorf.c: New file.
30763         * m4/floorf.m4: New file.
30764         * lib/math.in.h (floorf): New declaration.
30765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30766         HAVE_DECL_FLOORF.
30767         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30768         HAVE_DECL_FLOORF.
30769         * doc/functions/floorf.texi: Mention the 'floorf' module.
30770
30771 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30772             Bruno Haible  <bruno@clisp.org>
30773
30774         Advertise for the Git server instead of the CVS server.
30775         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30776         repository instead of the CVS one.
30777         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30778         about all VCS systems generically.
30779         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30780
30781 2007-10-04  Bruno Haible  <bruno@clisp.org>
30782
30783         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30784         means.
30785         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30786
30787 2007-10-04  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/truncl-tests: New file.
30790         * tests/test-truncl.c: New file.
30791
30792         * modules/truncl: New file.
30793         * lib/truncl.c: New file.
30794         * m4/truncl.m4: New file.
30795         * lib/math.in.h (truncl): New declaration.
30796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30797         HAVE_DECL_TRUNCL.
30798         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30799         HAVE_DECL_TRUNCL.
30800         * doc/functions/truncl.texi: Mention the 'truncl' module.
30801
30802 2007-10-04  Bruno Haible  <bruno@clisp.org>
30803
30804         * modules/truncf-tests: New file.
30805         * tests/test-truncf.c: New file.
30806
30807         * modules/truncf: New file.
30808         * lib/trunc.c: Make paramerizable through USE_* macros.
30809         * lib/truncf.c: New file.
30810         * m4/truncf.m4: New file.
30811         * lib/math.in.h (truncf): New declaration.
30812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30813         HAVE_DECL_TRUNCF.
30814         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30815         HAVE_DECL_TRUNCF.
30816         * doc/functions/truncf.texi: Mention the 'truncf' module.
30817
30818 2007-10-03  Bruno Haible  <bruno@clisp.org>
30819
30820         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30821         augmentation also for tests modules.
30822         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30823         * modules/atexit-tests (Makefile.am): Likewise.
30824         * modules/binary-io-tests (Makefile.am): Likewise.
30825         * modules/c-strcase-tests (Makefile.am): Likewise.
30826         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30827         * modules/canonicalize-tests (Makefile.am): Likewise.
30828         * modules/closein-tests (Makefile.am): Likewise.
30829         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30830         * modules/freadahead-tests (Makefile.am): Likewise.
30831         * modules/fseek-tests (Makefile.am): Likewise.
30832         * modules/fseeko-tests (Makefile.am): Likewise.
30833         * modules/ftell-tests (Makefile.am): Likewise.
30834         * modules/ftello-tests (Makefile.am): Likewise.
30835         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30836         * modules/isnanl-tests (Makefile.am): Likewise.
30837         * modules/lseek-tests (Makefile.am): Likewise.
30838         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30839         * modules/mbscasestr-tests (Makefile.am): Likewise.
30840         * modules/mbschr-tests (Makefile.am): Likewise.
30841         * modules/mbscspn-tests (Makefile.am): Likewise.
30842         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30843         * modules/mbspbrk-tests (Makefile.am): Likewise.
30844         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30845         * modules/mbsrchr-tests (Makefile.am): Likewise.
30846         * modules/mbsspn-tests (Makefile.am): Likewise.
30847         * modules/mbsstr-tests (Makefile.am): Likewise.
30848         * modules/printf-posix-tests (Makefile.am): Likewise.
30849         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30850         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30851         * modules/tsearch-tests (Makefile.am): Likewise.
30852         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30853         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30854         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30855         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30856         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30857         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30858         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30859         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30860         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30861         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30862         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30863         * modules/xstrtol-tests (Makefile.am): Likewise.
30864         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30865         * modules/yesno-tests (Makefile.am): Likewise.
30866
30867 2007-10-03  Bruno Haible  <bruno@clisp.org>
30868
30869         * modules/trunc-tests: New file.
30870         * tests/test-trunc.c: New file.
30871
30872         * modules/trunc: New file.
30873         * lib/trunc.c: New file.
30874         * m4/trunc.m4: New file.
30875         * lib/math.in.h (trunc): New declaration.
30876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30877         HAVE_DECL_TRUNC.
30878         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30879         HAVE_DECL_TRUNC.
30880         * doc/functions/trunc.texi: Mention the 'trunc' module.
30881
30882 2007-10-03  Bruno Haible  <bruno@clisp.org>
30883
30884         * tests/test-fpending.c: New file, mostly copied
30885         from coreutils/lib/t-fpending.c.
30886         * modules/fpending-tests: New file.
30887
30888 2007-10-03  Bruno Haible  <bruno@clisp.org>
30889
30890         Port the stdio extensions to QNX (untested).
30891         * lib/fseterr.c (fseterr): Add support for QNX.
30892         * lib/fbufmode.c (fbufmode): Likewise.
30893         * lib/freadable.c (freadable): Likewise.
30894         * lib/fwritable.c (fwritable): Likewise.
30895         * lib/freading.c (freading): Likewise.
30896         * lib/fwriting.c (fwriting): Likewise.
30897         * lib/freadahead.c (freadahed): Likewise.
30898         * lib/fpurge.c (fpurge): Likewise.
30899         * lib/fseeko.c (rpl_fseeko): Likewise.
30900
30901 2007-10-03  Bruno Haible  <bruno@clisp.org>
30902             Jim Meyering  <jim@meyering.net>
30903             Eric Blake  <ebb9@byu.net>
30904
30905         * doc/relocatable.texi: Use @command instead of @program.
30906
30907 2007-10-02  Jim Meyering  <jim@meyering.net>
30908
30909         Perform one more "_.h" -> ".in.h" substitution.
30910         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30911         instead of unistd_.h here, too.
30912
30913 2007-10-01  Bruno Haible  <bruno@clisp.org>
30914
30915         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30916         Needed for the alloca-opt module.
30917
30918 2007-09-30  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30921         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30922         alloca_.h.
30923         * lib/argz.in.h: Renamed from lib/argz_.h.
30924         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30925         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30926         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30927         byteswap_.h.
30928         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30929         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30930         dirent_.h.
30931         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30932         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30933         fcntl_.h.
30934         * lib/float.in.h: Renamed from lib/float_.h.
30935         * modules/float (Files, Makefile.am): Use float.in.h instead of
30936         float_.h.
30937         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30938         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30939         fnmatch_.h.
30940         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30941         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30942         getopt_.h.
30943         * lib/glob.in.h: Renamed from lib/glob_.h.
30944         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30945         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30946         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30947         iconv_.h.
30948         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30949         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30950         inttypes_.h.
30951         * lib/locale.in.h: Renamed from lib/locale_.h.
30952         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30953         locale_.h.
30954         * lib/math.in.h: Renamed from lib/math_.h.
30955         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30956         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30957         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30958         of netinet_in_.h. Add dependency.
30959         * lib/poll.in.h: Renamed from lib/poll_.h.
30960         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30961         * lib/search.in.h: Renamed from lib/search_.h.
30962         * modules/search (Files, Makefile.am): Use search.in.h instead of
30963         search_.h.
30964         * lib/signal.in.h: Renamed from lib/signal_.h.
30965         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30966         _signal.h.
30967         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30968         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30969         stdbool_.h.
30970         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30971         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30972         stdint_.h.
30973         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30974         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30975         stdio_.h.
30976         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30977         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30978         stdlib_.h.
30979         * lib/string.in.h: Renamed from lib/string_.h.
30980         * modules/string (Files, Makefile.am): Use string.in.h instead of
30981         string_.h.
30982         * doc/gnulib-tool.texi (Initial import): Update.
30983         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30984         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30985         of sys_select_.h. Add dependency.
30986         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30987         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30988         of sys_socket_.h.
30989         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30990         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30991         sys_stat_.h.
30992         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30993         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30994         sys_time_.h.
30995         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30996         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30997         sysexits_.h.
30998         * lib/time.in.h: Renamed from lib/time_.h.
30999         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31000         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31001         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31002         unistd_.h.
31003         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31004         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31005         wchar_.h.
31006         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31007         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31008         wctype_.h.
31009         * build-aux/bootstrap (slurp): Update.
31010         * lib/.cppi-disable: Update.
31011
31012 2007-09-30  Bruno Haible  <bruno@clisp.org>
31013
31014         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31015         Needed on BeOS.
31016
31017 2007-09-30  Bruno Haible  <bruno@clisp.org>
31018
31019         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31020
31021 2007-09-29  Bruno Haible  <bruno@clisp.org>
31022
31023         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31024
31025 2007-09-29  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31028         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31029         * build-aux/install-reloc: Compile also areadlink.c.
31030         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31031
31032 2007-09-29  Bruno Haible  <bruno@clisp.org>
31033
31034         * gnulib-tool (func_emit_initmacro_done): Indentation.
31035
31036 2007-09-29  Bruno Haible  <bruno@clisp.org>
31037
31038         * README: Add CVS checkout update instructions.
31039         Info from Bob Proulx <bob@proulx.com>.
31040
31041 2007-09-28  Eric Blake  <ebb9@byu.net>
31042
31043         Provide move-if-change.
31044         * build-aux/move-if-change: New file, based on best practice
31045         rather than any canonical upstream location.
31046
31047 2007-09-28  Jim Meyering  <jim@meyering.net>
31048
31049         Fix canonicalize loop-detection corner case.
31050         Do not attempt to stat the symlink values stored via seen_triple.
31051         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31052         on linux-2.6.18, (but not 2.6.22).
31053         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31054         triple_compare.  The former compares dev,ino,filename, while the latter
31055         would actually stat dirname(filename) when dev and ino were equal.
31056         * lib/hash-triple.c: Install <string.h>.
31057         (STREQ): Define.
31058         (triple_compare_ino_str): New function.
31059         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31060
31061 2007-09-28  Eric Blake  <ebb9@byu.net>
31062
31063         Enforce that AC_REPLACE_FUNCS files exist.
31064         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31065         override check for typos.
31066
31067         Fix test-closein on Solaris 10.
31068         * tests/test-closein.c (main): Don't assume stdin can be inherited
31069         closed on all systems.
31070         * tests/test-closein.sh: Likewise.
31071         Reported by Piotr Tarnowski.
31072
31073 2007-09-28  Jim Meyering  <jim@meyering.net>
31074
31075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31076
31077 2007-09-27  Jim Meyering  <jim@meyering.net>
31078
31079         canonicalize: Avoid a false-positive cycle failure.
31080         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31081         Sort.  Remove cycle-check.
31082         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31083         not cycle-check.h.
31084         (seen_triple): New function.
31085         (canonicalize_filename_mode): Use it instead of cycle-check.
31086         * tests/test-canonicalize.c: Add a test for this bug.
31087         * tests/test-canonicalize.sh: Set up and run the test.
31088
31089         New module, file-set, from coreutils.
31090         * modules/file-set: Define it.
31091         * lib/file-set.c, lib/file-set.h: Implement.
31092
31093         New module, hash-triple, from coreutils.
31094         * modules/hash-triple: Define it.
31095         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31096
31097 2007-09-25  Eric Blake  <ebb9@byu.net>
31098
31099         Fix strerror on Interix.
31100         * lib/string_.h (strerror): Declare replacement.
31101         * doc/functions/strerror.texi (strerror): Document the Interix
31102         shortcoming.
31103         * modules/string (Makefile.am): Support new hooks.
31104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31105         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31106         gl_FUNC_STRERROR_SEPARATE.
31107         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31108         * lib/strerror.c (rpl_strerror): Provide replacement.
31109         * modules/strerror (Depends-on): Add string.
31110         (configure.ac): Detect use of module.
31111         * tests/test-strerror.c: New file.
31112         * modules/strerror-tests: New test module.
31113         * modules/argp (Depends-on): Add strerror.
31114         * modules/error (Depends-on): Likewise.
31115         Reported by Martin Koeppe.
31116
31117 2007-09-24  Bruno Haible  <bruno@clisp.org>
31118
31119         * README: Update git instructions.
31120
31121 2007-09-24  Eric Blake  <ebb9@byu.net>
31122
31123         Revert fpending breakage from 2007-09-08.
31124         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31125         __fpending.c.
31126
31127 2007-09-24  Jim Meyering  <jim@meyering.net>
31128
31129         filenamecat.c: Add a test.
31130         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31131         showing how the function works when DIR is the empty string.
31132
31133 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31134
31135         * tests/test-canonicalize.sh: Turn on executable bit.
31136
31137 2007-09-19  Eric Blake  <ebb9@byu.net>
31138
31139         * README: Update CVS instructions.
31140
31141 2007-09-18  Bruno Haible  <bruno@clisp.org>
31142
31143         * modules/areadlink: New file.
31144         * lib/areadlink.h (areadlink): New declaration.
31145         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31146
31147 2007-09-17  Jim Meyering  <jim@meyering.net>
31148
31149         * lib/savewd.c (ESTALE) [!defined]: Define.
31150         Reported to be required on Interix by Martin Koeppe.
31151
31152 2007-09-17  Bruno Haible  <bruno@clisp.org>
31153
31154         * gnulib-tool (func_version): Use $version.
31155
31156 2007-09-16  Bruno Haible  <bruno@clisp.org>
31157
31158         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31159         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31160         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31161         Reported by Greg Schafer <gschafer@zip.com.au>.
31162
31163 2007-09-15  Bruno Haible  <bruno@clisp.org>
31164
31165         * gnulib-tool (sed): Try a little harder to make bash understand the
31166         alias.
31167         Reported by Bruce Korb <bruce.korb@gmail.com>.
31168
31169 2007-09-13  Eric Blake  <ebb9@byu.net>
31170
31171         * ChangeLog: Remove conflict markers.
31172
31173 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31174
31175         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31176         Reported by Bruno Haible <bruno@clisp.org>.
31177
31178 2007-09-12  Bruno Haible  <bruno@clisp.org>
31179
31180         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31181         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31182         is not defined.
31183
31184 2007-09-12  Eric Blake  <ebb9@byu.net>
31185
31186         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31187         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31188         Autoconf definition.
31189         * modules/euidaccess (Depends-on): Add extensions, for
31190         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31191         * modules/fnmatch (Depends-on): Likewise.
31192         * modules/getaddrinfo (Depends-on): Likewise.
31193         * modules/getdelim (Depends-on): Likewise.
31194         * modules/getline (Depends-on): Likewise.
31195         * modules/getsubopt (Depends-on): Likewise.
31196         * modules/gettext (Depends-on): Likewise.
31197         * modules/group-member (Depends-on): Likewise.
31198         * modules/mbchar (Depends-on): Likewise.
31199         * modules/memmem (Depends-on): Likewise.
31200         * modules/mempcpy (Depends-on): Likewise.
31201         * modules/memrchr (Depends-on): Likewise.
31202         * modules/pagealign_alloc (Depends-on): Likewise.
31203         * modules/readutmp (Depends-on): Likewise.
31204         * modules/stpcpy (Depends-on): Likewise.
31205         * modules/stpncpy (Depends-on): Likewise.
31206         * modules/strchrnul (Depends-on): Likewise.
31207         * modules/strndup (Depends-on): Likewise.
31208         * modules/strsep (Depends-on): Likewise.
31209         * modules/strverscmp (Depends-on): Likewise.
31210         * modules/vasprintf (Depends-on): Likewise.
31211         * modules/wcwidth (Depends-on): Likewise.
31212         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31213         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31215         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31217         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31218         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31219         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31220         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31221         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31223         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31224         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31225         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31226         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31227         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31228         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31229         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31231         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31232         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31233         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31234         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31235         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31236         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31238         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31239         so that lock.m4 can be used in gettext without extensions module.
31240
31241 2007-09-11  Bruno Haible  <bruno@clisp.org>
31242
31243         * m4/isc-posix.m4: Remove file.
31244         Suggested by Eric Blake.
31245
31246 2007-09-11  Eric Blake  <ebb9@byu.net>
31247
31248         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31249
31250 2007-09-10  Bruno Haible  <bruno@clisp.org>
31251
31252         * posix-modules: Fix typo in error message.
31253         Reported by Matt <mkraai@beckman.com>.
31254
31255 2007-09-09  Bruno Haible  <bruno@clisp.org>
31256
31257         * doc/functions/getdelim.texi: Update list of platforms lacking the
31258         function.
31259         * doc/functions/getline.texi: Likewise.
31260
31261 2007-09-09  Jim Meyering  <jim@meyering.net>
31262
31263         * lib/hash.c (hash_initialize): Detect calloc failure.
31264         Reported by Bruno Haible.
31265
31266 2007-09-09  Bruno Haible  <bruno@clisp.org>
31267
31268         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31269         malloc or realloc fails.
31270
31271 2007-09-09  Bruno Haible  <bruno@clisp.org>
31272
31273         * modules/getcwd (Depends-on): Add malloc-posix.
31274         * modules/glob (Depends-on): Likewise.
31275         * modules/putenv (Depends-on): Likewise.
31276         * modules/strdup (Depends-on): Likewise.
31277         * modules/getdelim (Depends-on): Add realloc-posix.
31278         * modules/read-file (Depends-on): Likewise.
31279
31280 2007-09-09  Bruno Haible  <bruno@clisp.org>
31281
31282         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31283         (gl_FUNC_MALLOC_POSIX): Require it.
31284         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31285         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31286         * modules/realloc (Files): Add m4/malloc.m4.
31287         * modules/calloc (Files): Likewise.
31288
31289 2007-09-09  Bruno Haible  <bruno@clisp.org>
31290
31291         * modules/malloc-posix: New file.
31292         * modules/malloc (Depends-on): Add malloc-posix.
31293         * lib/malloc.c: Include errno.h.
31294         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31295         and a POSIX-compatible malloc into a single function. Set ENOMEM
31296         when returning NULL.
31297         * m4/malloc.m4: New file.
31298         * doc/functions/malloc.texi: Mention the malloc-posix module.
31299         * lib/stdlib_.h (malloc): New declaration.
31300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31301         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31302         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31303         and HAVE_MALLOC_POSIX.
31304
31305 2007-09-09  Bruno Haible  <bruno@clisp.org>
31306
31307         * modules/realloc-posix: New file.
31308         * modules/realloc (Depends-on): Add realloc-posix.
31309         * lib/realloc.c: Include errno.h.
31310         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31311         and a POSIX-compatible realloc into a single function. Set ENOMEM
31312         when returning NULL.
31313         * m4/realloc.m4: New file.
31314         * doc/functions/realloc.texi: Mention the realloc-posix module.
31315         * lib/stdlib_.h (realloc): New declaration.
31316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31317         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31318         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31319         and HAVE_REALLOC_POSIX.
31320
31321 2007-09-09  Bruno Haible  <bruno@clisp.org>
31322
31323         * modules/calloc-posix: New file.
31324         * modules/calloc (Depends-on): Add calloc-posix.
31325         * lib/calloc.c: Include errno.h.
31326         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31327         and a POSIX-compatible calloc into a single function. Set ENOMEM
31328         when returning NULL.
31329         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31330         * doc/functions/calloc.texi: Mention the calloc-posix module.
31331         * lib/stdlib_.h (calloc): New declaration.
31332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31333         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31334         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31335         and HAVE_CALLOC_POSIX.
31336
31337 2007-09-09  Bruno Haible  <bruno@clisp.org>
31338
31339         Allow for modules to show an arbitrary notice.
31340         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31341         * gnulib-tool: New option --extract-notice.
31342         (func_usage): Document it.
31343         (sed_extract_prog): Update.
31344         (func_get_notice): New function.
31345         (func_modules_notice): New function.
31346         (func_import, func_create_testdir): Invoke it.
31347         Suggested by Jim Meyering.
31348
31349 2007-09-09  Bruno Haible  <bruno@clisp.org>
31350
31351         * gnulib-tool: New options --verbose, --quiet.
31352         (func_usage): Document them.
31353         (verbose): New variable.
31354         (func_execute_command): New function.
31355         (func_import): Don't show the module list and the file list if
31356         $verbose < 0.
31357         (func_create_testdir): Likewise. Use func_execute_command.
31358         (func_create_megatestdir): Use func_execute_command.
31359
31360 2007-09-08  Bruno Haible  <bruno@clisp.org>
31361
31362         * gnulib-tool (func_import): Prefer rsync over wget when available,
31363         for fetching the PO files.
31364
31365 2007-09-08  Bruno Haible  <bruno@clisp.org>
31366
31367         * posix-modules: New file. Portions copied from gnulib-tool.
31368         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31369
31370 2007-09-08  Jim Meyering  <jim@meyering.net>
31371
31372         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31373         * lib/fpending.h: Rename from __fpending.h.
31374         * lib/fpending.c: Rename from __fpending.c.
31375         Include "fpending.h", not "__fpending.h".
31376         * lib/__fpending.h, lib/__fpending.c: Remove files.
31377         * modules/fpending (Files): Reflect new file names.
31378         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31379
31380 2007-09-08  Bruno Haible  <bruno@clisp.org>
31381
31382         * m4/inttypes-h.m4: Remove stub file.
31383
31384 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31385
31386         * doc/headers/stdint.texi: Discuss #include_next issue.
31387
31388 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31389
31390         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31391
31392 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31393
31394         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31395         in variable name.
31396
31397 2007-09-03  Jim Meyering  <jim@meyering.net>
31398
31399         New module: git-version-gen.
31400         * modules/git-version-gen: New file.
31401
31402         Import changes from coreutils for bootstrap script.
31403
31404         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31405
31406         bootstrap: uses rsync to download the .po files
31407         * build-aux/bootstrap (po_download_command_format): New global.
31408         (download_po_files): Use rsync.
31409         (update_po_files): Don't remove .po files after download,
31410         so future rsync runs can take advantage of the copies.
31411
31412         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31413
31414         Solve the unnecessary-.po-file-regeneration problem once and for all.
31415         * build-aux/bootstrap (download_po_files): New function, renamed from
31416         get_translations.  Now, downloads, but doesn't update LINGUAS.
31417         (update_po_files): New function.
31418
31419         bootstrap: Ignore more.
31420         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31421         uniwidth to e.g., lib/.gitignore.
31422         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31423
31424         * build-aux/bootstrap: New setting: vc_ignore.
31425         (insert_sorted_if_absent): Create $file if absent.
31426         Adapt to new, possibly empty, list: $vc_ignore.
31427
31428         bootstrap: generate more ignorable names
31429         * build-aux/bootstrap (slurp): When generating ignorable names,
31430         also map .sin to .sed, .gperf to .c, and .y to .c.
31431
31432 2007-09-03  Jim Meyering  <jim@meyering.net>
31433
31434         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31435         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31436
31437 2007-09-02  Bruno Haible  <bruno@clisp.org>
31438
31439         Fix mis-recognition of 'mcs' on QNX 6.
31440         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31441         output contains the string "Mono".
31442         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31443         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31444
31445 2007-09-01  Bruno Haible  <bruno@clisp.org>
31446
31447         Fix collision between uniwidth/* and linebreak modules.
31448         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31449         u32_width): Remove declarations.
31450         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31451         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31452         streq3, streq2, streq1, streq0): Remove functions.
31453         (STREQ): Remove macro.
31454         (is_cjk_encoding): Remove function.
31455         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31456         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31457         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31458         * NEWS: Document the change.
31459
31460 2007-09-01  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/streq.h: Add double-inclusion guard.
31463
31464 2007-09-01  Karl Berry  <karl@gnu.org>
31465
31466         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31467
31468 2007-08-28  Jim Meyering  <jim@meyering.net>
31469
31470         Rename mreadlink_with_size to areadlink_with_size.
31471         * NEWS: Document the change.
31472         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31473         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31474         * lib/mreadlink.h: Rename this to...
31475         * lib/areadlink.h: ...this.
31476         * modules/mreadlink-with-size: Rename this to...
31477         * modules/areadlink-with-size: ...this.
31478         * lib/canonicalize.c: Reflect the renaming.
31479         * modules/canonicalize: Likewise.
31480
31481 2007-08-26  Bruno Haible  <bruno@clisp.org>
31482
31483         * gnulib-tool (func_import): When deciding which files to remove,
31484         consider also dangling symbolic links.
31485         Reported by Eric Blake.
31486
31487 2007-08-26  Bruno Haible  <bruno@clisp.org>
31488
31489         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31490
31491 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31492
31493         * lib/readline.c: Don't include getline.h, the prototype is now
31494         found in stdio.h.
31495
31496 2007-08-23  Jim Meyering  <jim@meyering.net>
31497
31498         Getdelim touchup.
31499         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31500         around the funlockfile call, since funlockfile never sets errno.
31501         Don't set errno upon failed realloc.
31502
31503 2007-08-22  Eric Blake  <ebb9@byu.net>
31504
31505         Getline touchups.
31506         * lib/getdelim.c (getdelim): Revert regression that required *n to
31507         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31508         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31509         getdelim, rather than whether implementation is missing.
31510         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31511         * lib/stdio_.h (getline): Also declare if replacement is
31512         required.
31513         * doc/functions/getdelim.texi: New file.
31514         * doc/functions/getline.texi: Likewise.
31515         * doc/gnulib.texi (Function Substitutes): Add new files.
31516         Reported by Bruno Haible.
31517
31518 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31519
31520         * users.txt: Add Guile.
31521
31522 2007-08-22  Eric Blake  <ebb9@byu.net>
31523
31524         * tests/test-getdelim.c (main): Use remove, not unlink.
31525         * tests/test-getline.c (main): Likewise.
31526
31527         Move getline and getdelim into stdio.h, per POSIX 200x.
31528         * modules/getline (Files): Remove getline.h.
31529         (Depends-on): Add stdio.
31530         (configure.ac): Add module indicator.
31531         * modules/getdelim (Files): Remove getdelim.h.
31532         (Depends-on): Add stdio.
31533         (configure.ac): Add module indicator.
31534         * modules/stdio (Makefile.am): Work with new indicators.
31535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31536         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31537         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31538         * lib/getdelim.h: Delete.
31539         * lib/getline.h: Delete.
31540         * lib/stdio_.h (getdelim, getline): Declare.
31541         * modules/getdelim-tests: New module.
31542         * modules/getline-tests: Likewise.
31543         * tests/test-getdelim.c: New file.
31544         * tests/test-getline.c: Likewise.
31545         * NEWS: Document the change.
31546         * lib/getline.c: Update choice of header.
31547         * lib/csharpcomp.c: Likewise.
31548         * lib/getpass.c: Likewise.
31549         * lib/javacomp.c: Likewise.
31550         * lib/javaversion.c: Likewise.
31551         * lib/yesno.c: Likewise.
31552         * lib/getdelim.c: Likewise.
31553         (getdelim): Set errno on failure, and avoid memory leak.
31554
31555 2007-08-19  Bruno Haible  <bruno@clisp.org>
31556
31557         * modules/closein (Depends-on): Add freadahead.
31558         * lib/closein.c: Include freadahead.h.
31559         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31560         is zero.
31561
31562 2007-08-19  Bruno Haible  <bruno@clisp.org>
31563
31564         * modules/freadahead-tests: New file.
31565         * tests/test-freadahead.sh: New file.
31566         * tests/test-freadahead.c: New file.
31567
31568         * modules/freadahead: New file.
31569         * lib/freadahead.h: New file.
31570         * lib/freadahead.c: New file.
31571         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31572         fbufmode, fpurge, freadable, fwritable.
31573
31574 2007-08-19  Eric Blake  <ebb9@byu.net>
31575
31576         Test yesno in combination with closein.
31577         * lib/yesno.c (yesno): Document use of stdin.
31578         * modules/yesno-tests (Files): New module.
31579         * tests/test-yesno.c (main): New file.
31580         * tests/test-yesno.sh: Likewise.
31581
31582 2007-08-19  Bruno Haible  <bruno@clisp.org>
31583
31584         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31585         * lib/fseeko.c (rpl_fseeko): Likewise.
31586         * lib/fseterr.c (fseterr): Likewise.
31587
31588 2007-08-19  Bruno Haible  <bruno@clisp.org>
31589
31590         * tests/test-lseek.c (main): Disable a test for BeOS.
31591         * doc/functions/lseek.texi: Document the BeOS bug.
31592
31593 2007-08-19  Bruno Haible  <bruno@clisp.org>
31594             Eric Blake  <ebb9@byu.net>
31595
31596         * lib/lseek.c: Include <sys/stat.h>.
31597         (rpl_lseek): Add workaround code also for Unix platforms.
31598         Needed for BeOS.
31599         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31600         * doc/functions/lseek.texi: Document BeOS definiency.
31601
31602 2007-08-18  Bruno Haible  <bruno@clisp.org>
31603
31604         * modules/fstrcmp-tests: New file.
31605         * tests/test-fstrcmp.c: New file.
31606
31607 2007-08-18  Bruno Haible  <bruno@clisp.org>
31608
31609         * modules/fstrcmp: New file, from GNU gettext with modifications.
31610         * lib/fstrcmp.h: New file, from GNU gettext.
31611         * lib/fstrcmp.c: New file, from GNU gettext.
31612         * MODULES.html.sh (String handling): Add fstrcmp.
31613
31614 2007-08-18  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31617         'bool'.
31618         (diag, compareseq): Remove const from the ctxt argument.
31619         (USE_HEURISTIC): Undefine at the end.
31620
31621 2007-08-18  Jim Meyering  <jim@meyering.net>
31622
31623         New file: lib/idcache.h
31624         * NEWS: Mention the addition.
31625         * modules/idcache (Files): Add lib/idcache.h
31626         * lib/idcache.c: Include "idcache.h".
31627         Don't include <sys/types.h>.
31628         Add a FIXME comment.
31629         Move file-scoped "static" declarations to the top.
31630         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31631
31632 2007-08-17  Bruno Haible  <bruno@clisp.org>
31633         and Paul Eggert  <eggert@cs.ucla.edu>
31634
31635         * MODULES.html.sh: Add diffseq.
31636         * modules/diffseq: New file.
31637         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31638         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31639
31640 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31641
31642         Import changes from coreutils for bootstrap script.
31643
31644         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31645
31646         * build-aux/bootstrap (slurp): Work even in environments where
31647         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31648         current code does not slurp files whose names start with ".", and
31649         this looks like it might be a troublesome area.
31650
31651         2007-07-11  Jim Meyering  <jim@meyering.net>
31652
31653         If there's a GPL vN copyright comment, require that N == 3.
31654
31655         2007-07-08  Jim Meyering  <jim@meyering.net>
31656
31657         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31658         * build-aux/bootstrap (mam_template): Move definition out of loop.
31659
31660         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31661
31662         * build-aux/bootstrap (symlink_to_dir): Rename function from
31663         symlink_to_gnulib.  Add a directory parameter.  Update all
31664         callers.
31665         (cp_mark_as_generated): Also check for -- and link to -- files in
31666         gl/.
31667
31668         2007-07-08  Jim Meyering  <jim@meyering.net>
31669
31670         Adapt to deeper hierarchy in gnulib.
31671         * build-aux/bootstrap (symlink_to_dir): If the destination
31672         directory doesn't exist, create it. This is required at least for
31673         "lib/uniwidth/cjk.h".
31674
31675         2007-05-15  Jim Meyering  <jim@meyering.net>
31676
31677         * build-aux/bootstrap: Now that generated Makefile.am files
31678         are no longer under version control, they must be created at
31679         bootstrap time.
31680
31681 2007-08-14  Ben Pfaff  <blp@gnu.org>
31682
31683         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31684
31685 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31686
31687         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31688         given the changes below.
31689         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31690         even on hosts that have padding bits beyond the supported 64.
31691
31692 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31695         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31696         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31697         depends on it.
31698         (xstrtol_error): Remove.
31699         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31700         but with a different signature.
31701         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31702         * lib/xstrtol-error.c: Include exitfail.h.
31703         (xstrtol_fatal): New function, with a different signature from the
31704         old xstrtol_error, so that the caller need not worry about passing
31705         in an exit status, or about storage management of the option argument.
31706         (xstrtol_error): Now a static function.  Redo signature to
31707         implement xstrtol_fatal.  Output the correct number of hyphens in
31708         front of the option so that the caller need not worry about
31709         storage management.
31710         (N_): New macro.
31711         (_): Remove; not used now.
31712         * modules/xstrtol: Depend on getopt.
31713         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31714         of old STRTOL_FATAL_ERROR macro.
31715         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31716         of test program.
31717         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31718         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31719
31720 2007-08-08  Eric Blake  <ebb9@byu.net>
31721
31722         * lib/xstrtol-error.c: Add missing include.
31723
31724         Move xstrtol messages into gnulib domain, when --pobase is used.
31725         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31726         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31727         * modules/xstrtol (Files): Distribute new file.
31728         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31729         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31730         * tests/test-xstrtol.c: ...into new file.
31731         * tests/test-xstrtoul.c: Also test xstrtoul.
31732         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31733         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31734         * tests/test-xstrtol.sh: Drive the tests.
31735         * tests/test-xstrtoimax.sh: Likewise.
31736         * tests/test-xstrtoumax.sh: Likewise.
31737         * modules/xstrtol-tests: New module.
31738         * modules/xstrtoimax-tests: Likewise.
31739         * modules/xstrtoumax-tests: Likewise.
31740
31741 2007-08-08  Jim Meyering  <jim@meyering.net>
31742
31743         New function: mfile_name_concat.
31744         * lib/filenamecat.c (mfile_name_concat): New function, just like
31745         file_name_concat, but return NULL upon failure rather than exiting
31746         with a diagnostic.
31747         * lib/filenamecat.h: Declare it.
31748
31749 2007-08-07  Bruno Haible  <bruno@clisp.org>
31750
31751         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31752         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31753         warning from gcc.
31754         Reported by Eric Blake.
31755
31756 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31757
31758         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31759         * modules/crypto/arcfour (License): Likewise.
31760         * modules/crypto/des-tests (License): Likewise.
31761         * modules/crypto/gc-arctwo-tests (License): Likewise.
31762         * modules/crypto/gc-des-tests (License): Likewise.
31763         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31764         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31765         * modules/crypto/gc-md2-tests (License): Likewise.
31766         * modules/crypto/gc-md4-tests (License): Likewise.
31767         * modules/crypto/gc-md5-tests (License): Likewise.
31768         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31769         * modules/crypto/gc-rijndael-tests (License): Likewise.
31770         * modules/crypto/gc-sha1-tests (License): Likewise.
31771         * modules/crypto/gc-tests (License): Likewise.
31772         * modules/crypto/hmac-md5 (License): Likewise.
31773         * modules/crypto/hmac-sha1 (License): Likewise.
31774         * modules/crypto/md2-tests (License): Likewise.
31775         * modules/crypto/md4-tests (License): Likewise.
31776         * modules/crypto/md5 (License): Likewise.
31777         * modules/crypto/rijndael (License): Likewise.
31778         * modules/crypto/sha1 (License): Likewise.
31779         * modules/memxor (License): Likewise.
31780
31781 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31782         and Bruno Haible  <bruno@clisp.org>
31783
31784         * NEWS: Describe interface changes to human, xstrtol.
31785         * lib/human.h: Include <xstrtol.h>.
31786         (human_options): Return enum strtol_error, not int.  Remove
31787         bool arg; take int * instead.
31788         * lib/human.c: Don't include "gettext.h".
31789         (_): Remove; no longer used.
31790         Don't include <xstrtol.h>, since human.h does it.
31791         (human_options): Adjust to abovementioned interface changes.
31792         Do not report error to stderr; that's now the caller's
31793         responsibility.
31794         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31795         interface change.
31796         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31797         Str, Argument_type_string.  All uses changed.  Put " argument"
31798         in diagnostics to make them clearer.  Change wording of suffix
31799         message for clarity.
31800         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31801         Argument_type_string.
31802         (STRTOL_FATAL_WARN): Remove; no longer used.
31803         * modules/human (Depends-on): Remove gettext-h.
31804
31805 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31806
31807         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31808
31809 2007-07-31  Bruno Haible  <bruno@clisp.org>
31810
31811         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31812         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31813         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31814
31815 2007-07-31  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31818         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31819
31820 2007-07-30  Bruno Haible  <bruno@clisp.org>
31821
31822         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31823         * modules/c-ctype (License): Likewise.
31824         * modules/c-strcase (License): Likewise.
31825         * modules/check-version (License): Likewise.
31826         * modules/iconv (License): Likewise.
31827         * modules/iconv_open (License): Likewise.
31828         * modules/read-file (License): Likewise.
31829         * modules/striconv (License): Likewise.
31830         * modules/strverscmp (License): Likewise.
31831         * modules/vasprintf (License): Likewise.
31832         * modules/crypto/des (License): Likewise.
31833         * modules/crypto/gc (License): Likewise.
31834         * modules/crypto/gc-arcfour (License): Likewise.
31835         * modules/crypto/gc-arctwo (License): Likewise.
31836         * modules/crypto/gc-des (License): Likewise.
31837         * modules/crypto/gc-hmac-md5 (License): Likewise.
31838         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31839         * modules/crypto/gc-md2 (License): Likewise.
31840         * modules/crypto/gc-md4 (License): Likewise.
31841         * modules/crypto/gc-md5 (License): Likewise.
31842         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31843         * modules/crypto/gc-random (License): Likewise.
31844         * modules/crypto/gc-rijndael (License): Likewise.
31845         * modules/crypto/gc-sha1 (License): Likewise.
31846         * modules/crypto/md2 (License): Likewise.
31847         * modules/crypto/md4 (License): Likewise.
31848
31849 2007-07-30  Jim Meyering  <jim@meyering.net>
31850
31851         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31852         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31853         it has valid stat data.  This bug would cause du not to count the
31854         sizes of inaccessible directories.
31855         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31856         in <http://bugzilla.redhat.com/250077>.
31857
31858 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31859             Bruno Haible  <bruno@clisp.org>
31860
31861         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31862         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31863         #include_next, gives a diagnostic about it, but reports no error in
31864         the exit code.
31865         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31866
31867 2007-07-24  Ben Pfaff  <blp@gnu.org>
31868
31869         Improve name: "count-one-bits" is better than "popcount".
31870         * MODULES.html.sh: Update name.
31871         * lib/popcount.h: Renamed lib/count-one-bits.h.
31872         (popcount): Renamed count_one_bits.
31873         (popcountl): Renamed count_one_bits_l.
31874         (popcountll): Renamed count_one_bits_ll.
31875         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31876         * modules/popcount: Renamed module/count-one-bits.
31877         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31878         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31879
31880 2007-07-23  Ben Pfaff  <blp@gnu.org>
31881
31882         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31883         better code generation, and add U to large constants to avoid
31884         warnings, in non-GCC case.
31885         Suggested by Bruno Haible.
31886
31887 2007-07-23  Ben Pfaff  <blp@gnu.org>
31888
31889         * lib/popcount.h: Use verify_true instead of if...abort.
31890         * modules/popcount: Depend on verify module.
31891         Suggested by Jim Meyering.
31892
31893 2007-07-23  Bruno Haible  <bruno@clisp.org>
31894
31895         * gnulib-tool (func_import): Create a .cvsignore file also when the
31896         directory is not yet in CVS but the toplevel directory is. When
31897         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31898         Reported by Karl Berry.
31899
31900 2007-07-22  Ben Pfaff  <blp@gnu.org>
31901
31902         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31903         case.
31904         Suggested by Eric Blake.
31905
31906 2007-07-22  Ben Pfaff  <blp@gnu.org>
31907
31908         New module: popcount.
31909         * MODULES.html.sh: Add popcount.
31910         * modules/popcount: New file.
31911         * modules/popcount-tests: New file.
31912         * tests/test-popcount.c: New file.
31913         * lib/popcount.h: New file.
31914         * m4/popcount.m4: New file.
31915
31916 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31917
31918         * build-aux/announce-gen: Update to GPLv3.
31919
31920         * build-aux/config.guess: Update from config.
31921
31922 2007-07-21  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31925         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31926
31927 2007-07-20  Jim Meyering  <jim@meyering.net>
31928
31929         * check-module: Diagnose a self-dependency.
31930
31931 2007-07-19  Bruno Haible  <bruno@clisp.org>
31932
31933         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31934         empty.
31935         Reported by Eric Blake.
31936
31937 2007-07-18  Bruno Haible  <bruno@clisp.org>
31938
31939         * gnulib-tool: New options --po-base, --po-domain.
31940         (func_usage): Document them.
31941         (pobase, po_domain): New variables.
31942         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31943         DEFAULT_TEXT_DOMAIN.
31944         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31945         (func_import): Consider pobase and po_domain. Create a po/ directory.
31946         (func_create_testdir): Set pobase and po_domain to empty.
31947         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31948         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31949
31950 2007-07-18  Bruno Haible  <bruno@clisp.org>
31951
31952         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31953         EXTRA_DIST augmentation for files in build-aux/.
31954
31955 2007-07-16  Bruno Haible  <bruno@clisp.org>
31956
31957         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31958         * modules/getdelim (License): Likewise.
31959
31960 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31961
31962         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31963         * modules/d-type (License): Likewise.
31964         * modules/extensions (License): Likewise.
31965         * modules/fnmatch (License): Likewise.
31966         * modules/fseeko (License): Likewise.
31967         * modules/getaddrinfo (License): Likewise.
31968         * modules/getline (License): Likewise.
31969         * modules/getlogin_r (License): Likewise.
31970         * modules/getpass (License): Likewise.
31971         * modules/gettimeofday (License): Likewise.
31972         * modules/glob (License): Likewise.
31973         * modules/inet_ntop (License): Likewise.
31974         * modules/malloc (License): Likewise.
31975         * modules/malloca (License): Likewise.
31976         * modules/memmem (License): Likewise.
31977         * modules/mempcpy (License): Likewise.
31978         * modules/memset (License): Likewise.
31979         * modules/minmax (License): Likewise.
31980         * modules/mktime (License): Likewise.
31981         * modules/netinet_in (License): Likewise.
31982         * modules/pathmax (License): Likewise.
31983         * modules/poll (License): Likewise.
31984         * modules/regex (License): Likewise.
31985         * modules/snprintf (License): Likewise.
31986         * modules/stdbool (License): Likewise.
31987         * modules/stdint (License): Likewise.
31988         * modules/stdio (License): Likewise.
31989         * modules/strcase (License): Likewise.
31990         * modules/strcasestr (License): Likewise.
31991         * modules/strdup (License): Likewise.
31992         * modules/string (License): Likewise.
31993         * modules/strndup (License): Likewise.
31994         * modules/strnlen (License): Likewise.
31995         * modules/strpbrk (License): Likewise.
31996         * modules/strptime (License): Likewise.
31997         * modules/strsep (License): Likewise.
31998         * modules/sys_select (License): Likewise.
31999         * modules/sys_socket (License): Likewise.
32000         * modules/sys_stat (License): Likewise.
32001         * modules/sys_time (License): Likewise.
32002         * modules/time (License): Likewise.
32003         * modules/time_r (License): Likewise.
32004         * modules/timegm (License): Likewise.
32005         * modules/unistd (License): Likewise.
32006         * modules/vsnprintf (License): Likewise.
32007         * modules/wctype (License): Likewise.
32008
32009 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32010
32011         * modules/argz (License): LGPLv2+.
32012
32013 2007-07-15  Karl Berry  <karl@gnu.org>
32014
32015         * doc/gnulib.texi: revise node structure per new fdl.texi.
32016
32017 2007-07-14  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32020         the output file.
32021         * lib/uniname/uninames.h: Regenerated.
32022
32023 2007-07-14  Karl Berry  <karl@gnu.org>
32024
32025         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32026         omitting sectioning and index commands.
32027
32028 2007-07-13  Bruno Haible  <bruno@clisp.org>
32029
32030         New gnulib-tool option --more-symlinks.
32031         * gnulib-tool (func_usage): Document --more-symlinks.
32032         (do_copyrights): New variable.
32033         Recognize option --more-symlinks.
32034         (func_import): Don't add a copyright notice transform to
32035         sed_transform_lib_file if do_copyrights is empty.
32036
32037 2007-07-13  Bruno Haible  <bruno@clisp.org>
32038
32039         * lib/vasnprintf.c (decimal_point_char): Define also if
32040         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32041         && !NEED_PRINTF_DIRECTIVE_A.
32042         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32043         Gary V. Vaughan <gary@gnu.org>.
32044
32045 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32046
32047         * lib/inttypes_.h: Undo previous change, since it was fixed
32048         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32049
32050 2007-07-13  Bruno Haible  <bruno@clisp.org>
32051
32052         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32053         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32054
32055 2007-07-13  Jim Meyering  <jim@meyering.net>
32056
32057         df: Don't fail for Tru64's "file-on-file mount".
32058         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32059         so we fall through and use statfs instead.  Details here:
32060         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32061         Reported by Albert Chin.
32062
32063 2007-07-13  Bruno Haible  <bruno@clisp.org>
32064
32065         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32066         * modules/configmake (License): Likewise.
32067         * modules/gettext (License): Likewise.
32068         * modules/gettext-h (License): Likewise.
32069         * modules/include_next (License): Likewise.
32070         * modules/link-warning (License): Likewise.
32071         * modules/localcharset (License): Likewise.
32072         * modules/localename (License): Likewise.
32073         * modules/lock (License): Likewise.
32074         * modules/relocatable-lib-lgpl (License): Likewise.
32075         * modules/size_max (License): Likewise.
32076         * modules/vasnprintf (License): Likewise.
32077         * modules/wchar (License): Likewise.
32078         * modules/xsize (License): Likewise.
32079
32080 2007-07-13  Bruno Haible  <bruno@clisp.org>
32081
32082         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32083         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32084
32085 2007-07-12  Bruno Haible  <bruno@clisp.org>
32086
32087         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32088         in the modules files.
32089
32090 2007-07-11  Karl Berry  <karl@gnu.org>
32091
32092         * MODULES.html.sh (func_module): use
32093          sed -e '\|^'"${includefile}"'$|d'
32094          instead of /.../d, to avoid errors on $includefile's containing /.
32095
32096 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32097
32098         * gnulib-tool (func_import): Avoid duplication of --avoid
32099         statements
32100         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32101         names to `_' in variable names.
32102
32103 2007-07-10  Eric Blake  <ebb9@byu.net>
32104
32105         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32106         * NEWS: Document this change.
32107
32108 2007-07-08  Bruno Haible  <bruno@clisp.org>
32109
32110         Update to Unicode 5.0.
32111         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32112         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32113         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32114         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32115         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32116         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32117         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32118         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32119         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32120         U+10A3F, U+1D242..U+1D244.
32121         (nonspacing_table_ind): Update.
32122         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32123         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32124
32125 2007-07-08  Bruno Haible  <bruno@clisp.org>
32126
32127         Update to Unicode 5.0.
32128         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32129         code transform. Extend the name index field of unicode_name_to_code and
32130         unicode_code_to_name from 16 to 24 bits.
32131         * lib/uniname/uniname.c (unicode_character_name,
32132         unicode_name_character): Add the range 0x12xxx to the code transform.
32133         * lib/uniname/uninames.h: Regenerated.
32134         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32135
32136 2007-07-07  Bruno Haible  <bruno@clisp.org>
32137
32138         * modules/wcwidth-tests: New file.
32139         * tests/test-wcwidth.c: New file.
32140
32141         Work around MacOS X wcwidth() bug.
32142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32143         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32144         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32145         original wcwidth in non-UTF-8 locales.
32146         * modules/wcwidth (Depends-on): Add localcharset, streq,
32147         uniwidth/width.
32148         * doc/functions/wcwidth.texi: Update.
32149
32150 2007-07-07  Bruno Haible  <bruno@clisp.org>
32151
32152         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32153         (wcwidth): New declaration.
32154         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32155         macros.
32156         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32157         here. Prepare for creating <wchar.h> unconditionally.
32158         * modules/wchar (Depends-on): Add link-warning.
32159         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32160         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32161         * lib/wcwidth.h: Remove file.
32162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32163         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32164         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32165         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32166         (Include): Replace wcwidth.h with <wchar.h>.
32167         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32168         * lib/mbchar.h: Don't include wcwidth.h.
32169         * lib/mbswidth.c: Likewise.
32170         * NEWS: Mention the change.
32171
32172 2007-07-07  Bruno Haible  <bruno@clisp.org>
32173
32174         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32175         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32176         definition with an external declaration.
32177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32178         defined as a function. Remove AC_C_INLINE requirement.
32179         * modules/wcwidth (Files): Add lib/wcwidth.c.
32180         (Makefile.am): Remove redundant statement.
32181
32182 2007-07-07  Bruno Haible  <bruno@clisp.org>
32183
32184         * MODULES.html.sh (Unicode string functions): Add the new modules.
32185
32186         * tests/uniwidth/test-u32-strwidth.c: New file.
32187         * modules/uniwidth/u32-strwidth-tests: New file.
32188
32189         * lib/uniwidth/u32-strwidth.c: New file.
32190         * modules/uniwidth/u32-strwidth: New file.
32191
32192         * tests/uniwidth/test-u16-strwidth.c: New file.
32193         * modules/uniwidth/u16-strwidth-tests: New file.
32194
32195         * lib/uniwidth/u16-strwidth.c: New file.
32196         * modules/uniwidth/u16-strwidth: New file.
32197
32198         * tests/uniwidth/test-u8-strwidth.c: New file.
32199         * modules/uniwidth/u8-strwidth-tests: New file.
32200
32201         * lib/uniwidth/u8-strwidth.c: New file.
32202         * modules/uniwidth/u8-strwidth: New file.
32203
32204         * tests/uniwidth/test-u32-width.c: New file.
32205         * modules/uniwidth/u32-width-tests: New file.
32206
32207         * lib/uniwidth/u32-width.c: New file.
32208         * modules/uniwidth/u32-width: New file.
32209
32210         * tests/uniwidth/test-u16-width.c: New file.
32211         * modules/uniwidth/u16-width-tests: New file.
32212
32213         * lib/uniwidth/u16-width.c: New file.
32214         * modules/uniwidth/u16-width: New file.
32215
32216         * tests/uniwidth/test-u8-width.c: New file.
32217         * modules/uniwidth/u8-width-tests: New file.
32218
32219         * lib/uniwidth/u8-width.c: New file.
32220         * modules/uniwidth/u8-width: New file.
32221
32222         * tests/uniwidth/test-uc_width.c: New file.
32223         * modules/uniwidth/width-tests: New file.
32224
32225         * lib/uniwidth/width.c: New file, from GNU libiconv.
32226         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32227         * modules/uniwidth/width: New file.
32228
32229         * lib/uniwidth.h: New file, from GNU libiconv.
32230         * modules/uniwidth/base: New file.
32231
32232 2007-07-07  Bruno Haible  <bruno@clisp.org>
32233
32234         * lib/uniname.h: New file, from GNU gettext.
32235         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32236         * lib/uniname/uninames.h: New file, from GNU gettext.
32237         * lib/uniname/uniname.c: New file, from GNU gettext.
32238         * tests/uniname/test-uninames.sh: New file.
32239         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32240         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32241         * modules/uniname/base: New file.
32242         * modules/uniname/uniname: New file.
32243         * modules/uniname/uniname-tests: New file.
32244         * MODULES.html.sh (Unicode string functions): Add the new modules.
32245
32246 2007-07-06  Bruno Haible  <bruno@clisp.org>
32247
32248         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32249
32250 2007-07-06  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32253         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32254         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32255         include <sys/time.h>.
32256         Reported by Eric Blake.
32257
32258 2007-07-06  Eric Blake  <ebb9@byu.net>
32259
32260         Fix testing canonicalize on cygwin.
32261         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32262         Revert patch from 2007-06-19.
32263         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32264         canonicalize module is also in use.
32265         * tests/test-canonicalize.c: New file.
32266         * tests/test-canonicalize.sh: Likewise.
32267         * modules/canonicalize-tests: Likewise.
32268
32269 2007-07-06  Jim Meyering  <jim@meyering.net>
32270
32271         * lib/getugroups.c (getugroups): Detect getgrent failure.
32272         Adjust comment to reflect reality: this function may return -1.
32273
32274 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32275
32276         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32277         the new TP address.
32278         (usage): Fix typo
32279         (gnulib_mk): New variable.
32280
32281 2007-07-05  Jim Meyering  <jim@meyering.net>
32282
32283         Don't let endgrent clobber errno, no matter how improbable.
32284         * lib/getugroups.c (getugroups): Save and restore errno around
32285         endgrent call.
32286
32287         Close the group DB even when failing with 2^31 or more members.
32288         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32289
32290 2007-07-04  Jim Meyering  <jim@meyering.net>
32291
32292         * lib/getugroups.h: New file.
32293         * lib/getugroups.c: Include "getugroups.h".
32294         Remove uses of "register" keyword.
32295         Move local variable, "cp", down into scope where used.
32296         Give "username" parameter the "const" attribute.
32297         * modules/getugroups (Files): Add lib/getugroups.h
32298
32299 2007-07-04  Karl Berry  <karl@gnu.org>
32300
32301         * MODULES.html.sh (func_all_modules): Complete rename of
32302         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32303
32304 2007-07-02  Bruno Haible  <bruno@clisp.org>
32305
32306         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32307         mode, when inttypes.h comes from gnulib.
32308         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32309
32310 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32311
32312         * NEWS: Mention lgpl module name change.
32313
32314         * modules/lgpl-2.1: Renamed from lgpl.
32315
32316         * NEWS: Mention gpl module name change.
32317
32318         * modules/gpl-3.0: New file, based on gpl-2.0.
32319
32320         * modules/gpl-2.0: Renamed from gpl.
32321
32322         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32323         doc/gpl-2.0.texi.
32324
32325 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32326
32327         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32328         #define __STDC_LIMIT_MACROS temporarily while including
32329         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32330         Problem reported by Joel E. Denny in
32331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32332
32333 2007-07-01  Bruno Haible  <bruno@clisp.org>
32334
32335         * lib/unistdio.h: New file.
32336         * lib/unistdio/u-asnprintf.h: New file.
32337         * lib/unistdio/u-asprintf.h: New file.
32338         * lib/unistdio/u-printf-args.c: New file.
32339         * lib/unistdio/u-printf-args.h: New file.
32340         * lib/unistdio/u-printf-parse.h: New file.
32341         * lib/unistdio/u-snprintf.h: New file.
32342         * lib/unistdio/u-sprintf.h: New file.
32343         * lib/unistdio/u-vasprintf.h: New file.
32344         * lib/unistdio/u-vsnprintf.h: New file.
32345         * lib/unistdio/u-vsprintf.h: New file.
32346         * lib/unistdio/ulc-asnprintf.c: New file.
32347         * lib/unistdio/ulc-asprintf.c: New file.
32348         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32349         * lib/unistdio/ulc-printf-parse.c: New file.
32350         * lib/unistdio/ulc-snprintf.c: New file.
32351         * lib/unistdio/ulc-sprintf.c: New file.
32352         * lib/unistdio/ulc-vasnprintf.c: New file.
32353         * lib/unistdio/ulc-vasprintf.c: New file.
32354         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32355         * lib/unistdio/ulc-vsnprintf.c: New file.
32356         * lib/unistdio/ulc-vsprintf.c: New file.
32357         * lib/unistdio/u8-asnprintf.c: New file.
32358         * lib/unistdio/u8-asprintf.c: New file.
32359         * lib/unistdio/u8-printf-parse.c: New file.
32360         * lib/unistdio/u8-snprintf.c: New file.
32361         * lib/unistdio/u8-sprintf.c: New file.
32362         * lib/unistdio/u8-vasnprintf.c: New file.
32363         * lib/unistdio/u8-vasprintf.c: New file.
32364         * lib/unistdio/u8-vsnprintf.c: New file.
32365         * lib/unistdio/u8-vsprintf.c: New file.
32366         * lib/unistdio/u8-u8-asnprintf.c: New file.
32367         * lib/unistdio/u8-u8-asprintf.c: New file.
32368         * lib/unistdio/u8-u8-snprintf.c: New file.
32369         * lib/unistdio/u8-u8-sprintf.c: New file.
32370         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32371         * lib/unistdio/u8-u8-vasprintf.c: New file.
32372         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32373         * lib/unistdio/u8-u8-vsprintf.c: New file.
32374         * lib/unistdio/u16-asnprintf.c: New file.
32375         * lib/unistdio/u16-asprintf.c: New file.
32376         * lib/unistdio/u16-printf-parse.c: New file.
32377         * lib/unistdio/u16-snprintf.c: New file.
32378         * lib/unistdio/u16-sprintf.c: New file.
32379         * lib/unistdio/u16-vasnprintf.c: New file.
32380         * lib/unistdio/u16-vasprintf.c: New file.
32381         * lib/unistdio/u16-vsnprintf.c: New file.
32382         * lib/unistdio/u16-vsprintf.c: New file.
32383         * lib/unistdio/u16-u16-asnprintf.c: New file.
32384         * lib/unistdio/u16-u16-asprintf.c: New file.
32385         * lib/unistdio/u16-u16-snprintf.c: New file.
32386         * lib/unistdio/u16-u16-sprintf.c: New file.
32387         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32388         * lib/unistdio/u16-u16-vasprintf.c: New file.
32389         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32390         * lib/unistdio/u16-u16-vsprintf.c: New file.
32391         * lib/unistdio/u32-asnprintf.c: New file.
32392         * lib/unistdio/u32-asprintf.c: New file.
32393         * lib/unistdio/u32-printf-parse.c: New file.
32394         * lib/unistdio/u32-snprintf.c: New file.
32395         * lib/unistdio/u32-sprintf.c: New file.
32396         * lib/unistdio/u32-vasnprintf.c: New file.
32397         * lib/unistdio/u32-vasprintf.c: New file.
32398         * lib/unistdio/u32-vsnprintf.c: New file.
32399         * lib/unistdio/u32-vsprintf.c: New file.
32400         * lib/unistdio/u32-u32-asnprintf.c: New file.
32401         * lib/unistdio/u32-u32-asprintf.c: New file.
32402         * lib/unistdio/u32-u32-snprintf.c: New file.
32403         * lib/unistdio/u32-u32-sprintf.c: New file.
32404         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32405         * lib/unistdio/u32-u32-vasprintf.c: New file.
32406         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32407         * lib/unistdio/u32-u32-vsprintf.c: New file.
32408         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32409         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32410         * tests/unistdio/test-ulc-printf1.h: New file.
32411         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32412         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32413         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32414         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32415         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32416         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32417         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32418         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32419         * tests/unistdio/test-u8-asnprintf1.c: New file.
32420         * tests/unistdio/test-u8-asnprintf1.h: New file.
32421         * tests/unistdio/test-u8-printf1.h: New file.
32422         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32423         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32424         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32425         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32426         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32427         * tests/unistdio/test-u8-vasprintf1.c: New file.
32428         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32429         * tests/unistdio/test-u8-vsprintf1.c: New file.
32430         * tests/unistdio/test-u16-asnprintf1.c: New file.
32431         * tests/unistdio/test-u16-asnprintf1.h: New file.
32432         * tests/unistdio/test-u16-printf1.h: New file.
32433         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32434         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32435         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32436         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32437         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32438         * tests/unistdio/test-u16-vasprintf1.c: New file.
32439         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32440         * tests/unistdio/test-u16-vsprintf1.c: New file.
32441         * tests/unistdio/test-u32-asnprintf1.c: New file.
32442         * tests/unistdio/test-u32-asnprintf1.h: New file.
32443         * tests/unistdio/test-u32-printf1.h: New file.
32444         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32445         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32446         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32447         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32448         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32449         * tests/unistdio/test-u32-vasprintf1.c: New file.
32450         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32451         * tests/unistdio/test-u32-vsprintf1.c: New file.
32452         * modules/unistdio/base: New file.
32453         * modules/unistdio/u-printf-args: New file.
32454         * modules/unistdio/ulc-asnprintf: New file.
32455         * modules/unistdio/ulc-asprintf: New file.
32456         * modules/unistdio/ulc-fprintf: New file.
32457         * modules/unistdio/ulc-printf-parse: New file.
32458         * modules/unistdio/ulc-snprintf: New file.
32459         * modules/unistdio/ulc-sprintf: New file.
32460         * modules/unistdio/ulc-vasnprintf: New file.
32461         * modules/unistdio/ulc-vasprintf: New file.
32462         * modules/unistdio/ulc-vfprintf: New file.
32463         * modules/unistdio/ulc-vsnprintf: New file.
32464         * modules/unistdio/ulc-vsprintf: New file.
32465         * modules/unistdio/u8-asnprintf: New file.
32466         * modules/unistdio/u8-asprintf: New file.
32467         * modules/unistdio/u8-printf-parse: New file.
32468         * modules/unistdio/u8-snprintf: New file.
32469         * modules/unistdio/u8-sprintf: New file.
32470         * modules/unistdio/u8-vasnprintf: New file.
32471         * modules/unistdio/u8-vasprintf: New file.
32472         * modules/unistdio/u8-vsnprintf: New file.
32473         * modules/unistdio/u8-vsprintf: New file.
32474         * modules/unistdio/u8-u8-asnprintf: New file.
32475         * modules/unistdio/u8-u8-asprintf: New file.
32476         * modules/unistdio/u8-u8-snprintf: New file.
32477         * modules/unistdio/u8-u8-sprintf: New file.
32478         * modules/unistdio/u8-u8-vasnprintf: New file.
32479         * modules/unistdio/u8-u8-vasprintf: New file.
32480         * modules/unistdio/u8-u8-vsnprintf: New file.
32481         * modules/unistdio/u8-u8-vsprintf: New file.
32482         * modules/unistdio/u16-asnprintf: New file.
32483         * modules/unistdio/u16-asprintf: New file.
32484         * modules/unistdio/u16-printf-parse: New file.
32485         * modules/unistdio/u16-snprintf: New file.
32486         * modules/unistdio/u16-sprintf: New file.
32487         * modules/unistdio/u16-vasnprintf: New file.
32488         * modules/unistdio/u16-vasprintf: New file.
32489         * modules/unistdio/u16-vsnprintf: New file.
32490         * modules/unistdio/u16-vsprintf: New file.
32491         * modules/unistdio/u16-u16-asnprintf: New file.
32492         * modules/unistdio/u16-u16-asprintf: New file.
32493         * modules/unistdio/u16-u16-snprintf: New file.
32494         * modules/unistdio/u16-u16-sprintf: New file.
32495         * modules/unistdio/u16-u16-vasnprintf: New file.
32496         * modules/unistdio/u16-u16-vasprintf: New file.
32497         * modules/unistdio/u16-u16-vsnprintf: New file.
32498         * modules/unistdio/u16-u16-vsprintf: New file.
32499         * modules/unistdio/u32-asnprintf: New file.
32500         * modules/unistdio/u32-asprintf: New file.
32501         * modules/unistdio/u32-printf-parse: New file.
32502         * modules/unistdio/u32-snprintf: New file.
32503         * modules/unistdio/u32-sprintf: New file.
32504         * modules/unistdio/u32-vasnprintf: New file.
32505         * modules/unistdio/u32-vasprintf: New file.
32506         * modules/unistdio/u32-vsnprintf: New file.
32507         * modules/unistdio/u32-vsprintf: New file.
32508         * modules/unistdio/u32-u32-asnprintf: New file.
32509         * modules/unistdio/u32-u32-asprintf: New file.
32510         * modules/unistdio/u32-u32-snprintf: New file.
32511         * modules/unistdio/u32-u32-sprintf: New file.
32512         * modules/unistdio/u32-u32-vasnprintf: New file.
32513         * modules/unistdio/u32-u32-vasprintf: New file.
32514         * modules/unistdio/u32-u32-vsnprintf: New file.
32515         * modules/unistdio/u32-u32-vsprintf: New file.
32516         * modules/unistdio/ulc-asnprintf-tests: New file.
32517         * modules/unistdio/ulc-vasnprintf-tests: New file.
32518         * modules/unistdio/ulc-vasprintf-tests: New file.
32519         * modules/unistdio/ulc-vsnprintf-tests: New file.
32520         * modules/unistdio/ulc-vsprintf-tests: New file.
32521         * modules/unistdio/u8-asnprintf-tests: New file.
32522         * modules/unistdio/u8-vasnprintf-tests: New file.
32523         * modules/unistdio/u8-vasprintf-tests: New file.
32524         * modules/unistdio/u8-vsnprintf-tests: New file.
32525         * modules/unistdio/u8-vsprintf-tests: New file.
32526         * modules/unistdio/u16-asnprintf-tests: New file.
32527         * modules/unistdio/u16-vasnprintf-tests: New file.
32528         * modules/unistdio/u16-vasprintf-tests: New file.
32529         * modules/unistdio/u16-vsnprintf-tests: New file.
32530         * modules/unistdio/u16-vsprintf-tests: New file.
32531         * modules/unistdio/u32-asnprintf-tests: New file.
32532         * modules/unistdio/u32-vasnprintf-tests: New file.
32533         * modules/unistdio/u32-vasprintf-tests: New file.
32534         * modules/unistdio/u32-vsnprintf-tests: New file.
32535         * modules/unistdio/u32-vsprintf-tests: New file.
32536         * MODULES.html.sh (Unicode string functions): Add the new modules.
32537
32538 2007-07-01  Bruno Haible  <bruno@clisp.org>
32539
32540         * lib/sprintf.c (sprintf): Limit the available length estimation,
32541         to avoid address wraparound.
32542         * lib/vsprintf.c (vsprintf): Likewise.
32543         * modules/sprintf-posix (Dependencies): Add stdint.
32544         * modules/vsprintf-posix (Dependencies): Likewise.
32545
32546 2007-07-01  Bruno Haible  <bruno@clisp.org>
32547
32548         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32549         Windows PATH as well. Conservative double-quoting. Comments.
32550
32551 2007-07-01  Bruno Haible  <bruno@clisp.org>
32552             Eric Blake  <ebb9@byu.net>
32553             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32554
32555         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32556         empty components in $PATH, denoting '.'.
32557
32558 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32559
32560         * gnulib-tool: Fix indentation.
32561         (func_create_megatestdir): Likewise.
32562         Report by Bruno Haible.
32563
32564 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32565
32566         Sync from Automake.
32567         * build-aux/gnupload: Fix shell portability issues with for loops.
32568         Report by Karl Berry.
32569
32570 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32571
32572         * build-aux/maint.mk (POURL): Use translationproject.org.
32573
32574 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32575             Bruno Haible  <bruno@clisp.org>
32576
32577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32578         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32579         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32580         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32581         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32582
32583 2007-06-27  Bruno Haible  <bruno@clisp.org>
32584
32585         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32586         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32587
32588 2007-06-26  Karl Berry  <karl@gnu.org>
32589
32590         * MODULES.html.sh: remove xreadlink-with-size.
32591
32592 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32593
32594         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32595         method that I hope also handles the double-include problem noted
32596         by Bruno Haible in
32597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32598
32599 2007-06-23  Bruno Haible  <bruno@clisp.org>
32600
32601         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32602         Don't let the 'mostlyclean' target fail if the last subdirectory could
32603         not be removed.
32604         Reported by Karl Berry.
32605
32606 2007-06-23  Bruno Haible  <bruno@clisp.org>
32607
32608         * gnulib-tool (echo): Add a speedier workaround for ksh.
32609         * tests/test-echo.sh: Likewise.
32610
32611 2007-06-23  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32614         * tests/test-echo.sh: Likewise.
32615
32616 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32617
32618         * gnulib-tool (IFS): Initialize early, so we don't set it to
32619         empty later.
32620         (self_abspathname): Rewrite algorithm to set it, reindent.
32621         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32622         (func_create_megatestdir): Merge some sed scripts.
32623
32624 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32625
32626         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32627         exposed by Sun Studio 11 cc on Solaris 8.
32628
32629 2007-06-22  Bruno Haible  <bruno@clisp.org>
32630
32631         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32632         backslashes.
32633         * tests/test-echo.sh: New file.
32634
32635 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32636
32637         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32638         simplify `sed_replace_build_aux' scripts, they are portable but
32639         echoing them with `echo' is not.
32640         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32641
32642 2007-06-21  Karl Berry  <karl@gnu.org>
32643
32644         * config/srclist.txt: guess we can't handle the licenses via
32645         srclist at the moment.
32646
32647 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32648
32649         * MODULES.html.sh: Add include_next.
32650         * modules/include_next: New file.
32651
32652 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32653
32654         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32655         INCLUDE_NEXT.
32656         (gl_CHECK_NEXT_HEADERS): New macro.
32657         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32658         the obsolescent gl_ABSOLUTE_HEADER.
32659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32660         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32661         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32662         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32663         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32664         * m4/math_h.m4 (gl_MATH_H): Likewise.
32665         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32666         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32667         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32668         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32669         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32670         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32671         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32675         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32676         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32677         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32678         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32679         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32681         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32682         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32683         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32684         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32685         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32686         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32687         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32688         * lib/float_.h: Likewise.
32689         * lib/inttypes_.h: Likewise.
32690         * lib/math_.h: Likewise.
32691         * lib/search_.h: Likewise.
32692         * lib/signal_.h: Likewise.
32693         * lib/stdint_.h: Likewise.
32694         * lib/stdio_.h: Likewise.
32695         * lib/stdlib_.h: Likewise.
32696         * lib/string_.h: Likewise.
32697         * lib/sys_stat_.h: Likewise.
32698         * lib/sys_time_.h: Likewise.
32699         * lib/time_.h: Likewise.
32700         * lib/unistd_.h: Likewise.
32701         * lib/wchar_.h: Likewise.
32702         * lib/wctype_.h: Likewise.
32703         * lib/dirent_.h: Likewise.
32704         * lib/iconv_.h: Likewise.
32705         * lib/locale_.h: Likewise.
32706         * lib/netinet_in_.h: Likewise.
32707         * lib/sys_select_.h: Likewise.
32708         * lib/sys_socket_.h: Likewise.
32709         * lib/sysexits_.h: Likewise.
32710         * modules/fcntl (Depends-on): Depend on include_next, not
32711         absolute_header.
32712         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32713         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32714         * modules/fchdir: Likewise.
32715         * modules/float: Likewise.
32716         * modules/iconv_open: Likewise.
32717         * modules/inttypes: Likewise.
32718         * modules/locale: Likewise.
32719         * modules/math: Likewise.
32720         * modules/netinet_in: Likewise.
32721         * modules/search: Likewise.
32722         * modules/signal: Likewise.
32723         * modules/stdint: Likewise.
32724         * modules/stdio: Likewise.
32725         * modules/stdlib: Likewise.
32726         * modules/string: Likewise.
32727         * modules/sys_select: Likewise.
32728         * modules/sys_socket: Likewise.
32729         * modules/sys_stat: Likewise.
32730         * modules/sys_time: Likewise.
32731         * modules/sysexits: Likewise.
32732         * modules/time: Likewise.
32733         * modules/unistd: Likewise.
32734         * modules/wchar: Likewise.
32735         * modules/wctype: Likewise.
32736         * modules/sys_stat: Change maintainer to "all".
32737         * modules/unistd: Likewise.
32738
32739 2007-06-20  Karl Berry  <karl@gnu.org>
32740
32741         * config/srclist.txt: track www changes in license files.
32742
32743 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32744
32745         * build-aux/bootstrap: Remove stray dot.
32746         Make sure build_aux settings are honored when linking
32747         gnulib_extra_files.
32748
32749 2007-06-19  Eric Blake  <ebb9@byu.net>
32750
32751         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32752         Allow compilation on cygwin.
32753
32754 2007-06-19  Jim Meyering  <jim@meyering.net>
32755
32756         xreadlink-with-size: Remove module.  No longer used.
32757         Ex-callers now use xreadlink or mreadlink-with-size.
32758         * modules/xreadlink-with-size: Remove module.
32759         * lib/xreadlink-with-size.c: Remove file.
32760         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32761         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32762         just before the function definition *is* accurate.
32763
32764         Eliminate one way canonicalize_filename_mode could exit.
32765         * lib/canonicalize.c (canonicalize_filename_mode):
32766         Use mreadlink_with_size, not xreadlink_with_size.
32767
32768 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32769
32770         Detect porting problems to FreeBSD/arm, which has time_t wider than
32771         long int.  Original problem reported for GNU diff by Xin Li in
32772         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32773         * modules/getdate (Depends-on): Add intprops, verify.
32774         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32775         is an integer type no wider than long int.
32776
32777 2007-06-18  Jim Meyering  <jim@meyering.net>
32778
32779         New module: mreadlink-with-size.
32780         * MODULES.html.sh: Add mreadlink-with-size.
32781         * modules/mreadlink-with-size: New module
32782         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32783         not xreadlink-with-size.
32784         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32785
32786 2007-06-16  Bruno Haible  <bruno@clisp.org>
32787
32788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32789         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32790         Reported by Gary V. Vaughan <gary@gnu.org>.
32791
32792 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32793
32794         Revamp lchown so that it lives in unistd.h where it belongs.
32795         * lib/lchown.h: Remove.
32796         * lib/dirchownmod.c: Don't include lib/lchown.h.
32797         * lib/fchownat.c: Likewise.
32798         * lib/openat.c: Likewise.
32799         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32800         does not follow symlinks.
32801         (EOPNOTSUPP): Define if not defined.
32802         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32803         is defined to 0.
32804         (lchown): New decl.
32805         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32806         Do not check for lchown decl.
32807         Set REPLACE_LCHOWN.
32808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32809         REPLACE_LCHOWN.
32810         * modules/chown: Make it clear it follows symlinks.
32811         * modules/lchown: Make it clear it doesn't follow symlinks.
32812         (Files): Remove lib/lchown.h
32813         (Depends-on): Add unistd.
32814         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32815         (Include): Include <unistd.h>, not "lchown.h".
32816         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32817         REPLACE_LCHOWN.
32818
32819 2007-06-15  Jim Meyering  <jim@meyering.net>
32820
32821         Change license (GPL to LGPL) of fsusage and dependents.
32822         * modules/fsusage (License): Change to LGPL.
32823         * modules/full-read (License): Likewise.
32824         * modules/full-write (License): Likewise.
32825         * modules/safe-read (License): Likewise.
32826         * modules/safe-write (License): Likewise.
32827
32828 2007-06-14  Ben Pfaff  <blp@gnu.org>
32829
32830         Missing part of allocsa -> malloca transition.
32831         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32832         gl_MALLOCA.
32833
32834 2007-06-12  Bruno Haible  <bruno@clisp.org>
32835
32836         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32837         to ia64, x86_64, i386.
32838         Reported by Eric Blake.
32839
32840 2007-06-12  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32843         cross-compiling to x86_64.
32844
32845 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32846
32847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32848         glitch reported by Ralf Wildenhues in
32849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32850
32851         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32852         Vin Shelton.
32853
32854 2007-06-11  Bruno Haible  <bruno@clisp.org>
32855
32856         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32857         replacement string.
32858         Reported by Eric Blake.
32859
32860 2007-06-10  Bruno Haible  <bruno@clisp.org>
32861
32862         Prepare vasnprintf code for use with Unicode strings.
32863         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32864         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32865         TYPE_U32_STRING.
32866         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32867         a_u32_string variants.
32868         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32869         * lib/printf-args.c: Don't include config.h and the specification
32870         header if PRINTF_FETCHARGS is already defined.
32871         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32872         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32873         TYPE_U16_STRING, TYPE_U32_STRING.
32874         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32875         u16_directive, u16_directives, u32_directive, u32_directives): New
32876         types.
32877         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32878         New declarations.
32879         * lib/printf-parse.c: Don't include config.h and the specification
32880         header if PRINTF_PARSE is already defined. Eliminate the set of
32881         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32882         them now. Include c-ctype.h.
32883         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32884         directive and CHAR_T_ONLY_ASCII.
32885         * lib/vasnprintf.c: Don't include config.h and the specification header
32886         if VASNPRINTF is already defined.
32887         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32888         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32889         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32890         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32891         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32892         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32893         code accordingly.
32894         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32895         pad_ourselves also in this case, with the 'c' and 's' directives, and
32896         with a different notion of "width".
32897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32898
32899 2007-06-10  Bruno Haible  <bruno@clisp.org>
32900
32901         * modules/unistr/u32-mbsnlen: New file.
32902         * lib/unistr/u32-mbsnlen.c: New file.
32903
32904         * modules/unistr/u16-mbsnlen: New file.
32905         * lib/unistr/u16-mbsnlen.c: New file.
32906
32907         * modules/unistr/u8-mbsnlen: New file.
32908         * lib/unistr/u8-mbsnlen.c: New file.
32909
32910         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32911         declarations.
32912
32913 2007-06-10  Bruno Haible  <bruno@clisp.org>
32914
32915         * lib/string_.h (mbsnlen): New declaration.
32916         * lib/mbsnlen.c: New file.
32917         * m4/mbsnlen.m4: New file.
32918         * modules/mbsnlen: New file.
32919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32920         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32921         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32922
32923 2007-06-10  Bruno Haible  <bruno@clisp.org>
32924
32925         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32926
32927 2007-06-10  Bruno Haible  <bruno@clisp.org>
32928
32929         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32930         * lib/mbuiter.h: Likewise.
32931
32932 2007-06-10  Bruno Haible  <bruno@clisp.org>
32933
32934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32935         declaration.
32936
32937 2007-06-10  Karl Berry  <karl@gnu.org>
32938
32939         * config/srclist.txt: remove gettext entries, Bruno prefers
32940         to update individually.
32941
32942 2007-06-10  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32945         'maxlen'. Ensure only length + width bytes are allocated, not
32946         length + 1 + width.
32947
32948 2007-06-09  Bruno Haible  <bruno@clisp.org>
32949
32950         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32951         (CHAR_T): Remove macro.
32952         (VASNPRINTF): Update.
32953
32954 2007-06-09  Bruno Haible  <bruno@clisp.org>
32955
32956         * MODULES.html.sh (Unicode string functions): Add the new modules.
32957
32958         * modules/uniconv/u32-conv-to-enc: New file.
32959         * lib/uniconv/u32-conv-to-enc.c: New file.
32960         * modules/uniconv/u32-conv-to-enc-tests: New file.
32961         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32962
32963         * modules/uniconv/u16-conv-to-enc: New file.
32964         * lib/uniconv/u16-conv-to-enc.c: New file.
32965         * lib/uniconv/u-conv-to-enc.h: New file.
32966         * modules/uniconv/u16-conv-to-enc-tests: New file.
32967         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32968
32969         * modules/uniconv/u8-conv-to-enc: New file.
32970         * lib/uniconv/u8-conv-to-enc.c: New file.
32971         * modules/uniconv/u8-conv-to-enc-tests: New file.
32972         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32973
32974         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32975         u32_conv_to_encoding): New declarations.
32976
32977 2007-06-09  Bruno Haible  <bruno@clisp.org>
32978
32979         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32980
32981 2007-06-09  Bruno Haible  <bruno@clisp.org>
32982
32983         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32984         * modules/malloca: Renamed from modules/allocsa, updated.
32985         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32986         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32987         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32988         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32989         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32990         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32991         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32992         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32993         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32994         * modules/c-strcasestr (Depends-on): Update.
32995         * lib/c-strcasestr.c: Update.
32996         * modules/c-strstr (Depends-on): Update.
32997         * lib/c-strstr.c: Update.
32998         * modules/canonicalize-lgpl (Depends-on): Update.
32999         * lib/canonicalize-lgpl.c: Update.
33000         * modules/clean-temp (Depends-on): Update.
33001         * lib/clean-temp.c: Update.
33002         * modules/csharpcomp (Depends-on): Update.
33003         * lib/csharpcomp.c: Update.
33004         * modules/csharpexec (Depends-on): Update.
33005         * lib/csharpexec.c: Update.
33006         * modules/javacomp (Depends-on): Update.
33007         * lib/javacomp.c: Update.
33008         * modules/javaexec (Depends-on): Update.
33009         * lib/javaexec.c: Update.
33010         * modules/mbscasestr (Depends-on): Update.
33011         * lib/mbscasestr.c: Update.
33012         * modules/mbsstr (Depends-on): Update.
33013         * lib/mbsstr.c: Update.
33014         * modules/setenv (Depends-on): Update.
33015         * lib/setenv.c: Update.
33016         * modules/strcasestr (Depends-on): Update.
33017         * lib/strcasestr.c: Update.
33018         * modules/striconveha (Depends-on): Update.
33019         * lib/striconveha.c: Update.
33020         * modules/relocatable-prog-wrapper (Files): Update.
33021         * lib/relocwrapper.c: Update.
33022         * build-aux/install-reloc: Update.
33023         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33024
33025 2007-06-08  Bruno Haible  <bruno@clisp.org>
33026
33027         Port to uClibc.
33028         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33029         * lib/fpurge.c (fpurge): Likewise.
33030         * lib/freading.c (freading): Likewise.
33031         * lib/fseeko.c (rpl_fseeko): Likewise.
33032         * lib/fseterr.c (fseterr): Likewise.
33033         * lib/fwriting.c (fwriting): Likewise.
33034         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33035
33036 2007-06-08  Bruno Haible  <bruno@clisp.org>
33037
33038         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33039         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33040         * modules/gettext (Files): Add m4/intlmacosx.m4.
33041
33042 2007-06-07  Bruno Haible  <bruno@clisp.org>
33043
33044         * modules/localename-tests: New file.
33045         * tests/test-localename.c: New file.
33046
33047         New module 'localename'.
33048         * lib/localename.h: New file.
33049         * lib/localename.c: New file, from GNU gettext.
33050         * m4/localename.m4: New file.
33051         * modules/localename: New file.
33052
33053 2007-06-07  Bruno Haible  <bruno@clisp.org>
33054
33055         Work around the lack of <wchar.h> on some builds of uClibc.
33056         * doc/headers/wchar.texi: Update.
33057         * lib/wchar_.h: Include <wchar.h> only if it exists.
33058         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33059         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33060         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33061         doesn't exist.
33062         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33063         * modules/mbfile (Depends-on): Add wchar.
33064         * modules/mbiter (Depends-on): Likewise.
33065         * modules/mbuiter (Depends-on): Likewise.
33066         Reported by Simon Josefsson.
33067
33068 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33069
33070         Work around problem reported by Steven M. Schweda in
33071         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33072         Tru64 5.1B with the Compaq compiler environment installed declares
33073         an 'isblank' function but does not define it in the C library.
33074         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33075         * lib/regex_internal.h (isblank): Likewise.
33076         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33077         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33078
33079 2007-06-05  Bruno Haible  <bruno@clisp.org>
33080
33081         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33082         ia64.
33083         * modules/printf-safe: New file.
33084         * modules/fprintf-posix (Depends-on): Add printf-safe.
33085         * modules/printf-posix (Depends-on): Likewise.
33086         * modules/snprintf-posix (Depends-on): Likewise.
33087         * modules/sprintf-posix (Depends-on): Likewise.
33088         * modules/vasnprintf-posix (Depends-on): Likewise.
33089         * modules/vasprintf-posix (Depends-on): Likewise.
33090         * modules/vfprintf-posix (Depends-on): Likewise.
33091         * modules/vprintf-posix (Depends-on): Likewise.
33092         * modules/vsnprintf-posix (Depends-on): Likewise.
33093         * modules/vsprintf-posix (Depends-on): Likewise.
33094         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33095         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33096         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33097         "no" on i386, x86_64, ia64.
33098         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33099         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33100         on i386, x86_64, ia64.
33101         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33102         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33103         on i386, x86_64, ia64.
33104         * tests/test-vasnprintf-posix.c: Include float.h.
33105         (LDBL80_WORDS): New macro.
33106         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33107         on i386, x86_64, ia64.
33108         * tests/test-vasprintf-posix.c: Include float.h.
33109         (LDBL80_WORDS): New macro.
33110         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33111         on i386, x86_64, ia64.
33112         * tests/test-snprintf-posix.c: Include float.h.
33113         * tests/test-sprintf-posix.c: Likewise.
33114         * tests/test-vsnprintf-posix.c: Likewise.
33115         * tests/test-vsprintf-posix.c: Likewise.
33116
33117 2007-06-05  Bruno Haible  <bruno@clisp.org>
33118
33119         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33120         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33121         non-IEEE numbers on i386, x86_64, ia64.
33122         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33123         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33124         * tests/test-isnanl.h: Include float.h.
33125         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33126
33127 2007-06-05  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33130         also the %a / %A. Handle the %a / %A code before this extra handling.
33131
33132 2007-06-05  Bruno Haible  <bruno@clisp.org>
33133
33134         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33135         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33136
33137 2007-06-05  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33140         typo in variable name.
33141
33142 2007-06-05  Eric Blake  <ebb9@byu.net>
33143
33144         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33145         Reported by Simon Josefsson.
33146
33147 2007-06-04  Bruno Haible  <bruno@clisp.org>
33148
33149         Avoid test failures on some PowerPC platforms.
33150         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33151         Define differently for PowerPC.
33152         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33153         Reported by Gary V. Vaughan <gary@gnu.org>.
33154
33155 2007-06-02  Bruno Haible  <bruno@clisp.org>
33156
33157         Fix test-stdint failure on FreeBSD/ia64.
33158         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33159         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33160         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33161         * doc/headers/stdint.texi: Update.
33162
33163 2007-06-01  Bruno Haible  <bruno@clisp.org>
33164
33165         * tests/test-binary-io.c (main): Pass a third argument to open().
33166         Reported by Gary V. Vaughan <gary@gnu.org>.
33167
33168 2007-06-01  Bruno Haible  <bruno@clisp.org>
33169
33170         * doc/functions/frexpl.texi: Update for mingw.
33171
33172 2007-06-01  Bruno Haible  <bruno@clisp.org>
33173
33174         * tests/test-lseek.c (main): Disable test of errno for invalid third
33175         argument.
33176         * doc/functions/lseek.texi: Update.
33177         Reported by Gary V. Vaughan <gary@gnu.org>.
33178
33179 2007-05-28  Bruno Haible  <bruno@clisp.org>
33180
33181         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33182
33183 2007-05-31  Eric Blake  <ebb9@byu.net>
33184
33185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33186         cross compiling.
33187
33188 2007-05-30  Eric Blake  <ebb9@byu.net>
33189         and Bruno Haible  <bruno@clisp.org>
33190
33191         Work around mingw test failures exposed by m4-1.4.9b.
33192         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33193         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33194         moment.
33195
33196 2007-05-30  Bruno Haible  <bruno@clisp.org>
33197
33198         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33199         assuming that they are closed. Needed on HP-UX 11.
33200
33201 2007-05-29  Bruno Haible  <bruno@clisp.org>
33202
33203         Fix a problem with #include_next.
33204         * lib/dirent_.h: Split the double-inclusion guard.
33205         * lib/fcntl_.h: Likewise.
33206         * lib/float_.h: Likewise.
33207         * lib/iconv_.h: Likewise.
33208         * lib/inttypes_.h: Likewise.
33209         * lib/locale_.h: Likewise.
33210         * lib/math_.h: Likewise.
33211         * lib/netinet_in_.h: Likewise.
33212         * lib/search_.h: Likewise.
33213         * lib/signal_.h: Likewise.
33214         * lib/stdint_.h: Likewise.
33215         * lib/stdio_.h: Likewise.
33216         * lib/stdlib_.h: Likewise.
33217         * lib/string_.h: Likewise.
33218         * lib/sys_select_.h: Likewise.
33219         * lib/sys_socket_.h: Likewise.
33220         * lib/sys_stat_.h: Likewise.
33221         * lib/sys_time_.h: Likewise.
33222         * lib/sysexits_.h: Likewise.
33223         * lib/time_.h: Likewise.
33224         * lib/unistd_.h: Likewise.
33225         * lib/wchar_.h: Likewise.
33226         * lib/wctype_.h: Likewise.
33227
33228 2007-05-29  Bruno Haible  <bruno@clisp.org>
33229
33230         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33231         for the moment.
33232
33233 2007-05-29  Bruno Haible  <bruno@clisp.org>
33234
33235         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33236         invocation.
33237         Reported by Eric Blake.
33238
33239 2007-05-29  Bruno Haible  <bruno@clisp.org>
33240
33241         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33242         compiling case.
33243
33244 2007-05-29  Eric Blake  <ebb9@byu.net>
33245             Bruno Haible  <bruno@clisp.org>
33246
33247         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33248         cross compiles.
33249
33250 2007-05-28  Eric Blake  <ebb9@byu.net>
33251
33252         * modules/closein-tests (test_closein_LDADD): Support test on
33253         cygwin with libtool.
33254
33255 2007-05-28  Bruno Haible  <bruno@clisp.org>
33256
33257         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33258         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33259         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33260         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33261         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33262         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33263         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33264         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33265         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33266
33267 2007-05-28  Eric Blake  <ebb9@byu.net>
33268
33269         Unconditionally include <config.h> in unit tests.
33270         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33271         * tests/test-allocsa.c, tests/test-arcfour.c,
33272         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33273         tests/test-array_list.c, tests/test-array_oset.c,
33274         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33275         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33276         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33277         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33278         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33279         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33280         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33281         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33282         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33283         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33284         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33285         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33286         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33287         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33288         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33289         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33290         test-md5.c, test-memmem.c, test-printf-posix.c,
33291         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33292         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33293         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33294         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33295         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33296         test-vasnprintf-posix2.c, test-vasnprintf.c,
33297         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33298         test-vfprintf-posix.c, test-vprintf-posix.c,
33299         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33300         test-xvasprintf.c: Likewise.
33301
33302 2007-05-28  Bruno Haible  <bruno@clisp.org>
33303
33304         * gnulib-tool (func_import): Remember the --with-tests command-line
33305         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33306         Reported by Eric Blake.
33307
33308 2007-05-28  Bruno Haible  <bruno@clisp.org>
33309
33310         * modules/ftell-tests: New file.
33311         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33312         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33313
33314         * lib/ftell.c: New file.
33315         * modules/ftell: New file.
33316         * m4/ftell.m4: New file.
33317         * doc/functions/ftell.texi: Update.
33318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33319         REPLACE_FTELL.
33320         * lib/stdio_.h (rpl_ftell): New declaration.
33321         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33322         REPLACE_FTELL.
33323
33324 2007-05-28  Eric Blake  <ebb9@byu.net>
33325
33326         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33327
33328 2007-05-28  Bruno Haible  <bruno@clisp.org>
33329
33330         * modules/fseek-tests: New file.
33331         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33332         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33333
33334         * lib/fseek.c: New file.
33335         * modules/fseek: New file.
33336         * m4/fseek.m4: New file.
33337         * doc/functions/fseek.texi: Update.
33338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33339         REPLACE_FSEEK.
33340         * lib/stdio_.h (rpl_fseek): New declaration.
33341         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33342         REPLACE_FSEEK.
33343
33344 2007-05-28  Bruno Haible  <bruno@clisp.org>
33345
33346         * lib/stdio_.h (fflush): More comments.
33347
33348 2007-05-28  Bruno Haible  <bruno@clisp.org>
33349
33350         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33351         runtime test.
33352
33353 2007-05-28  Eric Blake  <ebb9@byu.net>
33354
33355         Improve lseek module.
33356         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33357         * lib/unistd_.h (lseek): Scale back link warning message.
33358         * tests/test-lseek.c: Beef up test.
33359         * tests/test-lseek.sh: Exercise more facets of lseek.
33360         Reported by Bruno Haible.
33361
33362 2007-05-28  Bruno Haible  <bruno@clisp.org>
33363
33364         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33365         to define.
33366
33367 2007-05-27  Bruno Haible  <bruno@clisp.org>
33368
33369         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33370
33371 2007-05-27  Bruno Haible  <bruno@clisp.org>
33372
33373         * modules/openmp: New file.
33374         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33375         Noah Misch.
33376
33377 2007-05-26  Bruno Haible  <bruno@clisp.org>
33378
33379         * modules/chdir-long (Depends-on): Add fchdir.
33380         * modules/chdir-safer (Depends-on): Likewise.
33381         * modules/fts (Depends-on): Likewise.
33382         * modules/fts-lgpl (Depends-on): Likewise.
33383         * modules/openat (Depends-on): Likewise.
33384         * modules/savewd (Depends-on): Likewise.
33385
33386 2007-05-24  Eric Blake  <ebb9@byu.net>
33387
33388         Fix lseek on mingw.
33389         * modules/lseek: New module.
33390         * m4/lseek.m4: New file.
33391         * lib/lseek.c: New file.
33392         * modules/lseek-tests: New file.
33393         * tests/test-lseek.c: New file.
33394         * tests/test-lseek.sh: New file.
33395         * MODULES.html.sh: Document lseek module.
33396         * modules/fflush (Depends-on): Add lseek, fseeko.
33397         * modules/fseeko (Depends-on): Likewise.
33398         * modules/ftello (Depends-on): Likewise.
33399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33400         broken.
33401         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33402         broken.
33403         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33404         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33405         * lib/ftello.c (rpl_ftello): Likewise.
33406         * tests/test-fseeko.c (main): Test this.
33407         * tests/test-fseeko.sh: Likewise.
33408         * tests/test-ftello.c (main): Likewise.
33409         * tests/test-ftello.sh: Likewise.
33410         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33411         implies replacing fseek.
33412         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33413         HAVE_FTELLO.
33414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33415         * modules/unistd (Makefile.am): Likewise.
33416         * lib/unistd_.h (lseek): Declare a replacement.
33417         * doc/functions/lseek.texi (lseek): Document this fix.
33418         * doc/functions/fseek.texi (fseek): Likewise.
33419         * doc/functions/ftell.texi (ftell): Likewise.
33420
33421 2007-05-24  Bruno Haible  <bruno@clisp.org>
33422
33423         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33424         in the printed representation of a NaN.
33425         * tests/test-vasprintf-posix.c (test_function): Likewise.
33426         * tests/test-snprintf-posix.h (test_function): Likewise.
33427         * tests/test-sprintf-posix.h (test_function): Likewise.
33428         Reported by Eric Blake.
33429
33430 2007-05-23  Eric Blake  <ebb9@byu.net>
33431
33432         Fix fseeko/ftello on cygwin 1.5.24.
33433         * doc/functions/fseeko.texi (fseeko): Document the fix.
33434         * doc/functions/ftello.texi (ftello): Document the fix.
33435         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33436         * doc/functions/stdout.text (stdout): New file.
33437         * doc/functions/stderr.text (stderr): New file.
33438         * doc/gnulib.texi (Function Substitutes): Use new files.
33439         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33440         prior to 1.7.0.
33441         * tests/test-ftello.c (main): Likewise for ftello.
33442         * tests/test-fseeko.sh: New file.
33443         * tests/test-ftello.sh: New file.
33444         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33445         with seekable stdin.
33446         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33448         (gl_REPLACE_FSEEKO): New macro.
33449         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33450         * modules/fseeko (Files): Distribute fseeko.c.
33451         * modules/ftello (Files): Distribute ftello.c.
33452         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33453         mode.
33454         * lib/ftello.c (rpl_ftello): New file.
33455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33456         fseeko, ftello.
33457         (gl_STDIN_LARGE_OFFSET): New macro.
33458         * modules/stdio (Makefile.am): Perform the replacement.
33459         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33460
33461 2007-05-23  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33464         GNULIB_POSIXCHECK is defined.
33465
33466 2007-05-21  Bruno Haible  <bruno@clisp.org>
33467
33468         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33469         Check also the output for NaN arguments. When cross-compiling, guess
33470         no on IRIX.
33471         * lib/vasnprintf.c: Update comments.
33472         * tests/test-vasnprintf-posix.c (strisnan): New function.
33473         (test_function): Use it.
33474         * tests/test-vasprintf-posix.c (strisnan): New function.
33475         (test_function): Use it.
33476         * tests/test-snprintf-posix.h (strisnan): New function.
33477         (test_function): Use it.
33478         * tests/test-sprintf-posix.h (strisnan): New function.
33479         (test_function): Use it.
33480         Reported by Eric Blake.
33481
33482 2007-05-20  Bruno Haible  <bruno@clisp.org>
33483
33484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33485         numbers that fails on BeOS.
33486         * doc/functions/frexpl.texi: Update.
33487
33488 2007-05-20  Jim Meyering  <jim@meyering.net>
33489
33490         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33491         forced upon us by glibc-2.6.
33492
33493 2007-05-20  Bruno Haible  <bruno@clisp.org>
33494
33495         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33496         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33497         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33498         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33499         NEED_PRINTF_INFINITE.
33500         (is_infinitel): New function.
33501         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33503         gl_PREREQ_VASNPRINTF_INFINITE.
33504         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33506         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33507         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33508         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33509         gl_PREREQ_VASNPRINTF_INFINITE.
33510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33511         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33512         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33514         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33517         * doc/functions/fprintf.texi: Update.
33518         * doc/functions/printf.texi: Update.
33519         * doc/functions/snprintf.texi: Update.
33520         * doc/functions/sprintf.texi: Update.
33521         * doc/functions/vfprintf.texi: Update.
33522         * doc/functions/vprintf.texi: Update.
33523         * doc/functions/vsnprintf.texi: Update.
33524         * doc/functions/vsprintf.texi: Update.
33525
33526 2007-05-20  Bruno Haible  <bruno@clisp.org>
33527
33528         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33529         was not found in libc.
33530         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33531
33532 2007-05-20  Bruno Haible  <bruno@clisp.org>
33533
33534         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33535         printed as "-nan" instead of "nan".
33536         * tests/test-vasprintf-posix.c (test_function): Likewise.
33537         * tests/test-snprintf-posix.h (test_function): Likewise.
33538         * tests/test-sprintf-posix.h (test_function): Likewise.
33539         Needed for HP-UX 11.
33540
33541 2007-05-20  Jim Meyering  <jim@meyering.net>
33542
33543         Fix buggy test for the fchownat-deref bug.
33544         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33545         symlink required for the run-test.  Without it, this test would
33546         always declare that fchownat doesn't work, and client code would
33547         unnecessarily use the replacement function with fixed libc.
33548         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33549         Reported by Greg Schafer.
33550
33551 2007-05-19  Bruno Haible  <bruno@clisp.org>
33552
33553         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33554         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33555         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33556         Needed for IRIX 6.5 and Solaris 2.5.1.
33557
33558 2007-05-19  Bruno Haible  <bruno@clisp.org>
33559
33560         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33561         (test_function): Skip tests involving -0.0 on platforms where
33562         -0.0 = 0.0.
33563         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33564         (test_function): Skip tests involving -0.0 on platforms where
33565         -0.0 = 0.0.
33566         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33567         (test_function): Skip tests involving -0.0 on platforms where
33568         -0.0 = 0.0.
33569         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33570         (test_function): Skip tests involving -0.0 on platforms where
33571         -0.0 = 0.0.
33572         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33573         tests.
33574         * tests/test-printf-posix.h (test_function): Likewise.
33575         * tests/test-printf-posix.output: Remove all -0.0 related results.
33576         Needed for IRIX 6.5.
33577
33578 2007-05-19  Bruno Haible  <bruno@clisp.org>
33579
33580         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33581         printed as "nan0x7fffffff" instead of "nan".
33582         * tests/test-vasprintf-posix.c (test_function): Likewise.
33583         * tests/test-snprintf-posix.h (test_function): Likewise.
33584         * tests/test-sprintf-posix.h (test_function): Likewise.
33585         * tests/test-fprintf-posix.h (NaN): Remove macro.
33586         (test_function): Remove all NaN related tests.
33587         * tests/test-printf-posix.h (NaN): Remove macro.
33588         (test_function): Remove all NaN related tests.
33589         * tests/test-printf-posix.output: Remove all NaN related results.
33590         Needed for IRIX 6.5.
33591
33592 2007-05-19  Bruno Haible  <bruno@clisp.org>
33593
33594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33596
33597 2007-05-19  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/float_.h: New file.
33600         * m4/float_h.m4: New file.
33601         * modules/float: New file.
33602         * modules/isnanl (Dependencies): Add float.
33603         * modules/isnanl-nolibm (Dependencies): Likewise.
33604         * modules/mathl (Dependencies): Likewise.
33605         * modules/printf-frexpl (Dependencies): Likewise.
33606         * modules/signbit (Dependencies): Likewise.
33607         * modules/vasnprintf (Dependencies): Likewise.
33608         * doc/headers/float.texi: Update.
33609
33610 2007-05-19  Jim Meyering  <jim@meyering.net>
33611
33612         * lib/utimens.c (gl_futimens): Rename from futimens,
33613         now that glibc-2.6 declares futimens.
33614         * lib/utimens.h: Likewise.
33615
33616 2007-05-19  Bruno Haible  <bruno@clisp.org>
33617
33618         Avoid test failures on mingw.
33619         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33620         * tests/test-printf-posix.sh: Likewise.
33621         * tests/test-vfprintf-posix.sh: Likewise.
33622         * tests/test-vprintf-posix.sh: Likewise.
33623
33624 2007-05-19  Bruno Haible  <bruno@clisp.org>
33625
33626         Fix *printf result for NaN, Inf, -0.0 on mingw.
33627         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33628         * lib/vasnprintf.c: Include math.h and isnan.h.
33629         (is_infinite_or_zero): New function.
33630         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33631         values in the %f, %F, %e, %E, %g, %G directives.
33632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33634         gl_PRINTF_INFINITE and test its result. Invoke
33635         gl_PREREQ_VASNPRINTF_INFINITE.
33636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33643         * doc/functions/fprintf.texi: Update.
33644         * doc/functions/printf.texi: Update.
33645         * doc/functions/snprintf.texi: Update.
33646         * doc/functions/sprintf.texi: Update.
33647         * doc/functions/vfprintf.texi: Update.
33648         * doc/functions/vprintf.texi: Update.
33649         * doc/functions/vsnprintf.texi: Update.
33650         * doc/functions/vsprintf.texi: Update.
33651
33652 2007-05-19  Bruno Haible  <bruno@clisp.org>
33653
33654         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33655         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33656         Instead of multiplying with 10^k, set extra_zeroes to k.
33657         (scale10_round_long_double): Remove function.
33658
33659 2007-05-18  Bruno Haible  <bruno@clisp.org>
33660
33661         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33662         introduced on 2007-05-06.
33663
33664 2007-05-18  Bruno Haible  <bruno@clisp.org>
33665
33666         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33667         %g directives.
33668         * tests/test-vasprintf-posix.c (test_function): Likewise.
33669         * tests/test-snprintf-posix.h (test_function): Likewise.
33670         * tests/test-sprintf-posix.h (test_function): Likewise.
33671
33672 2007-05-18  Bruno Haible  <bruno@clisp.org>
33673
33674         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33675         (strmatch): New function.
33676         (test_function): Test the %f directive on numbers of various exponents.
33677         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33678         (strmatch): New function.
33679         (test_function): Test the %f directive on numbers of various exponents.
33680         * tests/test-snprintf-posix.h (strmatch): New function.
33681         (test_function): Test the %f directive on numbers of various exponents.
33682         * tests/test-sprintf-posix.h (strmatch): New function.
33683         (test_function): Test the %f directive on numbers of various exponents.
33684         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33685         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33686         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33687         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33688
33689 2007-05-18  Bruno Haible  <bruno@clisp.org>
33690
33691         Add support for 'long double' number output.
33692         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33693         * lib/vasnprintf.c: Include math.h and float+.h.
33694         (mp_limb_t): New type.
33695         (GMP_LIMB_BITS): New macro.
33696         (mp_twolimb_t): New type.
33697         (GMP_TWOLIMB_BITS): New macro.
33698         (mpn_t): New type.
33699         (multiply, divide, convert_to_decimal, decode_long_double,
33700         scale10_round_long_double, scale10_round_decimal_long_double,
33701         floorlog10l): New functions.
33702         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33703         for the %f, %F, %e, %E, %g, %G directives.
33704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33705         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33706         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33707         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33709         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33710         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33715         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33716         * modules/snprintf-posix (Depends-on): Likewise.
33717         * modules/sprintf-posix (Depends-on): Likewise.
33718         * modules/vasnprintf-posix (Depends-on): Likewise.
33719         * modules/vasprintf-posix (Depends-on): Likewise.
33720         * modules/vfprintf-posix (Depends-on): Likewise.
33721         * modules/vsnprintf-posix (Depends-on): Likewise.
33722         * modules/vsprintf-posix (Depends-on): Likewise.
33723         * modules/vasnprintf (Files): Add lib/float+.h.
33724         * doc/functions/fprintf.texi: Update.
33725         * doc/functions/printf.texi: Update.
33726         * doc/functions/snprintf.texi: Update.
33727         * doc/functions/sprintf.texi: Update.
33728         * doc/functions/vfprintf.texi: Update.
33729         * doc/functions/vprintf.texi: Update.
33730         * doc/functions/vsnprintf.texi: Update.
33731         * doc/functions/vsprintf.texi: Update.
33732
33733 2007-05-18  Bruno Haible  <bruno@clisp.org>
33734
33735         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33736
33737 2007-05-18  Bruno Haible  <bruno@clisp.org>
33738
33739         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33740         for printing 64-bit integers. Needed for mingw.
33741
33742 2007-05-18  Bruno Haible  <bruno@clisp.org>
33743
33744         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33745         gl_FUNC_FREXPL_WORKS.
33746         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33747
33748 2007-05-18  Bruno Haible  <bruno@clisp.org>
33749
33750         * modules/frexpl-nolibm-tests: New file.
33751
33752         * modules/frexpl-nolibm: New file.
33753         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33754
33755 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33756
33757         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33758         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33759         GCC 4.2, which otherwise issues a lot of warnings.
33760         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33761         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33762         Likewise.
33763         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33764         * modules/iconv_open (iconv.h): Likewise.
33765         * modules/locale (locale.h): Likewise.
33766         * modules/netinet_in (netinet/in.h): Likewise.
33767         * modules/sys_select (sys_select.h): Likewise.
33768         * modules/sys_socket (sys/socket.h): Likewise.
33769         * modules/sys_stat (sys/stat.h): Likewise.
33770         * modules/sysexits (sysexits.h): Likewise.
33771         * modules/unistd (unistd.h): Likewise.
33772
33773 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33774
33775         * modules/closein-tests (Makefile.am): Distribute
33776         `test-closein.sh'.
33777
33778 2007-05-17  Bruno Haible  <bruno@clisp.org>
33779
33780         * tests/test-printf-posix.output: Renamed from
33781         tests/test-fprintf-posix.out.
33782         * modules/fprintf-posix-tests: Update.
33783         * modules/printf-posix-tests: Update.
33784         * modules/vfprintf-posix-tests: Update.
33785         * modules/vprintf-posix-tests: Update.
33786         * tests/test-fprintf-posix.sh: Update.
33787         * tests/test-printf-posix.sh: Update.
33788         * tests/test-vfprintf-posix.sh: Update.
33789         * tests/test-vprintf-posix.sh: Update.
33790         Reported by Ralf Wildenhues.
33791
33792 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33793
33794         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33795         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33796         GCC 4.2, which otherwise issues a lot of warnings.
33797         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33798         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33799         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33800         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33801         it should no longer be needed.
33802         * lib/string_.h: Likewise.
33803         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33804         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33805         * modules/inttypes (inttypes.h): Likewise.
33806         * modules/math (math.h): Likewise.
33807         * modules/search (search.h): Likewise.
33808         * modules/signal (signal.h): Likewise.
33809         * modules/stdint (stdint.h): Likewise.
33810         * modules/stdio (stdio.h): Likewise.
33811         * modules/stdlib (stdlib.h): Likewise.
33812         * modules/string (string.h): Likewise.
33813         * modules/sys_time (sys/time.h): Likewise.
33814         * modules/time (time.h): Likewise.
33815         * modules/wchar (wchar.h): Likewise.
33816         * modules/wctype (wtype.h): Likewise.
33817
33818 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33819
33820         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33821
33822 2007-05-13  Bruno Haible  <bruno@clisp.org>
33823
33824         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33825         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33826         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33827         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33828         (gl_PREREQ_STRTOK_R): Don't require it here.
33829
33830 2007-05-13  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33833         when used in C++ mode.
33834
33835 2007-05-12  Bruno Haible  <bruno@clisp.org>
33836
33837         * lib/linebuffer.h: Tweak doc.
33838         * lib/linebuffer.c: Likewise.
33839
33840 2007-05-12  James Youngman  <jay@gnu.org>
33841
33842         * lib/linebuffer.c (readlinebuffer_delim): New function,
33843         like readlinebuffer, but use a caller-specified delimiter.
33844         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33845         as the delimiter.
33846         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33847
33848 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33849
33850         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33851         * modules/openat (Files): Remove openat-die.c.
33852         (Depends-on): Add openat-die.
33853         * modules/openat-die: New module.
33854
33855 2007-05-06  Bruno Haible  <bruno@clisp.org>
33856
33857         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33858         Update with info about Cygwin.
33859         * doc/functions/fprintf.texi: Update.
33860         * doc/functions/printf.texi: Update.
33861         * doc/functions/snprintf.texi: Update.
33862         * doc/functions/sprintf.texi: Update.
33863         * doc/functions/vfprintf.texi: Update.
33864         * doc/functions/vprintf.texi: Update.
33865         * doc/functions/vsnprintf.texi: Update.
33866         * doc/functions/vsprintf.texi: Update.
33867         Reported by Eric Blake.
33868
33869 2007-05-06  Bruno Haible  <bruno@clisp.org>
33870
33871         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33872         padding ourselves for the floating-point directives.
33873         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33876         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33877         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33882         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33885         * tests/test-snprintf-posix.h (test_function): Also check the width
33886         and some flags in the %f directive.
33887         * tests/test-sprintf-posix.h (test_function): Likewise.
33888         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33889         * tests/test-vasprintf-posix.c (test_function): Likewise.
33890         * doc/functions/fprintf.texi: Update.
33891         * doc/functions/printf.texi: Update.
33892         * doc/functions/snprintf.texi: Update.
33893         * doc/functions/sprintf.texi: Update.
33894         * doc/functions/vfprintf.texi: Update.
33895         * doc/functions/vprintf.texi: Update.
33896         * doc/functions/vsnprintf.texi: Update.
33897         * doc/functions/vsprintf.texi: Update.
33898
33899 2007-05-06  Bruno Haible  <bruno@clisp.org>
33900
33901         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33902         pass the ' flag character to sprintf or snprintf.
33903         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33906         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33907         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33915         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33916         flag.
33917         * tests/test-sprintf-posix.h (test_function): Likewise.
33918         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33919         * tests/test-vasprintf-posix.c (test_function): Likewise.
33920         * doc/functions/fprintf.texi: Update.
33921         * doc/functions/printf.texi: Update.
33922         * doc/functions/snprintf.texi: Update.
33923         * doc/functions/sprintf.texi: Update.
33924         * doc/functions/vfprintf.texi: Update.
33925         * doc/functions/vprintf.texi: Update.
33926         * doc/functions/vsnprintf.texi: Update.
33927         * doc/functions/vsprintf.texi: Update.
33928
33929 2007-05-01  Bruno Haible  <bruno@clisp.org>
33930
33931         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33932
33933 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33934
33935         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33936         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33937
33938 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33939
33940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33941         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33943
33944 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33945
33946         * lib/argp-help.c (struct hol_entry): New member `ord'.
33947         (HOL_ENTRY_PTRCMP): Use ord for comparison
33948         (hol_sort): Initialize ord.
33949
33950 2007-05-01  Bruno Haible  <bruno@clisp.org>
33951
33952         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33953         Reported by Eric Blake.
33954         * doc/gnulib.texi (Function Substitutes): Update.
33955
33956 2007-05-01  Bruno Haible  <bruno@clisp.org>
33957
33958         * doc/functions.texi: Remove file, now redundant through
33959         doc/functions/*.texi.
33960
33961 2007-05-01  Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/argp (Depends-on): Add sleep.
33964
33965 2007-05-01  Bruno Haible  <bruno@clisp.org>
33966
33967         * modules/sleep-tests: New file.
33968         * tests/test-sleep.c: New file.
33969
33970         * modules/sleep: New file.
33971         * lib/sleep.c: New file.
33972         * m4/sleep.m4: New file.
33973         * lib/unistd_.h (sleep): New declaration.
33974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33975         HAVE_SLEEP.
33976         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33977         * doc/functions/sleep.texi: Document the sleep module.
33978
33979 2007-05-01  Bruno Haible  <bruno@clisp.org>
33980
33981         * lib/sigprocmask.h: Remove file.
33982         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33983         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33984         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33985         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33986         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33987         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33988         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33989         HAVE_SIGSET_T as a shell variable.
33990         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33991         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33992         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33993         (Depends-on): Add signal. Remove verify.
33994         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33995         (Include): Mention <signal.h> instead of sigprocmask.h.
33996         * NEWS: Mention the change.
33997         * lib/fatal-signal.c: Don't include sigprocmask.h.
33998
33999 2007-05-01  Bruno Haible  <bruno@clisp.org>
34000
34001         * modules/signal: New file.
34002         * lib/signal_.h: New file.
34003         * m4/signal_h.m4: New file.
34004
34005 2007-05-01  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34008         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34009         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34010         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34011
34012 2007-05-01  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34015         configure time.
34016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34017         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34018         * modules/sys_stat (Makefile.am): Substitute their values into
34019         sys/stat.h.
34020
34021 2007-05-01  Bruno Haible  <bruno@clisp.org>
34022
34023         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34024         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34025         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34026
34027 2007-05-01  Bruno Haible  <bruno@clisp.org>
34028
34029         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34030         'assert' module here.
34031
34032 2007-05-01  Bruno Haible  <bruno@clisp.org>
34033
34034         * doc/functions/*.texi: New files.
34035         * doc/functions/google-ranking.txt: New file.
34036         * doc/gnulib.texi (Function Substitutes): New chapter.
34037         (ctime, inet_ntoa): Remove sections.
34038         * doc/ctime.texi: Remove file.
34039         * doc/inet_ntoa.texi: Remove file.
34040         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34041         dependencies.
34042         (%.info): New rule, specifying a --reference-limit.
34043
34044 2007-05-01  Bruno Haible  <bruno@clisp.org>
34045
34046         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34047
34048 2007-05-01  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34051         the portability of 'mkdir' to mingw systems.
34052
34053 2007-05-01  Bruno Haible  <bruno@clisp.org>
34054
34055         * doc/headers/google-ranking.txt: New file.
34056
34057 2007-04-30  Eric Blake  <ebb9@byu.net>
34058
34059         Prefer fseeko to fseek.
34060         * modules/getpass (Depends-on): Add fseeko.
34061         * lib/getpass.c (getpass): Use fseeko, not fseek.
34062
34063 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34064
34065         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34066         assumes the sorting is stable, while most qsort implementations
34067         are not.  Use argument addresses to ensure they never compare as
34068         equal.
34069
34070         * tests/test-argp-2.sh (usage-indent test): Fix output
34071         (func_compare): Restore diff options
34072         * tests/test-argp.c: Restore #include "progname.h"
34073
34074 2007-04-29  Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34077         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34078         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34080         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34081         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34082         (TESTS, check_PROGRAMS): Add test-snprintf.
34083         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34084         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34085         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34086         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34087         assertions that fail on HP-UX, OSF/1, or IRIX.
34088         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34089
34090 2007-04-29  Bruno Haible  <bruno@clisp.org>
34091
34092         * MODULES.html.sh (posix_functions): Remove 'contents'.
34093
34094 2007-04-29  Karl Berry  <karl@gnu.org>
34095
34096         * config/srclist.txt (gendocs_template_min): new entry.
34097
34098 2007-04-29  Bruno Haible  <bruno@clisp.org>
34099
34100         Work around fpurge bug on BSD systems.
34101         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34102         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34103         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34104         fpurge to rpl_fpurge if the system already has this function.
34105         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34106         the case where the system already has this function. Correct invariants
34107         on BSD systems.
34108         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34109         BSD systems.
34110
34111 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34112
34113         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34114         proposed by Sven Verdoolaege.
34115
34116         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34117         options.
34118         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34119         (usage and help tests): Update
34120
34121 2007-04-29  Bruno Haible  <bruno@clisp.org>
34122
34123         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34124         Print more information in case of failure. Disable a test on BeOS.
34125
34126 2007-04-29  Bruno Haible  <bruno@clisp.org>
34127
34128         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34129         This helps debugging on systems on which no gdb is available.
34130
34131 2007-04-29  Bruno Haible  <bruno@clisp.org>
34132
34133         * lib/freading.h: Improve comments.
34134         * lib/fwriting.h: Likewise.
34135         * tests/test-freading.c (main): Don't check freading immediately after
34136         repositioning. Needed for glibc.
34137
34138 2007-04-29  Bruno Haible  <bruno@clisp.org>
34139
34140         * lib/freading.c (freading): Trivial simplification.
34141
34142 2007-04-28  Bruno Haible  <bruno@clisp.org>
34143
34144         * tests/test-fwriting.c (main): Also test the interaction between
34145         fflush and fwriting.
34146         * modules/fwriting-tests (Depends-on): Add fflush.
34147
34148         * tests/test-freading.c (main): Also test the interaction between
34149         fflush and freading.
34150         * modules/freading-tests (Depends-on): Add fflush.
34151
34152 2007-04-28  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34155         fseeko and ftello.
34156         Suggested by Eric Blake.
34157
34158 2007-04-28  Jim Meyering  <jim@meyering.net>
34159
34160         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34161         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34162         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34163
34164 2007-04-27  Eric Blake  <ebb9@byu.net>
34165
34166         * doc/headers/assert.texi (assert.h): Document assert module use.
34167
34168 2007-04-27  Bruno Haible  <bruno@clisp.org>
34169
34170         * doc/headers/*.texi: New files.
34171         * doc/gnulib.texi (Header File Substitutes): New chapter.
34172         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34173         dependencies.
34174         (standards.info ,standards.html, standards.dvi): Update dependencies.
34175         (mostlyclean, clean): New targets.
34176
34177 2007-04-27  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34180         * modules/sysexits (Files, Makefile.am): Update.
34181
34182         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34183         * modules/sys_socket (Files, Makefile.am): Update.
34184
34185         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34186         * modules/sys_stat (Files, Makefile.am): Update.
34187
34188 2007-04-27  Eric Blake  <ebb9@byu.net>
34189
34190         * lib/freading.h: Improve comments.
34191         * lib/fwriting.h: Likewise.
34192         * lib/fflush.c: Likewise.
34193
34194         Fix closein for mingw.
34195         * modules/closein-tests: Add tests for closein.
34196         * tests/test-closein.c: New file.
34197         * tests/test-closein.sh: Likewise.
34198         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34199         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34200
34201 2007-04-27  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34204         version is < 6.
34205         * lib/math_.h [__DECC]: Likewise.
34206         * lib/stdio_.h [__DECC]: Likewise.
34207         * lib/stdlib_.h [__DECC]: Likewise.
34208         * lib/string_.h [__DECC]: Likewise.
34209         * lib/time_.h [__DECC]: Likewise.
34210         * lib/wchar_.h [__DECC]: Likewise.
34211         * lib/wctype_.h [__DECC]: Likewise.
34212
34213 2007-04-27  Bruno Haible  <bruno@clisp.org>
34214
34215         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34216
34217 2007-04-27  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/fflush.c: Add comments.
34220         * modules/fpurge-tests (Depends-on): Add fflush.
34221         * modules/freadable-tests (Depends-on): Likewise.
34222         * modules/fwritable-tests (Depends-on): Likewise.
34223
34224 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34225
34226         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34227         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34228         Report by Bruno Haible <bruno@clisp.org>.
34229
34230 2007-04-26  Eric Blake  <ebb9@byu.net>
34231
34232         Fix fflush on mingw.
34233         * modules/fflush (Depends-on): Add freading.
34234         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34235         but unread data.
34236
34237 2007-04-26  Eric Blake  <ebb9@byu.net>
34238         and Bruno Haible  <bruno@clisp.org>
34239
34240         Implement freading and fwriting.
34241         * lib/freading.c: New file.
34242         * lib/freading.h: Likewise.
34243         * m4/freading.m4: Likewise.
34244         * modules/freading: Likewise.
34245         * modules/freading-tests: Likewise.
34246         * tests/test-freading.c: Likewise.
34247         * lib/fwriting.c: New file.
34248         * lib/fwriting.h: Likewise.
34249         * m4/fwriting.m4: Likewise.
34250         * modules/fwriting: Likewise.
34251         * modules/fwriting-tests: Likewise.
34252         * tests/test-fwriting.c: Likewise.
34253         * MODULES.html.sh (File stream based Input/Output): Mention them.
34254
34255 2007-04-26  Bruno Haible  <bruno@clisp.org>
34256
34257         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34258         'long' when we assume it.
34259         Suggested by Eric Blake.
34260
34261 2007-04-26  Bruno Haible  <bruno@clisp.org>
34262
34263         Ensure fseeko, ftello are declared on glibc systems.
34264         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34265         * modules/fseeko (configure.ac-early): Likewise.
34266         * modules/ftello (configure.ac-early): Likewise.
34267         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34268         AC_FUNC_FSEEKO for this.
34269         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34270         (gl_CHECK_FSEEKO): Remove macro.
34271
34272 2007-04-26  Bruno Haible  <bruno@clisp.org>
34273
34274         * tests/test-fflush.c (main): Also check the ftell result after
34275         fflush and fseek/fseeko.
34276         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34277         file descriptor position cache in the stream.
34278         * lib/fseeko.c (rpl_fseeko): Likewise.
34279
34280 2007-04-26  Bruno Haible  <bruno@clisp.org>
34281
34282         * modules/fflush-tests (Depends-on): Add fseeko.
34283
34284 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34285             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34286
34287         * lib/argz_.h: ensure error_t definition is obtained in same
34288         mechanism system argz.h would have.
34289         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34290         argz facilities are known bad.  Err on the side of caution if
34291         cross-compiling.
34292
34293 2007-04-25  Eric Blake  <ebb9@byu.net>
34294
34295         * lib/fpurge.c (includes): Use stdlib.h for free.
34296         * tests/test-fflush.c (main): Also test fflush-fseeko.
34297
34298 2007-04-25  Bruno Haible  <bruno@clisp.org>
34299
34300         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34301         * lib/fseeko.c: New file.
34302         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34303         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34304         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34305         gl_FUNC_FSEEKO.
34306         (gl_FUNC_FSEEKO): Invoke it.
34307         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34308         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34309         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34310
34311 2007-04-25  Bruno Haible  <bruno@clisp.org>
34312
34313         * modules/fflush (Depends-on): Add ftello.
34314
34315 2007-04-25  Bruno Haible  <bruno@clisp.org>
34316
34317         * modules/ftello-tests: New file.
34318         * tests/test-ftello.c: New file.
34319
34320         * modules/ftello: New file.
34321         * m4/ftello.m4: New file.
34322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34323         HAVE_FTELLO.
34324         * lib/stdio_.h (ftello): New declaration.
34325         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34326         HAVE_FTELLO.
34327
34328 2007-04-25  Bruno Haible  <bruno@clisp.org>
34329
34330         * modules/fseeko-tests: New file.
34331         * tests/test-fseeko.c: New file.
34332
34333         * modules/fseeko: New file.
34334         * m4/fseeko.m4: New file.
34335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34336         HAVE_FSEEKO.
34337         * lib/stdio_.h (fseeko): New declaration.
34338         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34339         HAVE_FSEEKO.
34340
34341 2007-04-25  Bruno Haible  <bruno@clisp.org>
34342
34343         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34344
34345 2007-04-25  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34348         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34349         * tests/test-unistd.c: Likewise.
34350         * tests/test-fcntl.c: Likewise.
34351
34352 2007-04-23  Eric Blake  <ebb9@byu.net>
34353
34354         * lib/fflush.c: Fix missing include.
34355         Reported by Bruno Haible.
34356
34357 2007-04-23  Bruno Haible  <bruno@clisp.org>
34358
34359         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34360         Reported by Eric Blake.
34361
34362 2007-04-23  Bruno Haible  <bruno@clisp.org>
34363
34364         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34365
34366 2007-04-23  Bruno Haible  <bruno@clisp.org>
34367
34368         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34369
34370 2007-04-23  Bruno Haible  <bruno@clisp.org>
34371
34372         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34373         Needed on HP-UX 11.
34374
34375 2007-04-16  Eric Blake  <ebb9@byu.net>
34376
34377         Make fflush rely on fpurge.
34378         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34379         open coding all variants.
34380         * modules/fflush (Depends-on): Add fpurge and unistd.
34381         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34382         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34383
34384         Fix --with-tests compilation on cygwin.
34385         * modules/argmatch-tests (Makefile.am): List gnulib library first
34386         in LDADD.
34387         * modules/argp-tests (Makefile.am): Likewise.
34388         * modules/array-list-tests (Makefile.am): Likewise.
34389         * modules/array-oset-tests (Makefile.am): Likewise.
34390         * modules/avltree-list-tests (Makefile.am): Likewise.
34391         * modules/avltree-oset-tests (Makefile.am): Likewise.
34392         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34393         * modules/carray-list-tests (Makefile.am): Likewise.
34394         * modules/dirname-tests (Makefile.am): Likewise.
34395         * modules/frexp-tests (Makefile.am): Likewise.
34396         * modules/isnanl-tests (Makefile.am): Likewise.
34397         * modules/linked-list-tests (Makefile.am): Likewise.
34398         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34399         * modules/lock-tests (Makefile.am): Likewise.
34400         * modules/rbtree-list-tests (Makefile.am): Likewise.
34401         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34402         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34403         * modules/tls-tests (Makefile.am): Likewise.
34404         * modules/tsearch-tests (Makefile.am): Likewise.
34405         * modules/xvasprintf-tests (Makefile.am): Likewise.
34406
34407         Fix fpurge for cygwin.
34408         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34409         value.
34410         * modules/fpurge-tests (Depends-on): Clean up trash.
34411
34412 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34413
34414         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34415
34416         * m4/autobuild.m4: Re-indent.
34417
34418 2007-04-13  Bruno Haible  <bruno@clisp.org>
34419
34420         * modules/fpurge-tests: New file.
34421         * tests/test-fpurge.c: New file.
34422
34423         * modules/fpurge: New file.
34424         * lib/fpurge.h: New file.
34425         * lib/fpurge.c: New file.
34426         * m4/fpurge.m4: New file.
34427
34428 2007-04-13  Bruno Haible  <bruno@clisp.org>
34429
34430         * modules/fbufmode-tests: New file.
34431         * tests/test-fbufmode.c: New file.
34432
34433         * modules/fbufmode: New file.
34434         * lib/fbufmode.h: New file.
34435         * lib/fbufmode.c: New file.
34436         * m4/fbufmode.m4: New file.
34437
34438 2007-04-13  Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/fwritable-tests: New file.
34441         * tests/test-fwritable.c: New file.
34442
34443         * modules/fwritable: New file.
34444         * lib/fwritable.h: New file.
34445         * lib/fwritable.c: New file.
34446         * m4/fwritable.m4: New file.
34447
34448 2007-04-13  Bruno Haible  <bruno@clisp.org>
34449
34450         * modules/freadable-tests: New file.
34451         * tests/test-freadable.c: New file.
34452
34453         * modules/freadable: New file.
34454         * lib/freadable.h: New file.
34455         * lib/freadable.c: New file.
34456         * m4/freadable.m4: New file.
34457
34458 2007-04-13  Bruno Haible  <bruno@clisp.org>
34459
34460         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34461         MOSTLYCLEANFILES.
34462
34463 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34466         gzip bootstrap.conf to avoid dragging in i18n machinery.
34467         (gnulib_tool_option): Use it.
34468
34469 2007-04-13  Bruno Haible  <bruno@clisp.org>
34470
34471         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34472         %F directives.
34473         * tests/test-vasprintf-posix.c (test_function): Likewise.
34474         * tests/test-snprintf-posix.h (test_function): Likewise.
34475         * tests/test-sprintf-posix.h (test_function): Likewise.
34476         * tests/test-fprintf-posix.h (test_function): Likewise.
34477         * tests/test-printf-posix.h (test_function): Likewise.
34478         * tests/test-fprintf-posix.out: Likewise.
34479
34480 2007-04-13  Bruno Haible  <bruno@clisp.org>
34481
34482         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34483         * modules/tls-tests (configure.ac): Likewise.
34484         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34485
34486 2007-04-13  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/tls.c (glthread_tls_get): Fix return type.
34489         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34490
34491 2007-04-12  Eric Blake  <ebb9@byu.net>
34492
34493         * modules/gettime (Depends-on): Remove gettime.
34494         Reported by Dmitry V. Levin.
34495
34496 2007-04-12  Bruno Haible  <bruno@clisp.org>
34497
34498         * modules/fflush (Include): Mention <stdio.h>.
34499         * modules/strtoimax (Include): Mention <inttypes.h>.
34500         * modules/strtoumax (Include): Likewise.
34501
34502 2007-04-12  Eric Blake  <ebb9@byu.net>
34503
34504         * .cvsignore: New file.
34505         * .gitignore: Likewise.
34506
34507 2007-04-12  Bruno Haible  <bruno@clisp.org>
34508
34509         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34510         not before, since $(LDADD) often contains libgnu.a.
34511         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34512         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34513         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34514         Needed on Cygwin.
34515
34516 2007-04-12  Eric Blake  <ebb9@byu.net>
34517
34518         Work around glibc's failure to flush stdin on fclose.
34519         * lib/closein.c (close_stdin): Flush stdin before closing.
34520
34521         Work around glibc's failure to reset seekable stdin on exit.
34522         * modules/closein: New module.
34523         * lib/closein.c: New file.
34524         * lib/closein.h: Likewise.
34525         * m4/closein.m4: Likewise.
34526         * MODULES.html.sh (File stream based Input/Output): Document it.
34527
34528 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34529
34530         * gnulib-tool: Rename generated 'autobuild' script to
34531         'do-autobuild' in --create-megatestdir output.
34532
34533         * doc/gnulib.texi (Build robot for gnulib): Fix.
34534
34535 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34536
34537         * modules/sysexits (Depends-on): Add absolute-header.
34538
34539 2007-04-12  Eric Blake  <ebb9@byu.net>
34540
34541         No need to preserve errno on success.
34542         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34543         Reported by Bruno Haible.
34544
34545 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34546
34547         * MODULES.html.sh (Support for maintaining and releasing
34548         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34549
34550 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34551
34552         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34553
34554 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34555
34556         * modules/autobuild: New module.
34557
34558         * m4/autobuild.m4: New file.
34559
34560 2007-04-11  Bruno Haible  <bruno@clisp.org>
34561
34562         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34563         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34567         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34568         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34570         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34571         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34573         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34574         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34576         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34577         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34579         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34580         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34581         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34582         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34583         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34590         Reported by Eric Blake.
34591
34592 2007-04-11  Bruno Haible  <bruno@clisp.org>
34593
34594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34595
34596 2007-04-10  Bruno Haible  <bruno@clisp.org>
34597
34598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34599         for NaN and Infinity. Needed on FreeBSD 6.1.
34600         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34601         regarding results for "%010a" of Infinity and NaN.
34602         * tests/test-vasprintf-posix.c (test_function): Likewise.
34603         * tests/test-snprintf-posix.h (test_function): Likewise.
34604         * tests/test-sprintf-posix.h (test_function): Likewise.
34605         * tests/test-fprintf-posix.h (test_function): Likewise.
34606         * tests/test-printf-posix.h (test_function): Likewise.
34607         * tests/test-fprintf-posix.out: Likewise.
34608
34609 2007-04-10  Bruno Haible  <bruno@clisp.org>
34610
34611         * modules/locale-tests: New file.
34612         * tests/test-locale.c: New file.
34613
34614         * modules/locale: New file.
34615         * lib/locale_.h: New file.
34616         * m4/locale_h.m4: New file.
34617
34618 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34619             Bruno Haible  <bruno@clisp.org>
34620
34621         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34622         be determined, test for availability of the copysignf, copysign,
34623         copysignl functions.
34624         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34625         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34626         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34627
34628 2007-04-09  Eric Blake  <ebb9@byu.net>
34629
34630         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34631         * modules/stdio (Makefile.am): Support fflush.
34632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34633         * modules/fflush: New file.
34634         * lib/fflush.c: Likewise.
34635         * m4/fflush.m4: Likewise.
34636         * modules/fflush-tests: New test.
34637         * tests/test-fflush.c: Likewise.
34638         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34639
34640 2007-04-06  Bruno Haible  <bruno@clisp.org>
34641
34642         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34643         (VASNPRINTF): Use signbit for faster determination whether to print a
34644         minus sign.
34645         * modules/vasnprintf (Files): Remove lib/float+.h.
34646         * modules/fprintf-posix (Depends-on): Add signbit.
34647         * modules/snprintf-posix (Depends-on): Likewise.
34648         * modules/sprintf-posix (Depends-on): Likewise.
34649         * modules/vasnprintf-posix (Depends-on): Likewise.
34650         * modules/vasprintf-posix (Depends-on): Likewise.
34651         * modules/vfprintf-posix (Depends-on): Likewise.
34652         * modules/vsnprintf-posix (Depends-on): Likewise.
34653         * modules/vsprintf-posix (Depends-on): Likewise.
34654
34655 2007-04-06  Bruno Haible  <bruno@clisp.org>
34656
34657         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34658         * tests/test-frexpl.c (main): Likewise.
34659         * tests/test-ldexpl.c (main): Likewise.
34660         * modules/frexp-tests (Depends-on): Add signbit.
34661         * modules/frexpl-tests (Depdends-on): Likewise.
34662         * modules/ldexpl-tests (Depdends-on): Likewise.
34663
34664 2007-04-06  Bruno Haible  <bruno@clisp.org>
34665
34666         * modules/signbit-tests: New file.
34667         * tests/test-signbit.c: New file.
34668
34669         * modules/signbit: New file.
34670         * lib/signbitf.c: New file.
34671         * lib/signbitd.c: New file.
34672         * lib/signbitl.c: New file.
34673         * m4/signbit.m4: New file.
34674         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34675         (signbit): New macro.
34676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34677         REPLACE_SIGNBIT.
34678         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34679         REPLACE_FREXPL into math.h.
34680
34681 2007-04-06  Bruno Haible  <bruno@clisp.org>
34682
34683         * modules/isnanf-nolibm-tests: New file.
34684         * tests/test-isnanf.c: New file.
34685
34686         * modules/isnanf-nolibm: New file.
34687         * lib/isnanf.h: New file.
34688         * lib/isnanf.c: New file.
34689         * lib/isnan.c: Consider the USE_FLOAT macro.
34690         * m4/isnanf.m4: New file.
34691
34692 2007-04-06  Bruno Haible  <bruno@clisp.org>
34693
34694         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34695         (Link): New section.
34696
34697         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34698
34699 2007-04-06  Bruno Haible  <bruno@clisp.org>
34700
34701         Assume the 'long double' type.
34702         * m4/longdouble.m4: Remove file.
34703         * config/srclist.txt: Don't mention longdouble.m4.
34704         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34705         * lib/float+.h: Likewise.
34706         * lib/frexp.c: Likewise.
34707         * lib/printf-args.h: Likewise.
34708         * lib/printf-args.c: Likewise.
34709         * lib/printf-frexp.c: Likewise.
34710         * lib/printf-parse.c: Likewise.
34711         * lib/vasnprintf.c: Likewise.
34712         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34713         * m4/intl.m4: Likewise.
34714         * m4/isnanl.m4: Likewise.
34715         * m4/printf.m4: Likewise.
34716         * m4/printf-frexpl.m4: Likewise.
34717         * m4/vasnprintf.m4: Likewise.
34718         * modules/allocsa (Files): Remove m4/longdouble.m4.
34719         * modules/gettext (Files): Likewise.
34720         * modules/relocatable-prog-wrapper (Files): Likewise.
34721         * modules/vasnprintf (Files): Likewise.
34722         * modules/isnanl (Files): Likewise.
34723         (Include): Simplify.
34724         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34725         (Include): Simplify.
34726         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34727         (Include): Simplify.
34728         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34729         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34730         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34731         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34732         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34733         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34734         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34735         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34736         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34737         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34738         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34739         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34740         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34741         * tests/test-isnanl.c: Likewise.
34742         * tests/test-snprintf-posix.h: Likewise.
34743         * tests/test-sprintf-posix.h: Likewise.
34744         * tests/test-vasnprintf-posix.c: Likewise.
34745         * tests/test-vasnprintf-posix2.c: Likewise.
34746         * tests/test-vasprintf-posix.c: Likewise.
34747
34748 2007-04-06  Bruno Haible  <bruno@clisp.org>
34749
34750         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34751         * lib/math_.h [__DECC]: Include the overridden include file through
34752         #include_next, outside the double-inclusion guard.
34753         * lib/stdio_.h [__DECC]: Likewise.
34754         * lib/stdlib_.h [__DECC]: Likewise.
34755         * lib/string_.h [__DECC]: Likewise.
34756         * lib/time_.h [__DECC]: Likewise.
34757         * lib/wchar_.h [__DECC]: Likewise.
34758         * lib/wctype_.h [__DECC]: Likewise.
34759         * lib/inttypes_.h [__DECC]: Likewise.
34760         Reported by Albert Chin <china@thewrittenword.com> in
34761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34762
34763 2007-04-04  Eric Blake  <ebb9@byu.net>
34764
34765         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34766         1.5.x.
34767
34768 2007-04-04  Bruno Haible  <bruno@clisp.org>
34769
34770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34771         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34772
34773 2007-04-04  Bruno Haible  <bruno@clisp.org>
34774
34775         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34776         results for "%010a" of Infinity and NaN.
34777         * tests/test-vasprintf-posix.c (test_function): Likewise.
34778         * tests/test-snprintf-posix.h (test_function): Likewise.
34779         * tests/test-sprintf-posix.h (test_function): Likewise.
34780         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34781         * tests/test-printf-posix.h (test_function): Likewise.
34782         * tests/test-fprintf-posix.out: Update.
34783         Needed for FreeBSD 6.1.
34784
34785 2007-04-04  Bruno Haible  <bruno@clisp.org>
34786
34787         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34788         directly used by the gnulib modules nor by gnulib-tool.
34789
34790 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34791
34792         * DEPENDENCIES: Give overall description of version dependency
34793         desirability.  Use more-typical names for apps.
34794         Add shell, coreutils, diffutils, grep, tar, gzip.
34795
34796 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34797
34798         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34799
34800 2007-04-04  Karl Berry  <karl@gnu.org>
34801
34802         * MODULES.html.sh (func_module): missing '.
34803
34804 2007-04-03  Bruno Haible  <bruno@clisp.org>
34805
34806         * modules/argmatch-tests (Makefile.am): New variable
34807         test_argmatch_LDADD.
34808         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34809         * modules/array-list-tests (Makefile.am): New variable
34810         test_array_list_LDADD.
34811         * modules/array-oset-tests (Makefile.am): New variable
34812         test_array_oset_LDADD.
34813         * modules/avltree-list-tests (Makefile.am): New variable
34814         test_avltree_list_LDADD.
34815         * modules/avltree-oset-tests (Makefile.am): New variable
34816         test_avltree_oset_LDADD.
34817         * modules/avltreehash-list-tests (Makefile.am): New variable
34818         test_avltreehash_list_LDADD.
34819         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34820         test_canonicalize_lgpl_LDADD.
34821         * modules/carray-list-tests (Makefile.am): New variable
34822         test_carray_list_LDADD.
34823         * modules/dirname-tests (Makefile.am): New variable
34824         test_dirname_LDADD.
34825         * modules/linked-list-tests (Makefile.am): New variable
34826         test_linked_list_LDADD.
34827         * modules/linkedhash-list-tests (Makefile.am): New variable
34828         test_linkedhash_list_LDADD.
34829         * modules/rbtree-list-tests (Makefile.am): New variable
34830         test_rbtree_list_LDADD.
34831         * modules/rbtree-oset-tests (Makefile.am): New variable
34832         test_rbtree_oset_LDADD.
34833         * modules/rbtreehash-list-tests (Makefile.am): New variable
34834         test_rbtreehash_list_LDADD.
34835         * modules/xvasprintf-tests (Makefile.am): New variable
34836         test_xvasprintf_LDADD.
34837         Reported by Eric Blake.
34838
34839 2007-04-03  Eric Blake  <ebb9@byu.net>
34840
34841         * DEPENDENCIES: Weaken m4 requirements.
34842
34843 2007-04-03  Bruno Haible  <bruno@clisp.org>
34844
34845         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34846         * modules/isnanl-tests (configure.ac): Likewise.
34847
34848 2007-04-03  Ben Pfaff  <blp@gnu.org>
34849
34850         * modules/iconv_open: Add $(srcdir)/ to source directory
34851         references in Makefile fragments that call gperf, to fix VPATH
34852         builds.
34853
34854 2007-04-03  Bruno Haible  <bruno@clisp.org>
34855
34856         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34857         * lib/ldexpl.c: Undo last change.
34858
34859 2007-04-03  Bruno Haible  <bruno@clisp.org>
34860
34861         * modules/printf-frexpl (Depends-on): Undo last change.
34862         (Files): Add m4/ldexpl.m4.
34863
34864 2007-04-03  Bruno Haible  <bruno@clisp.org>
34865
34866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34867         * modules/isnanl (Link): New section.
34868
34869         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34870         * modules/frexp (Link): New section.
34871
34872         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34873         * modules/frexpl (Link): New section.
34874
34875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34876         * modules/ldexpl (Link): New section.
34877
34878 2007-04-03  Bruno Haible  <bruno@clisp.org>
34879
34880         * modules/TEMPLATE-EXTENDED: New file.
34881         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34882
34883 2007-04-03  Bruno Haible  <bruno@clisp.org>
34884
34885         * DEPENDENCIES: New file.
34886         Suggested by Simon Josefsson.
34887
34888 2007-04-03  Bruno Haible  <bruno@clisp.org>
34889
34890         * doc/gnulib.texi: Escape @.
34891
34892 2007-04-03  James Youngman  <jay@gnu.org>
34893         and Paul Eggert  <eggert@cs.ucla.edu>
34894
34895         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34896         birthtime on all systems that have birthtime, not just those which
34897         use st_birthtimensec rather than st_birthtim.  Putting zero in
34898         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34899         that the birth time is not available for files on an NFS mount.
34900
34901 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34902
34903         * modules/memxor: Move back from crypto/, suggested by Bruno.
34904         * modules/crypto/hmac-sha1: Fix memxor dependency.
34905
34906         * modules/crypto/gc: Moved from ../.
34907
34908 2007-04-02  Eric Blake  <ebb9@byu.net>
34909
34910         * lib/ldexpl.c (includes): Avoid libm.
34911
34912         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34913
34914 2007-04-02  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34917         on IRIX.
34918
34919 2007-04-02  Bruno Haible  <bruno@clisp.org>
34920
34921         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34922         x86 or x86_64 platforms running MacOS X.
34923         Reported by Ryan Schmidt <@ryandesign.com>.
34924
34925 2007-04-02  Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34928         i386.
34929
34930 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34931
34932         * modules/crypto/arcfour: Moved from ../.
34933         * modules/crypto/arcfour-tests: Moved from ../.
34934         * modules/crypto/arctwo: Moved from ../.
34935         * modules/crypto/arctwo-tests: Moved from ../.
34936         * modules/crypto/des: Moved from ../.
34937         * modules/crypto/des-tests: Moved from ../.
34938         * modules/crypto/gc-arcfour: Moved from ../.
34939         * modules/crypto/gc-arcfour-tests: Moved from ../.
34940         * modules/crypto/gc-arctwo: Moved from ../.
34941         * modules/crypto/gc-arctwo-tests: Moved from ../.
34942         * modules/crypto/gc-des: Moved from ../.
34943         * modules/crypto/gc-des-tests: Moved from ../.
34944         * modules/crypto/gc-hmac-md5: Moved from ../.
34945         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34946         * modules/crypto/gc-hmac-sha1: Moved from ../.
34947         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34948         * modules/crypto/gc-md2: Moved from ../.
34949         * modules/crypto/gc-md2-tests: Moved from ../.
34950         * modules/crypto/gc-md4: Moved from ../.
34951         * modules/crypto/gc-md4-tests: Moved from ../.
34952         * modules/crypto/gc-md5: Moved from ../.
34953         * modules/crypto/gc-md5-tests: Moved from ../.
34954         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34955         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34956         * modules/crypto/gc-random: Moved from ../.
34957         * modules/crypto/gc-rijndael: Moved from ../.
34958         * modules/crypto/gc-rijndael-tests: Moved from ../.
34959         * modules/crypto/gc-sha1: Moved from ../.
34960         * modules/crypto/gc-sha1-tests: Moved from ../.
34961         * modules/crypto/gc-tests: Moved from ../.
34962         * modules/crypto/hmac-md5: Moved from ../.
34963         * modules/crypto/hmac-md5-tests: Moved from ../.
34964         * modules/crypto/hmac-sha1: Moved from ../.
34965         * modules/crypto/hmac-sha1-tests: Moved from ../.
34966         * modules/crypto/md2: Moved from ../.
34967         * modules/crypto/md2-tests: Moved from ../.
34968         * modules/crypto/md4: Moved from ../.
34969         * modules/crypto/md4-tests: Moved from ../.
34970         * modules/crypto/md5: Moved from ../.
34971         * modules/crypto/md5-tests: Moved from ../.
34972         * modules/crypto/memxor: Moved from ../.
34973         * modules/crypto/rijndael: Moved from ../.
34974         * modules/crypto/rijndael-tests: Moved from ../.
34975         * modules/crypto/sha1: Moved from ../.
34976
34977 2007-03-30  James Youngman  <jay@gnu.org>
34978
34979         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34980         rename() to change the ctime of a file (because ctime is unaffected
34981         by rename on jfs2 on AIX 5.1).
34982         (main): Start by doing cleanup, in case a previous run failed leaving
34983         test files behind.
34984
34985 2007-03-31  Bruno Haible  <bruno@clisp.org>
34986
34987         Support old proprietary implementations of iconv.
34988         * modules/iconv_open: New file.
34989         * lib/iconv_.h: New file.
34990         * m4/iconv_h.m4: New file.
34991         * lib/iconv_open.c: New file.
34992         * lib/iconv_open-aix.gperf: New file.
34993         * lib/iconv_open-hpux.gperf: New file.
34994         * lib/iconv_open-irix.gperf: New file.
34995         * lib/iconv_open-osf.gperf: New file.
34996         * m4/iconv_open.m4: New file.
34997         * modules/linebreak (Depends-on): Add iconv_open.
34998         * modules/striconv (Depends-on): Likewise.
34999         * modules/striconveh (Depends-on): Likewise.
35000         * modules/unicodeio (Depends-on): Likewise.
35001         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35002         (iconv_t)(-1).
35003         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35004         conversion if cd is (iconv_t)(-1).
35005         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35006         is not possible.
35007
35008 2007-03-31  Bruno Haible  <bruno@clisp.org>
35009
35010         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35011         work on Solaris either. Protect also second use of "autodetect_jp".
35012
35013 2007-03-31  Bruno Haible  <bruno@clisp.org>
35014
35015         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35016         the function is not present.
35017
35018 2007-03-31  Bruno Haible  <bruno@clisp.org>
35019
35020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35021         the function is not present.
35022
35023 2007-03-31  Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35026         a bug in HP-UX iconv_open().
35027
35028 2007-03-31  Bruno Haible  <bruno@clisp.org>
35029
35030         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35031         (Mathematics <math.h>): New section, add fpieee.
35032         (Input/output <stdio.h>): Add fseterr.
35033         (Mathematics <math.h>): New section, add printf-frexp.
35034         (Container data structures): Add sublist.
35035         (Core language properties): Add fpucw, inline.
35036         (Functions for greatest-width integer types <inttypes.h>): Add
35037         imaxabs, imaxdiv, inttypes.
35038         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35039         isnanl-nolibm, ldexp.
35040         (Mathematics <math.h>): New section, add printf-frexpl.
35041         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35042         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35043         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35044         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35045         (Unicode string functions): Add unistr/u*-mbtoucr.
35046         (Java): Add javacomp-script, javaexec-script.
35047         (C#): Add csharpcomp-script, csharpexec-script.
35048         (Support for building libraries and executables): Add havelib,
35049         relocatable-*.
35050         (Support for maintaining and releasing projects): Renamed from
35051         'Support for maintaining and release projects'. Add announce-gen.
35052
35053 2007-03-31  Bruno Haible  <bruno@clisp.org>
35054
35055         * README: Talk primarily about git.
35056         (git and CVS): Renamed from CVS.
35057         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35058         gnulib is available through git.
35059         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35060
35061 2007-03-30  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35064         * lib/poll_.h: Likewise.
35065         * lib/stat_.h: Likewise.
35066         * lib/sys_time_.h: Likewise.
35067         * lib/sysexit_.h: Likewise.
35068         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35069         * lib/stdbool_.h: Likewise.
35070         * lib/byteswap_.h: Add double-inclusion guard.
35071
35072 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35073
35074         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35075
35076 2007-03-30  Karl Berry  <karl@gnu.org>
35077
35078         * config/srclist-update: double space after USA in the license
35079         substitution, since that's how it's usually (?) written.
35080
35081 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35082
35083         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35084         reported by Bruno Haible.
35085
35086 2007-03-29  Bruno Haible  <bruno@clisp.org>
35087
35088         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35089         a bug in AIX iconv().
35090
35091 2007-03-29  Bruno Haible  <bruno@clisp.org>
35092
35093         * modules/ldexpl-tests: New file.
35094         * tests/test-ldexpl.c: New file.
35095
35096 2007-03-29  Bruno Haible  <bruno@clisp.org>
35097
35098         * lib/ldexpl.c: Include fpucw.h.
35099         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35100         multiplication.
35101         * modules/ldexpl (Depends-on): Add fpucw.
35102
35103 2007-03-29  Bruno Haible  <bruno@clisp.org>
35104
35105         * modules/ldexpl: New file.
35106         * m4/ldexpl.m4: New file.
35107         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35108         set.
35109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35110         REPLACE_LDEXPL.
35111         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35112         REPLACE_LDEXPL.
35113         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35114         gl_FUNC_LDEXPL_WORKS.
35115         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35116         * modules/mathl (Files): Remove lib/ldexpl.c.
35117         (Depends-on): Add ldexpl.
35118
35119 2007-03-29  Bruno Haible  <bruno@clisp.org>
35120
35121         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35122
35123 2007-03-29  Bruno Haible  <bruno@clisp.org>
35124
35125         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35126         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35127         and possibly also HP-UX.
35128         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35129         work on AIX, IRIX, HP-UX, OSF/1.
35130         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35131         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35132         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35133         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35134         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35135         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35136
35137 2007-03-29  Bruno Haible  <bruno@clisp.org>
35138
35139         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35140
35141 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35142
35143         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35144         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35145
35146 2007-03-29  Eric Blake  <ebb9@byu.net>
35147
35148         * lib/acl-internal.h: Remove redundant include.
35149         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35150         Cygwin when a file is locked.
35151
35152 2007-03-29  Bruno Haible  <bruno@clisp.org>
35153
35154         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35155         file.
35156         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35157
35158 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35159
35160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35161         try to remove a parent directory if the child couldn't be removed
35162         (except for the first rmdir, which could fail because the child
35163         doesn't exist).  Problem reported by Jeff Blaine in
35164         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35165
35166 2007-03-28  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/striconveh.c (utf8conv_carefully): New function.
35169         (mem_cd_iconveh_internal): Invoke it.
35170
35171 2007-03-28  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35174         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35175         input.
35176         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35177         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35178         unistr/u8-uctomb.
35179
35180 2007-03-28  Bruno Haible  <bruno@clisp.org>
35181
35182         * modules/unistr/u8-mbtoucr: New file.
35183         * lib/unistr/u8-mbtoucr.c: New file.
35184         * modules/unistr/u16-mbtoucr: New file.
35185         * lib/unistr/u16-mbtoucr.c: New file.
35186         * modules/unistr/u16-mbtoucr: New file.
35187         * lib/unistr/u16-mbtoucr.c: New file.
35188         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35189
35190 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35191             Bruno Haible  <bruno@clisp.org>
35192
35193         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35194         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35195         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35196
35197         * m4/stdio_h.m4: Add stubs for vasprintf too.
35198
35199         * modules/stdio: Support vasprintf in sed command.
35200
35201         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35202         vasprintf.h.  Add stdio module indicator.
35203
35204         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35205         vasprintf.h.
35206
35207         * lib/vasprintf.h: File removed.
35208
35209         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35210         * lib/vasprintf.c: Ditto.
35211         * lib/xvasprintf.c: Ditto.
35212         * tests/test-vasprintf-posix.c: Ditto.
35213         * tests/test-vasprintf.c: Ditto.
35214
35215 2007-03-27  Bruno Haible  <bruno@clisp.org>
35216
35217         Make vasnprintf multithread-safe.
35218         * lib/vasnprintf.c (decimal_point_char): New function.
35219         (VASNPRINTF): Use it.
35220         Suggested by Simon Josefsson.
35221
35222 2007-03-27  Eric Blake  <ebb9@byu.net>
35223
35224         Support sub-second birthtime on cygwin.
35225         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35226         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35227         (get_stat_birthtime): Also work with st_birthtim.
35228
35229 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35230
35231         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35232         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35233         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35234         (get_stat_birthtime_ns): Simplify compile-time tests.
35235         (get_stat_birthtime): Change the API to look like
35236         get_stat_mtime etc., except return a negative tv_nsec on error.
35237         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35238         Don't check for "spare" fields.
35239         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35240         or for struct stat.st_birthtime, as these tests aren't used.
35241         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35242
35243 2007-03-27  Bruno Haible  <bruno@clisp.org>
35244
35245         * lib/stat-time.h: Include <sys/stat.h>.
35246
35247 2007-03-27  James Youngman  <jay@gnu.org>
35248
35249         * lib/stat-time.h (get_stat_birthtime): New function for
35250           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35251         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35252           and its variants.
35253         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35254         * modules/stat-time-test: New file.
35255         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35256
35257 2007-03-26  Bruno Haible  <bruno@clisp.org>
35258
35259         Better support of signalling NaNs.
35260         * lib/atanl.c: Include isnanl.h.
35261         (atanl): Perform test for NaN at the beginning of the function and
35262         through a call to isnanl.
35263         * lib/cosl.c: Include isnanl.h.
35264         (cosl): Perform test for NaN at the beginning of the function and
35265         through a call to isnanl.
35266         * lib/ldexpl.c: Include isnanl.h.
35267         (ldexpl): Perform test for NaN through a call to isnanl.
35268         * lib/logl.c: Include isnanl.h.
35269         (logl): Perform test for NaN at the beginning of the function and
35270         through a call to isnanl.
35271         * lib/sinl.c: Include isnanl.h.
35272         (sinl): Perform test for NaN at the beginning of the function and
35273         through a call to isnanl.
35274         * lib/sqrtl.c: Include isnanl.h.
35275         (sqrtl): Perform test for NaN at the beginning of the function and
35276         through a call to isnanl.
35277         * lib/tanl.c: Include isnanl.h.
35278         (tanl): Perform test for NaN at the beginning of the function and
35279         through a call to isnanl.
35280         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35281         * modules/mathl (Depends-on): Add isnanl.
35282
35283 2007-03-26  Eric Blake  <ebb9@byu.net>
35284
35285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35286         regression in logic sense of previous patch.
35287
35288 2007-03-26  Bruno Haible  <bruno@clisp.org>
35289
35290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35291         unportable shell command "if ! ...".
35292         Reported by Ralf Wildenhues.
35293
35294 2007-03-25  Bruno Haible  <bruno@clisp.org>
35295
35296         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35297         <sysexits.h> file, and only add EX_CONFIG.
35298         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35299         absolute file name and whether it is sufficient. Substitute also
35300         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35301         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35302         ABSOLUTE_SYSEXITS_H into sysexits.h.
35303
35304 2007-03-25  Bruno Haible  <bruno@clisp.org>
35305
35306         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35307         hints is NULL.
35308
35309 2007-03-25  Bruno Haible  <bruno@clisp.org>
35310
35311         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35312         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35313
35314 2007-03-25  Bruno Haible  <bruno@clisp.org>
35315
35316         * lib/vasnprintf.c: Include langinfo.h.
35317         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35318         multithread-safe.
35319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35328         Reported by Simon Josefsson.
35329
35330 2007-03-25  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35333         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35334         * modules/vasnprintf (Depends-on): Add stdint.
35335
35336 2007-03-25  Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/fpieee: New file.
35339         * m4/fpieee.m4: New file.
35340         * modules/isnan-nolibm (Depends-on): Add fpieee.
35341         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35342         * modules/isnanl (Depends-on): Add fpieee.
35343
35344 2007-03-25  Bruno Haible  <bruno@clisp.org>
35345
35346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35347
35348 2007-03-25  Bruno Haible  <bruno@clisp.org>
35349
35350         Avoid test failures on IRIX 6.5.
35351         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35352         (main): Use it.
35353         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35354         macros.
35355         (main): Use them.
35356
35357 2007-03-25  Bruno Haible  <bruno@clisp.org>
35358
35359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35360         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35361         exists but doesn't work.
35362         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35363         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35365         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35366
35367 2007-03-25  Bruno Haible  <bruno@clisp.org>
35368
35369         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35370         returns inf. Needed on IRIX 6.5.
35371
35372 2007-03-25  Bruno Haible  <bruno@clisp.org>
35373
35374         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35375         (main): Use isnanl instead of x != x idiom.
35376         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35377
35378         * tests/test-frexp.c: Include isnan.h.
35379         (main): Use isnan instead of x != x idiom.
35380         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35381
35382 2007-03-25  Bruno Haible  <bruno@clisp.org>
35383
35384         * tests/test-frexp.c (NaN): New function/macro.
35385         (main): Use it instead of 0.0 / 0.0.
35386         * tests/test-isnan.c (NaN): New function/macro.
35387         (main): Use it instead of 0.0 / 0.0.
35388         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35389         (test_function): Use it instead of 0.0 / 0.0.
35390         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35391         (test_function): Use it instead of 0.0 / 0.0.
35392         * tests/test-snprintf-posix.h (NaN): New function/macro.
35393         (test_function): Use it instead of 0.0 / 0.0.
35394         * tests/test-sprintf-posix.h (NaN): New function/macro.
35395         (test_function): Use it instead of 0.0 / 0.0.
35396         * tests/test-fprintf-posix.h (NaN): New function/macro.
35397         (test_function): Use it instead of 0.0 / 0.0.
35398         * tests/test-printf-posix.h (NaN): New function/macro.
35399         (test_function): Use it instead of 0.0 / 0.0.
35400
35401         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35402
35403 2007-03-25  Bruno Haible  <bruno@clisp.org>
35404
35405         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35406
35407 2007-03-25  Bruno Haible  <bruno@clisp.org>
35408
35409         * lib/regexec.c (merge_state_with_log): Make static.
35410
35411 2007-03-25  Bruno Haible  <bruno@clisp.org>
35412
35413         * lib/trigl.c (kernel_rem_pio2): Make static.
35414
35415 2007-03-25  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/sincosl.c (sincosl_table): Make static.
35418
35419 2007-03-25  Bruno Haible  <bruno@clisp.org>
35420
35421         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35422         if the compiler does not support C99.
35423
35424 2007-03-25  Bruno Haible  <bruno@clisp.org>
35425
35426         * modules/time (Makefile.am): Ensure all rule action lines start with a
35427         tab.
35428
35429 2007-03-24  Bruno Haible  <bruno@clisp.org>
35430
35431         * modules/tsearch-tests: New file.
35432         * tests/test-tsearch.sh: New file.
35433         * tests/test-tsearch.c: New file, mostly copied from glibc.
35434
35435         * modules/search-tests: New file.
35436         * tests/test-search.c: New file.
35437
35438         * modules/search: New file.
35439         * lib/search_.h: New file, incorporating lib/tsearch.h.
35440         * m4/search_h.m4: New file.
35441         * lib/tsearch.h: Remove file.
35442         * lib/tsearch.c: Include search.h instead of tsearch.h.
35443         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35444         HAVE_TSEARCH.
35445         * modules/tsearch (Files): Remove lib/tsearch.h.
35446         (Depends-on): Add search.
35447         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35448         (Include): Change tsearch.h into search.h.
35449
35450 2007-03-24  Bruno Haible  <bruno@clisp.org>
35451
35452         * modules/fpucw: New file.
35453         * lib/fpucw.h: New file.
35454         * lib/frexp.c: Include fpucw.h.
35455         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35456         (FUNC): Use them.
35457         * lib/printf-frexp.c: Include fpucw.h.
35458         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35459         (FUNC): Use them.
35460         * lib/vasnprintf.c: Include fpucw.h.
35461         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35462         'long double' calculations.
35463         * tests/test-frexpl.c: Include fpucw.h.
35464         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35465         * tests/test-printf-frexpl.c: Include fpucw.h.
35466         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35467         * modules/frexpl (Depends-on): Add fpucw.
35468         * modules/printf-frexpl (Depends-on): Likewise.
35469         * modules/fprintf-posix (Depends-on): Likewise.
35470         * modules/snprintf-posix (Depends-on): Likewise.
35471         * modules/sprintf-posix (Depends-on): Likewise.
35472         * modules/vasnprintf-posix (Depends-on): Likewise.
35473         * modules/vasprintf-posix (Depends-on): Likewise.
35474         * modules/vfprintf-posix (Depends-on): Likewise.
35475         * modules/vsnprintf-posix (Depends-on): Likewise.
35476         * modules/vsprintf-posix (Depends-on): Likewise.
35477         * modules/frexpl-tests (Depends-on): Likewise.
35478         * modules/printf-frexpl-tests (Depends-on): Likewise.
35479
35480 2007-03-24  Bruno Haible  <bruno@clisp.org>
35481
35482         * lib/float+.h: New file.
35483         * lib/isnan.c: Include float+.h.
35484         (SIZE): New macro.
35485         (FUNC): Compare only SIZE bytes of the value.
35486         * lib/vasnprintf.c: Include float+.h.
35487         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35488         SIZEOF_LDBL or SIZEOF_DBL bytes.
35489         * modules/isnan-nolibm (Files): Add lib/float+.h.
35490         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35491         * modules/isnanl (Files): Add lib/float+.h.
35492         * modules/vasnprintf (Files): Add lib/float+.h.
35493
35494 2007-03-24  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35497         include isnanl-nolibm.h.
35498
35499 2007-03-24  Bruno Haible  <bruno@clisp.org>
35500
35501         * tests/test-read-file.c (main): Don't produce spurious output for
35502         expected situations. Make the test fail if it encountered unexpected
35503         results.
35504
35505 2007-03-24  Bruno Haible  <bruno@clisp.org>
35506
35507         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35508         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35509
35510 2007-03-24  Bruno Haible  <bruno@clisp.org>
35511
35512         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35513
35514 2007-03-24  Bruno Haible  <bruno@clisp.org>
35515
35516         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35517         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35518
35519         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35520         * modules/utf8-ucs4: Turn into a symbolic link to module
35521         unistr/u8-mbtouc.
35522
35523         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35524         utf8-ucs4-unsafe.
35525         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35526         unistr/u8-mbtouc-unsafe.
35527
35528         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35529         * modules/utf16-ucs4: Turn into a symbolic link to module
35530         unistr/u16-mbtouc.
35531
35532         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35533         utf16-ucs4-unsafe.
35534         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35535         unistr/u16-mbtouc-unsafe.
35536
35537         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35538         * modules/ucs4-utf8: Turn into a symbolic link to module
35539         unistr/u8-ubtomb.
35540
35541         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35542         * modules/ucs4-utf16: Turn into a symbolic link to module
35543         unistr/u16-ubtomb.
35544
35545 2007-03-24  Bruno Haible  <bruno@clisp.org>
35546
35547         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35548         Enable the function only if HAVE_INLINE.
35549         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35550         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35551         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35552         Enable the function only if HAVE_INLINE.
35553         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35554         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35555         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35556         Enable the function only if HAVE_INLINE.
35557         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35558         Enable the function only if HAVE_INLINE.
35559         * modules/utf8-ucs4: Update.
35560         * modules/utf8-ucs4-unsafe: Update.
35561         * modules/utf16-ucs4: Update.
35562         * modules/utf16-ucs4-unsafe: Update.
35563         * modules/ucs4-utf8: Update.
35564         * modules/ucs4-utf16: Update.
35565
35566 2007-03-24  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/utf8-ucs4.h: Remove file.
35569         * lib/utf8-ucs4-unsafe.h: Remove file.
35570         * lib/utf16-ucs4.h: Remove file.
35571         * lib/utf16-ucs4-unsafe.h: Remove file.
35572         * lib/ucs4-utf8.h: Remove file.
35573         * lib/ucs4-utf16.h: Remove file.
35574         * lib/unistr.h: Include their previous contents.
35575         * m4/utf-ucs4.m4: Remove file.
35576         * m4/ucs4-utf.m4: Remove file.
35577         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35578         (Depends-on): Add unistr/base.
35579         (configure.ac): Remove gl_UTF_UCS4.
35580         (Makefile.am): Update.
35581         (Include): Change to unistr.h.
35582         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35583         (Depends-on): Add unistr/base.
35584         (configure.ac): Remove gl_UTF_UCS4.
35585         (Makefile.am): Update.
35586         (Include): Change to unistr.h.
35587         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35588         (Depends-on): Add unistr/base.
35589         (configure.ac): Remove gl_UTF_UCS4.
35590         (Makefile.am): Update.
35591         (Include): Change to unistr.h.
35592         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35593         (Depends-on): Add unistr/base.
35594         (configure.ac): Remove gl_UTF_UCS4.
35595         (Makefile.am): Update.
35596         (Include): Change to unistr.h.
35597         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35598         (Depends-on): Add unistr/base.
35599         (configure.ac): Remove gl_UCS4_UTF.
35600         (Makefile.am): Update.
35601         (Include): Change to unistr.h.
35602         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35603         (Depends-on): Add unistr/base.
35604         (configure.ac): Remove gl_UCS4_UTF.
35605         (Makefile.am): Update.
35606         (Include): Change to unistr.h.
35607         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35608         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35609         utf8-ucs4-unsafe.h.
35610         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35611         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35612         utf16-ucs4-unsafe.h.
35613         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35614         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35615         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35616         * lib/unistr/u8-strchr.c: Likewise.
35617         * lib/unistr/u8-strrchr.c: Likewise.
35618         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35619         * lib/unistr/u16-strchr.c: Likewise.
35620         * lib/unistr/u16-strrchr.c: Likewise.
35621         * lib/striconveh.c: Update.
35622         * lib/linebreak.c: Update.
35623
35624 2007-03-24  Bruno Haible  <bruno@clisp.org>
35625
35626         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35627         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35628
35629 2007-03-22  Bruno Haible  <bruno@clisp.org>
35630
35631         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35632
35633 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35634
35635         * MODULES.html.sh (File system functions): New module write-any-file.
35636         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35637         * m4/write-any-file.m4: New files.
35638
35639 2007-03-23  Eric Blake  <ebb9@byu.net>
35640
35641         * gnulib-tool: Rearrange space-tab sequences, since some editors
35642         like to eat them.
35643
35644 2007-03-23  Eric Blake  <ebb9@byu.net>
35645
35646         * lib/version-etc.c (version_etc_va): Update license wording to
35647         be more concise.  Recommended by Richard Stallman.
35648
35649 2007-03-22  Bruno Haible  <bruno@clisp.org>
35650
35651         * lib/poll.c (MSG_PEEK): New fallback definition.
35652
35653 2007-03-22  Bruno Haible  <bruno@clisp.org>
35654
35655         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35656         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35657         (main): Update.
35658         Fixes a compilation error on BeOS.
35659
35660 2007-03-22  Bruno Haible  <bruno@clisp.org>
35661
35662         * modules/frexpl-tests: New file.
35663         * tests/test-frexpl.c: New file.
35664
35665         * modules/frexpl: New file.
35666         * m4/frexpl.m4: New file.
35667         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35668         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35670         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35671         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35672         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35673
35674 2007-03-22  Bruno Haible  <bruno@clisp.org>
35675
35676         * lib/frexpl.c: Share code with lib/frexp.c.
35677         * modules/mathl (Files): Add lib/frexp.c.
35678         (Depends-on): Add isnanl-nolibm.
35679
35680 2007-03-22  Bruno Haible  <bruno@clisp.org>
35681
35682         * modules/printf-frexp (Files): Add m4/frexp.m4.
35683         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35684         only if the found frexp function actually works.
35685
35686 2007-03-22  Bruno Haible  <bruno@clisp.org>
35687
35688         * lib/frexp.c: Remove older implementation that uses divisions.
35689
35690 2007-03-21  Bruno Haible  <bruno@clisp.org>
35691
35692         * modules/frexp-tests: New file.
35693         * tests/test-frexp.c: New file.
35694
35695         * modules/frexp: New file.
35696         * lib/frexp.c: New file.
35697         * m4/frexp.m4: New file.
35698         * lib/math_.h (frexp): New declaration.
35699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35700         REPLACE_FREXP.
35701         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35702
35703 2007-03-21  Bruno Haible  <bruno@clisp.org>
35704
35705         * modules/isnanl-tests: New file.
35706         * tests/test-isnanl.c: New file.
35707
35708         * modules/isnanl: New file.
35709         * lib/isnanl.h: New file.
35710         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35711         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35712         gl_FUNC_ISNANL_WORKS.
35713         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35714         New macros.
35715
35716 2007-03-21  Bruno Haible  <bruno@clisp.org>
35717
35718         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35719         lib/isnanl.h.
35720         (Include): Update.
35721         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35722         * lib/vasnprintf.c: Update.
35723         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35724         tests/test-isnanl.h, remove tests/test-isnanl.c.
35725         (Makefile.am): Update.
35726         * tests/test-isnanl-nolibm.c: New file.
35727         * tests/test-isnanl.h: New file.
35728         * tests/test-isnanl.c: Remove file.
35729
35730 2007-03-21  Jim Meyering  <jim@meyering.net>
35731
35732         When trying to open ".", treat ESTALE like EACCES.
35733         * lib/savewd.c (savewd_save): Resort to forking not just upon
35734         failure with EACCES, but also when errno is ESTALE.
35735
35736 2007-03-20  Bruno Haible  <bruno@clisp.org>
35737
35738         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35739         Needed on AIX 5.1. Reported by Matthew Woehlke.
35740
35741 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35742
35743         Suggestions by Bruno Haible:
35744         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35745         our own.
35746         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35747         * modules/acl (Depends-on): Add gettext.
35748
35749 2007-03-19  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/iconvme: Remove file.
35752         * lib/iconvme.h: Remove file.
35753         * lib/iconvme.c: Remove file.
35754         * m4/iconvme.m4: Remove file.
35755
35756 2007-03-19  Bruno Haible  <bruno@clisp.org>
35757
35758         * doc/relocatable-maint.texi: Break long shell script line.
35759         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35760
35761 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35762
35763         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35764         handle file_has_acl.
35765         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35766         * lib/acl.c: Move header inclusions and related macro defns into
35767         lib/acl-internal.h.
35768         (S_ISLNK): Remove defn, since that's now done for us.
35769         (file_has_acl): Move to lib/file-has-acl.c.
35770         Call acl_trivial if available.  This is the crucial part of the fix.
35771         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35772         shared within the library.  Rewrite a bit, partly to make it compatible
35773         with the GNU coding style.
35774         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35775         Remove unnecessary double-quotes.
35776         Don't test for acl_to_text; the build will catch that.
35777         Replace acl_entries if it doesn't exist and it is needed.
35778         Check for -lsec and acl_trivial (as used on Solaris 10).
35779         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35780         lib/file-has-acl.c.
35781         (Depends-on): Add sys_stat, for S_ISLNK.
35782
35783 2007-03-19  Ben Pfaff  <blp@gnu.org>
35784
35785         * doc/gnulib.texi: Fix typos.
35786         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35787
35788 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35789
35790         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35791         If size is zero here, buf must be zero.
35792
35793 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35794
35795         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35796         <bruno@clisp.org>.
35797
35798 2007-03-18  Bruno Haible  <bruno@clisp.org>
35799
35800         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35801         Suggested by Eric Blake.
35802
35803 2007-03-18  Ben Pfaff  <blp@gnu.org>
35804
35805         * doc/relocatable.texi: Recommend using as prefix a directory
35806         that does not exist and will never be created.  Based on
35807         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35808         and others.
35809
35810 2007-03-17  Bruno Haible  <bruno@clisp.org>
35811
35812         * lib/fchownat.c: Include lchown.h.
35813
35814 2007-03-17  Bruno Haible  <bruno@clisp.org>
35815
35816         Fix endless loop when the given allocated size was > INT_MAX.
35817         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35818         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35819         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35820         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35821         * lib/sprintf.c (sprintf): Likewise.
35822
35823 2007-03-17  Bruno Haible  <bruno@clisp.org>
35824
35825         * tests/test-argp-2.sh (func_compare): Output a context diff.
35826
35827 2007-03-17  Bruno Haible  <bruno@clisp.org>
35828
35829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35830         locale's decimal-point character.
35831
35832 2007-03-17  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35835         before comparing it. Needed because on some platforms (e.g. x86) a
35836         'long double' occupies less bytes than sizeof (long double).
35837
35838 2007-03-17  Bruno Haible  <bruno@clisp.org>
35839
35840         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35841         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35842         * tests/test-getaddrinfo.c (simple): Likewise.
35843         * tests/test-read-file.c (main): Likewise.
35844
35845 2007-03-17  Bruno Haible  <bruno@clisp.org>
35846
35847         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35848
35849 2007-03-17  Bruno Haible  <bruno@clisp.org>
35850
35851         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35852         unused variable.
35853
35854 2007-03-17  Bruno Haible  <bruno@clisp.org>
35855
35856         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35857         * tests/test-c-strncasecmp.c: Likewise.
35858
35859 2007-03-17  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/stdlib (Depends-on): Add unistd.
35862         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35863         Needed for MacOS X 10.3.
35864
35865 2007-03-17  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35868
35869 2007-03-17  Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35872
35873 2007-03-17  Bruno Haible  <bruno@clisp.org>
35874
35875         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35876         to reflect files copied from gnulib (with or without modifications).
35877         Suggested by Jim Meyering.
35878
35879 2007-03-17  Eric Blake  <ebb9@byu.net>
35880
35881         * NEWS: Document stdlib change from 2007-02-18.
35882
35883 2007-03-17  Jim Meyering  <jim@meyering.net>
35884
35885         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35886         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35887         someone uses a name containing shell meta-characters.
35888         Reported by Alfred M. Szmidt.
35889
35890         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35891
35892 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35893
35894         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35895         and copy gettext configuration files only if configure.ac contains
35896         a use of AM_GNU_GETTEXT_VERSION.
35897
35898 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35899
35900         * build-aux/bootstrap (gnulib_name): New variable.
35901         (gnulib_tool_options): Use it.
35902
35903 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35904
35905         * tests/test-des.c: Use new namespace.
35906
35907 2007-03-15  Bruno Haible  <bruno@clisp.org>
35908
35909         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35910         Reported by James Youngman <jay@gnu.org>.
35911
35912 2007-03-15  Bruno Haible  <bruno@clisp.org>
35913
35914         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35915         declared prototype. Needed with cc on OSF/1 5.1.
35916
35917 2007-03-15  Bruno Haible  <bruno@clisp.org>
35918
35919         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35920         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35921         (struct gl_list_implementation): Add dispose_fn argument to the
35922         'create_empty', 'create' methods.
35923         (struct gl_list_impl_base): Add field 'dispose_fn'.
35924         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35925         argument.
35926         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35927         dispose_fn argument.
35928         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35929         dispose_fn on the dropped values.
35930         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35931         dispose_fn argument.
35932         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35933         dropped values.
35934         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35935         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35936         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35937         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35938         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35939         argument.
35940         (gl_tree_list_free): Call dispose_fn on the dropped values.
35941         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35942         the dropped values.
35943         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35944         Add dispose_fn argument.
35945         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35946         Call dispose_fn on the dropped values.
35947         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35948         Add dispose_fn argument.
35949         (gl_sublist_create): Initialize the 'dispose_fn' field.
35950         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35951         * tests/test-array_list.c (main): Update.
35952         * tests/test-carray_list.c (main): Update.
35953         * tests/test-avltree_list.c (main): Update.
35954         * tests/test-rbtree_list.c (main): Update.
35955         * tests/test-avltreehash_list.c (main): Update.
35956         * tests/test-rbtreehash_list.c (main): Update.
35957         * tests/test-linked_list.c (main): Update.
35958         * tests/test-linkedhash_list.c (main): Update.
35959         * tests/test-array_oset.c (main): Update.
35960
35961 2007-03-15  Bruno Haible  <bruno@clisp.org>
35962
35963         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35964         (gl_oset_create_empty): Add dispose_fn argument.
35965         (struct gl_oset_implementation): Add dispose_fn argument to
35966         'create_empty' method.
35967         (struct gl_oset_impl_base): Add dispose_fn field.
35968         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35969         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35970         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35971         values.
35972         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35973         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35974         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35975         dropped value.
35976         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35977         dropped value.
35978         * tests/test-array_oset.c (main): Update.
35979         * tests/test-avltree_oset.c (main): Update.
35980         * tests/test-rbtree_oset.c (main): Update.
35981         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35982
35983 2007-03-13  Bruno Haible  <bruno@clisp.org>
35984
35985         * tests/test-stdbool.c (i): Update after last patch.
35986
35987 2007-03-12  Bruno Haible  <bruno@clisp.org>
35988
35989         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35990         the iswprint macro. Needed on Solaris 2.5.1.
35991
35992 2007-03-12  Bruno Haible  <bruno@clisp.org>
35993
35994         * tests/test-printf-frexp.c (main): Declare x as volatile.
35995
35996 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35997
35998         * doc/gnulib.texi (Build robot for gnulib): New section.
35999
36000 2007-03-12  Jim Meyering  <jim@meyering.net>
36001
36002         * build-aux/bootstrap: New file.
36003         * build-aux/bootstrap.conf: New file, from coreutils.
36004
36005 2007-03-11  Bruno Haible  <bruno@clisp.org>
36006
36007         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36008
36009 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36010
36011         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36012         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36013         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36014
36015 2007-03-11  Bruno Haible  <bruno@clisp.org>
36016
36017         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36018         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36019
36020 2007-03-11  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36023         formula. Needed for SunPRO C 5.0.
36024
36025 2007-03-11  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/long-options (Depends-on): Add getopt.
36028
36029 2007-03-11  Bruno Haible  <bruno@clisp.org>
36030
36031         * modules/modechange (Depends-on): Add stdbool.
36032
36033 2007-03-11  Bruno Haible  <bruno@clisp.org>
36034
36035         * modules/i-ring (Depends-on): Add stdbool.
36036
36037 2007-03-11  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/gc-des (Depends-on): Add stdbool.
36040
36041 2007-03-11  Bruno Haible  <bruno@clisp.org>
36042
36043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36044
36045 2007-03-11  Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36048
36049 2007-03-11  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36052
36053 2007-03-11  Bruno Haible  <bruno@clisp.org>
36054
36055         * lib/vasnprintf.c (sprintf): Undefine.
36056
36057 2007-03-11  Bruno Haible  <bruno@clisp.org>
36058
36059         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36060         initializers in SunPRO C and Compaq C compilers.
36061
36062 2007-03-11  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36065         decrementing code ANSI C compliant.
36066
36067 2007-03-11  Bruno Haible  <bruno@clisp.org>
36068
36069         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36070         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36071
36072 2007-03-11  Bruno Haible  <bruno@clisp.org>
36073
36074         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36075         <stdbool.h> substitute doesn't pass.
36076
36077 2007-03-11  Bruno Haible  <bruno@clisp.org>
36078
36079         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36080
36081 2007-03-11  Bruno Haible  <bruno@clisp.org>
36082
36083         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36084         script, for submission to autobuild.josefsson.org.
36085
36086 2007-03-10  Bruno Haible  <bruno@clisp.org>
36087
36088         * modules/canonicalize-lgpl-tests: New file.
36089         * tests/test-canonicalize-lgpl.sh: New file.
36090         * tests/test-canonicalize-lgpl.c: New file.
36091
36092         * modules/c-strcase-tests: New file.
36093         * tests/test-c-strcase.sh: New file.
36094         * tests/test-c-strcasecmp.c: New file.
36095         * tests/test-c-strncasecmp.c: New file.
36096
36097         * modules/atexit-tests: New file.
36098         * tests/test-atexit.sh: New file.
36099         * tests/test-atexit.c: New file.
36100
36101 2007-03-10  Bruno Haible  <bruno@clisp.org>
36102
36103         * tests/test-binary-io.sh: Use temporary filenames that are not so
36104         likely to clash with those of other tests (in a parallel make).
36105         * tests/test-binary-io.c: Likewise.
36106
36107 2007-03-10  Bruno Haible  <bruno@clisp.org>
36108
36109         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36110         fallback; use #error instead.
36111         Suggested by Simon Josefsson.
36112
36113 2007-03-10  Bruno Haible  <bruno@clisp.org>
36114
36115         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36116         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36117         first and the last.
36118
36119 2007-03-10  Bruno Haible  <bruno@clisp.org>
36120
36121         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36122
36123 2007-03-10  Bruno Haible  <bruno@clisp.org>
36124
36125         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36126         "make distcheck".
36127         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36128         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36129         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36130
36131 2007-03-10  Bruno Haible  <bruno@clisp.org>
36132
36133         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36134         variable.
36135         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36136         variable.
36137
36138 2007-03-09  Eric Blake  <ebb9@byu.net>
36139         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36140
36141         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36142         types are not being provided by gnulib.
36143         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36144         types are supported.
36145
36146 2007-03-10  Bruno Haible  <bruno@clisp.org>
36147
36148         * lib/stdio_.h (__attribute__): New macro.
36149         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36150         vsprintf): Specify __attribute__ __format__ for GCC.
36151         Suggested by Eric Blake.
36152
36153 2007-03-09  Bruno Haible  <bruno@clisp.org>
36154
36155         * modules/printf-posix-tests: New file.
36156         * tests/test-printf-posix.sh: New file.
36157         * tests/test-printf-posix.c: New file.
36158
36159         * modules/printf-posix: New file.
36160         * lib/printf.c: New file.
36161         * m4/printf-posix-rpl.m4: New file.
36162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36163         REPLACE_PRINTF.
36164         * lib/stdio_.h (printf): New declaration.
36165         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36166         ____strfmon____): New macros.
36167         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36168         REPLACE_PRINTF.
36169
36170 2007-03-09  Bruno Haible  <bruno@clisp.org>
36171
36172         * tests/test-vasnprintf-posix2.sh: New file.
36173         * tests/test-vasnprintf-posix2.c: New file.
36174         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36175         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36176         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36177
36178         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36179         a locale dependent decimal point, rather than always '.'.
36180
36181 2007-03-09  Eric Blake  <ebb9@byu.net>
36182
36183         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36184         spite of platforms like Tandem/NSK that define it to -1.
36185
36186 2007-03-08  Bruno Haible  <bruno@clisp.org>
36187
36188         * modules/vprintf-posix-tests: New file.
36189         * tests/test-vprintf-posix.sh: New file.
36190         * tests/test-vprintf-posix.c: New file.
36191         * tests/test-printf-posix.h: New file.
36192
36193         * modules/vprintf-posix: New file.
36194         * lib/vprintf.c: New file.
36195         * m4/vprintf-posix.m4: New file.
36196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36197         REPLACE_VPRINTF.
36198         * lib/stdio_.h (vprintf): New declaration.
36199         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36200         REPLACE_VPRINTF.
36201
36202 2007-03-08  Bruno Haible  <bruno@clisp.org>
36203
36204         * modules/fprintf-posix-tests: New file.
36205         * tests/test-fprintf-posix.sh: New file.
36206         * tests/test-fprintf-posix.c: New file.
36207
36208         * modules/fprintf-posix: New file.
36209         * lib/fprintf.c: New file.
36210         * m4/fprintf-posix.m4: New file.
36211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36212         REPLACE_FPRINTF.
36213         * lib/stdio_.h (fprintf): New declaration.
36214         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36215         REPLACE_FPRINTF.
36216
36217 2007-03-08  Bruno Haible  <bruno@clisp.org>
36218
36219         * modules/vfprintf-posix-tests: New file.
36220         * tests/test-vfprintf-posix.sh: New file.
36221         * tests/test-vfprintf-posix.c: New file.
36222         * tests/test-fprintf-posix.h: New file.
36223         * tests/test-fprintf-posix.out: New file.
36224
36225         * modules/vfprintf-posix: New file.
36226         * lib/vfprintf.c: New file.
36227         * m4/vfprintf-posix.m4: New file.
36228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36229         REPLACE_VFPRINTF.
36230         * lib/stdio_.h (vfprintf): New declaration.
36231         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36232         REPLACE_VFPRINTF.
36233
36234 2007-03-08  Bruno Haible  <bruno@clisp.org>
36235
36236         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36237
36238 2007-03-08  Bruno Haible  <bruno@clisp.org>
36239
36240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36241         instead of 'expr' invocations.
36242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36247         Suggested by Paul Eggert.
36248
36249 2007-03-08  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/fseterr-tests: New file.
36252         * tests/test-fseterr.c: New file.
36253
36254         * modules/fseterr: New file.
36255         * lib/fseterr.h: New file.
36256         * lib/fseterr.c: New file.
36257
36258 2007-03-08  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36261         * lib/getopt_.h: Likewise.
36262         * lib/mbswidth.h: Likewise.
36263         * lib/setenv.h: Likewise.
36264         * lib/vasnprintf.h: Likewise.
36265         * lib/vasprintf.h: Likewise.
36266         * lib/verror.h: Likewise.
36267         * lib/xsetenv.h: Likewise.
36268         * lib/xvasprintf.h: Likewise.
36269
36270 2007-03-08  Jim Meyering  <jim@meyering.net>
36271
36272         * users.txt: Add parted.
36273
36274         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36275
36276 2007-03-07  Bruno Haible  <bruno@clisp.org>
36277
36278         * m4/printf.m4: Make the shell script snippets copy&pastable.
36279
36280 2007-03-02  Bruno Haible  <bruno@clisp.org>
36281
36282         * lib/netinet_in_.h: New file.
36283         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36284         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36285         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36286         (Depends-on): Add absolute-header.
36287         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36288         into netinet/in.h.
36289
36290 2007-03-03  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/sys_select_.h: New file.
36293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36294         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36295         * modules/sys_select (Files): Add lib/sys_select_.h.
36296         (Depends-on): Add absolute-header.
36297         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36298         into sys/select.h.
36299
36300 2007-03-02  Bruno Haible  <bruno@clisp.org>
36301
36302         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36303         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36304         values.
36305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36306         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36307         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36308         * modules/sys_socket (Depends-on): Add absolute-header.
36309         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36310         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36311         (Include): Remove requirement of inclusion of <sys/types.h>.
36312
36313 2007-03-02  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/byteswap_.h (bswap_32): Fix formula.
36316
36317 2007-03-06  Bruno Haible  <bruno@clisp.org>
36318
36319         * modules/sprintf-posix-tests: New file.
36320         * tests/test-sprintf-posix.c: New file.
36321
36322         * modules/sprintf-posix: New file.
36323         * lib/sprintf.c: New file.
36324         * m4/sprintf-posix.m4: New file.
36325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36326         REPLACE_SPRINTF.
36327         * lib/stdio_.h (sprintf): New declaration.
36328         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36329         REPLACE_SPRINTF.
36330
36331 2007-03-06  Bruno Haible  <bruno@clisp.org>
36332
36333         * modules/vsprintf-posix-tests: New file.
36334         * tests/test-vsprintf-posix.c: New file.
36335         * tests/test-sprintf-posix.h: New file.
36336
36337         * modules/vsprintf-posix: New file.
36338         * lib/vsprintf.c: New file.
36339         * m4/vsprintf-posix.m4: New file.
36340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36341         REPLACE_VSPRINTF.
36342         * lib/stdio_.h (vsprintf): New declaration.
36343         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36344         REPLACE_VSPRINTF.
36345
36346 2007-03-06  Bruno Haible  <bruno@clisp.org>
36347
36348         * modules/vsnprintf (Depend-on): Remove minmax.
36349
36350 2007-03-06  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/snprintf-posix-tests: New file.
36353         * tests/test-snprintf-posix.c: New file.
36354
36355         * modules/snprintf-posix: New file.
36356         * m4/snprintf-posix.m4: New file.
36357         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36358         gl_FUNC_SNPRINTF.
36359         (gl_FUNC_SNPRINTF): Invoke it.
36360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36361         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36362         is set.
36363         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36364
36365 2007-03-06  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/vsnprintf-posix-tests: New file.
36368         * tests/test-vsnprintf-posix.c: New file.
36369         * tests/test-snprintf-posix.h: New file.
36370
36371         * modules/vsnprintf-posix: New file.
36372         * m4/vsnprintf-posix.m4: New file.
36373         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36374         gl_FUNC_VSNPRINTF.
36375         (gl_FUNC_VSNPRINTF): Invoke it.
36376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36377         * lib/stdio_.h (vsnprintf): Define as a replacement if
36378         REPLACE_VSNPRINTF is set.
36379         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36380
36381 2007-03-06  Bruno Haible  <bruno@clisp.org>
36382
36383         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36385
36386 2007-03-06  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36389         (asinl): Declare also if HAVE_DECL_ASINL is set.
36390         (atanl): Declare also if HAVE_DECL_ATANL is set.
36391         (ceill): Declare also if HAVE_DECL_CEILL is set.
36392         (cosl): Declare also if HAVE_DECL_COSL is set.
36393         (expl): Declare also if HAVE_DECL_EXPL is set.
36394         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36395         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36396         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36397         (logl): Declare also if HAVE_DECL_LOGL is set.
36398         (sinl): Declare also if HAVE_DECL_SINL is set.
36399         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36400         (tanl): Declare also if HAVE_DECL_TANL is set.
36401         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36403         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36404         declaration of frexpl, ldexpl.
36405         * modules/printf-frexpl (Depends-on): Add math.
36406         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36407
36408 2007-03-05  Bruno Haible  <bruno@clisp.org>
36409
36410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36411         frexpl and ldexpl are declared.
36412         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36413
36414 2007-03-05  Bruno Haible  <bruno@clisp.org>
36415
36416         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36417         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36418
36419 2007-03-05  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/stdio_.h: Include <stddef.h>.
36422
36423 2007-03-05  Bruno Haible  <bruno@clisp.org>
36424
36425         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36426
36427 2007-03-05  Bruno Haible  <bruno@clisp.org>
36428
36429         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36430         NetBSD 4, from Ralf Wildenhues.
36431
36432 2007-03-04  Bruno Haible  <bruno@clisp.org>
36433
36434         * lib/vasprintf.h: Update #if logic for the case when the functions
36435         exist but are overridden.
36436
36437 2007-03-04  Bruno Haible  <bruno@clisp.org>
36438
36439         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36440         implementations: glibc-2.4 and MacOS X 10.3.
36441         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36442         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36443         * tests/test-vasprintf-posix.c (test_function): Likewise.
36444
36445 2007-03-04  Bruno Haible  <bruno@clisp.org>
36446
36447         * modules/vasprintf-posix-tests: New file.
36448         * tests/test-vasprintf-posix.c: New file.
36449
36450         * modules/vasprintf-posix: New file.
36451         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36452         defined.
36453         * m4/vasprintf-posix.m4: New file.
36454         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36455         gl_FUNC_VASPRINTF.
36456         (gl_FUNC_VASPRINTF): Invoke it.
36457         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36458         here.
36459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36460
36461 2007-03-04  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36464         REPLACE_GETTIMEOFDAY.
36465         * modules/sys_time (Makefile.am): Likewise.
36466         * m4/sys_time_h.m4: Likewise.
36467         * m4/gettimeofday.m4: Likewise.
36468
36469 2007-03-04  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/vasnprintf-posix-tests: New file.
36472         * tests/test-vasnprintf-posix.c: New file.
36473
36474         * modules/vasnprintf-posix: New file.
36475         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36476         printf-frexpl.h.
36477         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36478         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36479         REPLACE_VASNPRINTF is defined.
36480         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36481         gl_FUNC_VASNPRINTF.
36482         (gl_FUNC_VASNPRINTF): Invoke it.
36483         * m4/vasnprintf-posix.m4: New file.
36484         * m4/printf.m4: New file.
36485
36486 2007-03-04  Bruno Haible  <bruno@clisp.org>
36487
36488         Compile progreloc.c only if --enable-relocatable is specified.
36489         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36490         if --enable-relocatable was specified.
36491         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36492         lib_SOURCES.
36493
36494 2007-03-04  Jim Meyering  <jim@meyering.net>
36495
36496         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36497         Use it consistently, rather than enumerating errno constants.
36498
36499 2007-03-04  Bruno Haible  <bruno@clisp.org>
36500
36501         * modules/xvasprintf-tests: New file.
36502         * tests/test-xvasprintf.c: New file.
36503
36504         * modules/vasprintf-tests: New file.
36505         * tests/test-vasprintf.c: New file.
36506
36507         * modules/vasnprintf-tests: New file.
36508         * tests/test-vasnprintf.c: New file.
36509
36510         * modules/vsnprintf-tests: New file.
36511         * tests/test-vsnprintf.c: New file.
36512
36513         * modules/snprintf-tests: New file.
36514         * tests/test-snprintf.c: New file.
36515
36516 2007-03-04  Bruno Haible  <bruno@clisp.org>
36517
36518         Compile relocatable.c only if --enable-relocatable is specified.
36519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36520         gl_RELOCATABLE_LIBRARY.
36521         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36522         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36523         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36524         gl_RELOCATABLE_LIBRARY.
36525         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36526         (Makefile.am): Remove lib_SOURCES.
36527         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36528         gl_RELOCATABLE_LIBRARY.
36529         (Makefile.am): Remove lib_SOURCES.
36530         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36531         always.
36532         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36533         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36534
36535 2007-03-04  Bruno Haible  <bruno@clisp.org>
36536
36537         * modules/argmatch-tests: New file.
36538         * tests/test-argmatch.c: New file.
36539
36540         * tests/test-allocsa.c (main): Halve the number of loop runs.
36541
36542         * modules/alloca-opt-tests: New file.
36543         * tests/test-alloca-opt.c: New file.
36544
36545 2007-03-04  Jim Meyering  <jim@meyering.net>
36546
36547         Work around difference between Linux ACLs and Solaris 10 ZFS.
36548         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36549         for EINVAL.
36550
36551 2007-03-03  Bruno Haible  <bruno@clisp.org>
36552
36553         * modules/relocatable-prog (Depends-on): Add back progreloc's
36554         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36555
36556 2007-03-03  Bruno Haible  <bruno@clisp.org>
36557
36558         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36559         * modules/relocatable-lib: New file.
36560
36561 2007-03-03  Bruno Haible  <bruno@clisp.org>
36562
36563         * modules/relocatable-prog: Renamed from modules/relocatable.
36564         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36565
36566 2007-03-03  Bruno Haible  <bruno@clisp.org>
36567
36568         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36569         m4/relocatable-lib.m4.
36570         (Depends-on): Remove 'relocatable'.
36571         (configure.ac): Add gl_RELOCATABLE_NOP.
36572
36573 2007-03-03  Bruno Haible  <bruno@clisp.org>
36574
36575         * modules/relocatable-prog-wrapper: New file.
36576         * modules/relocatable (Depends-on): Add it. Remove all other
36577         dependencies except progname.
36578         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36579
36580         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36581         (gl_FUNC_STRERROR): Nop.
36582         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36583
36584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36585         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36586
36587         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36588         (gl_FUNC_READLINK): Update.
36589
36590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36591
36592 2007-03-03  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36595         * modules/xreadlink (Depends-on): Add unistd.
36596         * modules/xreadlink-with-size (Depends-on): Likewise.
36597
36598 2007-03-03  Bruno Haible  <bruno@clisp.org>
36599
36600         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36601         extracted from gt_FUNC_SETENV.
36602         (gt_FUNC_SETENV): Remove macro.
36603         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36604         remove gt_FUNC_SETENV.
36605
36606 2007-03-03  Bruno Haible  <bruno@clisp.org>
36607
36608         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36609         ENABLE_RELOCATABLE here.
36610         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36611
36612 2007-03-03  Bruno Haible  <bruno@clisp.org>
36613
36614         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36615         * tests/test-rbtreehash_list.c: Include progname.h.
36616         (main): Call set_program_name.
36617
36618         * modules/rbtree-oset-tests (Depends-on): Add progname.
36619         * tests/test-rbtree_oset.c: Include progname.h.
36620         (main): Call set_program_name.
36621
36622         * modules/rbtree-list-tests (Depends-on): Add progname.
36623         * tests/test-rbtree_list.c: Include progname.h.
36624         (main): Call set_program_name.
36625
36626         * modules/linked-list-tests (Depends-on): Add progname.
36627         * tests/test-linked_list.c: Include progname.h.
36628         (main): Call set_program_name.
36629
36630 2007-03-03  Bruno Haible  <bruno@clisp.org>
36631
36632         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36633         All uses of __restrict changed to _Restrict_.
36634         * lib/glob_.h (__restrict): Remove macro.
36635
36636 2007-03-02  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/gettext (configure.ac): Require gettext infrastructure
36639         from version 0.16.1.
36640
36641 2007-03-02  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/linkedhash-list-tests (Depends-on): Add progname.
36644         * tests/test-linkedhash_list.c: Include progname.h.
36645         (main): Call set_program_name.
36646
36647         * modules/carray-list-tests (Depends-on): Add progname.
36648         * tests/test-carray_list.c: Include progname.h.
36649         (main): Call set_program_name.
36650
36651         * modules/avltreehash-list-tests (Depends-on): Add progname.
36652         * tests/test-avltreehash_list.c: Include progname.h.
36653         (main): Call set_program_name.
36654
36655         * modules/avltree-oset-tests (Depends-on): Add progname.
36656         * tests/test-avltree_oset.c: Include progname.h.
36657         (main): Call set_program_name.
36658
36659         * modules/avltree-list-tests (Depends-on): Add progname.
36660         * tests/test-avltree_list.c: Include progname.h.
36661         (main): Call set_program_name.
36662
36663         * modules/array-oset-tests (Depends-on): Add progname.
36664         * tests/test-array_oset.c: Include progname.h.
36665         (main): Call set_program_name.
36666
36667         * modules/array-list-tests (Depends-on): Add progname.
36668         * tests/test-array_list.c: Include progname.h.
36669         (main): Call set_program_name.
36670
36671         * modules/argp-tests (Depends-on): Add progname.
36672         * tests/test-argp.c: Include argp.h first. Include progname.h.
36673         (main): Call set_program_name.
36674
36675 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36676
36677         * doc/gnulib-tool.texi (Initial import): Reword description of
36678         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36679         limited effect even if defined after the first system include.
36680
36681 2007-03-01  Bruno Haible  <bruno@clisp.org>
36682
36683         * build-aux/config.libpath: Update to libtool-1.5.22.
36684         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36685
36686 2007-03-01  Bruno Haible  <bruno@clisp.org>
36687
36688         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36689         foo_CFLAGS.
36690         Reported by Ralf Wildenhues.
36691
36692 2007-03-01  Bruno Haible  <bruno@clisp.org>
36693
36694         * build-aux/install-reloc: Remove object files left over by some
36695         compilers.
36696         Reported by Ralf Wildenhues.
36697
36698 2007-03-01  Bruno Haible  <bruno@clisp.org>
36699
36700         * build-aux/install-reloc: Break long lines.
36701
36702 2007-03-01  Bruno Haible  <bruno@clisp.org>
36703
36704         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36705         Reported by Ralf Wildenhues.
36706
36707 2007-03-01  Bruno Haible  <bruno@clisp.org>
36708
36709         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36710         include ordering constraints.
36711
36712 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36713
36714         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36716         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36717         as another example.
36718         * lib/time_.h: Fix misspelling.
36719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36720         Require gl_HEADER_TIME_H_DEFAULTS.
36721         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36722         * m4/time_r.m4 (gl_TIME_R): Likewise.
36723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36724
36725 2007-03-01  Bruno Haible  <bruno@clisp.org>
36726
36727         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36728         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36729
36730 2007-03-01  Jim Meyering  <jim@meyering.net>
36731
36732         * modules/xreadlink (Maintainer): Add my name.
36733         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36734
36735 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36736             Bruno Haible  <bruno@clisp.org>
36737
36738         * build-aux/install-reloc: Compile also c-ctype.c.
36739         * build-aux/relocatable.sh.in: New file.
36740         * doc/relocatable.texi: New file.
36741         * doc/relocatable-maint.texi: New file.
36742         * doc/gnulib.texi: Include relocatable-maint.texi.
36743         * lib/progreloc.c: Include unistd.h unconditionally.
36744         * lib/relocwrapper.c: Include unistd.h unconditionally.
36745         Include c-ctype.h.
36746         (add_dotbin): Use c_tolower.
36747         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36748         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36749         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36750         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36751         to m4/relocatable-lib.m4.
36752         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36753         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36754         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36755         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36756         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36757         * modules/relocatable: New file.
36758         * modules/relocatable-lib: New file.
36759         * modules/relocatable-script: New file.
36760
36761 2007-02-28  Bruno Haible  <bruno@clisp.org>
36762
36763         Import --enable-relocatable infrastructure.
36764         * build-aux/config.libpath: New file, from GNU gettext.
36765         * build-aux/install-reloc: New file, from GNU gettext.
36766         * build-aux/reloc-ldflags: New file, from GNU gettext.
36767         * lib/relocatable.h: New file, from GNU gettext.
36768         * lib/relocatable.c: New file, from GNU gettext.
36769         * lib/relocwrapper.c: New file, from GNU gettext.
36770         * m4/relocatable.m4: New file, from GNU gettext.
36771
36772 2007-02-28  Bruno Haible  <bruno@clisp.org>
36773
36774         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36775
36776         * modules/xreadlink: New file, from GNU gettext with modifications.
36777         * lib/xreadlink.c: New file, from GNU gettext.
36778         * lib/xreadlink.h: Add comments.
36779         (xreadlink): New declaration.
36780
36781         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36782         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36783         lib/xreadlink-with-size.c.
36784         (configure.ac): Remove gl_XREADLINK invocation.
36785         (Makefile.am): Augment lib_SOURCES.
36786         * m4/xreadlink.m4: Remove file.
36787         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36788         (xreadlink_with_size): Renamed from xreadink.
36789         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36790         * modules/canonicalize (Depends-on): Replace xreadlink with
36791         xreadlink-with-size.
36792         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36793
36794 2007-02-25  Jim Meyering  <jim@meyering.net>
36795
36796         * build-aux/announce-gen: When complaining about excess arguments,
36797         list them.
36798
36799 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36800
36801         * README: Document signed integer overflow situation more
36802         accurately.
36803
36804 2007-02-25  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36807         'a' or 'A' conversion.
36808
36809 2007-02-25  Bruno Haible  <bruno@clisp.org>
36810
36811         * modules/filename: Renamed from modules/pathname.
36812         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36813         lib/concatpath.c with lib/concat-filename.c.
36814         (Makefile.am): Update.
36815         (Include): Replace pathname.h with filename.h.
36816         * lib/filename.h: Renamed from lib/pathname.h.
36817         (concatenated_filename): Renamed from concatenated_pathname.
36818         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36819         (concatenated_filename): Renamed from concatenated_pathname.
36820         * lib/findprog.c: Include filename.h instead of pathname.h.
36821         (find_in_path): Update.
36822         * lib/javacomp.c: Include filename.h instead of pathname.h.
36823         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36824         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36825         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36826         is_oldgcj_14_13_usable, is_javac_usable): Update.
36827         * lib/javaexec.c: Include filename.h instead of pathname.h.
36828         (execute_java_class): Update.
36829         * modules/findprog: Update.
36830         * modules/javacomp: Update.
36831         * modules/javaexec: Update.
36832         * MODULES.html.sh (File system functions): Add 'filename', remove
36833         'pathname'.
36834
36835 2007-02-25  Bruno Haible  <bruno@clisp.org>
36836
36837         * modules/printf-frexpl-tests: New file.
36838         * tests/test-printf-frexpl.c: New file.
36839
36840         * modules/printf-frexpl: New file.
36841         * lib/printf-frexpl.h: New file.
36842         * lib/printf-frexpl.c: New file.
36843         * m4/printf-frexpl.m4: New file.
36844
36845 2007-02-25  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/printf-frexp-tests: New file.
36848         * tests/test-printf-frexp.c: New file.
36849
36850         * modules/printf-frexp: New file.
36851         * lib/printf-frexp.h: New file.
36852         * lib/printf-frexp.c: New file.
36853         * m4/printf-frexp.m4: New file.
36854
36855 2007-02-25  Bruno Haible  <bruno@clisp.org>
36856
36857         Assume automake >= 1.10 for the tests.
36858         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36859         * modules/arctwo-tests: Likewise.
36860         * modules/argp-tests: Likewise.
36861         * modules/avltree-list-tests: Likewise.
36862         * modules/avltree-oset-tests: Likewise.
36863         * modules/avltreehash-list-tests: Likewise.
36864         * modules/carray-list-tests: Likewise.
36865         * modules/crc-tests: Likewise.
36866         * modules/des-tests: Likewise.
36867         * modules/gc-arcfour-tests: Likewise.
36868         * modules/gc-arctwo-tests: Likewise.
36869         * modules/gc-des-tests: Likewise.
36870         * modules/gc-hmac-md5-tests: Likewise.
36871         * modules/gc-hmac-sha1-tests: Likewise.
36872         * modules/gc-md2-tests: Likewise.
36873         * modules/gc-md4-tests: Likewise.
36874         * modules/gc-md5-tests: Likewise.
36875         * modules/gc-pbkdf2-sha1-tests: Likewise.
36876         * modules/gc-rijndael-tests: Likewise.
36877         * modules/gc-sha1-tests: Likewise.
36878         * modules/gc-tests: Likewise.
36879         * modules/getaddrinfo-tests: Likewise.
36880         * modules/hmac-md5-tests: Likewise.
36881         * modules/hmac-sha1-tests: Likewise.
36882         * modules/linked-list-tests: Likewise.
36883         * modules/linkedhash-list-tests: Likewise.
36884         * modules/lock-tests: Likewise.
36885         * modules/md2-tests: Likewise.
36886         * modules/md4-tests: Likewise.
36887         * modules/md5-tests: Likewise.
36888         * modules/rbtree-list-tests: Likewise.
36889         * modules/rbtree-oset-tests: Likewise.
36890         * modules/rbtreehash-list-tests: Likewise.
36891         * modules/read-file-tests: Likewise.
36892         * modules/rijndael-tests: Likewise.
36893         * modules/stdint-tests: Likewise.
36894         * modules/tls-tests: Likewise.
36895
36896 2007-02-24  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36899         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36900         function; instead check whether isnan with a double argument links.
36901         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36902         function; instead check whether isnan with a 'long double' argument
36903         links.
36904         Reported by Eric Blake <ebb9@byu.net>.
36905
36906 2007-02-24  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36909         defined.
36910         * lib/isnanl.c: Remove all code. Just include isnan.c.
36911         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36912
36913 2007-02-25  Jim Meyering  <jim@meyering.net>
36914
36915         Avoid conflicting types for 'unsetenv' on FreeBSD.
36916         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36917         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36918         in stdlib.h.
36919
36920 2007-02-24  Bruno Haible  <bruno@clisp.org>
36921
36922         * modules/isnanl-nolibm-tests: New file.
36923         * tests/test-isnanl.c: New file.
36924
36925         * modules/isnanl-nolibm: New file.
36926         * lib/isnanl.h: New file.
36927         * lib/isnanl.c: New file.
36928         * m4/isnanl.m4: New file.
36929
36930 2007-02-24  Bruno Haible  <bruno@clisp.org>
36931
36932         * modules/isnan-nolibm-tests: New file.
36933         * tests/test-isnan.c: New file.
36934
36935         * modules/isnan-nolibm: New file.
36936         * lib/isnan.h: New file.
36937         * lib/isnan.c: New file.
36938         * m4/isnan.m4: New file.
36939
36940 2007-02-24  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36943         assume that an exponent fits in 20 bits.
36944
36945 2007-02-24  Jim Meyering  <jim@meyering.net>
36946
36947         * m4/regex.m4: Update the description of the configure-time option,
36948         --without-included-regex, to state accurately what the defaults are,
36949         and perhaps to give people an idea why using this option is risky.
36950
36951 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36952
36953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36954         loops on small arguments.  This attempts to avoid the problem
36955         Bruno Haible reported for AIX 4.3.2 in
36956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36957
36958 2007-02-23  Bruno Haible  <bruno@clisp.org>
36959
36960         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36961         Needed for help2man.
36962
36963 2007-02-23  Karl Berry  <karl@gnu.org>
36964
36965         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36966         exists, foo.h should be cvs-ignored, not committed.
36967
36968 2007-02-23  Eric Blake  <ebb9@byu.net>
36969
36970         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36971         * lib/stat-time.h (includes): Likewise.
36972         * lib/utimecmp.c (includes): Likewise.
36973         * lib/utimens.h (includes): Likewise.
36974         * lib/getdate.y (includes): Also include "timespec.h" for use
36975         internal to the module.
36976         * modules/utimens (Depends-on): Revert yesterday's patch.
36977         * modules/nanosleep (Depends-on): Add missing dependency.
36978
36979 2007-02-22  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/glob.c: Don't include getlogin_r.h.
36982
36983 2007-02-22  Jim Meyering  <jim@meyering.net>
36984
36985         * modules/utimens (Depends-on): Add timespec, required for
36986         utimens.h's inclusion of timespec.h.
36987
36988 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36989
36990         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36991         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36992         Schwab in
36993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36994         I'll try to think of a better way to fix the Solaris problem.
36995
36996         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36997         like glibc; on Solaris 10, it fails with errno == EINVAL.
36998         POSIX says the behavior is unspecified if the first argument is NULL,
36999         so play it safe and never pass NULL to the system getcwd.
37000
37001 2007-02-21  Jim Meyering  <jim@meyering.net>
37002
37003         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37004         of gettimeofday.  It would conflict with the one now always
37005         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37006         an IRIX 6.5 build failure.
37007
37008 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37009
37010         Minor fixups to port to Solaris 10 with Sun C 5.8.
37011         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37012         * modules/getcwd (Depends-on): Add dirfd.
37013         * lib/putenv.c (putenv): #undef it.
37014         (rpl_putenv): New decl.
37015         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37016
37017 2007-02-20  Bruno Haible  <bruno@clisp.org>
37018
37019         * modules/stdio-tests: New file.
37020         * tests/test-stdio.c: New file.
37021
37022         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37023         (Depends-on): Add stdio.
37024         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37025         (Include): Use <stdio.h> instead of vsnprintf.h.
37026         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37027         HAVE_DECL_VSNPRINTF.
37028         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37029
37030         * modules/snprintf (Files): Remove lib/snprintf.h.
37031         (Depends-on): Add stdio.
37032         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37033         (Include): Use <stdio.h> instead of snprintf.h.
37034         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37035         HAVE_DECL_SNPRINTF.
37036         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37037         * lib/getaddrinfo.c: Likewise.
37038
37039         * modules/stdio: New file.
37040         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37041         * lib/snprintf.h: Remove file.
37042         * lib/vsnprintf.h: Remove file.
37043         * lib/.cppi-disable: Remove snprintf.h.
37044         * m4/stdio_h.m4: New file.
37045         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37046
37047 2007-02-20  Jim Meyering  <jim@meyering.net>
37048
37049         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37050         used by e.g., mingw.  From Bruno Haible.
37051
37052 2007-02-19  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37055         warnings.
37056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37057
37058 2007-02-19  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37061         from mingw users.
37062
37063 2007-02-19  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37066         warnings.
37067         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37068
37069 2007-02-19  Jim Meyering  <jim@meyering.net>
37070
37071         Don't use FD after a successful "fdopendir (fd)".
37072         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37073         Reset it by calling dirfd on the just-obtained DIR*.
37074
37075         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37076         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37077
37078 2007-02-18  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/readlink.c: Include <unistd.h>.
37081         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37082         HAVE_READLINK.
37083         * modules/readlink (Depends-on): Add unistd.
37084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37085         (Include): Add <unistd.h>.
37086
37087         * lib/getlogin_r.h: Remove file.
37088         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37089         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37090         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37091         HAVE_DECL_GETLOGIN_R.
37092         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37094         (Include): Use <unistd.h> instead of getlogin_r.h.
37095
37096         * lib/getcwd.h: Remove file.
37097         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37098         * lib/xgetcwd.c: Likewise.
37099         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37100         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37101         * modules/getcwd (Files): Remove lib/getcwd.h.
37102         (Depends-on): Add unistd.
37103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37104         (Include): Use <unistd.h> instad of getcwd.h.
37105
37106         * lib/ftruncate.c: Include <unistd.h> first.
37107         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37108         Set HAVE_FTRUNCATE.
37109         * modules/ftruncate (Depends-on): Add unistd.
37110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37111
37112         * lib/fchdir.c: Include <unistd.h> first.
37113         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37115         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37116         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37117         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37118
37119         * lib/dup2.c: Include <unistd.h> first.
37120         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37121         HAVE_DUP2.
37122         * modules/dup2 (Depends-on): Add unistd.
37123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37124
37125         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37126         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37127         REPLACE_CHOWN. Don't define chown as a macro here.
37128         * modules/chown (Depends-on): Add unistd.
37129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37130
37131         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37132         Add definition for GL_LINK_WARNING.
37133         (chown, dup2): New declarations.
37134         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37135         link warning.
37136         (ftruncate): New declaration.
37137         (getcwd): New declaration, taken from old getcwd.h.
37138         (getlogin_r): New declaration, taken from old getlogin_r.h.
37139         (readlink): New declaration.
37140         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37141         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37142         (gl_PREREQ_UNISTD): Remove macro.
37143         (gl_UNISTD_MODULE_INDICATOR): New macro.
37144         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37145         many new variables. Don't set UNISTD_H.
37146         * modules/unistd (Description): Change.
37147         (Depends-on): Add link-warning.
37148         (configure.ac): Update.
37149         (Makefile.am): Create unistd.h always. Substitute many new variables
37150         into it.
37151
37152 2007-02-18  Bruno Haible  <bruno@clisp.org>
37153
37154         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37155         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37156         HAVE_GETSUBOPT.
37157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37158         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37159         * lib/getsubopt.h: Remove file.
37160         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37161         (Depends-on): Add stdlib.
37162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37163         (Includes): Use <stdlib.h> instead of getsubopt.h.
37164         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37165         Set HAVE_GETSUBOPT.
37166         * lib/getsubopt.c: Don't include getsubopt.h.
37167
37168 2007-02-18  Bruno Haible  <bruno@clisp.org>
37169
37170         * modules/fchdir (Depends-on): Add dup2.
37171
37172 2007-02-18  Bruno Haible  <bruno@clisp.org>
37173
37174         * lib/stdlib_.h: Handle glibc's special invocation convention
37175         specially.
37176
37177 2007-02-18  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/stdlib-tests: New file.
37180         * tests/test-stdlib.c: New file.
37181
37182         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37183         (Depends-on): Add stdlib.
37184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37185         (Includes): Use <stdlib.h> instead of mkstemp.h.
37186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37187         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37188         * lib/mkstemp.c: Don't include mkstemp.h.
37189         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37190         * lib/stdlib--.h: Don't include mkstemp.h.
37191
37192         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37193         (Depends-on): Add stdlib.
37194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37195         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37196         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37197         HAVE_MKDTEMP.
37198         * lib/mkdtemp.c: Don't include mkdtemp.h.
37199         * lib/clean-temp.c: Don't include mkdtemp.h.
37200
37201         * modules/exit (Files): Remove lib/exit.h.
37202         (Depends-on): Add stdlib.
37203         (Makefile.am): Remove lib_SOURCES.
37204         (Include): Use <stdlib.h> instead of exit.h.
37205         * lib/argmatch.c: Don't include exit.h.
37206         * lib/execute.c: Likewise.
37207         * lib/pagealign_alloc.c: Likewise.
37208         * lib/pipe.c: Likewise.
37209         * lib/wait-process.c: Likewise.
37210         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37211         * lib/exitfail.c: Likewise.
37212         * lib/savewd.c: Likewise.
37213         * lib/xsetenv.c: Likewise.
37214
37215         * modules/stdlib: New file.
37216         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37217         and extra comments about mkstemp().
37218         * lib/exit.h: Remove file.
37219         * lib/mkdtemp.h: Remove file.
37220         * lib/mkstemp.h: Remove file.
37221         * m4/stdlib_h.m4: New file.
37222         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37223
37224 2007-02-18  Bruno Haible  <bruno@clisp.org>
37225
37226         * modules/math-tests: New file.
37227         * tests/test-math.c: New file.
37228
37229         * modules/math: New file.
37230         * modules/mathl (Files): Remove lib/mathl.h.
37231         (Depends-on): Add math.
37232         (Makefile.am): Don't mention mathl.h.
37233         (Include): Use <math.h> instead of mathl.h.
37234         * lib/math_.h: New file.
37235         * lib/mathl.h: Remove file.
37236         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37237         mathl.h.
37238         * lib/asinl.c: Likewise.
37239         * lib/atanl.c: Likewise.
37240         * lib/ceill.c: Likewise.
37241         * lib/cosl.c: Likewise.
37242         * lib/expl.c: Likewise.
37243         * lib/floorl.c: Likewise.
37244         * lib/frexpl.c: Likewise.
37245         * lib/ldexpl.c: Likewise.
37246         * lib/logl.c: Likewise.
37247         * lib/sincosl.c: Likewise.
37248         * lib/sinl.c: Likewise.
37249         * lib/sqrtl.c: Likewise.
37250         * lib/tanl.c: Likewise.
37251         * lib/trigl.c: Likewise.
37252         * m4/math_h.m4: New file.
37253         * MODULES.html.sh (Mathematics): Add math.
37254
37255 2007-02-17  Bruno Haible  <bruno@clisp.org>
37256
37257         * modules/wctype-tests: New file.
37258         * tests/test-wctype.c: New file.
37259
37260         * modules/wchar-tests: New file.
37261         * tests/test-wchar.c: New file.
37262
37263         * modules/unistd-tests: New file.
37264         * tests/test-unistd.c: New file.
37265
37266         * modules/time-tests: New file.
37267         * tests/test-time.c: New file.
37268
37269         * modules/sysexits-tests: New file.
37270         * tests/test-sysexits.c: New file.
37271
37272         * modules/sys_time-tests: New file.
37273         * tests/test-sys_time.c: New file.
37274
37275         * modules/sys_stat-tests: New file.
37276         * tests/test-sys_stat.c: New file.
37277
37278         * modules/sys_socket-tests: New file.
37279         * tests/test-sys_socket.c: New file.
37280
37281         * modules/sys_select-tests: New file.
37282         * tests/test-sys_select.c: New file.
37283
37284         * modules/string-tests: New file.
37285         * tests/test-string.c: New file.
37286
37287         * modules/stdbool-tests: New file.
37288         * tests/test-stdbool.c: New file.
37289
37290         * modules/netinet_in-tests: New file.
37291         * tests/test-netinet_in.c: New file.
37292
37293         * modules/inttypes-tests: New file.
37294         * tests/test-inttypes.c: New file.
37295
37296         * modules/fcntl-tests: New file.
37297         * tests/test-fcntl.c: New file.
37298
37299         * modules/byteswap-tests: New file.
37300         * tests/test-byteswap.c: New file.
37301
37302         * modules/arpa_inet-tests: New file.
37303         * tests/test-arpa_inet.c: New file.
37304
37305 2007-02-17  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37308         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37309         if the corresponding module is not enabled. Emit link warnings if
37310         the function is used nevertheless.
37311         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37312         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37313         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37314         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37315         * modules/inttypes (Depends-on): Add link-warning.
37316         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37317         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37318         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37319         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37320         * modules/imaxdiv (configure.ac): Likewise.
37321         * modules/strtoimax (configure.ac): Likewise.
37322         * modules/strtoumax (configure.ac): Likewise.
37323
37324 2007-02-17  Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37327         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37328         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37329         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37330
37331 2007-02-17  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/link-warning: New file.
37334         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37335         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37336         * modules/string (Depends-on): Add link-warning.
37337         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37338         string.h.
37339         * MODULES.html.sh (Support for building libraries and executables): Add
37340         link-warning.
37341
37342 2007-02-17  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37345         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37346         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37347         long lines.
37348
37349 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37350             Bruno Haible  <bruno@clisp.org>
37351
37352         * modules/tmpfile: New file.
37353         * lib/tmpfile.c: New file.
37354         * m4/tmpfile.m4: New file.
37355         * MODULES.html.sh (func_all_modules): New section "Input/output".
37356
37357 2007-02-15  Bruno Haible  <bruno@clisp.org>
37358
37359         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37360         (supports_delete_on_close): New function.
37361         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37362
37363 2007-02-14  Bruno Haible  <bruno@clisp.org>
37364
37365         * modules/mbspcasecmp-tests: New file.
37366         * tests/test-mbspcasecmp.sh: New file.
37367         * tests/test-mbspcasecmp.c: New file.
37368
37369         New module mbspcasecmp.
37370         * modules/mbspcasecmp: New file.
37371         * lib/mbspcasecmp.c: New file.
37372         * lib/string_.h (strncasecmp): Change warning message.
37373         (mbspcasecmp): New declaration.
37374         * m4/mbspcasecmp.m4: New file.
37375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37376         GNULIB_MBSPCASECMP.
37377         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37378         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37379
37380 2007-02-14  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/mbsncasecmp-tests: New file.
37383         * tests/test-mbsncasecmp.sh: New file.
37384         * tests/test-mbsncasecmp.c: New file.
37385
37386         New module mbsncasecmp.
37387         * modules/mbsncasecmp: New file.
37388         * lib/mbsncasecmp.c: New file.
37389         * lib/string_.h (mbsncasecmp): New declaration.
37390         * m4/mbsncasecmp.m4: New file.
37391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37392         GNULIB_MBSNCASECMP.
37393         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37394         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37395
37396 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37397
37398         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37399         Verify that it doesn't overlap with our flags.
37400         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37401         do not have the desired effect in multibyte locales; instead, use
37402         mbscasecmp.
37403         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37404         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37405         we don't require GNU fnmatch ourselves (if our users require it, they
37406         should do so explicitly).
37407
37408         Fix regex code so it doesn't rely on strcasecmp.
37409         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37410         Otherwise, include gnulib's langinfo.h.
37411         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37412         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37413         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37414         * modules/regex (FILES): Remove m4/codeset.m4.
37415         (Depends-on): Add localcharset.  Remove strcase.
37416
37417 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37418
37419         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37420         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37421
37422 2007-02-13  Bruno Haible  <bruno@clisp.org>
37423
37424         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37426
37427 2007-02-12  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37430         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37431         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37432         time warning rather than a link error.
37433
37434 2007-02-12  Bruno Haible  <bruno@clisp.org>
37435
37436         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37437         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37439
37440 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37441
37442         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37443         args, not 2.
37444
37445 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37446
37447         New module 'time', so that apps can include <time.h> as per
37448         POSIX and GNU instead of separate include files like time_r.h
37449         and timegm.h.  This implementation tries out a simpler approach
37450         for replacing decls in standard include files (as compared to
37451         the string module), somewhat as an experiment.
37452
37453         * config/srclist.txt: Comment out mktime.c for now.
37454         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37455         since it doesn't apply any more.  Use generic wording instead.
37456         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37457         'time'.
37458         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37459         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37460         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37461         Don't include <sys/types.h>; no longer needed since we assume C89.
37462         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37463         * lib/strftime.c: Likewise.
37464         * lib/time_r.c: Likewise.
37465         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37466         * lib/nanosleep.c: Include <time.h> first, to check interface.
37467         * lib/strptime.c: Likewise.
37468         * lib/time_r.c: Likewise.
37469         * lib/timegm.c: Likewise.
37470         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37471         needed.
37472         * lib/timegm.c: Don't include timegm.h; no longer needed.
37473         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37474         time.h now handles any problems in that area.
37475         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37476         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37477         that time.h defines struct timespec.
37478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37479         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37480         handles that.
37481         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37482         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37483         needed.  Set REPLACE_LOCALTIME.
37484         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37485         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37486         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37487         nanosleep; time_h.m4 now does that.  Don't require
37488         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37489         module handles this now.
37490         * modules/getdate (Depends-on): Remove timespec.  Add time.
37491         * modules/nanosleep (Depends-on): Likewise.
37492         * modules/stat-time (Depends-on): Likewise.
37493         * modules/nanosleep (Include): Include time.h, not timespec.h.
37494         * modules/strptime (Files): Remove lib/strptime.h.
37495         (Depends-on): Add extensions, time.
37496         (Include): Include time.h, not strptime.h.
37497         * modules/time_r (Files): Remove lib/time_r.h.
37498         (Depends-on): Add time.
37499         (Include): Include time.h, not time_r.h.
37500         * modules/timegm: Likewise.
37501         * modules/timespec (Description): Now does timespec-related decls
37502         of our own, instead of struct timespec itself.
37503         (Depends-on): Add time; remove extensions.
37504         (Maintainer): Add self.
37505         * modules/utimecmp (Depends-on): Add time; remove timespec.
37506         * modules/utimens (Depends-on): Likewise.
37507         * modules/xnanosleep (Depends-on): Likewise.
37508
37509 2007-02-11  Bruno Haible  <bruno@clisp.org>
37510
37511         * lib/c-strstr.c: Include allocsa.h.
37512         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37513         * lib/c-strcasestr.c: Include allocsa.h.
37514         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37515         * lib/strcasestr.c: Include allocsa.h.
37516         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37517         * lib/mbsstr.c: Include allocsa.h.
37518         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37519         allocsa/freesa instead of malloc/free.
37520         * lib/mbscasestr.c: Include allocsa.h.
37521         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37522         allocsa/freesa instead of malloc/free.
37523         * modules/c-strstr (Depends-on): Add allocsa.
37524         * modules/c-strcasestr (Depends-on): Likewise.
37525         * modules/strcasestr (Depends-on): Likewise.
37526         * modules/mbsstr (Depends-on): Likewise.
37527         * modules/mbscasestr (Depends-on): Likewise.
37528
37529 2007-02-11  Bruno Haible  <bruno@clisp.org>
37530
37531         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37532
37533         * modules/mbsspn-tests: New file.
37534         * tests/test-mbsspn.sh: New file.
37535         * tests/test-mbsspn.c: New file.
37536
37537 2007-02-11  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37540
37541         * modules/mbspbrk-tests: New file.
37542         * tests/test-mbspbrk.sh: New file.
37543         * tests/test-mbspbrk.c: New file.
37544
37545 2007-02-11  Bruno Haible  <bruno@clisp.org>
37546
37547         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37548         unneeded cast.
37549
37550         * modules/mbscspn-tests: New file.
37551         * tests/test-mbscspn.sh: New file.
37552         * tests/test-mbscspn.c: New file.
37553
37554 2007-02-11  Bruno Haible  <bruno@clisp.org>
37555
37556         * modules/mbscasecmp-tests: New file.
37557         * tests/test-mbscasecmp.sh: New file.
37558         * tests/test-mbscasecmp.c: New file.
37559
37560 2007-02-11  Bruno Haible  <bruno@clisp.org>
37561
37562         Ensure O(n) worst-case complexity of mbscasestr.
37563         * lib/mbscasestr.c: Include stdbool.h.
37564         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37565         functions.
37566         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37567         the bookkeeping indicates that it's worth it.
37568         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37569
37570         * modules/mbscasestr-tests: New file.
37571         * tests/test-mbscasestr1.c: New file.
37572         * tests/test-mbscasestr2.sh: New file.
37573         * tests/test-mbscasestr2.c: New file.
37574         * tests/test-mbscasestr3.sh: New file.
37575         * tests/test-mbscasestr3.c: New file.
37576         * tests/test-mbscasestr4.sh: New file.
37577         * tests/test-mbscasestr4.c: New file.
37578         * m4/locale-tr.m4: New file.
37579
37580 2007-02-11  Bruno Haible  <bruno@clisp.org>
37581
37582         Ensure O(n) worst-case complexity of mbsstr.
37583         * lib/mbsstr.c: Include stdbool.h.
37584         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37585         functions.
37586         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37587         bookkeeping indicates that it's worth it.
37588         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37589
37590         * modules/mbsstr-tests: New file.
37591         * tests/test-mbsstr1.c: New file.
37592         * tests/test-mbsstr2.sh: New file.
37593         * tests/test-mbsstr2.c: New file.
37594         * tests/test-mbsstr3.sh: New file.
37595         * tests/test-mbsstr3.c: New file.
37596         * m4/locale-fr.m4: New file.
37597
37598 2007-02-11  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/mbsrchr.c (mbsrchr): Fix bug.
37601
37602         * modules/mbsrchr-tests: New file.
37603         * tests/test-mbsrchr.sh: New file.
37604         * tests/test-mbsrchr.c: New file.
37605
37606 2007-02-11  Bruno Haible  <bruno@clisp.org>
37607
37608         * lib/mbschr.c (mbschr): Fix bug.
37609
37610         * modules/mbschr-tests: New file.
37611         * tests/test-mbschr.sh: New file.
37612         * tests/test-mbschr.c: New file.
37613         * m4/locale-zh.m4: New file.
37614
37615 2007-02-11  Bruno Haible  <bruno@clisp.org>
37616
37617         Support for copying multibyte string iterators.
37618         * lib/mbiter.h: Include <string.h>.
37619         (mbiter_multi_copy): New function.
37620         (mbi_copy): New macro.
37621         * lib/mbuiter.h: Include <string.h>.
37622         (mbuiter_multi_copy): New function.
37623         (mbui_copy): New macro.
37624
37625 2007-02-11  Bruno Haible  <bruno@clisp.org>
37626
37627         New module mbslen.
37628         * modules/mbslen: New file.
37629         * lib/mbslen.c: New file.
37630         * lib/string_.h (mbslen): New declaration.
37631         * m4/mbslen.m4: New file.
37632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37633         GNULIB_MBSLEN.
37634         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37635         * MODULES.html.sh (Internationalization functions): Add mbslen.
37636
37637 2007-02-11  Bruno Haible  <bruno@clisp.org>
37638
37639         Ensure O(n) worst-case complexity of strcasestr substitute.
37640         * lib/strcasestr.c: Include stdbool.h.
37641         (knuth_morris_pratt): New function.
37642         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37643         bookkeeping indicates that it's worth it.
37644         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37645
37646         * modules/strcasestr-tests: New file.
37647         * tests/test-strcasestr.c: New file.
37648
37649 2007-02-11  Bruno Haible  <bruno@clisp.org>
37650
37651         Ensure O(n) worst-case complexity of c_strcasestr.
37652         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37653         (knuth_morris_pratt): New function.
37654         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37655         the bookkeeping indicates that it's worth it.
37656         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37657
37658         * modules/c-strcasestr-tests: New file.
37659         * tests/test-c-strcasestr.c: New file.
37660
37661 2007-02-11  Bruno Haible  <bruno@clisp.org>
37662
37663         Ensure O(n) worst-case complexity of c_strstr.
37664         * lib/c-strstr.c: Include stdbool.h, string.h.
37665         (knuth_morris_pratt): New function.
37666         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37667         bookkeeping indicates that it's worth it.
37668         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37669
37670         * lib/c-strstr.c: Complete rewrite for maintainability.
37671
37672         * modules/c-strstr-tests: New file.
37673         * tests/test-c-strstr.c: New file.
37674
37675 2007-02-11  Bruno Haible  <bruno@clisp.org>
37676
37677         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37678         5.2.1 and earlier, whereby \055 was treated just like the range
37679         delimiter '-'.
37680         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37681
37682 2007-02-08  Bruno Haible  <bruno@clisp.org>
37683
37684         * modules/regex (Depends-on): Add stdbool.
37685         Reported by Dalibor Topic <robilad@kaffe.org>.
37686
37687 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37688
37689         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37690         Prefer returning from main to exiting from it.
37691         Remove unnecessary parens after sizeof.
37692
37693 2007-02-05  Bruno Haible  <bruno@clisp.org>
37694
37695         New module mbssep.
37696         * modules/mbssep: New file.
37697         * lib/mbssep.c: New file.
37698         * lib/string_.h (strsep): Add a conditional link warning.
37699         (mbssep): New declaration.
37700         * m4/mbssep.m4: New file.
37701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37702         GNULIB_MBSSEP.
37703         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37704         * MODULES.html.sh (Internationalization functions): Add mbssep.
37705
37706 2007-02-05  Bruno Haible  <bruno@clisp.org>
37707
37708         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37709         Optimize search in case of 1 delimiter.
37710
37711 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37712
37713         * lib/acl.h: Include sys/types.h before sys/acl.h.
37714
37715 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37716
37717         Merge upstream fix for glibc bugzilla #3957:
37718
37719         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37720
37721         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37722         bit for RE_HAT_LISTS_NOT_NEWLINE.
37723         (build_charclass_op): Remove bogus comment.
37724
37725 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37726
37727         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37728
37729 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37730
37731         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37732         * lib/memmem.c [!defined _LIBC]: Include config.h.
37733
37734 2007-02-04  Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37737         warning message.
37738
37739 2007-02-04  Bruno Haible  <bruno@clisp.org>
37740
37741         New module mbstok_r.
37742         * modules/mbstok_r: New file.
37743         * lib/mbstok_r.c: New file.
37744         * lib/string_.h (strtok_r): Change argument names to match the
37745         comments. Add a conditional link warning.
37746         (mbstok_r): New declaration.
37747         * m4/mbstok_r.m4: New file.
37748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37749         GNULIB_MBSTOK_R.
37750         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37751         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37752
37753 2007-02-04  Bruno Haible  <bruno@clisp.org>
37754
37755         New module mbsspn.
37756         * modules/mbsspn: New file.
37757         * lib/mbsspn.c: New file.
37758         * lib/string_.h (strspn): Add a conditional link warning.
37759         (mbsspn): New declaration.
37760         * m4/mbsspn.m4: New file.
37761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37762         GNULIB_MBSSPN.
37763         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37764         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37765
37766 2007-02-04  Bruno Haible  <bruno@clisp.org>
37767
37768         New module mbspbrk.
37769         * modules/mbspbrk: New file.
37770         * lib/mbspbrk.c: New file.
37771         * lib/string_.h (strpbrk): Add a conditional link warning.
37772         (mbspbrk): New declaration.
37773         * m4/mbspbrk.m4: New file.
37774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37775         GNULIB_MBSPBRK.
37776         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37777         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37778
37779 2007-02-04  Bruno Haible  <bruno@clisp.org>
37780
37781         New module mbscspn.
37782         * modules/mbscspn: New file.
37783         * lib/mbscspn.c: New file.
37784         * lib/string_.h (strcspn): Add a conditional link warning.
37785         (mbscspn): New declaration.
37786         * m4/mbscspn.m4: New file.
37787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37788         GNULIB_MBSCSPN.
37789         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37790         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37791
37792 2007-02-04  Bruno Haible  <bruno@clisp.org>
37793
37794         New module mbscasestr, reduced goal of strcasestr.
37795         * modules/mbscasestr: New file.
37796         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37797         (mbscasestr): Renamed from strcasestr.
37798         * lib/strcasestr.c: Don't include mbuiter.h.
37799         (strcasestr): Remove support for multibyte locales.
37800         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37801         Change the conditional link warning.
37802         (mbscasestr): New declaration.
37803         * m4/mbscasestr.m4: New file.
37804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37805         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37806         REPLACE_STRCASESTR.
37807         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37809         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37810         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37811         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37812         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37813         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37814         (Depends-on): Remove mbuiter.
37815         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37816
37817 2007-02-04  Bruno Haible  <bruno@clisp.org>
37818
37819         Simplify handling of strncasecmp.
37820         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37821         the conditional link warning.
37822         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37823         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37824         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37825         * modules/strcase (configure.ac): Don't invoke
37826         gl_STRING_MODULE_INDICATOR.
37827         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37828
37829 2007-02-04  Bruno Haible  <bruno@clisp.org>
37830
37831         New module mbscasecmp, reduced goal of strcasecmp.
37832         * modules/mbscasecmp: New file.
37833         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37834         (mbscasecmp): Renamed from strcasecmp.
37835         * lib/strcasecmp.c: Don't include mbuiter.h.
37836         (strcasecmp): Remove support for multibyte locales.
37837         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37838         Change the conditional link warning.
37839         (mbscasecmp): New declaration.
37840         * m4/mbscasecmp.m4: New file.
37841         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37842         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37843         REPLACE_STRCASECMP.
37844         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37846         GNULIB_MBSCASECMP.
37847         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37848         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37849         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37850         (Depends-on): Remove mbuiter.
37851         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37852
37853 2007-02-04  Bruno Haible  <bruno@clisp.org>
37854
37855         New module mbsstr. Remove module strstr.
37856         * modules/mbsstr: New file.
37857         * modules/strstr: Remove file.
37858         * lib/mbsstr.c: Renamed from lib/strstr.c.
37859         (mbsstr): Renamed from strstr.
37860         * lib/string_.h (strstr): Remove declaration. Change the conditional
37861         link warning.
37862         (mbsstr): New declaration.
37863         * m4/mbsstr.m4: New file.
37864         * m4/strstr.m4: Remove file.
37865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37866         REPLACE_STRSTR.
37867         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37868         Don't initialize GNULIB_STRSTR.
37869         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37870         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37871         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37872         (Support for systems lacking ANSI C 89): Remove strstr.
37873
37874 2007-02-04  Bruno Haible  <bruno@clisp.org>
37875
37876         New module mbsrchr.
37877         * modules/mbsrchr: New file.
37878         * lib/mbsrchr.c: New file.
37879         * lib/string_.h (strrchr): Add a conditional link warning.
37880         (mbsrchr): New declaration.
37881         * m4/mbsrchr.m4: New file.
37882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37883         GNULIB_MBSRCHR.
37884         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37885         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37886
37887 2007-02-04  Bruno Haible  <bruno@clisp.org>
37888
37889         New module mbschr.
37890         * modules/mbschr: New file.
37891         * lib/mbschr.c: New file.
37892         * lib/string_.h (strchr): Add a conditional link warning.
37893         (mbschr): New declaration.
37894         * m4/mbschr.m4: New file.
37895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37896         GNULIB_MBSCHR.
37897         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37898         * MODULES.html.sh (Internationalization functions): Add mbschr.
37899
37900 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37901
37902         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37903
37904         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37905
37906 2007-02-04  Bruno Haible  <bruno@clisp.org>
37907
37908         New module description section 'configure.ac-early'.
37909         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37910         (func_get_autoconf_early_snippet): New function.
37911         (func_import, func_create_testdir): Use it. Remove special cases for
37912         modules 'extensions' and 'lock'.
37913         * modules/extensions (configure.ac-early): Require
37914         gl_USE_SYSTEM_EXTENSIONS.
37915         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37916
37917 2007-02-04  Bruno Haible  <bruno@clisp.org>
37918
37919         Make use of gcj-4.3's -fsource and -ftarget option.
37920         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37921         and if so try the options -fsource and -ftarget.
37922         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37923         source_version, ftarget_option, target_version arguments.
37924         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37925         (is_envjavac_oldgcj_14_14_usable): Renamed from
37926         is_envjavac_gcj_14_14_usable.
37927         (is_envjavac_oldgcj_14_13_usable): Renamed from
37928         is_envjavac_gcj_14_13_usable.
37929         (is_gcj_present): Update.
37930         (is_gcj_43, is_gcj43_usable): New functions.
37931         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37932         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37933         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37934         try the options -fsource and -ftarget.
37935
37936 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37937
37938         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37939         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37940         larger value.
37941
37942 2007-02-03  Jim Meyering  <jim@meyering.net>
37943
37944         Give tools a better chance to allocate space for very large buffers.
37945         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37946
37947         Make pwd and readlink work also when run with an unreadable parent dir
37948         on systems with openat support.
37949         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37950         provided getcwd function, even when we have openat support.
37951         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37952
37953 2007-02-02  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37956         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37957         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37958         portability problems if one of these functions is only used on specific
37959         platforms.
37960         Reported by Paul Eggert.
37961
37962 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37963
37964         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37965         is causing more trouble than it's curing.
37966         * lib/regex_internal.h (__mempcpy): Remove.
37967         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37968         (and make the code a tad smaller to boot).
37969         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37970
37971 2007-02-02  Jim Meyering  <jim@meyering.net>
37972
37973         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37974         section, not in the Makefile.am: one.
37975
37976 2007-02-02  Eric Blake  <ebb9@byu.net>
37977
37978         * lib/strchrnul.c: Always include config.h first.
37979
37980         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37981         gnulib strstr is not necessary here.
37982
37983 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37984
37985         * m4/socklen.m4: Fix typo.
37986
37987 2007-02-02  Eric Blake  <ebb9@byu.net>
37988
37989         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37990         * modules/netinet_in (Makefile.am): Likewise.
37991
37992 2007-02-01  Bruno Haible  <bruno@clisp.org>
37993
37994         * lib/string_.h (GL_LINK_WARNING): New macro.
37995         (strcasecmp, strstr, strcasestr): If provided by the system,
37996         conditionally define as a macro that leads to a warning instead of to
37997         an error.
37998         (strncasecmp): Conditionally define as a macro that leads to a warning.
37999
38000 2007-02-01  Karl Berry  <karl@gnu.org>
38001
38002         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38003
38004 2007-02-01  Bruno Haible  <bruno@clisp.org>
38005
38006         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38007         renamings.
38008
38009 2007-02-01  Eric Blake  <ebb9@byu.net>
38010
38011         * modules/regex (Depends-on): Revert dependence on mempcpy.
38012         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38013         module's definition of mempcpy.
38014         Reported by Paul Eggert.
38015
38016 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38019         the symbol XYZ before redefining it.  This fixes a problem with
38020         programs that don't use XYZ, when compiled on systems that define
38021         XYZ to something else.
38022
38023 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38024
38025         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38026         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38027         writeable to group or other and (2) is intended to have a special
38028         mode bit that is set or cleared.  In such a case, the directory
38029         should be neither group- nor other-writeable until the special
38030         mode bits are right.
38031
38032 2007-01-31  Eric Blake  <ebb9@byu.net>
38033
38034         * modules/mountlist (Depends-on): Add strstr.
38035
38036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38037         bug.
38038         * modules/string (Makefile.am): Remove redundant replacement.
38039         * modules/regex (Depends-on): Add mempcpy.
38040
38041 2007-01-31  Bruno Haible  <bruno@clisp.org>
38042
38043         New module description field 'Link'.
38044         * gnulib-tool (func_usage): Document --extract-link-directive.
38045         (sed_extract_prog): Recognize 'Link' directive.
38046         (func_get_link_directive): New function.
38047         (func_import): Show summary of link directives.
38048         Handle --extract-link-directive option.
38049         * modules/acl (Link): New section.
38050         * modules/clock-time (Link): New section.
38051         * modules/euidaccess (Link): New section.
38052         * modules/gettext (Link): New section.
38053         * modules/iconv (Link): New section.
38054         * modules/lock (Link): New section.
38055         * modules/nanosleep (Link): New section.
38056         * modules/readline (Link): New section.
38057
38058 2007-01-27  Bruno Haible  <bruno@clisp.org>
38059
38060         Enforce the use of gnulib modules for unportable <string.h> functions.
38061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38062         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38063         (gl_HEADER_STRING_H_BODY): Require it.
38064         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38065         the symbol XYZ to one that gives a link error.
38066         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38067         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38068         * modules/mempcpy (configure.ac): Likewise.
38069         * modules/memrchr (configure.ac): Likewise.
38070         * modules/stpcpy (configure.ac): Likewise.
38071         * modules/stpncpy (configure.ac): Likewise.
38072         * modules/strcase (configure.ac): Likewise.
38073         * modules/strcasestr (configure.ac): Likewise.
38074         * modules/strchrnul (configure.ac): Likewise.
38075         * modules/strdup (configure.ac): Likewise.
38076         * modules/strndup (configure.ac): Likewise.
38077         * modules/strnlen (configure.ac): Likewise.
38078         * modules/strpbrk (configure.ac): Likewise.
38079         * modules/strsep (configure.ac): Likewise.
38080         * modules/strstr (configure.ac): Likewise.
38081         * modules/strtok_r (configure.ac): Likewise.
38082
38083 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38084
38085         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38086
38087 2007-01-30  Jim Meyering  <jim@meyering.net>
38088
38089         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38090
38091 2007-01-29  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38094         * lib/execute.c: Likewise.
38095         * lib/pipe.c: Likewise.
38096         * lib/printf-args.h: Likewise.
38097         * lib/printf-args.c: Likewise.
38098         * lib/printf-parse.c: Likewise.
38099         * lib/vasnprintf.c: Likewise.
38100
38101 2007-01-29  Eric Blake  <ebb9@byu.net>
38102
38103         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38104         declaration.
38105
38106 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38107
38108         * lib/strptime.h (strptime): Use 'restrict' for args where
38109         POSIX requires this.
38110         * lib/strptime.c (strptime): Likewise.
38111         Change license notice from LGPL to GPL, since gnulib-tool will
38112         change this as needed.
38113         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38114         defined.
38115         Include "strptime.h" first, to check interface.
38116         Do not #undef _LIBC and _NL_CURRENT.
38117         Do not include <stdlib.h>; no longer needed.
38118         Include "time_r.h" and declare ptime_locale_status
38119         only if _LIBC is not defined.
38120         (__P): Remove unused macro.
38121         (match_string): Bring back glibc version, but use it only if _LIBC
38122         is defined.
38123         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38124         Remove unnecessary assertion and abort() call.
38125         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38126         * m4/strptime.m4: Fix serial number comment.
38127         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38128         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38129         (Depends-on): Add time_r.
38130
38131 2007-01-29  Bruno Haible  <bruno@clisp.org>
38132
38133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38134         strptime.
38135         * modules/strptime (Depends-on): Add stdbool.
38136         * lib/strptime.h: Include <time.h> always. Add comments.
38137
38138 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38139
38140         * modules/strptime: New file.
38141         * lib/strptime.h: New file.
38142         * lib/strptime.c: New file.
38143         * m4/strptime.m4: New file.
38144
38145 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38146
38147         * MODULES.html.sh: New module mpsort.
38148         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38149
38150         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38151         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38153         All uses changed.
38154         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38155         All uses changed.
38156         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38157         to _Restrict_.
38158         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38159         the parameter matches the prototype.
38160
38161 2007-01-28  Jim Meyering  <jim@meyering.net>
38162
38163         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38164         sys/time.h here, reverting that part of the previous patch:
38165         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38166
38167 2007-01-28  Bruno Haible  <bruno@clisp.org>
38168
38169         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38170         value of $(SYS_TIME_H).
38171         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38172         remove it conditionally, too. [added by Jim Meyering]
38173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38175         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38176         GETTIMEOFDAY_REPLACEMENT to 1.
38177
38178 2007-01-28  Bruno Haible  <bruno@clisp.org>
38179
38180         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38181         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38183         Set UNISTD_H instead of UNISTD_H2.
38184         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38185
38186 2007-01-28  Bruno Haible  <bruno@clisp.org>
38187
38188         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38189         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38190
38191 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38192
38193         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38194         (func_create_testdir): Ensure C locale for `grep' and `tr'
38195         character ranges.
38196         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38197         ACLOCAL_AMFLAGS parsing state machine.
38198
38199 2007-01-27  Bruno Haible  <bruno@clisp.org>
38200
38201         * modules/unistr/base: Update.
38202
38203 2007-01-27  Bruno Haible  <bruno@clisp.org>
38204
38205         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38206         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38207         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38208         modules/unistr/u32-mbtouc.
38209         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38210         * lib/unistr.h: Update.
38211         * lib/linebreak.c: Update.
38212         * modules/unistr/u32-mbtouc: Renamed from
38213         modules/unistr/u32-mbtouc-safe.
38214         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38215         * lib/unistr.h: Update.
38216         * lib/unistr/u32-to-u8.c: Update.
38217         * lib/unistr/u32-to-u16.c: Update.
38218
38219 2007-01-27  Bruno Haible  <bruno@clisp.org>
38220
38221         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38222         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38223         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38224         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38225         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38226         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38227         modules/unistr/u16-mbtouc.
38228         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38229         * lib/unistr.h: Update.
38230         * lib/linebreak.c: Update.
38231         * modules/linebreak: Update.
38232         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38233         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38234         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38235         * modules/unistr/u16-mbtouc: Renamed from
38236         modules/unistr/u16-mbtouc-safe.
38237         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38238         * lib/unistr.h: Update.
38239         * lib/unistr/u16-to-u8.c: Update.
38240         * modules/unistr/u16-to-u8: Update.
38241         * lib/unistr/u16-to-u32.c: Update.
38242         * modules/unistr/u16-to-u32: Update.
38243
38244 2007-01-27  Bruno Haible  <bruno@clisp.org>
38245
38246         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38247         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38248         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38249         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38250         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38251         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38252         modules/unistr/u8-mbtouc.
38253         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38254         * lib/unistr.h: Update.
38255         * lib/striconveh.c: Update.
38256         * modules/striconveh: Update.
38257         * lib/linebreak.c: Update.
38258         * modules/linebreak: Update.
38259         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38260         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38261         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38262         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38263         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38264         * lib/unistr.h: Update.
38265         * lib/striconveh.c: Update.
38266         * modules/striconveh: Update.
38267         * lib/unistr/u8-to-u16.c: Update.
38268         * modules/unistr/u8-to-u16: Update.
38269         * lib/unistr/u8-to-u32.c: Update.
38270         * modules/unistr/u8-to-u32: Update.
38271
38272 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38273
38274         Sync from Libtool.
38275         * lib/argz.c: Do not include strings.h nor memory.h, include
38276         string.h unconditionally.  Patch by Simon Josefsson.
38277
38278 2007-01-27  Bruno Haible  <bruno@clisp.org>
38279
38280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38281         from gl_HEADER_STRING_H_BODY.
38282         (gl_HEADER_STRING_H_BODY): Require it.
38283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38286         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38288         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38290         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38291         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38292         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38294         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38295         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38296         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38298
38299 2007-01-27  Bruno Haible  <bruno@clisp.org>
38300
38301         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38302         check_PROGRAMS into noinst_PROGRAMS.
38303         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38304         check_PROGRAMS in this case.
38305         (func_import): Set for_test to false.
38306         (func_create_testdir): Set for_test to true.
38307
38308 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38309             Bruno Haible  <bruno@clisp.org>
38310
38311         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38312         (Depends-on): Add string.
38313         (Includes): Use <string.h> instead of strcasestr.h.
38314         * modules/string (Makefile.am): Also substitute the value of
38315         REPLACE_STRCASESTR.
38316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38317         assume strcasestr is declared in <string.h> not <strings.h>. Also
38318         set REPLACE_STRCASESTR.
38319         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38320         REPLACE_STRCASESTR.
38321         * lib/strcasestr.h: Remove file.
38322         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38323         * lib/string_.h (strcasestr): New declaration.
38324
38325 2007-01-27  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/string_.h: Use 'extern'.
38328
38329 2007-01-27  Jim Meyering  <jim@meyering.net>
38330
38331         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38332         of set-but-not-used local, "q".
38333
38334         * lib/mempcpy.c: Include <config.h> before <string.h>.
38335         This fixes a compilation error on HP-UX, due to the system's
38336         "restrict"-using mempcpy prototype.
38337
38338 2007-01-26  Bruno Haible  <bruno@clisp.org>
38339
38340         Small optimization.
38341         * lib/javacomp.c: Include c-strstr.h.
38342          (is_envjavac_gcj): Use c_strstr instead of strstr.
38343         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38344
38345 2007-01-26  Bruno Haible  <bruno@clisp.org>
38346
38347         * MODULES.html.sh (Unicode string functions): Add the new modules.
38348
38349         * modules/uniconv/u32-strconv-to-locale: New file.
38350         * lib/uniconv/u32-strconv-to-locale.c: New file.
38351
38352         * modules/uniconv/u16-strconv-to-locale: New file.
38353         * lib/uniconv/u16-strconv-to-locale.c: New file.
38354
38355         * modules/uniconv/u8-strconv-to-locale: New file.
38356         * lib/uniconv/u8-strconv-to-locale.c: New file.
38357
38358         * modules/uniconv/u32-strconv-from-locale: New file.
38359         * lib/uniconv/u32-strconv-from-locale.c: New file.
38360
38361         * modules/uniconv/u16-strconv-from-locale: New file.
38362         * lib/uniconv/u16-strconv-from-locale.c: New file.
38363
38364         * modules/uniconv/u8-strconv-from-locale: New file.
38365         * lib/uniconv/u8-strconv-from-locale.c: New file.
38366
38367         * modules/uniconv/u32-strconv-to-enc: New file.
38368         * lib/uniconv/u32-strconv-to-enc.c: New file.
38369         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38370         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38371
38372         * modules/uniconv/u16-strconv-to-enc: New file.
38373         * lib/uniconv/u16-strconv-to-enc.c: New file.
38374         * lib/uniconv/u-strconv-to-enc.h: New file.
38375         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38376         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38377
38378         * modules/uniconv/u8-strconv-to-enc: New file.
38379         * lib/uniconv/u8-strconv-to-enc.c: New file.
38380         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38381         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38382
38383         * modules/uniconv/u32-strconv-from-enc: New file.
38384         * lib/uniconv/u32-strconv-from-enc.c: New file.
38385         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38386         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38387
38388         * modules/uniconv/u16-strconv-from-enc: New file.
38389         * lib/uniconv/u16-strconv-from-enc.c: New file.
38390         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38391         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38392
38393         * modules/uniconv/u8-strconv-from-enc: New file.
38394         * lib/uniconv/u8-strconv-from-enc.c: New file.
38395         * lib/uniconv/u-strconv-from-enc.h: New file.
38396         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38397         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38398
38399         * modules/uniconv/u32-conv-from-enc: New file.
38400         * lib/uniconv/u32-conv-from-enc.c: New file.
38401         * modules/uniconv/u32-conv-from-enc-tests: New file.
38402         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38403
38404         * modules/uniconv/u16-conv-from-enc: New file.
38405         * lib/uniconv/u16-conv-from-enc.c: New file.
38406         * lib/uniconv/u-conv-from-enc.h: New file.
38407         * modules/uniconv/u16-conv-from-enc-tests: New file.
38408         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38409
38410         * modules/uniconv/u8-conv-from-enc: New file.
38411         * lib/uniconv/u8-conv-from-enc.c: New file.
38412         * modules/uniconv/u8-conv-from-enc-tests: New file.
38413         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38414
38415         * modules/uniconv/base: New file.
38416         * lib/uniconv.h: New file.
38417
38418 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38419
38420         * doc/gnulib-tool.texi (Initial import): Update to match current
38421         behavior with strdup module.
38422         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38423         * lib/memmem.h: Remove; all uses removed.  This is now done
38424         by <string.h>.
38425         * lib/mempcpy.h: Likewise.
38426         * lib/memrchr.h: Likewise.
38427         * lib/stpcpy.h: Likewise.
38428         * lib/stpncpy.h: Likewise.
38429         * lib/strcase.h: Likewise.
38430         * lib/strchrnul.h: Likewise.
38431         * lib/strdup.h: Likewise.
38432         * lib/strndup.h: Likewise.
38433         * lib/strnlen.h: Likewise.
38434         * lib/strpbrk.h: Likewise.
38435         * lib/strsep.h: Likewise.
38436         * lib/strstr.h: Likewise.
38437         * lib/strtok_r.h: Likewise.
38438         * lib/string_.h: New file.
38439         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38440         Rely on <string.h> instead.
38441         * lib/canon-host.c: Likewise.
38442         * lib/chdir-long.c: Likewise.
38443         * lib/concatpath.c: Likewise.
38444         * lib/exclude.c: Likewise.
38445         * lib/fchdir.c: Likewise.
38446         * lib/getaddrinfo.c: Likewise.
38447         * lib/getcwd.c: Likewise.
38448         * lib/getsubopt.c: Likewise.
38449         * lib/glob.c: Likewise.
38450         * lib/hard-locale.c: Likewise.
38451         * lib/iconvme.c: Likewise.
38452         * lib/javacomp.c: Likewise.
38453         * lib/mempcpy.c: Likewise.
38454         * lib/memrchr.c: Likewise.
38455         * lib/regex_internal.h: Likewise.
38456         * lib/stpncpy.c: Likewise.
38457         * lib/strcasecmp.c: Likewise.
38458         * lib/strchrnul.c: Likewise.
38459         * lib/strdup.c: Likewise.
38460         * lib/striconv.c: Likewise.
38461         * lib/striconveh.c: Likewise.
38462         * lib/striconveha.c: Likewise.
38463         * lib/strncasecmp.c: Likewise.
38464         * lib/strndup.c: Likewise.
38465         * lib/strnlen.c: Likewise.
38466         * lib/strsep.c: Likewise.
38467         * lib/strstr.c: Likewise.
38468         * lib/strtok_r.c: Likewise.
38469         * lib/userspec.c: Likewise.
38470         * lib/w32spawn.h: Likewise.
38471         * lib/xstrndup.c: Likewise.
38472         * lib/mountlist.c (strstr): Remove decl.
38473         * m4/string_h.m4: New file.
38474         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38475         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38476         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38477         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38478         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38479         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38480         Set REPLACE_STRCASECMP if necessary.
38481         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38482         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38483         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38484         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38485         HAVE_DECL_STRDUP if necessary.
38486         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38487         since gl_FUNC_STRNDUP does that now.
38488         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38489         Check for decl here...
38490         (gl_PREREQ_STRNLEN): ... not here.
38491         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38492         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38493         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38495         necessary.
38496         * modules/string: New file.
38497         * modules/memmem (Files): Remove special-purpose include file.
38498         (Depends-on): Add string.
38499         (Include): Include <string.h>, not the removed file.
38500         * modules/mempcpy: Likewise.
38501         * modules/memrchr: Likewise.
38502         * modules/stpcpy: Likewise.
38503         * modules/stpncpy: Likewise.
38504         * modules/strcase: Likewise.
38505         * modules/strchrnul: Likewise.
38506         * modules/strdup: Likewise.
38507         * modules/strndup: Likewise.
38508         * modules/strnlen: Likewise.
38509         * modules/strpbrk: Likewise.
38510         * modules/strsep: Likewise.
38511         * modules/strstr: Likewise.
38512         * modules/strtok_r: Likewise.
38513         * tests/test-dirname.c: Don't include "strdup.h", since
38514         <string.h> now suffices.
38515         * tests/test-memmem.c: Don't include "memmem.h", since
38516         <string.h> now suffices.
38517
38518 2007-01-25  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38521         *resultp is 0.
38522
38523         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38524         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38525         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38526         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38527
38528         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38529         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38530         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38531         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38532         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38533         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38534
38535 2007-01-24  Bruno Haible  <bruno@clisp.org>
38536
38537         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38539         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38540         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38541         gl_FUNC_FTS_CORE.
38542         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38543         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38544         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38545         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38546         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38547         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38548         gl_FUNC_FCHOWNAT.
38549         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38550         gl_FUNC_STRFTIME.
38551         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38552         Reported by Ralf Wildenhues.
38553
38554 2007-01-24  Bruno Haible  <bruno@clisp.org>
38555
38556         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38557         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38558         gl_GETADDRINFO.
38559         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38560         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38561         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38562
38563 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38564
38565         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38566         Don't use 'exit'; just return from 'main'.
38567         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38568
38569         * lib/fnmatch_.h: Readjust white space and comments to match
38570         glibc, to avoid spurious diffs.
38571
38572 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38573
38574         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38575         2004-12-01 change by Jakub Jelinek, since this code won't compile
38576         if !LIBC.  Problem reported by Bob Proulx.
38577
38578 2007-01-23  Bruno Haible  <bruno@clisp.org>
38579
38580         * lib/striconveh.c: Include c-strcaseeq.h.
38581         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38582         * modules/striconveh (Depends-on): Add c-strcaseeq.
38583
38584 2007-01-23  Bruno Haible  <bruno@clisp.org>
38585
38586         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38587
38588         * modules/c-strcaseeq: New file.
38589         * lib/c-strcaseeq.h: New file.
38590
38591         * modules/streq: New file.
38592         * lib/streq.h: New file.
38593
38594 2007-01-23  Bruno Haible  <bruno@clisp.org>
38595
38596         * modules/striconveha-tests: New file.
38597         * tests/test-striconveha.c: New file.
38598
38599         * lib/striconveha.h: Include <stdbool.h>.
38600         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38601         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38602         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38603         (mem_iconveha): New function.
38604         (str_iconveha_notranslit): Renamed from str_iconveha.
38605         (str_iconveha): New function.
38606         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38607         c-strcase.
38608
38609 2007-01-23  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38612         encodings without forgiving before trying any encoding with handler.
38613         (str_iconveha): Try all encodings without forgiving before trying any
38614         encoding with handler.
38615
38616 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38617
38618         Import the following changes from libc.
38619
38620         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38621
38622         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38623
38624         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38625
38626         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38627         normal_bracket label.
38628
38629         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38630
38631         [BZ #361]
38632         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38633         to normal_bracket after fetching the next character.
38634
38635 2007-01-22  Bruno Haible  <bruno@clisp.org>
38636
38637         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38638         argument.
38639         * lib/striconveh.c (iconv_carefully_1): New function.
38640         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38641         argument.
38642         (str_cd_iconveh): Update.
38643         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38644         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38645         * tests/test-striconveh.c (MAGIC): New macro.
38646         (new_offsets): New function.
38647         (main): Test call with and without offsets.
38648
38649 2007-01-22  Bruno Haible  <bruno@clisp.org>
38650
38651         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38652         * modules/sys_select (Makefile.am): Likewise.
38653         * modules/sys_socket (Makefile.am): Likewise.
38654         * modules/sys_time (Makefile.am): Likewise.
38655
38656 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38657
38658         * modules/gettimeofday (License): Change from GPL to LGPL, since
38659         gettimeofday is a library function.
38660
38661 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38662
38663         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38664
38665 2007-01-21  Bruno Haible  <bruno@clisp.org>
38666
38667         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38668
38669 2007-01-21  Bruno Haible  <bruno@clisp.org>
38670
38671         * modules/striconveha: New file.
38672         * lib/striconveha.h: New file.
38673         * lib/striconveha.c: New file.
38674         * MODULES.html.sh (Internationalization functions): Add striconveha.
38675         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38676         string.
38677         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38678
38679 2007-01-21  Bruno Haible  <bruno@clisp.org>
38680
38681         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38682         * lib/striconveh.c (str_iconveh): Likewise.
38683
38684 2007-01-21  Bruno Haible  <bruno@clisp.org>
38685
38686         * lib/striconveh.h (mem_iconveh): New declaration.
38687         * lib/striconveh.c (mem_iconveh): New function.
38688         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38689
38690 2007-01-21  Bruno Haible  <bruno@clisp.org>
38691
38692         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38693
38694         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38695         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38696         original result buffer.
38697         (str_cd_iconveh): Update.
38698         * tests/test-striconveh.c (main): Update.
38699
38700         * lib/striconv.h (mem_cd_iconv): Change specification.
38701         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38702         result buffer.
38703         (str_cd_iconv): Update.
38704         * tests/test-striconv.c (main): Update.
38705
38706 2007-01-21  Bruno Haible  <bruno@clisp.org>
38707
38708         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38709
38710 2007-01-20  Jim Meyering  <jim@meyering.net>
38711
38712         * lib/userspec.c (parse_with_separator): If a user or group string
38713         starts with "+", skip the corresponding name-to-ID look-up, since
38714         such a look-up must fail: user and group names may not include "+".
38715
38716 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38717
38718         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38719         since we now assume the sys_time module.
38720         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38721         check for sys/time.h; no longer needed.
38722         * modules/poll (Depends-on): Depend on sys_time.
38723
38724 2007-01-18  Bruno Haible  <bruno@clisp.org>
38725
38726         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38728
38729         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38730         gettimeofday.
38731
38732         * tests/test-gettimeofday.c: Include <time.h>.
38733         (dummy): Remove variable.
38734
38735         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38736         gl_HEADER_SYS_TIME_H.
38737         (gl_HEADER_SYS_TIME_H): New macro.
38738
38739         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38740         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38742         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38743         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38745         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38746         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38747         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38748         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38749         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38750
38751         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38752         last change; it caused a compilation error when cross-compiling to
38753         Cygwin.
38754
38755 2007-01-18  Jim Meyering  <jim@meyering.net>
38756
38757         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38758         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38759         than the race-prone "test -d sys || mkdir sys".
38760         (configure.ac): Use AC_PROG_MKDIR_P.
38761         * modules/sys_select: Likewise.
38762         * modules/sys_socket: Likewise.
38763         * modules/sys_time: Likewise.
38764
38765 2007-01-18  Eric Blake  <ebb9@byu.net>
38766
38767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38768         replace gettimeofday.
38769         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38770         name, to avoid infinite recursion.
38771
38772 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38773
38774         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38775         module sys_time.
38776         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38777         assume timespec.h defines struct timeval.
38778         * lib/settime.c: Likewise.
38779         * lib/utimens.c: Likewise.
38780         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38781         since we now assume the gettimeofday module.
38782         * lib/tempname.c (__gen_tempname): Likewise.
38783         * lib/gettimeofday.h: Remove.
38784         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38785         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38786         Include <time.h>, for 'time()'.
38787         (localtime_buffer_addr): Also use this workaround if
38788         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38789         to simplify the uses.  All uses changed.
38790         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38791         that #undef is inside {}, and 'const' follows type name consistently.
38792         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38793         (gettimeofday): Do not use the maximum possible value for
38794         tv->tv_usec, since that might break usages other than ls.c.
38795         Instead, we'll leave ls.c alone.  This undoes today's patch
38796         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38797         we've never observed the problem but might as well keep the
38798         canary.
38799         * lib/nanosleep.c: Include timespec.h first, for interface check.
38800         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38801         now assume the sys_time module.
38802         * lib/tempname.c: Likewise.
38803         * lib/timespec.h: Likewise.
38804         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38805         needed.
38806         * lib/strftime.c: Likewise.
38807         * lib/timespec.h: Likewise.
38808         * lib/posixtm.c: Include posixtm.h first, for interface check.
38809         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38810         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38811         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38812         * lib/sys_time_.h: New file.
38813         * lib/timespec.h (struct timespec): Use long int, not long.
38814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38815         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38816         Remove obsolescent call to AC_HEADER_TIME.
38817         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38820         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38821         Likewise.
38822         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38823         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38825         into the sys_time module.  Check for gettimeofday just once.
38826         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38827         for gettimeofday signature to just check the signature.  Merely
38828         compile it, since linking doesn't test signature.  Improve test for
38829         whether gettimeofday.o is actually needed.
38830         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38831         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38832         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38833         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38834         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38835         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38836         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38837         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38838         than worrying about sys/time.h.
38839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38840         Don't bother worrying about TIME_WITH_SYS_TIME.
38841         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38842         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38843         * m4/sys_time_h.m4: New file.
38844         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38845         Don't include sys/time.h.  Return from main rather than exiting.
38846         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38847         all uses changed.
38848         * modules/gethrxtime (Depends-on): Add sys_time.
38849         * modules/gettime (Depends-on): Likewise.
38850         * modules/gettimeofday (Depends-on): Likewise.
38851         * modules/nanosleep (Depends-on): Likewise.
38852         * modules/settime (Depends-on): Likewise.
38853         * modules/tempname (Depends-on): Likewise.
38854         * modules/utimens (Depends-on): Likewise.
38855         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38856         (Include:) Change back to <sys/time.h>.
38857         (Maintainer:) Add self.
38858         * modules/sys_time: New file.
38859         * modules/tempname (Depends-on): Add gettimeofday.
38860         * tests/test-gettimeofday.c: Include <sys/time.h>
38861         rather than gettimeofday.h.
38862
38863 2007-01-17  Bruno Haible  <bruno@clisp.org>
38864
38865         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38866         the license default to GPL.
38867         (func_create_testdir): Don't complain if a module is LGPL and its
38868         tests module depends on GPLed modules.
38869
38870 2007-01-17  Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/gettimeofday.c (gettimeofday): Add code for the case
38873         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38874         maximum possible value for tv->tv_usec, rather than the minimum one.
38875
38876 2005-10-08  Martin Lambers  <marlam@marlam.de>
38877 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38878 2007-01-16  Bruno Haible  <bruno@clisp.org>
38879
38880         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38881         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38882         gl_FUNC_GETTIMEOFDAY.
38883         (Include): Add gettimeofday.h.
38884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38885         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38886         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38887         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38888         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38889         * lib/gettimeofday.h: New file.
38890         * lib/gettimeofday.c: Include <sys/timeb.h>.
38891         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38892         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38893         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38894         fall back on time().
38895
38896         * tests/test-gettimeofday.c: New file.
38897         * modules/gettimeofday-tests: New file.
38898
38899 2007-01-16  Eric Blake  <ebb9@byu.net>
38900
38901         * modules/fnmatch (Depends-on): Depend on wchar.
38902         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38903         * m4/fnmatch.m4: Likewise.
38904         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38905         * m4/mbchar.m4: Likewise.
38906         * modules/mbswidth (Depends-on): Depend on wchar.
38907         * lib/mbswidth.c: Assume <wchar.h>.
38908         * m4/mbswidth.m4: Likewise.
38909         * modules/quotearg (Depends-on): Depend on wchar.
38910         * lib/quotearg.c: Assume <wchar.h>.
38911         * m4/quotearg.m4: Likewise.
38912         * modules/regex (Depends-on): Depend on wchar.
38913         * lib/regex_internal.h: Assume <wchar.h>.
38914         * m4/regex.m4: Likewise.
38915         * modules/stdint (Depends-on): Depend on wchar.
38916         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38917         * m4/stdint.m4: Likewise.
38918         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38919         * modules/strftime (Depends-on): Depend on wchar.
38920         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38921         * modules/strtol (Depends-on): Depend on wchar.
38922         * lib/strtol.c: Assume <wchar.h>.
38923         * modules/wcwidth (Depends-on): Depend on wchar.
38924         * lib/wcwidth.h: Assume <wchar.h>.
38925         * m4/wcwidth.m4: Likewise.
38926
38927 2007-01-16  Bruno Haible  <bruno@clisp.org>
38928
38929         * modules/csharpexec-script: New, created from...
38930         * modules/csharpexec: ... this.
38931
38932 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38933
38934         * modules/javaexec-script: New, created from...
38935         * modules/javaexec: ... this.
38936
38937 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38938
38939         * modules/poll (Dependencies): Add sys_select.
38940
38941 2007-01-15  Jim Meyering  <jim@meyering.net>
38942
38943         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38944         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38945         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38946         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38947
38948 2007-01-15  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/striconveh: New file.
38951         * lib/striconveh.h: New file.
38952         * lib/striconveh.c: New file.
38953         * MODULES.html.sh (Internationalization functions): Add striconveh.
38954
38955         * modules/striconveh-tests: New file.
38956         * tests/test-striconveh.c: New file.
38957
38958 2007-01-15  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38961         not from GNU libiconv or GNU libc.
38962
38963 2007-01-15  Bruno Haible  <bruno@clisp.org>
38964
38965         * doc/gnulib-intro.texi (Copyright): Explain the different license
38966         terms for module descriptions, autoconf macros, tests, documentation.
38967
38968 2007-01-14  Bruno Haible  <bruno@clisp.org>
38969
38970         * modules/striconv-tests: New file.
38971         * tests/test-striconv.c: New file.
38972
38973 2007-01-14  Bruno Haible  <bruno@clisp.org>
38974
38975         * modules/iconv-tests: New file.
38976         * tests/test-iconv.c: New file.
38977
38978 2007-01-14  Bruno Haible  <bruno@clisp.org>
38979
38980         * gnulib-tool (func_get_license): For test modules, use the license of
38981         the main module.
38982
38983 2007-01-14  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38986         if iconv is found to exist.
38987
38988 2007-01-14  Bruno Haible  <bruno@clisp.org>
38989
38990         * modules/c-ctype-tests: New file.
38991         * tests/test-c-ctype.c: New file.
38992
38993 2007-01-14  Bruno Haible  <bruno@clisp.org>
38994
38995         * modules/binary-io-tests: New file.
38996         * tests/test-binary-io.sh: New file.
38997         * tests/test-binary-io.c: New file.
38998
38999 2007-01-14  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/array-oset-tests: New file.
39002         * tests/test-array_oset.c: New file.
39003
39004 2007-01-14  Bruno Haible  <bruno@clisp.org>
39005
39006         * modules/array-list-tests: New file.
39007         * tests/test-array_list.c: New file.
39008
39009 2007-01-14  Bruno Haible  <bruno@clisp.org>
39010
39011         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39012         and make.
39013         Reported by Simon Josefsson in
39014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39015
39016 2007-01-14  Bruno Haible  <bruno@clisp.org>
39017
39018         * modules/allocsa-tests: New file.
39019         * tests/test-allocsa.c: New file.
39020
39021 2007-01-14  Bruno Haible  <bruno@clisp.org>
39022
39023         * modules/fchdir (Depends-on): Add absolute-header.
39024         * modules/unistd (Depends-on): Likewise.
39025
39026 2006-12-30  Bruno Haible  <bruno@clisp.org>
39027
39028         * modules/fchdir: New file.
39029         * modules/unistd (Files): Add lib/unistd_.h.
39030         (Makefile.am): Generate unistd.h from unistd_.h.
39031         * lib/fchdir.c: New file.
39032         * lib/dirent_.h: New file.
39033         * lib/unistd_.h: New file.
39034         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39035         * m4/fchdir.m4: New file.
39036         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39037         (gl_HEADER_UNISTD): Invoke it.
39038         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39039         function.
39040         * lib/backupfile.c (opendir, closedir): Undefine.
39041         * lib/chown.c (open, close): Undefine.
39042         * lib/clean-temp.c (open, close): Undefine.
39043         * lib/copy-file.c (open, close): Undefine.
39044         * lib/execute.c (open, close): Undefine.
39045         * lib/fsusage.c (open, close): Undefine.
39046         * lib/gc-gnulib.c (open, close): Undefine.
39047         * lib/getcwd.c (opendir, closedir): Undefine.
39048         * lib/glob.c (opendir, closedir): Undefine.
39049         * lib/javacomp.c (open, close): Undefine.
39050         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39051         * lib/openat-proc.c (open, close): Undefine.
39052         * lib/pagealign_alloc.c (open, close): Undefine.
39053         * lib/pipe.c (open, close): Undefine.
39054         * lib/progreloc.c (open, close): Undefine.
39055         * lib/savedir.c (opendir, closedir): Undefine.
39056         * lib/utime.c (open, close): Undefine.
39057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39058
39059 2007-01-10  Bruno Haible  <bruno@clisp.org>
39060
39061         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39062
39063 2007-01-12  Eric Blake  <ebb9@byu.net>
39064
39065         Provide a robust <wchar.h>.  Further simplifications are now
39066         possible in other modules, but not included here.
39067         * modules/wchar: New module.
39068         * m4/wchar.m4: New file.
39069         * lib/wchar_.h: Likewise.
39070         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39071         of the new module.
39072         * MODULES.html.sh (Extended multibyte and wide character utilities):
39073         New section.
39074
39075 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39076
39077         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39078         to a reasonable default for memory allocation.
39079         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39080         file system that reports garbage st_size values for symlinks.
39081         Problem reported by Liyang Hu.
39082
39083 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39084
39085         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39086         Emacs .#* auto-save files).
39087
39088 2007-01-11  Bruno Haible  <bruno@clisp.org>
39089
39090         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39091         directory.
39092
39093 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39094
39095         Use @...@ consistently in lib/wctype_.h.
39096         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39097         on it being set to 1 or 0.
39098         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39099         go back to AC_SUBSTing it.
39100         * modules/wctype (Makefile.am): Undo previous change.
39101
39102 2007-01-10  Eric Blake  <ebb9@byu.net>
39103
39104         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39105         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39106         * modules/wctype (Makefile.am): Likewise.
39107         Reported by Chris McGuire.
39108
39109 2007-01-10  Jim Meyering  <jim@meyering.net>
39110
39111         fts.c: a small readability/maintainability improvement
39112         * lib/fts.c (fts_read): Make this code slightly more readable and
39113         maintainable by hoisting the "sp->fts_cur = p" assignments to
39114         immediately follow the statements that set P.  Derived from
39115         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39116
39117 2007-01-10  Eric Blake  <ebb9@byu.net>
39118
39119         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39120         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39122         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39123         Reported by Chris McGuire.
39124
39125 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39126
39127         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39128         in sed script.
39129
39130 2007-01-09  Bruno Haible  <bruno@clisp.org>
39131
39132         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39133         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39134         variables.
39135         (func_module): Use them.
39136
39137 2007-01-09  Bruno Haible  <bruno@clisp.org>
39138
39139         * modules/unistr/base: New file.
39140         * lib/unistr.h: New file.
39141
39142         * modules/unistr/u8-to-u16: New file.
39143         * lib/unistr/u8-to-u16.c: New file.
39144
39145         * modules/unistr/u8-to-u32: New file.
39146         * lib/unistr/u8-to-u32.c: New file.
39147
39148         * modules/unistr/u16-to-u8: New file.
39149         * lib/unistr/u16-to-u8.c: New file.
39150
39151         * modules/unistr/u16-to-u32: New file.
39152         * lib/unistr/u16-to-u32.c: New file.
39153
39154         * modules/unistr/u32-to-u8: New file.
39155         * lib/unistr/u32-to-u8.c: New file.
39156
39157         * modules/unistr/u32-to-u16: New file.
39158         * lib/unistr/u32-to-u16.c: New file.
39159
39160         * modules/unistr/u8-check: New file.
39161         * modules/unistr/u16-check: New file.
39162         * modules/unistr/u32-check: New file.
39163         * lib/unistr/u8-check.c: New file.
39164         * lib/unistr/u16-check.c: New file.
39165         * lib/unistr/u32-check.c: New file.
39166
39167         * modules/unistr/u8-chr: New file.
39168         * modules/unistr/u16-chr: New file.
39169         * modules/unistr/u32-chr: New file.
39170         * lib/unistr/u8-chr.c: New file.
39171         * lib/unistr/u16-chr.c: New file.
39172         * lib/unistr/u32-chr.c: New file.
39173
39174         * modules/unistr/u8-cmp: New file.
39175         * modules/unistr/u16-cmp: New file.
39176         * modules/unistr/u32-cmp: New file.
39177         * lib/unistr/u8-cmp.c: New file.
39178         * lib/unistr/u16-cmp.c: New file.
39179         * lib/unistr/u32-cmp.c: New file.
39180
39181         * modules/unistr/u8-cpy: New file.
39182         * modules/unistr/u16-cpy: New file.
39183         * modules/unistr/u32-cpy: New file.
39184         * lib/unistr/u8-cpy.c: New file.
39185         * lib/unistr/u16-cpy.c: New file.
39186         * lib/unistr/u32-cpy.c: New file.
39187         * lib/unistr/u-cpy.h: New file.
39188
39189         * modules/unistr/u8-cpy-alloc: New file.
39190         * modules/unistr/u16-cpy-alloc: New file.
39191         * modules/unistr/u32-cpy-alloc: New file.
39192         * lib/unistr/u8-cpy-alloc.c: New file.
39193         * lib/unistr/u16-cpy-alloc.c: New file.
39194         * lib/unistr/u32-cpy-alloc.c: New file.
39195         * lib/unistr/u-cpy-alloc.h: New file.
39196
39197         * modules/unistr/u8-endswith: New file.
39198         * modules/unistr/u16-endswith: New file.
39199         * modules/unistr/u32-endswith: New file.
39200         * lib/unistr/u8-endswith.c: New file.
39201         * lib/unistr/u16-endswith.c: New file.
39202         * lib/unistr/u32-endswith.c: New file.
39203         * lib/unistr/u-endswith.h: New file.
39204
39205         * modules/unistr/u8-mblen: New file.
39206         * modules/unistr/u16-mblen: New file.
39207         * modules/unistr/u32-mblen: New file.
39208         * lib/unistr/u8-mblen.c: New file.
39209         * lib/unistr/u16-mblen.c: New file.
39210         * lib/unistr/u32-mblen.c: New file.
39211
39212         * modules/unistr/u8-mbtouc: New file.
39213         * modules/unistr/u16-mbtouc: New file.
39214         * modules/unistr/u32-mbtouc: New file.
39215         * lib/unistr/u8-mbtouc.c: New file.
39216         * lib/unistr/u16-mbtouc.c: New file.
39217         * lib/unistr/u32-mbtouc.c: New file.
39218
39219         * modules/unistr/u8-mbtouc-safe: New file.
39220         * modules/unistr/u16-mbtouc-safe: New file.
39221         * modules/unistr/u32-mbtouc-safe: New file.
39222         * lib/unistr/u8-mbtouc-safe.c: New file.
39223         * lib/unistr/u16-mbtouc-safe.c: New file.
39224         * lib/unistr/u32-mbtouc-safe.c: New file.
39225
39226         * modules/unistr/u8-move: New file.
39227         * modules/unistr/u16-move: New file.
39228         * modules/unistr/u32-move: New file.
39229         * lib/unistr/u8-move.c: New file.
39230         * lib/unistr/u16-move.c: New file.
39231         * lib/unistr/u32-move.c: New file.
39232         * lib/unistr/u-move.h: New file.
39233
39234         * modules/unistr/u8-next: New file.
39235         * modules/unistr/u16-next: New file.
39236         * modules/unistr/u32-next: New file.
39237         * lib/unistr/u8-next.c: New file.
39238         * lib/unistr/u16-next.c: New file.
39239         * lib/unistr/u32-next.c: New file.
39240
39241         * modules/unistr/u8-prev: New file.
39242         * modules/unistr/u16-prev: New file.
39243         * modules/unistr/u32-prev: New file.
39244         * lib/unistr/u8-prev.c: New file.
39245         * lib/unistr/u16-prev.c: New file.
39246         * lib/unistr/u32-prev.c: New file.
39247
39248         * modules/unistr/u8-set: New file.
39249         * modules/unistr/u16-set: New file.
39250         * modules/unistr/u32-set: New file.
39251         * lib/unistr/u8-set.c: New file.
39252         * lib/unistr/u16-set.c: New file.
39253         * lib/unistr/u32-set.c: New file.
39254         * lib/unistr/u-set.h: New file.
39255
39256         * modules/unistr/u8-startswith: New file.
39257         * modules/unistr/u16-startswith: New file.
39258         * modules/unistr/u32-startswith: New file.
39259         * lib/unistr/u8-startswith.c: New file.
39260         * lib/unistr/u16-startswith.c: New file.
39261         * lib/unistr/u32-startswith.c: New file.
39262         * lib/unistr/u-startswith.h: New file.
39263
39264         * modules/unistr/u8-stpcpy: New file.
39265         * modules/unistr/u16-stpcpy: New file.
39266         * modules/unistr/u32-stpcpy: New file.
39267         * lib/unistr/u8-stpcpy.c: New file.
39268         * lib/unistr/u16-stpcpy.c: New file.
39269         * lib/unistr/u32-stpcpy.c: New file.
39270         * lib/unistr/u-stpcpy.h: New file.
39271
39272         * modules/unistr/u8-stpncpy: New file.
39273         * modules/unistr/u16-stpncpy: New file.
39274         * modules/unistr/u32-stpncpy: New file.
39275         * lib/unistr/u8-stpncpy.c: New file.
39276         * lib/unistr/u16-stpncpy.c: New file.
39277         * lib/unistr/u32-stpncpy.c: New file.
39278         * lib/unistr/u-stpncpy.h: New file.
39279
39280         * modules/unistr/u8-strcat: New file.
39281         * modules/unistr/u16-strcat: New file.
39282         * modules/unistr/u32-strcat: New file.
39283         * lib/unistr/u8-strcat.c: New file.
39284         * lib/unistr/u16-strcat.c: New file.
39285         * lib/unistr/u32-strcat.c: New file.
39286         * lib/unistr/u-strcat.h: New file.
39287
39288         * modules/unistr/u8-strchr: New file.
39289         * modules/unistr/u16-strchr: New file.
39290         * modules/unistr/u32-strchr: New file.
39291         * lib/unistr/u8-strchr.c: New file.
39292         * lib/unistr/u16-strchr.c: New file.
39293         * lib/unistr/u32-strchr.c: New file.
39294
39295         * modules/unistr/u8-strcmp: New file.
39296         * modules/unistr/u16-strcmp: New file.
39297         * modules/unistr/u32-strcmp: New file.
39298         * lib/unistr/u8-strcmp.c: New file.
39299         * lib/unistr/u16-strcmp.c: New file.
39300         * lib/unistr/u32-strcmp.c: New file.
39301
39302         * modules/unistr/u8-strcpy: New file.
39303         * modules/unistr/u16-strcpy: New file.
39304         * modules/unistr/u32-strcpy: New file.
39305         * lib/unistr/u8-strcpy.c: New file.
39306         * lib/unistr/u16-strcpy.c: New file.
39307         * lib/unistr/u32-strcpy.c: New file.
39308         * lib/unistr/u-strcpy.h: New file.
39309
39310         * modules/unistr/u8-strcspn: New file.
39311         * modules/unistr/u16-strcspn: New file.
39312         * modules/unistr/u32-strcspn: New file.
39313         * lib/unistr/u8-strcspn.c: New file.
39314         * lib/unistr/u16-strcspn.c: New file.
39315         * lib/unistr/u32-strcspn.c: New file.
39316         * lib/unistr/u-strcspn.h: New file.
39317
39318         * modules/unistr/u8-strdup: New file.
39319         * modules/unistr/u16-strdup: New file.
39320         * modules/unistr/u32-strdup: New file.
39321         * lib/unistr/u8-strdup.c: New file.
39322         * lib/unistr/u16-strdup.c: New file.
39323         * lib/unistr/u32-strdup.c: New file.
39324         * lib/unistr/u-strdup.h: New file.
39325
39326         * modules/unistr/u8-strlen: New file.
39327         * modules/unistr/u16-strlen: New file.
39328         * modules/unistr/u32-strlen: New file.
39329         * lib/unistr/u8-strlen.c: New file.
39330         * lib/unistr/u16-strlen.c: New file.
39331         * lib/unistr/u32-strlen.c: New file.
39332         * lib/unistr/u-strlen.h: New file.
39333
39334         * modules/unistr/u8-strmblen: New file.
39335         * modules/unistr/u16-strmblen: New file.
39336         * modules/unistr/u32-strmblen: New file.
39337         * lib/unistr/u8-strmblen.c: New file.
39338         * lib/unistr/u16-strmblen.c: New file.
39339         * lib/unistr/u32-strmblen.c: New file.
39340
39341         * modules/unistr/u8-strmbtouc: New file.
39342         * modules/unistr/u16-strmbtouc: New file.
39343         * modules/unistr/u32-strmbtouc: New file.
39344         * lib/unistr/u8-strmbtouc.c: New file.
39345         * lib/unistr/u16-strmbtouc.c: New file.
39346         * lib/unistr/u32-strmbtouc.c: New file.
39347
39348         * modules/unistr/u8-strncat: New file.
39349         * modules/unistr/u16-strncat: New file.
39350         * modules/unistr/u32-strncat: New file.
39351         * lib/unistr/u8-strncat.c: New file.
39352         * lib/unistr/u16-strncat.c: New file.
39353         * lib/unistr/u32-strncat.c: New file.
39354         * lib/unistr/u-strncat.h: New file.
39355
39356         * modules/unistr/u8-strncmp: New file.
39357         * modules/unistr/u16-strncmp: New file.
39358         * modules/unistr/u32-strncmp: New file.
39359         * lib/unistr/u8-strncmp.c: New file.
39360         * lib/unistr/u16-strncmp.c: New file.
39361         * lib/unistr/u32-strncmp.c: New file.
39362
39363         * modules/unistr/u8-strncpy: New file.
39364         * modules/unistr/u16-strncpy: New file.
39365         * modules/unistr/u32-strncpy: New file.
39366         * lib/unistr/u8-strncpy.c: New file.
39367         * lib/unistr/u16-strncpy.c: New file.
39368         * lib/unistr/u32-strncpy.c: New file.
39369         * lib/unistr/u-strncpy.h: New file.
39370
39371         * modules/unistr/u8-strnlen: New file.
39372         * modules/unistr/u16-strnlen: New file.
39373         * modules/unistr/u32-strnlen: New file.
39374         * lib/unistr/u8-strnlen.c: New file.
39375         * lib/unistr/u16-strnlen.c: New file.
39376         * lib/unistr/u32-strnlen.c: New file.
39377         * lib/unistr/u-strnlen.h: New file.
39378
39379         * modules/unistr/u8-strpbrk: New file.
39380         * modules/unistr/u16-strpbrk: New file.
39381         * modules/unistr/u32-strpbrk: New file.
39382         * lib/unistr/u8-strpbrk.c: New file.
39383         * lib/unistr/u16-strpbrk.c: New file.
39384         * lib/unistr/u32-strpbrk.c: New file.
39385         * lib/unistr/u-strpbrk.h: New file.
39386
39387         * modules/unistr/u8-strrchr: New file.
39388         * modules/unistr/u16-strrchr: New file.
39389         * modules/unistr/u32-strrchr: New file.
39390         * lib/unistr/u8-strrchr.c: New file.
39391         * lib/unistr/u16-strrchr.c: New file.
39392         * lib/unistr/u32-strrchr.c: New file.
39393
39394         * modules/unistr/u8-strspn: New file.
39395         * modules/unistr/u16-strspn: New file.
39396         * modules/unistr/u32-strspn: New file.
39397         * lib/unistr/u8-strspn.c: New file.
39398         * lib/unistr/u16-strspn.c: New file.
39399         * lib/unistr/u32-strspn.c: New file.
39400         * lib/unistr/u-strspn.h: New file.
39401
39402         * modules/unistr/u8-strstr: New file.
39403         * modules/unistr/u16-strstr: New file.
39404         * modules/unistr/u32-strstr: New file.
39405         * lib/unistr/u8-strstr.c: New file.
39406         * lib/unistr/u16-strstr.c: New file.
39407         * lib/unistr/u32-strstr.c: New file.
39408         * lib/unistr/u-strstr.h: New file.
39409
39410         * modules/unistr/u8-strtok: New file.
39411         * modules/unistr/u16-strtok: New file.
39412         * modules/unistr/u32-strtok: New file.
39413         * lib/unistr/u8-strtok.c: New file.
39414         * lib/unistr/u16-strtok.c: New file.
39415         * lib/unistr/u32-strtok.c: New file.
39416         * lib/unistr/u-strtok.h: New file.
39417
39418         * modules/unistr/u8-uctomb: New file.
39419         * modules/unistr/u16-uctomb: New file.
39420         * modules/unistr/u32-uctomb: New file.
39421         * lib/unistr/u8-uctomb.c: New file.
39422         * lib/unistr/u16-uctomb.c: New file.
39423         * lib/unistr/u32-uctomb.c: New file.
39424
39425         * MODULES.html.sh (Unicode string functions): Add the new modules.
39426
39427 2007-01-08  Bruno Haible  <bruno@clisp.org>
39428
39429         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39430         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39431         subdirectories.
39432
39433 2007-01-08  Karl Berry  <karl@gnu.org>
39434
39435         * doc/error.texi: mention that main() fns must set program_name
39436         when progname is used.
39437
39438 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39439
39440         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39441         WCTYPE_H is empty, for the benefit of builds from non-distclean
39442         directories.  Problem reported by Eric Blake in
39443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39444
39445 2007-01-08  Bruno Haible  <bruno@clisp.org>
39446
39447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39448         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39449         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39450         PROVIDE_CANONICALIZE_FILENAME_MODE.
39451         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39452
39453 2007-01-08  Bruno Haible  <bruno@clisp.org>
39454
39455         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39456         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39457         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39458         * lib/fts.c: Likewise.
39459         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39460
39461 2006-12-25  Bruno Haible  <bruno@clisp.org>
39462
39463         * modules/utf8-ucs4-safe: New file.
39464         * lib/utf8-ucs4-safe.h: New file.
39465         * lib/unistr/utf8-ucs4-safe.c: New file.
39466
39467         * modules/utf16-ucs4-safe: New file.
39468         * lib/utf16-ucs4-safe.h: New file.
39469         * lib/unistr/utf16-ucs4-safe.c: New file.
39470
39471         * MODULES.html.sh (Unicode string functions): Add the new modules.
39472
39473 2007-01-08  Bruno Haible  <bruno@clisp.org>
39474
39475         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39476         (Depends-on): Add unitypes.
39477         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39478         (u8_mbtouc_aux): Move out to separate file.
39479         (u8_mbtouc): Use ucs4_t, uint8_t types.
39480         * lib/unistr/utf8-ucs4.c: New file.
39481
39482         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39483         (Depends-on): Add unitypes.
39484         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39485         (u16_mbtouc_aux): Move out to separate file.
39486         (u16_mbtouc): Use ucs4_t, uint16_t types.
39487         * lib/unistr/utf16-ucs4.c: New file.
39488
39489         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39490         (Depends-on): Add unitypes.
39491         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39492         (u8_uctomb_aux): Move out to separate file.
39493         (u8_uctomb): Use ucs4_t, uint8_t types.
39494         * lib/unistr/ucs4-utf8.c: New file.
39495
39496         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39497         (Depends-on): Add unitypes.
39498         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39499         (u16_uctomb_aux): Move out to separate file.
39500         (u16_uctomb): Use ucs4_t, uint16_t types.
39501         * lib/unistr/ucs4-utf16.c: New file.
39502
39503 2006-12-25  Bruno Haible  <bruno@clisp.org>
39504
39505         * modules/unitypes: New file.
39506         * lib/unitypes.h: New file.
39507         * MODULES.html.sh (func_all_modules): New section "Unicode string
39508         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39509         this section. Add unitypes.
39510
39511 2007-01-08  Bruno Haible  <bruno@clisp.org>
39512
39513         Avoid variable names that conflict with those from libtool.
39514         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39515         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39516         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39517         library_names_spec to acl_library_names_spec, hardcode_* to
39518         acl_hardcode_*.
39519         Reported by Ralf Wildenhues.
39520
39521 2007-01-08  Bruno Haible  <bruno@clisp.org>
39522
39523         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39524         definition.
39525         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39526         definition.
39527         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39528         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39529         definition.
39530         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39531         definition.
39532         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39533         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39534         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39535         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39536         definition.
39537         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39538         definition.
39539         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39540         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39541         GC_USE_<algorithm>.
39542         * lib/gc-libgcrypt.c: Likewise.
39543         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39544         * modules/gc-arctwo (configure.ac): Likewise.
39545         * modules/gc-des (configure.ac): Likewise.
39546         * modules/gc-hmac-md5 (configure.ac): Likewise.
39547         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39548         * modules/gc-md2 (configure.ac): Likewise.
39549         * modules/gc-md4 (configure.ac): Likewise.
39550         * modules/gc-md5 (configure.ac): Likewise.
39551         * modules/gc-random (configure.ac): Likewise.
39552         * modules/gc-rijndael (configure.ac): Likewise.
39553         * modules/gc-sha1 (configure.ac): Likewise.
39554
39555 2007-01-08  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39558         macro definition.
39559         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39560         definition.
39561         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39562         definition.
39563         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39564         * modules/fcntl-safer (configure.ac): Likewise.
39565         * modules/fopen-safer (configure.ac): Likewise.
39566         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39567         GNULIB_FWRITEERROR macro definition.
39568
39569 2007-01-08  Bruno Haible  <bruno@clisp.org>
39570
39571         * m4/gnulib-common.m4: New file.
39572         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39573         (func_get_filelist): Add m4/gnulib-common.m4.
39574
39575 2007-01-08  Bruno Haible  <bruno@clisp.org>
39576
39577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39578         command.
39579
39580 2007-01-08  Jim Meyering  <jim@meyering.net>
39581
39582         Use a more robust test for a "can't happen" condition.
39583         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39584         narrowed the st_size value.  Presuming the "can't happen" condition
39585         is true, that narrowing could conceivably convert an invalid st_size
39586         value into a valid one.  Instead, use a change based on Matthew
39587         Woehlke's original patch.
39588
39589         Slight readability improvement: use an assert-like macro
39590         in place of literal "abort ()" uses.
39591         * lib/fts.c (fts_assert): Define.
39592         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39593         Use this macro instead of a bare 'abort'.
39594
39595 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39596
39597         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39598         simply work around them.
39599         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39600         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39601         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39602         declaring.
39603         Don't bother to define as macros, since the standard doesn't require it.
39604         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39605         longer worry about IRIX 5.3.
39606         (HAVE_WCTYPE_CTMP_BUG): Remove.
39607
39608 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39609
39610         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39611         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39612         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39613         Problems reported by Georg Schwarz for IRIX 5.3.
39614
39615         * gnulib-tool (autoconf_minversion): Take the maximum version number
39616         found, not the minimum.  Problem reported by James Youngman.
39617
39618 2007-01-03  Karl Berry  <karl@gnu.org>
39619
39620         * doc/error.texi: new file, explaining interaction with progname.
39621         * doc/gnulib.texi: include it.  Update copyright.
39622
39623 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39624
39625         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39626         AC_CANONICAL_HOST, to improve autobuild outputs.
39627
39628 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39629             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39630
39631         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39632         sockets, server sockets, and other file descriptors.  Count errors
39633         to compute the return value.  Reorder the code a bit to be easier
39634         to follow.  Don't set event bits that were not requested (except
39635         POLLERR and POLLHUP).
39636
39637 2007-01-01  Bruno Haible  <bruno@clisp.org>
39638
39639         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39640
39641 2007-01-03  Jim Meyering  <jim@meyering.net>
39642
39643         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39644
39645 2007-01-02  Bruno Haible  <bruno@clisp.org>
39646
39647         * modules/settime (Include): Require timespec.h.
39648         * modules/nanosleep (Include): Likewise.
39649
39650 2007-01-01  Bruno Haible  <bruno@clisp.org>
39651
39652         * gnulib-tool (func_emit_copyright_notice): Bump year.
39653         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39654
39655 2007-01-01  Bruno Haible  <bruno@clisp.org>
39656
39657         Improve support for OpenBSD.
39658         * build-aux/config.rpath (libname_spec): Export.
39659         (library_names_spec): New variable. Export.
39660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39661         library_names_spec from the config.rpath output. Locate shared library
39662         through the name pattern in library_names_spec.
39663
39664 2007-01-01  Eric Blake  <ebb9@byu.net>
39665
39666         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39667
39668 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39669
39670         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39671         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39672         assume the C locale, and avoid an "eval" that could cause trouble.
39673         Problem with SORT reported by Bob Proulx.
39674
39675         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39676         Define.  Trivial patch from Henning Nielsen Lund, originally
39677         sent to bug-grep@gnu.org today.
39678
39679 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39680
39681         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39682         struct stat.  Problem reported by Henning Nielsen Lund.
39683         * lib/acl.c: Include acl.h first, to check interface.  Don't
39684         bother to include sys/types.h and sys/stat.h again.
39685
39686 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39687
39688         Import the following change from libc; problem reported by
39689         Sven Verdoolaege.
39690
39691         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39692
39693         [BZ #1373]
39694         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39695
39696 2006-12-28  Jim Meyering  <jim@meyering.net>
39697
39698         * build-aux/announce-gen: Do not assume that the package
39699         builds any of tar.gz, tar.bz2, and .xdelta files.
39700         Suggestion from Simon Josefsson.
39701
39702 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39703
39704         * modules/announce-gen: New file.
39705
39706 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39707
39708         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39709         handles its gotchas now.
39710         * lib/mbswidth.c: Likewise.
39711         * lib/wcwidth.h: Likewise.
39712         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39713         and iswcntrl; the wctype module does this stuff now.
39714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39716         * modules/mbchar (Depends-on): Add wctype.
39717         * modules/mbswidth (Depends-on): Likewise.
39718         * modules/wcwidth (Depends-on): Likewise.
39719
39720 2006-12-27  Eric Blake  <ebb9@byu.net>
39721
39722         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39723         module uses more than what <wctype.h> is required to provide.
39724
39725 2006-12-26  Eric Blake  <ebb9@byu.net>
39726
39727         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39728
39729 2006-12-26  Eric Blake  <ebb9@byu.net>
39730
39731         * modules/absolute-header: New module.
39732         * modules/fcntl (Depends-on): Depend on it.
39733         * modules/inttypes (Depends-on): Likewise.
39734         * modules/stdint (Depends-on): Likewise.
39735         * modules/sys_stat (Depends-on): Likewise.
39736         * modules/wctype (Depends-on): Likewise.
39737         * MODULES.html.sh (Support for building libraries and
39738         executables): Document it.
39739
39740 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39741
39742         * gnulib-tool (SED): Remove, undoing previous change.
39743         The problem was that it broke coreutils on Solaris, because
39744         "sed --posix" leaked into a makefile.
39745         (sed): New alias, if 'alias' and GNU sed.
39746
39747 2006-12-24  Jim Meyering  <jim@meyering.net>
39748
39749         Work around an fchownat bug in glibc-2.4:
39750         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39751         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39752         in spite of the -P option.
39753         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39754         New macros.
39755         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39756         * modules/openat (Files): Add lib/fchownat.c.
39757         * lib/openat.c (fchownat): Don't define here.  Move to...
39758         * lib/fchownat.c: ...this new file.
39759
39760 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39761
39762         Fix bug reported by Bruno Haible in
39763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39764         where quotearg.c didn't compile on Mac OS X 10.2 because it
39765         lacks <wchar.h> and wint_t.
39766         * lib/wctype_.h (__wctype_wint_t): New type.
39767         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39768         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39769         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39770         Arg is now of type __wctype_wint_t, not wint_t.
39771         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39772         substitute HAVE_WINT_T.
39773         * modules/wctype (Files): Add m4/wint_t.m4.
39774         (wctype.h): Substitute HAVE_WINT_T.
39775
39776 2006-12-23  Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39779
39780 2006-12-23  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39783         S_ISLNK.
39784         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39785         mingw.
39786
39787 2006-12-22  Bruno Haible  <bruno@clisp.org>
39788
39789         * lib/copy-file.c: Include acl.h.
39790         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39791         Close the file descriptors only after being done with copy_acl.
39792         * modules/copy-file (Depends-on): Add acl.
39793
39794 2006-12-22  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (SED): New variable.
39797         Use $SED instead of sed everywhere.
39798
39799 2006-12-22  Bruno Haible  <bruno@clisp.org>
39800
39801         * modules/no-c++: New file.
39802         * m4/no-c++.m4: New file.
39803         * MODULES.html.sh (Support for building libraries and executables):
39804         Add no-c++.
39805
39806 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39809         Include <limits.h>, and use its INT_MAX to rewrite the
39810         j loop so that it does not overflow 'int'.  Problem reported by
39811         Ralf Wildenhues in
39812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39813         Play it safe by shifting left by 1 rather than multiplying by 2,
39814         as GCC is less likely to optimize this away when the value
39815         is signed (when it assumes overflow leads to undefined behavior).
39816         Also, don't assume time_t uses two's complement.
39817
39818 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39819
39820         * MODULES.html.sh: New module wctype.
39821         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39822         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39823         <wctype.h>, since the new wctype module should fix this.
39824         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39825         the wctype module should arrange for it.
39826         * lib/regex_internal.h: Likewise.
39827         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39828         since the wctype module should handle this now.
39829         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39830         * modules/fnmatch (Depends-on): Add wctype.
39831         * modules/quotearg (Depends-on): Likewise.
39832         * modules/regex (Depends-on): Likewise.
39833
39834 2006-12-19  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39837         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39838
39839 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39840
39841         * modules/savewd (Depends-on): Fix dependency on fcntl.
39842
39843 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39844
39845         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39846         conforms to C99, rather than relying on the user's environment
39847         setting of STDINT_H.
39848
39849 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39850         and Eric Blake  <ebb9@byu.net>
39851
39852         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39853         This is more consistent with the other defines here.
39854         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39855         Port to z/OS.  Problem reported by Paul Gilmartin.
39856         Change local vars to use gl_ prefix rather than ac_.
39857         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39858         with other defines.
39859         * modules/double-slash-root: New module.
39860         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39861         (Depends-on): Add double-slash-root.
39862         * MODULES.html.sh (File system functions): Mention new module.
39863
39864 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39865
39866         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39867         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39868         This is for the benefit of gzip, which doesn't do i18n.
39869
39870 2006-12-12  Jim Meyering  <jim@meyering.net>
39871
39872         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39873         Reported by Andreas Schwab <schwab@suse.de>.
39874
39875 2006-12-12  Bruno Haible  <bruno@clisp.org>
39876
39877         Merge these changes.
39878         2006-09-05  Bruno Haible  <bruno@clisp.org>
39879         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39880         iconv_alloc succeeded.
39881         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39882         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39883         test for " && dest " at the end - dest is always != NULL there. Call
39884         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39885         with 2xNULL arguments, also to flush the state storage. Handle the
39886         IRIX iconv behaviour. Realloc the final result, to throw away unused
39887         memory.
39888
39889 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39890
39891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39892         and fchmodat unconditionally, since glibc 2.4 has them.
39893         Problem reported by Arkadiusz Miskiewicz.
39894
39895 2006-12-10  Bruno Haible  <bruno@clisp.org>
39896
39897         * gnulib-tool (func_import): Show the include files only for those
39898         modules that are copied and specified.
39899         Reported by Karl Berry.
39900
39901 2006-12-08  Jim Meyering  <jim@meyering.net>
39902
39903         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39904         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39905
39906         * build-aux/announce-gen: Add two new options, both optional:
39907         --bootstrap-tools=TOOL_LIST
39908               a comma-separated list of tools, e.g.,
39909               autoconf,automake,bison,gnulib
39910         --gnulib-snapshot-date=DATE
39911               if gnulib is in the bootstrap tool list,
39912               then report this as the snapshot date.
39913               If not specified, use the current date/time.
39914               If you specify a date here, be sure it's UTC.
39915
39916 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39917
39918         * tests/test-argp-2.sh: Fix test to match actual output.
39919         (func_compare): Fix sed script to be portable.
39920
39921 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39922
39923         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39924         workaround for this case.  It is not autoconfigured now; offhand
39925         it's hard to see how to autoconfigure it.
39926
39927 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39928
39929         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39930         a directory that is about to be chowned.  Such a directory's
39931         initial file permissions should permit the owner only and this
39932         should not be changed until after the chown, since the group and
39933         other bits would be incorrect if they granted permission before
39934         the chown.
39935
39936         Fix porting problem for iswctype reported by Georg Schwarz in:
39937         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39938         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39939         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39942
39943 2006-12-03  Jim Meyering  <jim@meyering.net>
39944
39945         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39946         p->fts_statp may not yet be defined.
39947         (fts_read): Instead, set it in the caller, once p->fts_statp is
39948         sure to be defined, and corresponds to a top-level directory.
39949         This bug made du -x fail.  Here's the coreutils test case:
39950         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39951         Reported by Mike Frysinger.
39952
39953 2006-12-01  Jim Meyering  <jim@meyering.net>
39954
39955         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39956         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39957         Reported by Simon Josefsson.
39958
39959 2006-11-30  Jim Meyering  <jim@meyering.net>
39960
39961         * m4/warning.m4: Use the all-permissive copyright notice
39962         recommended by RMS (rather than LGPL).
39963         * m4/vararrays.m4: Likewise.
39964         * m4/flexmember.m4: Likewise.
39965
39966 2006-11-29  Bruno Haible  <bruno@clisp.org>
39967
39968         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39969         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39970         using +=.
39971         Reported by Simon Josefsson <simon@josefsson.org>.
39972
39973 2006-11-28  James Youngman <jay@gnu.org>
39974
39975         * README: Advise users that they might find the bug-gnulib@gnu.org
39976         and autotools-announce@gnu.org mailing lists useful.
39977
39978 2006-11-28  Bruno Haible  <bruno@clisp.org>
39979
39980         * m4/ptrdiff_max.m4: Remove file.
39981
39982 2006-11-21  Bruno Haible  <bruno@clisp.org>
39983
39984         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39985         _AC_COMPUTE_INT.
39986         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39987         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39988         _AC_COMPUTE_INT.
39989         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39990         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39991         _AC_COMPUTE_INT.
39992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39993
39994 2006-11-28  Jim Meyering  <jim@meyering.net>
39995
39996         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39997         warning from "gcc -Wshadow" about shadowing the builtin.
39998
39999 2006-11-27  Bruno Haible  <bruno@clisp.org>
40000
40001         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40002         _AC_COMPUTE_INT.
40003         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40004
40005 2006-11-27  Bruno Haible  <bruno@clisp.org>
40006             Paul Eggert  <eggert@cs.ucla.edu>
40007
40008         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40009
40010 2006-11-26  Bruno Haible  <bruno@clisp.org>
40011
40012         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40013         noinst_LTLIBRARIES.
40014
40015 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40016             Bruno Haible  <bruno@clisp.org>
40017
40018         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40019         if compiling with "gcc -ansi".
40020
40021 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40022
40023         Fix some incompatibilities with gcc -ansi -pedantic.
40024         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40025         if compiling pedantically with GCC, unless it's C99 or later.
40026         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40027         it mishandles gcc -ansi -pedantic as well.
40028         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40029         if gcc -pedantic.
40030         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40031         initializers for struct if -pedantic, unless it's C99 or later.
40032
40033 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40034
40035         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40036         Don't close an fd more than once. Identical atimes indicate
40037         success, not failure.
40038
40039 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40040
40041         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40042
40043 2006-11-23  Jim Meyering  <jim@meyering.net>
40044
40045         * build-aux/announce-gen: New file.  From coreutils.
40046
40047 2006-11-22  Jim Meyering  <jim@meyering.net>
40048
40049         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40050         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40051         (fts_read): Use a temporary to narrow the overused st_size member
40052         before using it in a switch statement.  Reported by Matthew Woehlke.
40053
40054         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40055         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40056
40057 2006-11-20  Bruno Haible  <bruno@clisp.org>
40058
40059         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40060         changequote instead of pairs of brackets.
40061         Reported by Andreas Schwab <schwab@suse.de>.
40062
40063 2006-11-21  Jim Meyering  <jim@meyering.net>
40064
40065         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40066         so as to remain compatible with older compilers.
40067         Patch from Michael Deutschmann.
40068
40069 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40070
40071         * MODULES.html.sh (File system functions): Add openat.
40072
40073         * lib/openat.h (rpl_fstatat): New macro, if
40074         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40075         (fstatat): Define to rpl_fstatat under the same conditions,
40076         unless COMPILING_FSTATAT.
40077         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40078         seems to have the bug.
40079         * lib/fstatat.c: New file.
40080         * modules/openat (Files): Add it.
40081
40082 2006-11-20  Bruno Haible  <bruno@clisp.org>
40083
40084         * Makefile: New file.
40085
40086 2006-11-20  Jim Meyering  <jim@meyering.net>
40087
40088         The beginnings of syntax-related checks for gnulib.
40089         * lib/Makefile: New file.
40090         * lib/t-idcache: New script.  Ensure that the two halves of
40091         idcache.c stay in sync.
40092
40093         * lib/idcache.c: Adjust comments in user- and group- portions to
40094         be more accurate, and to be consistent with one another.
40095
40096 2006-11-20  Jim Meyering  <jim@meyering.net>
40097
40098         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40099         continue using the flexible array member (thus, this module performs
40100         half as many malloc calls), with the addition that...
40101         (getgroup, getuser): Consistently record a non-match via an empty
40102         "name" string, and map an empty string match to a NULL return value.
40103         * modules/idcache (Depends-on): Re-add flexmember.
40104
40105         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40106         (getuidbyname, getgroup, getgidbyname): Likewise.
40107
40108         Use cleaner syntax: NULL rather than 0.
40109         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40110
40111 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40112
40113         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40114         It mishandled the case where the group was missing.
40115         Problem reported by Greg Schafer.
40116         * modules/idcache: Likewise.
40117
40118 2006-11-18  Jim Meyering  <jim@meyering.net>
40119
40120         * check-module (%exempt_header): Add exception for some
40121         conditionally-included headers.
40122
40123         * modules/i-ring (Depends-on): Add verify.
40124         (License): Change to LGPL.
40125
40126 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40127
40128         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40129         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40130         and inttostr.h.  Use snprintf rather than uinttostr, so that
40131         LGPLed code doesn't depend on GPLed.
40132
40133 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40134
40135         * modules/inline (License): Change from GPL to LGPL.
40136
40137 2006-11-17  Jim Meyering  <jim@meyering.net>
40138
40139         * modules/d-type (License): Switch to LGPL.
40140
40141 2006-11-15  Bruno Haible  <bruno@clisp.org>
40142
40143         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40144
40145 2006-11-15  Eric Blake  <ebb9@byu.net>
40146
40147         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40148         the module dependency.
40149
40150 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40151             Bruno Haible  <bruno@clisp.org>
40152
40153         * gnulib-tool (func_create_testdir): Add license consistency check.
40154
40155 2006-11-15  Eric Blake  <ebb9@byu.net>
40156
40157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40158         random "(cached)" in configure output.
40159
40160 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40161
40162         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40163         test for conforming inttypes.h is both announced and cached.
40164
40165         * MODULES.html.sh (seen_modules, seen_files): New variables.
40166         (func_module): Rewrite to use a few less gnulib-tool and sed
40167         invocations.  Avoid a couple of quadratic algorithms for ...
40168         (missed_modules, missed_files): ... these, with ...
40169         (func_append, func_tmpdir): ... these new functions, from
40170         gnulib-tool.  Analogously, install traps for cleanup.
40171
40172         * tests/test-gc.c (main): Remove unused variables.
40173         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40174
40175 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40176
40177         * modules/inttostr (License): Change to LGPL.
40178
40179 2006-11-14  Eric Blake  <ebb9@byu.net>
40180
40181         * modules/tempname (License): Change to LGPL.
40182
40183 2006-11-14  Eric Blake  <ebb9@byu.net>
40184
40185         * doc/functions.texi (Function Portability): *printf functions on
40186         Cygwin now understand all POSIX size specifiers.
40187
40188 2006-11-14  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/c-ctype (License): Change to LGPL.
40191
40192 2006-11-12  Bruno Haible  <bruno@clisp.org>
40193
40194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40195         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40196         for GNOME libraries, for which the include files are installed in
40197         subdirectories of $prefix/include.
40198
40199 2006-11-12  Bruno Haible  <bruno@clisp.org>
40200
40201         * m4/lib-link.m4: Require at least autoconf-2.54.
40202         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40203         name to underscores for the --with option.
40204
40205 2006-11-13  Bruno Haible  <bruno@clisp.org>
40206
40207         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40208         the tests directory.
40209         Reported by Ralf Wildenhues.
40210
40211 2006-11-13  Bruno Haible  <bruno@clisp.org>
40212
40213         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40214         (func_emit_initmacro_end): Undo the override here.
40215         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40216         Works around the famous automake error in coreutils.
40217
40218 2006-11-13  Eric Blake  <ebb9@byu.net>
40219
40220         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40221         element, not its node.
40222
40223 2006-11-12  Bruno Haible  <bruno@clisp.org>
40224
40225         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40226         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40227
40228 2006-11-12  Bruno Haible  <bruno@clisp.org>
40229
40230         * gnulib-tool: New option --local-symlink.
40231         (func_usage): Document it.
40232         (lsymbolic): New variable.
40233         (func_import, func_create_testdir): If --symlink was not specified,
40234         test whether --local-symlink was specified and the file comes from
40235         the local_gnulib_dir.
40236
40237 2006-11-12  Bruno Haible  <bruno@clisp.org>
40238
40239         * gnulib-tool (func_ln): New function.
40240         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40241
40242 2006-11-12  Bruno Haible  <bruno@clisp.org>
40243
40244         Finish support for source files in subdirectories.
40245         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40246         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40247         AUTOMAKE_OPTIONS.
40248         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40249
40250 2006-11-12  Bruno Haible  <bruno@clisp.org>
40251
40252         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40253         EXTRA_lib_SOURCES augmentation.
40254         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40255
40256 2006-11-12  Jim Meyering  <jim@meyering.net>
40257
40258         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40259         file descriptors.  This also averts a failure on systems with
40260         native openat support when a traversed directory lacks "x" access.
40261         * lib/fts_.h: Include "i-ring.h"
40262         (struct FTS) [fts_fd_ring]: New member.
40263         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40264         (FCHDIR): Add parentheses.
40265         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40266         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40267         When descending, rather than simply closing the previous
40268         fts_cwd_fd value, push that file descriptor onto the ring.
40269         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40270         (fts_open): Initialize the new fd_ring member.
40271         (fts_close): Clear the ring.
40272         (fts_safe_changedir): When possible, use our new fd_ring to skip
40273         the diropen and fstat and dev/ino comparison that would normally
40274         accompany a virtual `chdir ("..")'.
40275
40276         * modules/fts (Depends-on): Add i-ring.
40277         * modules/i-ring: New module.
40278         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40279         * m4/i-ring.m4: New file.
40280
40281 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40282
40283         * gnulib-tool (func_create_testdir): Fix replacement of
40284         `build-aux' in configure.ac.  Run autotools in gltests
40285         subdirectory.
40286         (func_create_testdir, func_create_megatestdir, test): There is
40287         no need for '--force' in most autotool invocations in a new
40288         tree.  Actually fail the whole test if any of the tools, or the
40289         configure or make stages fail.
40290
40291         Sync from Automake.
40292         * build-aux/gnupload: Revert last change.  Add pointer to upload
40293         instructions of the GNU Maintenance Instructions.
40294         Suggestion by Karl Berry.
40295
40296 2006-11-10  Jim Meyering  <jim@meyering.net>
40297
40298         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40299
40300 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40301
40302         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40303         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40304         (bind_textdomain_codeset) [! ENABLE_NLS]:
40305         Evaluate all the arguments.  That way, callers get compatible behavior
40306         if the arguments have side effects.  Also, it avoids some GCC
40307         diagnostics in some cases; Joel E. Denny reported problems when Bison
40308         was configured with --enable-gcc-warnigs.
40309
40310 2006-11-10  Jim Meyering  <jim@meyering.net>
40311
40312         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40313         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40314         account.
40315
40316 2006-11-10  Jim Meyering  <jim@meyering.net>
40317
40318         * modules/inline: New file/module.
40319         * modules/xalloc (Files): Remove m4/inline.m4.
40320         (Depends-on): Add inline, instead.
40321         * modules/oset: Likewise.
40322         * modules/list: Likewise.
40323
40324 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40325
40326         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40327         Problem reported by Matthew Woehlke.
40328
40329 2006-11-09  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/tempname.c (gen_tempname): Remove variant that invokes
40332         __gen_tempname.
40333         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40334         __gen_tempname.
40335
40336 2006-11-08  Bruno Haible  <bruno@clisp.org>
40337
40338         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40339         to 'yes' instead of 'cross-compiling'.
40340
40341 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * lib/quotearg.h (quotearg_free): New decl.
40344         * lib/quotearg.c (quotearg_free): New function.
40345         (slot0, nslots, slotvec0, slotvec):
40346         Now file-scope so that quotearg_free can get at them.
40347
40348 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40349
40350         Sync from Automake.
40351         * build-aux/gnupload: Add missing 'gnu' to example URL.
40352         Report by Karl Berry.
40353
40354 2006-11-08  Bruno Haible  <bruno@clisp.org>
40355
40356         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40357         Suggested by Paul Eggert.
40358
40359 2006-11-08  Jim Meyering  <jim@meyering.net>
40360
40361         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40362         It's already included if !_LIBC.
40363         (fts_safe_changedir): Add a comment.
40364
40365 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40366
40367         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40368         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40369         Matthew Woehlke.
40370
40371         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40372         definitions up, to avoid colliding with change below.
40373         (static_inline) [HAVE_INLINE]: New macro.
40374         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40375         Provide extern decls when !HAVE_INLINE.  Do not define unless
40376         static_inline is defined, either by us or by xmalloc.c.  Use
40377         static_inline rather than static inline.
40378         (XCALLOC): Optimize sizeof(T) = 1 case.
40379         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40380
40381 2006-11-07  Bruno Haible  <bruno@clisp.org>
40382
40383         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40385         AC_C_INLINE.
40386         * modules/xalloc (Files): Add m4/inline.m4.
40387
40388 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40389
40390         * README: Fix typo.
40391         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40392         (Miscellanous Notes): ...from this.
40393
40394 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40395
40396         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40397         Mention that offsetof should be used instead of sizeof.
40398         From Bruno Haible.
40399
40400 2006-11-07  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40403
40404 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40405
40406         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40407         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40408         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40409         (gl_tree_add_before, gl_tree_add_after):
40410         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40411         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40412         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40413         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40414         (gl_linked_add_after, gl_linked_add_at): Likewise.
40415         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40416         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40417         (gl_tree_add_before, gl_tree_add_after): Likewise.
40418         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40419         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40420         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40421
40422 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40423
40424         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40425
40426 2006-11-06  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/inline.m4: New file.
40429         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40430         * modules/list (Files): Add m4/inline.m4.
40431         * modules/oset (Files): Likewise.
40432
40433 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40434
40435         * lib/idcache.c: Include <stddef.h>, for offsetof.
40436         (struct userid.name): Change from char * to a flexible array member.
40437         All uses changed.
40438         * modules/idcache (Depends-on): Add flexmember.
40439
40440         * MODULES.html.sh (Core language properties): New module flexmember.
40441         * modules/flexmember, m4/flexmember.m4: New files.
40442
40443         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40444         inline functions that are identical with the old xnmalloc_inline,
40445         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40446         that we can avoid some unnecessary integer multiplications and
40447         divisions in the common case where the element size is known at
40448         compile time.
40449         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40450         needed.
40451         (xnboundedmalloc): Remove.
40452         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40453         arguments, for consistency with rest of this header.
40454         (xcharalloc): Rewrite using XNMALLOC.
40455         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40456         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40457         versions have been moved to lib/xalloc.h and renamed to be the
40458         non-*_inline versions.
40459         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40460         and xnrealloc functions, since those functions are now inline and
40461         now call us.
40462         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40463         renaming described above.
40464         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40465         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40466         captures the dependency in AC_C_INLINE.
40467
40468         New module canonicalize-lgpl, proposed by Charles Wilson in
40469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40470         with a few small changes afterwards.
40471         * MODULES.html.sh (File system functions): New module
40472         canonicalize-lgpl.
40473         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40474         and canonicalize_file_name.
40475         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40476         * modules/canonicalize-lgpl: New files.
40477
40478 2006-11-05  Bruno Haible  <bruno@clisp.org>
40479
40480         * gnulib-tool (func_import, func_create_testdir): Create directories
40481         also for files in subdirectories of lib/.
40482
40483 2006-11-05  Bruno Haible  <bruno@clisp.org>
40484
40485         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40486         ANSI C compliant.
40487
40488 2006-11-03  Bruno Haible  <bruno@clisp.org>
40489
40490         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40491         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40492         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40493         (xnboundedmalloc): New inline function.
40494         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40495         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40496         xmalloc.
40497         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40498         xmalloc.
40499         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40500         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40501         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40502         xmalloc.
40503         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40504         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40505         xmalloc.
40506         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40507         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40508         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40509         xmalloc.
40510         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40511         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40512         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40513         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40514         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40515         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40516         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40517
40518 2006-11-03  Bruno Haible  <bruno@clisp.org>
40519
40520         * lib/c-ctype.h [C++]: Define functions without name mangling.
40521         * lib/fwriteerror.h [C++]: Likewise.
40522         * lib/gcd.h [C++]: Likewise.
40523         * lib/linebreak.h [C++]: Likewise.
40524
40525 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40526
40527         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40528         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40529         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40530         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40531         Check for functions and headers just once.
40532         Check for declaration of canonicalize_file_name.
40533         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40534
40535 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40536
40537         * gnulib-tool (func_import): Fix typo in actioncmd.
40538
40539 2006-11-02  Bruno Haible  <bruno@clisp.org>
40540
40541         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40542         newline sequence in the Makefile.am snippet as a space, like "make"
40543         does.
40544         Reported by Roger Persson <perrog@gmail.com>.
40545
40546 2006-11-01  Bruno Haible  <bruno@clisp.org>
40547
40548         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40549         already declared in <string.h>.
40550         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40551
40552 2006-11-01  Bruno Haible  <bruno@clisp.org>
40553
40554         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40555         * lib/strcase.h: Include <string.h>.
40556         (strcasecmp): Define to rpl_strcasecmp here.
40557
40558 2006-11-01  Bruno Haible  <bruno@clisp.org>
40559
40560         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40561
40562 2006-11-01  Eric Blake  <ebb9@byu.net>
40563
40564         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40565
40566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40567
40568 2006-10-29  Bruno Haible  <bruno@clisp.org>
40569
40570         Make it compile in C++ mode.
40571         * lib/full-write.c (full_rw): Add a cast.
40572
40573 2006-11-01  Bruno Haible  <bruno@clisp.org>
40574
40575         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40576         be POSIX compliant.
40577         Reported by Roger Persson <perrog@gmail.com>.
40578
40579 2006-11-01  Eric Blake  <ebb9@byu.net>
40580
40581         * lib/getopt_.h: Fix comments.
40582
40583 2006-10-31  Eric Blake  <ebb9@byu.net>
40584
40585         * modules/tmpdir (Depends-on): Add sys_stat.
40586         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40587         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40588         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40589         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40590         tempname.
40591
40592 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40593
40594         Avoid some C++ diagnostics reported by Bruno Haible.
40595         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40596         xmalloc.
40597         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40598         (struct slotvec): Move to top level.
40599         (quotearg_n_options): Rewrite to avoid xmalloc.
40600         * lib/xalloc.h (xcharalloc): New function.
40601         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40602         [defined __cplusplus]: Add function template that provides result
40603         type propagation.  This part of the change is from Bruno Haible.
40604
40605 2006-10-29  Bruno Haible  <bruno@clisp.org>
40606
40607         Make it compile in C++ mode.
40608         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40609         * lib/strnlen1.c (strnlen1): Cast memchr result.
40610         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40611         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40612         (create_temp_dir): Rename local variable 'template'.
40613         (compile_csharp_using_sscli): Add cast.
40614         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40615         * lib/findprog.c (find_in_path): Likewise.
40616         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40617         * lib/wait-process.c (register_slave_subprocess): Likewise.
40618
40619 2006-10-22  Bruno Haible  <bruno@clisp.org>
40620
40621         * modules/tsearch: New file.
40622         * lib/tsearch.h: New file.
40623         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40624         * m4/tsearch.m4: New file.
40625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40626
40627 2006-10-29  Eric Blake  <ebb9@byu.net>
40628
40629         * lib/arcfour.c: Assume config.h.
40630         * lib/arctwo.c: Likewise.
40631         * lib/base64.c: Likewise.
40632         * lib/check-version.c: Likewise.
40633         * lib/crc.c: Likewise.
40634         * lib/des.c: Likewise.
40635         * lib/gc-gnulib.c: Likewise.
40636         * lib/gc-libgcrypt.c: Likewise.
40637         * lib/gc-pbkdf2-sha1.c: Likewise.
40638         * lib/getaddrinfo.c: Likewise.
40639         * lib/getdelim.c: Likewise.
40640         * lib/getline.c: Likewise.
40641         * lib/hmac-md5.c: Likewise.
40642         * lib/hmac-sha1.c: Likewise.
40643         * lib/iconvme.c: Likewise.
40644         * lib/md2.c: Likewise.
40645         * lib/md4.c: Likewise.
40646         * lib/memxor.c: Likewise.
40647         * lib/read-file.c: Likewise.
40648         * lib/readline.c: Likewise.
40649         * lib/rijndael-alg-fst.c: Likewise.
40650         * lib/rijndael-api-fst.c: Likewise.
40651         * lib/xgetdomainname.c: Likewise.
40652
40653 2006-10-28  Eric Blake  <ebb9@byu.net>
40654
40655         * lib/xstrndup.c: Assume config.h.
40656
40657 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40658
40659         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40660         stat-macros.h is now for our own macros, whereas stat_h is for
40661         macros in the <sys/stat.h> name space.
40662         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40663         (STAT_MACROS_H): Remove.
40664         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40665         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40666         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40667         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40668         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40669         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40670         Move these macros to ...
40671         * lib/stat_.h: here.  Don't include stat-macros.h.
40672         * lib/canonicalize.c: Don't include stat-macros.h.
40673         * lib/chown.c: Likewise.
40674         * lib/euidaccess.c: Likewise.
40675         * lib/file-type.c: Likewise.
40676         * lib/filemode.c: Likewise.
40677         * lib/glob.c: Likewise.
40678         * lib/isapipe.c: Likewise.
40679         * lib/lchown.c: Likewise.
40680         * lib/lstat.c: Likewise.
40681         * lib/mkdir-p.c: Likewise.
40682         * lib/rmdir.c: Likewise.
40683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40685         unless mkdir isn't declared, to speed up 'configure'.
40686         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40687         would define all the S_* symbols.
40688         * modules/canonicalize (Depends-on):
40689         Depend on sys_stat, not stat-macros.
40690         * modules/chown: Likewise.
40691         * modules/euidaccess: Likewise.
40692         * modules/filemode: Likewise.
40693         * modules/file-type: Likewise.
40694         * modules/glob: Likewise.
40695         * modules/isapipe: Likewise.
40696         * modules/lchown: Likewise.
40697         * modules/lstat: Likewise.
40698         * modules/mkancesdirs: Likewise.
40699         * modules/rmdir: Likewise.
40700         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40701         * modules/modechange: Likewise.
40702         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40703         (configure.ac): Remove gl_STAT_MACROS.
40704         * modules/sys_stat (Depends-on): Remove stat-macros.
40705
40706 2006-10-27  Bruno Haible  <bruno@clisp.org>
40707
40708         * m4/signed.m4: Remove file.
40709         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40710         invocation.
40711         * modules/vasnprintf (Files): Remove m4/signed.m4.
40712
40713 2006-10-27  Bruno Haible  <bruno@clisp.org>
40714
40715         Update to GNU gettext 0.16.
40716         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40717         m4/inttypes-h.m4, m4/signed.m4.
40718         * m4/gettext.m4: Update to GNU gettext 0.16.
40719         * m4/intl.m4: New file, from GNU gettext.
40720         * m4/intldir.m4: New file, from GNU gettext.
40721         * config/srclist.txt: Update
40722
40723 2006-10-27  Eric Blake  <ebb9@byu.net>
40724
40725         * MODULES.html.sh: Document tempname.
40726         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40727         dependencies.
40728         (Files): Move lib/tempname.c...
40729         * modules/tempname: ...to this new module.
40730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40731         (gl_PREREQ_TEMPNAME): Move...
40732         * m4/tempname.m4: ...to this new file.
40733         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40734         * modules/sys_stat (Depends-on): Add stat-macros.
40735         * lib/stat_.h (includes): Pick up stat macros.
40736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40737         if stat macros are broken.
40738         * lib/tempname.c (includes): No need to include "stat-macros.h".
40739         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40740         (direxists, __path_search) [!_LIBC]: Don't compile these in
40741         gnulib; the tmpdir module covers that.
40742         * lib/tempname.h: New file.
40743
40744 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40745
40746         * COPYING: Explain how gnulib-tool converts licence headers.
40747         Almost all wording by Eric Blake.
40748
40749 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40750
40751         * lib/mbchar.h (is_basic_table): Make read-only.
40752         * lib/mbchar.c (is_basic_table): Likewise.
40753         Reported by John Darrington.
40754
40755 2006-10-25  Bruno Haible  <bruno@clisp.org>
40756
40757         * lib/progname.h (set_program_name): Undefine before defining.
40758
40759 2006-10-25  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40762         false for non-gcc C++ compilers.
40763         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40764
40765 2006-10-24  Bruno Haible  <bruno@clisp.org>
40766
40767         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40768         iconv implementations like Irix iconv.
40769
40770 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40771
40772         * modules/vararrays: New file.
40773         * m4/vararrays.m4: New file, taken from diffutils.
40774         * MODULES.html.sh: New module vararrays.
40775
40776 2006-10-24  Karl Berry  <karl@gnu.org>
40777
40778         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40779         Don't call GNU Unix.
40780
40781 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40782
40783         * users.txt: Add Libtool.
40784
40785         Sync from Libtool:
40786
40787         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40788
40789         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40790         to gnulib's policy of including config.h unconditionally.
40791
40792 2006-10-24  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/wcwidth (Files): Add m4/wint_t.m4.
40795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40796         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40797
40798 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40799
40800         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40801         to pacify GCC with some -W flags enabled.  Problem reported by
40802         Bruno Haible.
40803
40804 2006-10-24  Jim Meyering  <jim@meyering.net>
40805
40806         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40807         Reported by Karl Berry.
40808
40809 2006-10-23  Bruno Haible  <bruno@clisp.org>
40810
40811         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40812
40813 2006-10-24  Bruno Haible  <bruno@clisp.org>
40814
40815         * lib/gl_list.h: Use C comment style, not C++ comment style.
40816
40817 2006-10-23  Eric Blake  <ebb9@byu.net>
40818
40819         * lib/getaddrinfo.c (includes): Add missing include.
40820
40821 2006-10-23  Bruno Haible  <bruno@clisp.org>
40822             Paul Eggert  <eggert@cs.ucla.edu>
40823
40824         Ability to rename obstack_free.
40825         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40826         obstack_free.
40827         (obstack_free): Invoke the __obstack_free macro.
40828         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40829
40830 2006-10-23  Bruno Haible  <bruno@clisp.org>
40831             Paul Eggert  <eggert@cs.ucla.edu>
40832
40833         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40834         __argc, __argv from the declaration. (They are defined as macros on
40835         mingw.)
40836
40837 2006-10-22  Bruno Haible  <bruno@clisp.org>
40838
40839         * doc/gnulib-intro.texi: New file.
40840         * doc/gnulib.texi: Include it.
40841
40842 2006-10-21  Bruno Haible  <bruno@clisp.org>
40843
40844         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40845         "Introduction", "Miscellanous Notes", "Particular Modules".
40846
40847 2006-10-21  Bruno Haible  <bruno@clisp.org>
40848
40849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40850         Change mostlyclean-local rule to avoid sh syntax error from bash
40851         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40852
40853 2006-10-23  Jim Meyering  <jim@meyering.net>
40854
40855         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40856         in place of snprintf.
40857
40858         * modules/inttostr (Files): Add lib/uinttostr.c.
40859         * lib/uinttostr.c (inttostr): New file/function.
40860         * lib/inttostr.h (uinttostr): Declare.
40861         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40862         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40863         Add uinttostr.
40864         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40865
40866 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40867
40868         * lib/canonicalize.c (ELOOP): Define if not already defined.
40869         Problem reported by Bruno Haible in
40870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40871
40872 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40873
40874         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40875         Problem reported by Perry Smith and Ville Laurikari.
40876
40877         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40878         uses.
40879
40880 2006-10-19  Bruno Haible  <bruno@clisp.org>
40881
40882         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40883         for mingw.
40884
40885 2006-10-19  Bruno Haible  <bruno@clisp.org>
40886
40887         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40888         Needed for mingw.
40889
40890 2006-10-19  Bruno Haible  <bruno@clisp.org>
40891
40892         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40893
40894 2006-10-19  Bruno Haible  <bruno@clisp.org>
40895
40896         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40897         it.
40898
40899 2006-10-19  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40902         invocation.
40903
40904 2006-10-19  Bruno Haible  <bruno@clisp.org>
40905
40906         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40907         mountlist by default.
40908
40909 2006-10-16  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/c-strstr.c: Include c-strstr.h.
40912
40913 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40914
40915         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40916         in a slash.
40917
40918 2006-10-18  Bruno Haible  <bruno@clisp.org>
40919
40920         * lib/lock.h [C++]: Wrap definitions in extern "C".
40921
40922 2006-10-18  Bruno Haible  <bruno@clisp.org>
40923
40924         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40925         gl_LIBOBJS list.
40926
40927 2006-10-18  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40930
40931 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40932
40933         * lib/xstrtol.h: Include gettext.h.
40934         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40935         Problem reported by Eric Blake.
40936         * modules/xstrtol (Depends-on): Add gettext-h.
40937
40938 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40939
40940         * lib/strftime.c (advance): New macro.
40941         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40942         incomplete type, so you can't add 0 to it.  Problem and patch
40943         reported by Eelco Dolstra for dietlibc.
40944
40945 2006-10-18  Jim Meyering  <jim@meyering.net>
40946
40947         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40948         type for a local, and rename it: s/up/user_proc/.
40949
40950 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40951
40952         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40953         READ_UTMP_USER_PROCESS.
40954         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40955
40956 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40959         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40960
40961 2006-10-17  Eric Blake  <ebb9@byu.net>
40962
40963         * lib/sigprocmask.c (sigprocmask): Fix typo.
40964
40965         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40966
40967         * modules/clean-temp (Makefile.am): Don't add to make output...
40968         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40969         config.h.
40970
40971 2006-10-17  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40974         differently if DEFAULT_TEXT_DOMAIN is set.
40975
40976 2006-10-16  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/clean-temp.c: Include fwriteerror.h.
40979
40980 2006-10-16  Bruno Haible  <bruno@clisp.org>
40981
40982         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40983
40984 2006-10-16  Bruno Haible  <bruno@clisp.org>
40985
40986         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40987         * lib/sigprocmask.h: Include <sys/types.h>.
40988         (sigset_t): Use the system's definition if present.
40989
40990 2006-10-17  Eric Blake  <ebb9@byu.net>
40991
40992         * lib/xvasprintf.c (includes): Assume config.h.
40993         * lib/xasprintf.c (includes): Likewise.
40994
40995 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40996
40997         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40998         at least as wide as intmax_t.
40999
41000 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41001
41002         (Imported from Automake.)
41003         * build-aux/gnupload: Update to version 1.1 of directive file.
41004
41005 2006-10-16  Eric Blake  <ebb9@byu.net>
41006
41007         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41008         match Automake 1.10a.
41009
41010 2006-10-14  Bruno Haible  <bruno@clisp.org>
41011
41012         * modules/sigprocmask: New file.
41013         * lib/sigprocmask.h: New file.
41014         * lib/sigprocmask.c: New file.
41015         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41016         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41017         request sigprocmask.o.
41018         (gl_PREREQ_SIGPROCMASK): New macro.
41019         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41020         (Depends-on): Add sigprocmask.
41021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41022         gt_SIGNALBLOCKING. Test for 'raise' only once.
41023         * lib/fatal-signal.c: Include sigprocmask.h.
41024         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41025         unblock_fatal_signals): Define always.
41026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41027         sigprocmask.
41028
41029 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41030
41031         Sync from Automake.
41032         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41033         which incorrectly sets the mode of an existing destination
41034         directory.  In some cases the unpatched install-sh could do the
41035         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41036         system.  We hope this is rare in practice, but it's clearly worth
41037         fixing.  Problem reported by Alex Unleashed in
41038         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41039         Also, don't bother to check for -m bugs unless we're using -m;
41040         suggested by Stepan Kasal.
41041
41042 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41043
41044         Sync from Automake.
41045         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41046         `-c' flag, so they appear at the same position as in %FASTDEP%
41047         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41048         which ignores unknown options only after the first non-option.
41049         Bug report against M4 by Nelson H. F. Beebe.
41050
41051 2006-10-13  Jim Meyering  <jim@meyering.net>
41052
41053         Fix a bug in yesterday's change.
41054         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41055         p->fts_statp->st_dev would be used uninitialized.
41056         Ensures that we always call fts_stat on the very first entry.
41057         Miklos Szeredi reported that find -xdev stopped working.
41058
41059 2006-10-12  Bruno Haible  <bruno@clisp.org>
41060
41061         * gnulib-tool (func_get_automake_snippet): Append an automatically
41062         computed EXTRA_DIST augmentation.
41063         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41064         * modules/alloca-opt (Makefile.am): Likewise.
41065         * modules/allocsa (Makefile.am): Likewise.
41066         * modules/arcfour (Makefile.am): Likewise.
41067         * modules/arctwo (Makefile.am): Likewise.
41068         * modules/argmatch (Makefile.am): Likewise.
41069         * modules/argz (Makefile.am): Likewise.
41070         * modules/atexit (Makefile.am): Likewise.
41071         * modules/backupfile (Makefile.am): Likewise.
41072         * modules/byteswap (Makefile.am): Likewise.
41073         * modules/c-strtod (Makefile.am): Likewise.
41074         * modules/c-strtold (Makefile.am): Likewise.
41075         * modules/calloc (Makefile.am): Likewise.
41076         * modules/canon-host (Makefile.am): Likewise.
41077         * modules/canonicalize (Makefile.am): Likewise.
41078         * modules/chdir-long (Makefile.am): Likewise.
41079         * modules/chdir-safer (Makefile.am): Likewise.
41080         * modules/check-version (Makefile.am): Likewise.
41081         * modules/chown (Makefile.am): Likewise.
41082         * modules/cloexec (Makefile.am): Likewise.
41083         * modules/close-stream (Makefile.am): Likewise.
41084         * modules/closeout (Makefile.am): Likewise.
41085         * modules/crc (Makefile.am): Likewise.
41086         * modules/csharpexec (Makefile.am): Likewise.
41087         * modules/cycle-check (Makefile.am): Likewise.
41088         * modules/des (Makefile.am): Likewise.
41089         * modules/dev-ino (Makefile.am): Likewise.
41090         * modules/dirfd (Makefile.am): Likewise.
41091         * modules/dirname (Makefile.am): Likewise.
41092         * modules/dup2 (Makefile.am): Likewise.
41093         * modules/eealloc (Makefile.am): Likewise.
41094         * modules/error (Makefile.am): Likewise.
41095         * modules/euidaccess (Makefile.am): Likewise.
41096         * modules/exclude (Makefile.am): Likewise.
41097         * modules/exitfail (Makefile.am): Likewise.
41098         * modules/fcntl-safer (Makefile.am): Likewise.
41099         * modules/fcntl (Makefile.am): Likewise.
41100         * modules/file-type (Makefile.am): Likewise.
41101         * modules/fileblocks (Makefile.am): Likewise.
41102         * modules/filemode (Makefile.am): Likewise.
41103         * modules/filenamecat (Makefile.am): Likewise.
41104         * modules/fnmatch (Makefile.am): Likewise.
41105         * modules/fopen-safer (Makefile.am): Likewise.
41106         * modules/fpending (Makefile.am): Likewise.
41107         * modules/fprintftime (Makefile.am): Likewise.
41108         * modules/free (Makefile.am): Likewise.
41109         * modules/fsusage (Makefile.am): Likewise.
41110         * modules/ftruncate (Makefile.am): Likewise.
41111         * modules/fts (Makefile.am): Likewise.
41112         * modules/gc-arcfour (Makefile.am): Likewise.
41113         * modules/gc-des (Makefile.am): Likewise.
41114         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41115         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41116         * modules/gc-md4 (Makefile.am): Likewise.
41117         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41118         * modules/gc-sha1 (Makefile.am): Likewise.
41119         * modules/gc (Makefile.am): Likewise.
41120         * modules/getaddrinfo (Makefile.am): Likewise.
41121         * modules/getcwd (Makefile.am): Likewise.
41122         * modules/getdelim (Makefile.am): Likewise.
41123         * modules/getdomainname (Makefile.am): Likewise.
41124         * modules/getgroups (Makefile.am): Likewise.
41125         * modules/gethostname (Makefile.am): Likewise.
41126         * modules/gethrxtime (Makefile.am): Likewise.
41127         * modules/getline (Makefile.am): Likewise.
41128         * modules/getloadavg (Makefile.am): Likewise.
41129         * modules/getlogin_r (Makefile.am): Likewise.
41130         * modules/getndelim2 (Makefile.am): Likewise.
41131         * modules/getopt (Makefile.am): Likewise.
41132         * modules/getpagesize (Makefile.am): Likewise.
41133         * modules/getpass-gnu (Makefile.am): Likewise.
41134         * modules/getpass (Makefile.am): Likewise.
41135         * modules/getsubopt (Makefile.am): Likewise.
41136         * modules/gettime (Makefile.am): Likewise.
41137         * modules/gettimeofday (Makefile.am): Likewise.
41138         * modules/getugroups (Makefile.am): Likewise.
41139         * modules/getusershell (Makefile.am): Likewise.
41140         * modules/glob (Makefile.am): Likewise.
41141         * modules/group-member (Makefile.am): Likewise.
41142         * modules/hard-locale (Makefile.am): Likewise.
41143         * modules/hash (Makefile.am): Likewise.
41144         * modules/hmac-md5 (Makefile.am): Likewise.
41145         * modules/hmac-sha1 (Makefile.am): Likewise.
41146         * modules/human (Makefile.am): Likewise.
41147         * modules/idcache (Makefile.am): Likewise.
41148         * modules/imaxabs (Makefile.am): Likewise.
41149         * modules/imaxdiv (Makefile.am): Likewise.
41150         * modules/inet_ntop (Makefile.am): Likewise.
41151         * modules/inet_pton (Makefile.am): Likewise.
41152         * modules/intprops (Makefile.am): Likewise.
41153         * modules/inttostr (Makefile.am): Likewise.
41154         * modules/inttypes (Makefile.am): Likewise.
41155         * modules/isapipe (Makefile.am): Likewise.
41156         * modules/javaversion (Makefile.am): Likewise.
41157         * modules/lchmod (Makefile.am): Likewise.
41158         * modules/lchown (Makefile.am): Likewise.
41159         * modules/localcharset (Makefile.am): Likewise.
41160         * modules/long-options (Makefile.am): Likewise.
41161         * modules/lstat (Makefile.am): Likewise.
41162         * modules/malloc (Makefile.am): Likewise.
41163         * modules/mathl (Makefile.am): Likewise.
41164         * modules/mbchar (Makefile.am): Likewise.
41165         * modules/md2 (Makefile.am): Likewise.
41166         * modules/md4 (Makefile.am): Likewise.
41167         * modules/md5 (Makefile.am): Likewise.
41168         * modules/memcasecmp (Makefile.am): Likewise.
41169         * modules/memchr (Makefile.am): Likewise.
41170         * modules/memcmp (Makefile.am): Likewise.
41171         * modules/memcoll (Makefile.am): Likewise.
41172         * modules/memcpy (Makefile.am): Likewise.
41173         * modules/memmem (Makefile.am): Likewise.
41174         * modules/memmove (Makefile.am): Likewise.
41175         * modules/mempcpy (Makefile.am): Likewise.
41176         * modules/memrchr (Makefile.am): Likewise.
41177         * modules/memset (Makefile.am): Likewise.
41178         * modules/memxor (Makefile.am): Likewise.
41179         * modules/mkancesdirs (Makefile.am): Likewise.
41180         * modules/mkdir-p (Makefile.am): Likewise.
41181         * modules/mkdir (Makefile.am): Likewise.
41182         * modules/mkdtemp (Makefile.am): Likewise.
41183         * modules/mkstemp (Makefile.am): Likewise.
41184         * modules/mktime (Makefile.am): Likewise.
41185         * modules/modechange (Makefile.am): Likewise.
41186         * modules/mountlist (Makefile.am): Likewise.
41187         * modules/nanosleep (Makefile.am): Likewise.
41188         * modules/obstack (Makefile.am): Likewise.
41189         * modules/openat (Makefile.am): Likewise.
41190         * modules/pagealign_alloc (Makefile.am): Likewise.
41191         * modules/pathmax (Makefile.am): Likewise.
41192         * modules/physmem (Makefile.am): Likewise.
41193         * modules/poll (Makefile.am): Likewise.
41194         * modules/posixtm (Makefile.am): Likewise.
41195         * modules/posixver (Makefile.am): Likewise.
41196         * modules/putenv (Makefile.am): Likewise.
41197         * modules/quote (Makefile.am): Likewise.
41198         * modules/quotearg (Makefile.am): Likewise.
41199         * modules/raise (Makefile.am): Likewise.
41200         * modules/read-file (Makefile.am): Likewise.
41201         * modules/readline (Makefile.am): Likewise.
41202         * modules/readlink (Makefile.am): Likewise.
41203         * modules/readtokens (Makefile.am): Likewise.
41204         * modules/readutmp (Makefile.am): Likewise.
41205         * modules/realloc (Makefile.am): Likewise.
41206         * modules/regex (Makefile.am): Likewise.
41207         * modules/rename-dest-slash (Makefile.am): Likewise.
41208         * modules/rename (Makefile.am): Likewise.
41209         * modules/rijndael (Makefile.am): Likewise.
41210         * modules/rmdir (Makefile.am): Likewise.
41211         * modules/rpmatch (Makefile.am): Likewise.
41212         * modules/safe-read (Makefile.am): Likewise.
41213         * modules/safe-write (Makefile.am): Likewise.
41214         * modules/same-inode (Makefile.am): Likewise.
41215         * modules/same (Makefile.am): Likewise.
41216         * modules/save-cwd (Makefile.am): Likewise.
41217         * modules/savedir (Makefile.am): Likewise.
41218         * modules/setenv (Makefile.am): Likewise.
41219         * modules/settime (Makefile.am): Likewise.
41220         * modules/sha1 (Makefile.am): Likewise.
41221         * modules/sig2str (Makefile.am): Likewise.
41222         * modules/snprintf (Makefile.am): Likewise.
41223         * modules/stat-macros (Makefile.am): Likewise.
41224         * modules/stat-time (Makefile.am): Likewise.
41225         * modules/stdbool (Makefile.am): Likewise.
41226         * modules/stdint (Makefile.am): Likewise.
41227         * modules/stdlib-safer (Makefile.am): Likewise.
41228         * modules/stpcpy (Makefile.am): Likewise.
41229         * modules/stpncpy (Makefile.am): Likewise.
41230         * modules/strcase (Makefile.am): Likewise.
41231         * modules/strcasestr (Makefile.am): Likewise.
41232         * modules/strchrnul (Makefile.am): Likewise.
41233         * modules/strcspn (Makefile.am): Likewise.
41234         * modules/strdup (Makefile.am): Likewise.
41235         * modules/strerror (Makefile.am): Likewise.
41236         * modules/strftime (Makefile.am): Likewise.
41237         * modules/strndup (Makefile.am): Likewise.
41238         * modules/strnlen (Makefile.am): Likewise.
41239         * modules/strpbrk (Makefile.am): Likewise.
41240         * modules/strsep (Makefile.am): Likewise.
41241         * modules/strstr (Makefile.am): Likewise.
41242         * modules/strtod (Makefile.am): Likewise.
41243         * modules/strtoimax (Makefile.am): Likewise.
41244         * modules/strtok_r (Makefile.am): Likewise.
41245         * modules/strtol (Makefile.am): Likewise.
41246         * modules/strtoll (Makefile.am): Likewise.
41247         * modules/strtoul (Makefile.am): Likewise.
41248         * modules/strtoull (Makefile.am): Likewise.
41249         * modules/strtoumax (Makefile.am): Likewise.
41250         * modules/strverscmp (Makefile.am): Likewise.
41251         * modules/sys_socket (Makefile.am): Likewise.
41252         * modules/sys_stat (Makefile.am): Likewise.
41253         * modules/sysexits (Makefile.am): Likewise.
41254         * modules/time_r (Makefile.am): Likewise.
41255         * modules/timegm (Makefile.am): Likewise.
41256         * modules/timespec (Makefile.am): Likewise.
41257         * modules/tmpfile-safer (Makefile.am): Likewise.
41258         * modules/trim (Makefile.am): Likewise.
41259         * modules/unistd-safer (Makefile.am): Likewise.
41260         * modules/unlinkdir (Makefile.am): Likewise.
41261         * modules/unlocked-io (Makefile.am): Likewise.
41262         * modules/userspec (Makefile.am): Likewise.
41263         * modules/utime (Makefile.am): Likewise.
41264         * modules/utimecmp (Makefile.am): Likewise.
41265         * modules/utimens (Makefile.am): Likewise.
41266         * modules/vasnprintf (Makefile.am): Likewise.
41267         * modules/vasprintf (Makefile.am): Likewise.
41268         * modules/vsnprintf (Makefile.am): Likewise.
41269         * modules/xalloc (Makefile.am): Likewise.
41270         * modules/xgetcwd (Makefile.am): Likewise.
41271         * modules/xnanosleep (Makefile.am): Likewise.
41272         * modules/xreadlink (Makefile.am): Likewise.
41273         * modules/xstrtod (Makefile.am): Likewise.
41274         * modules/xstrtol (Makefile.am): Likewise.
41275         * modules/xstrtold (Makefile.am): Likewise.
41276         * modules/yesno (Makefile.am): Likewise.
41277         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41278
41279 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41280
41281         * modules/error (Makefile.am): Distribute files through
41282         EXTRA_DIST, not lib_SOURCES.
41283
41284 2006-10-12  Eric Blake  <ebb9@byu.net>
41285
41286         * modules/error (Makefile.am): Distribute files in /lib.
41287         * modules/obstack (Makefile.am): Likewise.
41288
41289 2006-10-12  Bruno Haible  <bruno@clisp.org>
41290
41291         * modules/acl (Makefile.am): Distribute all files in lib/ through
41292         EXTRA_DIST.
41293         * modules/arcfour (Makefile.am): Likewise.
41294         * modules/arctwo (Makefile.am): Likewise.
41295         * modules/argmatch (Makefile.am): Likewise.
41296         * modules/argz (Makefile.am): Likewise.
41297         * modules/atexit (Makefile.am): Likewise.
41298         * modules/backupfile (Makefile.am): Likewise.
41299         * modules/c-strtod (Makefile.am): Likewise.
41300         * modules/c-strtold (Makefile.am): Likewise.
41301         * modules/calloc (Makefile.am): Likewise.
41302         * modules/canon-host (Makefile.am): Likewise.
41303         * modules/canonicalize (Makefile.am): Likewise.
41304         * modules/chdir-long (Makefile.am): Likewise.
41305         * modules/chdir-safer (Makefile.am): Likewise.
41306         * modules/check-version (Makefile.am): Likewise.
41307         * modules/chown (Makefile.am): Likewise.
41308         * modules/cloexec (Makefile.am): Likewise.
41309         * modules/close-stream (Makefile.am): Likewise.
41310         * modules/closeout (Makefile.am): Likewise.
41311         * modules/crc (Makefile.am): Likewise.
41312         * modules/cycle-check (Makefile.am): Likewise.
41313         * modules/des (Makefile.am): Likewise.
41314         * modules/dirfd (Makefile.am): Likewise.
41315         * modules/dirname (Makefile.am): Likewise.
41316         * modules/dup2 (Makefile.am): Likewise.
41317         * modules/euidaccess (Makefile.am): Likewise.
41318         * modules/exclude (Makefile.am): Likewise.
41319         * modules/exitfail (Makefile.am): Likewise.
41320         * modules/fcntl-safer (Makefile.am): Likewise.
41321         * modules/file-type (Makefile.am): Likewise.
41322         * modules/fileblocks (Makefile.am): Likewise.
41323         * modules/filemode (Makefile.am): Likewise.
41324         * modules/filenamecat (Makefile.am): Likewise.
41325         * modules/fnmatch (Makefile.am): Likewise.
41326         * modules/fopen-safer (Makefile.am): Likewise.
41327         * modules/fpending (Makefile.am): Likewise.
41328         * modules/fprintftime (Makefile.am): Likewise.
41329         * modules/free (Makefile.am): Likewise.
41330         * modules/fsusage (Makefile.am): Likewise.
41331         * modules/ftruncate (Makefile.am): Likewise.
41332         * modules/fts (Makefile.am): Likewise.
41333         * modules/gc (Makefile.am): Likewise.
41334         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41335         * modules/getaddrinfo (Makefile.am): Likewise.
41336         * modules/getcwd (Makefile.am): Likewise.
41337         * modules/getdelim (Makefile.am): Likewise.
41338         * modules/getdomainname (Makefile.am): Likewise.
41339         * modules/getgroups (Makefile.am): Likewise.
41340         * modules/gethostname (Makefile.am): Likewise.
41341         * modules/gethrxtime (Makefile.am): Likewise.
41342         * modules/getline (Makefile.am): Likewise.
41343         * modules/getloadavg (Makefile.am): Likewise.
41344         * modules/getlogin_r (Makefile.am): Likewise.
41345         * modules/getopt (Makefile.am): Likewise.
41346         * modules/getpass (Makefile.am): Likewise.
41347         * modules/getpass-gnu (Makefile.am): Likewise.
41348         * modules/getsubopt (Makefile.am): Likewise.
41349         * modules/gettime (Makefile.am): Likewise.
41350         * modules/gettimeofday (Makefile.am): Likewise.
41351         * modules/getugroups (Makefile.am): Likewise.
41352         * modules/getusershell (Makefile.am): Likewise.
41353         * modules/glob (Makefile.am): Likewise.
41354         * modules/group-member (Makefile.am): Likewise.
41355         * modules/hard-locale (Makefile.am): Likewise.
41356         * modules/hash (Makefile.am): Likewise.
41357         * modules/hmac-md5 (Makefile.am): Likewise.
41358         * modules/hmac-sha1 (Makefile.am): Likewise.
41359         * modules/human (Makefile.am): Likewise.
41360         * modules/idcache (Makefile.am): Likewise.
41361         * modules/imaxabs (Makefile.am): Likewise.
41362         * modules/imaxdiv (Makefile.am): Likewise.
41363         * modules/inet_ntop (Makefile.am): Likewise.
41364         * modules/inet_pton (Makefile.am): Likewise.
41365         * modules/inttostr (Makefile.am): Likewise.
41366         * modules/isapipe (Makefile.am): Likewise.
41367         * modules/lchown (Makefile.am): Likewise.
41368         * modules/long-options (Makefile.am): Likewise.
41369         * modules/lstat (Makefile.am): Likewise.
41370         * modules/malloc (Makefile.am): Likewise.
41371         * modules/mathl (Makefile.am): Likewise.
41372         * modules/mbchar (Makefile.am): Likewise.
41373         * modules/md2 (Makefile.am): Likewise.
41374         * modules/md4 (Makefile.am): Likewise.
41375         * modules/md5 (Makefile.am): Likewise.
41376         * modules/memcasecmp (Makefile.am): Likewise.
41377         * modules/memchr (Makefile.am): Likewise.
41378         * modules/memcmp (Makefile.am): Likewise.
41379         * modules/memcoll (Makefile.am): Likewise.
41380         * modules/memcpy (Makefile.am): Likewise.
41381         * modules/memmem (Makefile.am): Likewise.
41382         * modules/memmove (Makefile.am): Likewise.
41383         * modules/mempcpy (Makefile.am): Likewise.
41384         * modules/memrchr (Makefile.am): Likewise.
41385         * modules/memset (Makefile.am): Likewise.
41386         * modules/memxor (Makefile.am): Likewise.
41387         * modules/mkancesdirs (Makefile.am): Likewise.
41388         * modules/mkdir (Makefile.am): Likewise.
41389         * modules/mkdir-p (Makefile.am): Likewise.
41390         * modules/mkdtemp (Makefile.am): Likewise.
41391         * modules/mkstemp (Makefile.am): Likewise.
41392         * modules/mktime (Makefile.am): Likewise.
41393         * modules/modechange (Makefile.am): Likewise.
41394         * modules/mountlist (Makefile.am): Likewise.
41395         * modules/nanosleep (Makefile.am): Likewise.
41396         * modules/openat (Makefile.am): Likewise.
41397         * modules/pagealign_alloc (Makefile.am): Likewise.
41398         * modules/physmem (Makefile.am): Likewise.
41399         * modules/poll (Makefile.am): Likewise.
41400         * modules/posixtm (Makefile.am): Likewise.
41401         * modules/posixver (Makefile.am): Likewise.
41402         * modules/putenv (Makefile.am): Likewise.
41403         * modules/quote (Makefile.am): Likewise.
41404         * modules/quotearg (Makefile.am): Likewise.
41405         * modules/raise (Makefile.am): Likewise.
41406         * modules/read-file (Makefile.am): Likewise.
41407         * modules/readline (Makefile.am): Likewise.
41408         * modules/readlink (Makefile.am): Likewise.
41409         * modules/readtokens (Makefile.am): Likewise.
41410         * modules/readutmp (Makefile.am): Likewise.
41411         * modules/realloc (Makefile.am): Likewise.
41412         * modules/regex (Makefile.am): Likewise.
41413         * modules/rename (Makefile.am): Likewise.
41414         * modules/rename-dest-slash (Makefile.am): Likewise.
41415         * modules/rijndael (Makefile.am): Likewise.
41416         * modules/rmdir (Makefile.am): Likewise.
41417         * modules/rpmatch (Makefile.am): Likewise.
41418         * modules/safe-read (Makefile.am): Likewise.
41419         * modules/safe-write (Makefile.am): Likewise.
41420         * modules/same (Makefile.am): Likewise.
41421         * modules/save-cwd (Makefile.am): Likewise.
41422         * modules/savedir (Makefile.am): Likewise.
41423         * modules/setenv (Makefile.am): Likewise.
41424         * modules/settime (Makefile.am): Likewise.
41425         * modules/sha1 (Makefile.am): Likewise.
41426         * modules/sig2str (Makefile.am): Likewise.
41427         * modules/snprintf (Makefile.am): Likewise.
41428         * modules/stdlib-safer (Makefile.am): Likewise.
41429         * modules/stpcpy (Makefile.am): Likewise.
41430         * modules/stpncpy (Makefile.am): Likewise.
41431         * modules/strcase (Makefile.am): Likewise.
41432         * modules/strcasestr (Makefile.am): Likewise.
41433         * modules/strchrnul (Makefile.am): Likewise.
41434         * modules/strcspn (Makefile.am): Likewise.
41435         * modules/strdup (Makefile.am): Likewise.
41436         * modules/strerror (Makefile.am): Likewise.
41437         * modules/strftime (Makefile.am): Likewise.
41438         * modules/strndup (Makefile.am): Likewise.
41439         * modules/strnlen (Makefile.am): Likewise.
41440         * modules/strpbrk (Makefile.am): Likewise.
41441         * modules/strsep (Makefile.am): Likewise.
41442         * modules/strstr (Makefile.am): Likewise.
41443         * modules/strtod (Makefile.am): Likewise.
41444         * modules/strtoimax (Makefile.am): Likewise.
41445         * modules/strtok_r (Makefile.am): Likewise.
41446         * modules/strtol (Makefile.am): Likewise.
41447         * modules/strtoll (Makefile.am): Likewise.
41448         * modules/strtoul (Makefile.am): Likewise.
41449         * modules/strtoull (Makefile.am): Likewise.
41450         * modules/strtoumax (Makefile.am): Likewise.
41451         * modules/strverscmp (Makefile.am): Likewise.
41452         * modules/time_r (Makefile.am): Likewise.
41453         * modules/timegm (Makefile.am): Likewise.
41454         * modules/tmpfile-safer (Makefile.am): Likewise.
41455         * modules/unistd-safer (Makefile.am): Likewise.
41456         * modules/unlinkdir (Makefile.am): Likewise.
41457         * modules/userspec (Makefile.am): Likewise.
41458         * modules/utime (Makefile.am): Likewise.
41459         * modules/utimecmp (Makefile.am): Likewise.
41460         * modules/utimens (Makefile.am): Likewise.
41461         * modules/vasnprintf (Makefile.am): Likewise.
41462         * modules/vasprintf (Makefile.am): Likewise.
41463         * modules/vsnprintf (Makefile.am): Likewise.
41464         * modules/xalloc (Makefile.am): Likewise.
41465         * modules/xgetcwd (Makefile.am): Likewise.
41466         * modules/xnanosleep (Makefile.am): Likewise.
41467         * modules/xreadlink (Makefile.am): Likewise.
41468         * modules/xstrtod (Makefile.am): Likewise.
41469         * modules/xstrtol (Makefile.am): Likewise.
41470         * modules/xstrtold (Makefile.am): Likewise.
41471         * modules/yesno (Makefile.am): Likewise.
41472
41473 2006-10-12  Jim Meyering  <jim@meyering.net>
41474
41475         * m4/getloadavg.m4: Revert the change below.
41476
41477         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41478         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41479         fail with a symlink, which is what coreutils' ./bootstrap now
41480         creates by default.
41481
41482 2006-10-12  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41485         mingw.
41486         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41487         MSVC and mingw explicitly.
41488
41489 2006-10-11  Simon Josefsson  <jas@extundo.com>
41490             Bruno Haible  <bruno@clisp.org>
41491
41492         Add support for multiple gnulib-tool invocations in the scope of a
41493         single configure.ac file.
41494         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41495         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41496         with the same contents as the _LIBADD variable.
41497         (func_emit_initmacro_start, func_emit_initmacro_end,
41498         func_emit_initmacro_done): New functions.
41499         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41500         gl_LIBOBJS and gl_LTLIBOBJS.
41501
41502 2006-10-11  Bruno Haible  <bruno@clisp.org>
41503
41504         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41505         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41506         autoreconf. Instead, invoke autopoint explicitly but move back the
41507         *.m4 files from gnulib.
41508
41509 2006-10-11  Bruno Haible  <bruno@clisp.org>
41510
41511         * gnulib-tool (func_usage): Make module names after --create-testdir
41512         optional.
41513         (func_create_testdir): If no module was specified, use nearly all
41514         modules.
41515
41516 2006-10-12  Jim Meyering  <jim@meyering.net>
41517
41518         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41519         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41520         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41521         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41522         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41523         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41524         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41525         (fts_set_stat_required): New function.
41526         (fts_open): Defer the calls to fts_stat, if possible or requested.
41527         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41528         into fts_stat itself.
41529         (fts_read): Perform any required (deferred) fts_stat call.
41530         (fts_build): Likewise, for the directory we're about to open and read.
41531         In the readdir loop, carefully decide whether each entry will require
41532         an eventual call to fts_stat, using dirent.d_type info if available.
41533         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41534         a command line argument into this function.  Update all callers.
41535         Map a return value of FTS_DOT to FTS_D for a command line argument.
41536         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41537         Thanks to Miklos Szeredi for his tenacity and for the initial
41538         bug report about "find" failing on a FUSE-based file system.
41539
41540         * lib/fts.c (fts_open): Use consistent indentation.
41541
41542 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41543
41544         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41545         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41546         reported by Jim Meyering.  All uses of cache variables renamed
41547         to match Autoconf's.
41548         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41549         the other one.
41550
41551         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41552         Fix misspelling in diagnostic.
41553
41554 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41555
41556         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41557         defined.  Problem reported by Matthew Woehlke.
41558
41559         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41560         Add support for Tandem NonStop R series.
41561         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41562         Use new macro.
41563
41564         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41565         (has_trailing_slash): Omit size arg; all callers changed.
41566         Omit 'inline', since it doesn't help performance and we'd
41567         need to configure it.
41568         Don't count //, ///, etc. as having a trailing slash.
41569         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41570         (rpl_rename_dest_slash): On failure, use rename's errno rather
41571         than (in some cases) an incorrect or junk errno.
41572         Simplify code by removing need to compute length; this does
41573         cause it to make two passes instead of one over the file name,
41574         but it's worth it.
41575
41576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41577         change, since Autoconf's version may no longer be appropriate now
41578         that we are using CVS Autoconf's version.  Add support for Tandem.
41579
41580 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41581             Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41584         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41585         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41586         gl_AC_TYPE_LONG_LONG.
41587
41588         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41589         instead of HAVE_LONG_LONG.
41590         * lib/printf-args.c (printf_fetchargs): Likewise.
41591         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41592         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41593         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41594         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41595         gl_AC_TYPE_LONG_LONG.
41596
41597 2006-10-11  Bruno Haible  <bruno@clisp.org>
41598
41599         * m4/longlong.m4: Add comments.
41600         * m4/ulonglong.m4: Likewise.
41601
41602 2006-10-10  Bruno Haible  <bruno@clisp.org>
41603
41604         Make it possible to #define stpcpy, strdup to aliases.
41605         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41606         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41607
41608 2006-10-10  Bruno Haible  <bruno@clisp.org>
41609
41610         Make it possible to #define gcd to an alias.
41611         * lib/gcd.c: Include config.h.
41612
41613 2006-10-10  Bruno Haible  <bruno@clisp.org>
41614
41615         Make it possible to #define c_isascii to an alias.
41616         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41617         defined. Undefine the macros before defining them, to avoid gcc
41618         warnings.
41619         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41620         define NO_C_CTYPE_MACROS early.
41621
41622 2006-10-10  Bruno Haible  <bruno@clisp.org>
41623
41624         Make it possible to #define set_program_name to an alias.
41625         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41626         ENABLE_RELOCATABLE early.
41627
41628 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41629
41630         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41631         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41632         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41633         More generally, don't assume that 64-bit signed int is available
41634         if unsigned int is, and vice versa.
41635         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41636         unsigned symbols, not on their signed counterparts.
41637         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41638         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41639         (UINT64_C, UINTMAX_C):
41640         Likewise.
41641         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41642         unsigned counterparts.
41643         (Have_long_long, Unsigned): New macros.
41644         (Int): Renamed from INT.
41645         (strtoimax): Use the new macros.
41646         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41647         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41648         * modules/inttypes (inttypes.h): Substitute
41649         HAVE_UNSIGNED_LONG_LONG_INT.
41650         * modules/stdint (stdint.h): Likewise.
41651         (Files): Add m4/ulonglong.m4.
41652
41653 2006-10-10  Bruno Haible  <bruno@clisp.org>
41654
41655         Fix a gcc -Wshadow warning.
41656         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41657         to 'bucket'.
41658         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41659         gl_linked_indexof_from_to): Likewise.
41660         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41661         Likewise.
41662         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41663         Likewise.
41664         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41665         Reported by Eric Blake.
41666
41667 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41668
41669         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41670         for NetBSD.  Problem reported by Bruno Haible.
41671
41672 2006-10-09  Jim Meyering  <jim@meyering.net>
41673
41674         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41675         Patch from Bruno Haible.
41676
41677 2006-10-09  Jim Meyering  <jim@meyering.net>
41678
41679         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41680         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41681         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41682
41683 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41684
41685         Don't include <config.h> twice; this doesn't work in some cases,
41686         e.g., when config.h has "#define intmax_t long long int" and
41687         we include <config.h>, <inttypes.h>, <config.h> in that order.
41688         Problem reported by Matthew Woehlke in:
41689         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41690         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41691         * lib/fts-cycle.c: Don't include config.h.
41692         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41693         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41694         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41695         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41696         inttypes.h.
41697         * lib/xstrtoumax.c: Likewise.
41698         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41699         __strtol and the like, so that this module is more like its siblings.
41700         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41701         Remove; no longer needed now that we assume gnulib inttypes.h.
41702
41703 2006-10-08  Bruno Haible  <bruno@clisp.org>
41704
41705         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41706         option.
41707
41708 2006-10-07  Jim Meyering  <jim@meyering.net>
41709
41710         * modules/inttypes (inttypes.h): Revert what seems to have been
41711         an inadvertent part of today's change: use "|", not "/" in the
41712         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41713
41714 2006-10-07  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/sublist: New file.
41717
41718 2006-10-07  Bruno Haible  <bruno@clisp.org>
41719
41720         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41721         * modules/argz (argz.h): Likewise.
41722         * modules/arpa_inet (arpa/inet.h): Likewise.
41723         * modules/byteswap (byteswap.h): Likewise.
41724         * modules/configmake (configmake.h): Likewise.
41725         * modules/fcntl (fcntl.h): Likewise.
41726         * modules/fnmatch (fnmatch.h): Likewise.
41727         * modules/getopt (getopt.h): Likewise.
41728         * modules/glob (glob.h): Likewise.
41729         * modules/inttypes (inttypes.h): Likewise.
41730         * modules/netinet_in (netinet/in.h): Likewise.
41731         * modules/poll (poll.h): Likewise.
41732         * modules/stdbool (stdbool.h): Likewise.
41733         * modules/stdint (stdint.h): Likewise.
41734         * modules/sys_select (sys/select.h): Likewise.
41735         * modules/sys_socket (sys/socket.h): Likewise.
41736         * modules/sys_stat (sys/stat.h): Likewise.
41737         * modules/sysexits (sysexits.h): Likewise.
41738         * modules/unistd (unistd.h): Likewise.
41739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41740         Add a "DO NOT EDIT" comment to the generated file.
41741         (func_import): Likewise for gnulib-comp.m4.
41742
41743 2006-10-07  Bruno Haible  <bruno@clisp.org>
41744
41745         * lib/gl_sublist.h: New file.
41746         * lib/gl_sublist.c: New file.
41747
41748 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41749
41750         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41751         name (relative to the original working directory) and the file
41752         name component (relative to the temporary working directory).  All
41753         callers changed.
41754         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41755         * lib/mkdir-p.c (make_dir_parents): Likewise.
41756         * lib/mkdir-p.h (make_dir_parents): Likewise.
41757
41758 2006-10-06  Eric Blake  <ebb9@byu.net>
41759
41760         Define several macros for use by the clean-temp module.
41761         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41762         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41763         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41764
41765         * lib/clean-temp.h (close_stream_temp): New declaration.
41766         * lib/clean-temp.c (includes): Pull in headers according to what
41767         other modules are in use.
41768         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41769
41770 2006-10-06  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41773         instead of fopen, fwriteerror.
41774
41775 2006-10-06  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41778         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41779         int.
41780         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41781         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41782         Return an error indicator.
41783         Suggested by Eric Blake.
41784
41785 2006-10-06  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41788         Reported by Eric Blake.
41789
41790 2006-10-06  Bruno Haible  <bruno@clisp.org>
41791
41792         * modules/closeout (Description): Mention stderr too.
41793
41794 2006-10-06  Bruno Haible  <bruno@clisp.org>
41795         and Paul Eggert  <eggert@cs.ucla.edu>
41796
41797         * lib/closeout.c (close_stdout): Also close stderr.
41798         * lib/closeout.h: Update comment.
41799
41800 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41801
41802         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41803         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41804         * lib/dirchownmod.c: Include lchown.h.
41805         * lib/lchown.c: Don't include files that lchown.h now includes.
41806         Don't declare chown, since lchown.h now does that.
41807         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41808         (lchown): Define to rpl_chown if lchown is declared but
41809         does not exist.  Declare using a prototype if lchown is not
41810         declared.  Add a copyright notice.
41811         * lib/mkstemp.h: Include <unistd.h>.
41812         * lib/openat.c: Include lchown.h.
41813
41814         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41815         we now test for that separately.
41816         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41817         rather than O_NOFOLLOW, when testing whether it's possible to
41818         avoid a race condition reliably.
41819         * lib/savewd.c (savewd_chdir): Likewise.
41820
41821         Remove macros that are no longer needed now that stdint.h is
41822         reliable.
41823         * lib/fsusage.c (UINTMAX_MAX): Remove.
41824         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41825         * lib/utimecmp.c (SIZE_MAX): Remove.
41826
41827         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41828
41829         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41830         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41831         O_NOATIME works.
41832
41833 2006-10-05  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/gl_list.h (gl_sortedlist_search_from_to,
41836         gl_sortedlist_indexof_from_to): New declarations.
41837         (gl_list_implementation): New fields sortedlist_search_from_to,
41838         sortedlist_indexof_from_to.
41839         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41840         inline functions.
41841         * lib/gl_list.c (gl_sortedlist_search_from_to,
41842         gl_sortedlist_indexof_from_to): New functions.
41843         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41844         function.
41845         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41846         (gl_array_sortedlist_search_from_to): New function.
41847         (gl_array_list_implementation): Update.
41848         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41849         function.
41850         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41851         (gl_carray_sortedlist_search_from_to): New function.
41852         (gl_carray_list_implementation): Update.
41853         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41854         gl_linked_sortedlist_indexof_from_to): New functions.
41855         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41856         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41857         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41858         gl_tree_sortedlist_indexof_from_to): New functions.
41859         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41860         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41861         Update.
41862         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41863         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41864         Update.
41865
41866 2006-10-05  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41869         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41870         (struct gl_list_implementation): Add fields search_from_to,
41871         indexof_from_to. Remove fields search, indexof.
41872         (gl_list_search): Use the search_from_to method.
41873         (gl_list_search_from, gl_list_search_from_to): New functions.
41874         (gl_list_indexof): Use the indexof_from_to method.
41875         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41876         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41877         (gl_list_search_from, gl_list_search_from_to): New functions.
41878         (gl_list_indexof): Use the indexof_from_to method.
41879         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41880         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41881         gl_array_indexof. Add start_index, end_index arguments.
41882         (gl_array_search_from_to): Renamed from gl_array_search. Add
41883         start_index, end_index arguments.
41884         (gl_array_remove, gl_array_list_implementation): Update.
41885         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41886         gl_carray_indexof. Add start_index, end_index arguments.
41887         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41888         start_index, end_index arguments.
41889         (gl_carray_remove, gl_carray_list_implementation): Update.
41890         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41891         gl_linked_search. Add start_index, end_index arguments.
41892         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41893         start_index, end_index arguments.
41894         (gl_linked_remove): Update.
41895         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41896         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41897         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41898         field to 'size_t'.
41899         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41900         gl_tree_search. Add start_index, end_index arguments.
41901         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41902         start_index, end_index arguments.
41903         (gl_tree_remove): Update.
41904         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41905         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41906         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41907         function.
41908         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41909         gl_tree_search. Add start_index, end_index arguments.
41910         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41911         start_index, end_index arguments.
41912         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41913         Update.
41914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41915
41916 2006-10-05  Bruno Haible  <bruno@clisp.org>
41917
41918         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41919
41920         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41921         fwriteerror_temp): New declarations.
41922         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41923         (descriptors): New variable.
41924         (cleanup): First, close the descriptors.
41925         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41926         fclose_temp, fwriteerror_temp): New functions.
41927
41928 2006-10-04  Jim Meyering  <jim@meyering.net>
41929
41930         * lib/fts.c (fts_open): Tiny comment change.
41931
41932 2006-10-04  Bruno Haible  <bruno@clisp.org>
41933
41934         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41935         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41936         gl_LOCK_BODY.
41937         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41938         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41939         gl_LOCK_EARLY_BODY.
41940         (gl_LOCK): Require gl_LOCK_BODY.
41941
41942 2006-10-04  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41945         (gl_oset_search_atleast): New declaration.
41946         (struct gl_oset_implementation): Add field 'search_atleast'.
41947         (gl_oset_search_atleast): New inline function.
41948         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41949         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41950         (gl_array_oset_implementation): Update.
41951         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41952         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41953         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41954
41955 2006-10-04  Bruno Haible  <bruno@clisp.org>
41956
41957         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41958
41959 2006-10-03  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41962         from gl_avltreehash_list_implementation.
41963
41964 2006-10-03  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/gl_oset.c (gl_oset_add): Fix return type.
41967
41968 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41969
41970         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41971
41972 2006-10-02  Eric Blake  <ebb9@byu.net>
41973
41974         * modules/strnlen (Depends-on): Add extensions.
41975
41976 2006-10-02  Eric Blake  <ebb9@byu.net>
41977
41978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41979         definition in 2.60+.
41980
41981 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41982
41983         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41984         checks.
41985
41986 2006-10-02  Bruno Haible  <bruno@clisp.org>
41987
41988         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41989         to the AUTOMAKE_OPTIONS.
41990         Reported by Jim Meyering.
41991
41992 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41993
41994         Work around bug in Solaris 10 /proc file system:
41995         /proc/self/fd/NNN/.. isn't the parent directory of
41996         the directory whose file descriptor is NNN.  This needs to
41997         be worked around at run time, not compile time, since a
41998         program might be built on Solaris 8, where things work, and
41999         run on Solaris 10.
42000         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42001         to use the following interface instead:
42002         (OPENAT_BUFFER_SIZE): New macro.
42003         (openat_proc_name): New function.
42004         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42005         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42006         Likewise.
42007         * lib/openat-proc.c: New file.
42008         * modules/openat (Files): Add lib/openat-proc.c.
42009         (Depends-on): Add same-inode, stdbool.
42010         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42011
42012 2006-09-29  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42015         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42016         argument. Set stdout_closed before testing for ferror, not after.
42017         (fwriteerror, fwriteerror_no_ebadf): New functions.
42018
42019 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42020
42021         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42022
42023 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42024
42025         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42026         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42027
42028 2006-09-28  Jim Meyering  <jim@meyering.net>
42029
42030         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42031         Include <unistd.h>.
42032
42033 2006-09-28  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42036         * modules/linkedhash-list (Depends-on): Likewise.
42037         * modules/rbtreehash-list (Depends-on): Likewise.
42038
42039 2006-09-28  Bruno Haible  <bruno@clisp.org>
42040
42041         * lib/strndup.h: Simplify the redefinition of strndup.
42042         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42043         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42044
42045 2006-09-28  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42048         * lib/gl_linkedhash_list.c: Likewise.
42049         * lib/gl_rbtreehash_list.c: Likewise.
42050
42051 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42052
42053         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42054         getaddrinfo.
42055
42056         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42057         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42058         it causes <stdio_ext.h> to cause a compile-time error.
42059         Problem reported by Nelson H. F. Beebe.
42060         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42061         of HAVE_DECL___PENDING.
42062
42063         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42064         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42065         declaration.
42066
42067 2006-09-27  Jim Meyering  <jim@meyering.net>
42068
42069         This file could end up with a definition for a function
42070         named __strndup, rather than rpl_strndup on a system with
42071         incomplete weak_alias support.
42072         * lib/strndup.c (strndup): Rename from __strndup.
42073         Remove #defines that used to map __strndup to strndup.
42074         Don't use K&R prototypes.
42075         Remove LIBC-related code, since this file is not sync'd with glibc.
42076         * lib/strndup.h: Revamp, accordingly.
42077         * m4/strndup.m4: Modernize.
42078
42079 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42080
42081         * modules/savewd (Depends-on): Add 'raise'.
42082         * lib/savewd.c: Include <signal.h>, for 'raise'.
42083
42084 2006-09-26  Jim Meyering  <jim@meyering.net>
42085
42086         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42087         when we detect Darwin 8.7.0's acl_get_file bug.
42088         Rearrange to perform the new (below) run-test while $LIBS
42089         contains any acl-related library.  Set USE_ACL at the end.
42090         (gl_ACL_GET_FILE): New function.
42091
42092 2006-09-26  Eric Blake  <ebb9@byu.net>
42093
42094         * lib/verror.c: Include <config.h> unconditionally.
42095
42096 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42097
42098         * modules/clock-time (Maintainer): Add self.
42099         * modules/getlogin_r (Depends-on): Add extensions.
42100
42101 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42102
42103         * modules/clock-time: New module.
42104         * modules/nanosleep (Depends-on): Add clock-time.
42105         * modules/gethrxtime (Depends-on): Likewise.
42106         * modules/gettime (Depends-on): Likewise.
42107         * modules/settime (Depends-on): Likewise.
42108
42109         * modules/fts-lgpl: Depend on openat.
42110         * modules/mkancesdirs: Depend on savewd.
42111         * modules/mkdir-p: Likewise.
42112
42113 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42114
42115         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42116
42117         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42118         `gl_have_arbitrary_file_name_length_limit' to
42119         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42120         actually works between configure runs.
42121
42122 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42123             Bruno Haible  <bruno@clisp.org>
42124
42125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42126
42127 2006-09-25  Jim Meyering  <jim@meyering.net>
42128
42129         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42130         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42131
42132 2006-09-25  Eric Blake  <ebb9@byu.net>
42133
42134         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42135         exec's in 2006-09-18 patch when shuffling fds.
42136
42137 2006-09-25  Bruno Haible  <bruno@clisp.org>
42138
42139         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42140         Reported by Jim Meyering.
42141
42142 2006-09-24  Jim Meyering  <jim@meyering.net>
42143
42144         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42145         compare a pointer against a literal "0".  That caused failures with
42146         at least HP-UX's hpcc.
42147
42148 2006-09-22  Simon Josefsson  <jas@extundo.com>
42149
42150         * modules/gc-sha1:
42151         * modules/gc-md4:
42152         * modules/gc-hmac-sha1:
42153         * modules/gc-hmac-md5:
42154         * modules/gc-des:
42155         * modules/gc-arcfour: Distribute more files.
42156
42157 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42158
42159         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42160         (gl_linked_iterator_from_to): Initialize struct completely.
42161         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42162         (gl_tree_iterator_from_to): Likewise
42163         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42164         * lib/gl_array_list.c [lint] (gl_array_iterator)
42165         (gl_array_iterator_from_to): Likewise.
42166         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42167         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42168         (gl_carray_iterator_from_to): Likewise.
42169
42170         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42171         * lib/md4.c (md4_process_block): Remove unused variable.
42172         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42173         parentheses for clarity.
42174
42175 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42176
42177         * modules/bison-i18n (Depends-on): Add gettext.
42178
42179 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42180
42181         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42182         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42183         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42184         also add missing comma that caused broken test.
42185         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42186         stdlib.h, for `abort'.
42187         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42188         variables.
42189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42190         include unistd.h if present, for `rmdir'.
42191         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42192         variables.
42193         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42194         in the process include standard headers for prototypes.
42195         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42196         gets declared on GNU/Linux.
42197         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42198         unistd.h, for `rmdir'.
42199         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42200
42201         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42202         always true.
42203         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42204
42205         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42206
42207 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42208
42209         * gnulib-tool (func_version): Create output all at once.  This
42210         may help avoid triggering unnecessary SIGPIPEs, and at any
42211         rate it doesn't hurt.
42212
42213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42214             Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42217         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42218         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42219
42220         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42221         (gl_FUNC_VASPRINTF): Invoke it.
42222
42223 2006-09-22  Bruno Haible  <bruno@clisp.org>
42224
42225         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42226         getloadavg.c as first argument.
42227
42228 2006-09-22  Bruno Haible  <bruno@clisp.org>
42229
42230         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42231         at the beginning of the gl_INIT macro.
42232         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42233         gl_GETLOADAVG.
42234
42235 2006-09-22  Bruno Haible  <bruno@clisp.org>
42236
42237         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42238         module.
42239         Suggested by Ralf Wildenhues.
42240
42241 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42242
42243         Import this patch from libc:
42244
42245         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42246
42247         * lib/regex_internal.c (re_string_reconstruct): Handle
42248         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42249         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42250         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42251         re_string_context_at.
42252
42253         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42254         now requires it.
42255         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42256         gl_REGEX now does it for us.
42257         (gl_REGEX): Add test taken from
42258         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42259
42260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42261         Check that large offsets work.  Modernize Autoconf usages.
42262         Prefer "yes" to mean a good thing rather than a bad.
42263         Don't put "#define mkstemp" in config.h, as this might interfere
42264         with standard system headers that "#define mkstemp mkstemp64".
42265
42266         * modules/mkstemp (Depends-on): Add extensions, so that
42267         mkstemp is visible on some platforms.
42268         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42269         (Include): Change to "mkstemp.h" from <stdlib.h>.
42270         (Files): Add mkstemp.h.
42271
42272         * lib/mkstemp.h: New file, since some standard headers
42273         #define mkstemp.
42274         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42275         Include "mkstemp.h".
42276         Make the _LIBC code resemble glibc original more,
42277         e.g., use K&R style.
42278         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42279         (mkstemp): Remove, since mkstemp.h does this for us.
42280         * lib/stdlib--.h: Include mkstemp.h.
42281
42282         Import this patch from libc:
42283
42284         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42285
42286         * lib/tempname.c (__gen_tempname): Change attempts_min
42287         into a macro.  Use preprocessor to decide how to initialize
42288         attempts [Coverity CID 67].
42289
42290 2006-09-20  Bruno Haible  <bruno@clisp.org>
42291
42292         * lib/mkdtemp.c: Import from libc.
42293         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42294                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42295                 attempts_min into a macro.  Use preprocessor to decide how to
42296                 initialize attempts [Coverity CID 67].
42297         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42298                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42299                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42300
42301 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42302
42303         * gnulib-tool (func_exit): New function, to allow to pass the
42304         exit status portably through the trap.  Use everywhere.
42305         (--help, --version): Signal a write error.
42306         (trap): catch SIGPIPE, for write errors.
42307         Exit at the end of the trap, with the correct exit status.
42308
42309 2006-09-19  Karl Berry  <karl@gnu.org>
42310
42311         * doc/gnulib.texi: note about the license texinfo files.
42312
42313 2006-09-19  Eric Blake  <ebb9@byu.net>
42314
42315         * gnulib-tool: Avoid space-tab.
42316
42317 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42318
42319         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42320         that prevented coreutils 6.1 from building.  Problem reported
42321         by Petter Reinholdtsen.
42322
42323 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         * gnulib-tool (avoidlist): Fix typo that broke options like
42326         --avoid=lock that are used by coreutils bootstrap.
42327
42328 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42329
42330         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42331         more systematically.
42332
42333 2006-09-18  Jim Meyering  <jim@meyering.net>
42334
42335         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42336
42337 2006-09-18  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42340
42341 2006-09-18  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42344         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42345         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42346         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42347         * m4/gettext.m4: Require autoconf >= 2.52.
42348         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42349         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42350         of gl_cv_header_inttypes_h.
42351
42352 2006-09-18  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/javaversion.c: Include configmake.h.
42355
42356 2006-09-18  Bruno Haible  <bruno@clisp.org>
42357
42358         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42359         avoid that the while loops be executed in a subshell.
42360
42361 2006-09-18  Bruno Haible  <bruno@clisp.org>
42362
42363         * MODULES.html.sh (func_module): Break long lines.
42364         Suggested by Bruce Korb <bkorb@gnu.org>.
42365
42366 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42367
42368         Speed up by a factor of 1.12.
42369         * gnulib-tool (nl): New variable.
42370         (func_import): Rewrite include directive extraction to only read each
42371         directive once.
42372
42373 2006-09-17  Bruno Haible  <bruno@clisp.org>
42374
42375         * modules/javaversion (Makefile.am): Remove DEFS setting.
42376         (Depends-on): Add configmake, for PKGDATADIR definition.
42377
42378 2006-09-17  Bruno Haible  <bruno@clisp.org>
42379
42380         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42381
42382 2006-09-17  Bruno Haible  <bruno@clisp.org>
42383
42384         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42385         (func_modules_transitive_closure, func_modules_add_dummy,
42386         func_modules_to_filelist, func_import, func_create_testdir,
42387         func_create_megatestdir, ...): Use it wherever possible.
42388         Suggested by Ralf Wildenhues.
42389
42390 2006-09-16  Karl Berry  <karl@gnu.org>
42391
42392         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42393         to avoid sectioning errors.
42394         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42395         [ifinfo]: blank line after @center-ed titles.
42396         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42397         Spell FSF address consistently with others.
42398         (These changes approved by rms.)
42399
42400 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42401
42402         Speed up by a factor of 1.61.
42403         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42404         already checked module names again.
42405
42406 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42407
42408         Speed up by a factor of 1.13.
42409         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42410         for new_files, and the input to func_add_or_update.
42411
42412 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42413
42414         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42415         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42416
42417 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         * modules/mkancesdirs (Depends-on): Add fcntl.
42420         * modules/savewd: New file.
42421         * MODULES.html.sh (File system functions): Add savewd.
42422
42423         * modules/configmake (Makefile.am): Add support for the
42424         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42425
42426 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42427
42428         * m4/savewd.m4: New file.
42429
42430 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42431
42432         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42433         (dirchownmod): New arg FD.  All callers changed.
42434         Use FD rather than opening the directory ourself, as opening is
42435         now the caller's responsibility.
42436         * lib/dirchownmod.h: Likewise.
42437         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42438         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42439         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42440         (test_dir): Remove.
42441         (mkancesdirs): Return length of prefix of FILE that has already
42442         been made, or -2 if there is a child doing the work.  Redo
42443         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42444         ".", and treat ".." specially since it might stray back into
42445         already-created areas.  Use a subprocess if necessary.  New arg
42446         WD; all users changed.  MAKE_DIR function should now return 1
42447         if it creates a directory that is not readable.  Return -2 if
42448         a child process is spun off.
42449         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42450         Adjust signature to match code.
42451         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42452         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42453         all users changed.
42454         * lib/savewd.c, lib/savewd.h: New files.
42455
42456 2006-09-15  Jim Meyering  <jim@meyering.net>
42457
42458         * modules/rename-dest-slash: New module.
42459         * MODULES.html.sh (posix_compat): Add it here.
42460
42461         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42462
42463 2006-09-15  Jim Meyering  <jim@meyering.net>
42464
42465         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42466         file.
42467
42468         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42469
42470 2006-09-15  Jim Meyering  <jim@meyering.net>
42471
42472         * lib/rename-dest-slash.c (has_trailing_slash): Use
42473         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42474         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42475         test before testing whether SRC is a directory.
42476         Suggestions from Bruno Haible.
42477
42478         Avoid a warning about an unused variable.
42479         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42480         into the #ifdef block where it's used.
42481
42482         * lib/rename-dest-slash.c: New file.
42483
42484 2006-09-14  Bruno Haible  <bruno@clisp.org>
42485
42486         * lib/allocsa.c: Include <config.h> unconditionally.
42487         * lib/asnprintf.c: Likewise.
42488         * lib/asprintf.c: Likewise.
42489         * lib/c-strcasecmp.c: Likewise.
42490         * lib/c-strcasestr.c: Likewise.
42491         * lib/c-strncasecmp.c: Likewise.
42492         * lib/c-strstr.c: Likewise.
42493         * lib/classpath.c: Likewise.
42494         * lib/clean-temp.c: Likewise.
42495         * lib/concatpath.c: Likewise.
42496         * lib/copy-file.c: Likewise.
42497         * lib/csharpcomp.c: Likewise.
42498         * lib/csharpexec.c: Likewise.
42499         * lib/execute.c: Likewise.
42500         * lib/fatal-signal.c: Likewise.
42501         * lib/findprog.c: Likewise.
42502         * lib/fwriteerror.c: Likewise.
42503         * lib/gl_array_list.c: Likewise.
42504         * lib/gl_array_oset.c: Likewise.
42505         * lib/gl_avltree_list.c: Likewise.
42506         * lib/gl_avltree_oset.c: Likewise.
42507         * lib/gl_avltreehash_list.c: Likewise.
42508         * lib/gl_carray_list.c: Likewise.
42509         * lib/gl_linked_list.c: Likewise.
42510         * lib/gl_linkedhash_list.c: Likewise.
42511         * lib/gl_list.c: Likewise.
42512         * lib/gl_oset.c: Likewise.
42513         * lib/gl_rbtree_list.c: Likewise.
42514         * lib/gl_rbtree_oset.c: Likewise.
42515         * lib/gl_rbtreehash_list.c: Likewise.
42516         * lib/imaxabs.c: Likewise.
42517         * lib/imaxdiv.c: Likewise.
42518         * lib/javacomp.c: Likewise.
42519         * lib/javaexec.c: Likewise.
42520         * lib/javaversion.c: Likewise.
42521         * lib/linebreak.c: Likewise.
42522         * lib/localcharset.c: Likewise.
42523         * lib/lock.c: Likewise.
42524         * lib/mbchar.c: Likewise.
42525         * lib/mbswidth.c: Likewise.
42526         * lib/mkdtemp.c: Likewise.
42527         * lib/pipe.c: Likewise.
42528         * lib/printf-args.c: Likewise.
42529         * lib/printf-parse.c: Likewise.
42530         * lib/progname.c: Likewise.
42531         * lib/progreloc.c: Likewise.
42532         * lib/readlink.c: Likewise.
42533         * lib/sh-quote.c: Likewise.
42534         * lib/stpcpy.c: Likewise.
42535         * lib/stpncpy.c: Likewise.
42536         * lib/strcasecmp.c: Likewise.
42537         * lib/strcasestr.c: Likewise.
42538         * lib/strcspn.c: Likewise.
42539         * lib/striconv.c: Likewise.
42540         * lib/strncasecmp.c: Likewise.
42541         * lib/strnlen1.c: Likewise.
42542         * lib/strstr.c: Likewise.
42543         * lib/strtok_r.c: Likewise.
42544         * lib/tls.c: Likewise.
42545         * lib/tmpdir.c: Likewise.
42546         * lib/unicodeio.c: Likewise.
42547         * lib/unsetenv.c: Likewise.
42548         * lib/vasnprintf.c: Likewise.
42549         * lib/vasprintf.c: Likewise.
42550         * lib/wait-process.c: Likewise.
42551         * lib/xallocsa.c: Likewise.
42552         * lib/xsetenv.c: Likewise.
42553         * lib/xstriconv.c: Likewise.
42554
42555 2006-09-13  Simon Josefsson  <jas@extundo.com>
42556
42557         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42558         that internally, suggested by Ralf Wildenhues
42559         <Ralf.Wildenhues@gmx.de>.
42560
42561 2006-09-13  Simon Josefsson  <jas@extundo.com>
42562
42563         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42564         @LIBOBJS@.
42565         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42566
42567 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42568
42569         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42570         longer worry about uses that don't define HAVE_CONFIG_H.
42571         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42572         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42573         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42574         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42575         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42576         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42577         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42578         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42579         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42580         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42581         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42582         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42583         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42584         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42585         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42586         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42587         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42588         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42589         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42590         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42591         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42592         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42593         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42594         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42595         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42596         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42597         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42598         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42599         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42600         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42601         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42602         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42603         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42604         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42605         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42606         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42607         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42608         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42609         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42610         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42611         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42612         Likewise.
42613
42614 2006-09-13  Eric Blake  <ebb9@byu.net>
42615
42616         * lib/getopt.c: Fix typo in last commit.
42617
42618 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42619
42620         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42621         dgettext.
42622
42623 2006-09-12  Jim Meyering  <jim@meyering.net>
42624
42625         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42626         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42627         Reported by Nelson H. F. Beebe.
42628
42629 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42630
42631         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42632         program_invocation_name and program_invocation_short_name are
42633         initialized.
42634         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42635         and program_invocation_short_name to argp.h, so they are visible
42636         to user programs.
42637         * lib/argp.h: Likewise
42638
42639 2006-09-10  Bruno Haible  <bruno@clisp.org>
42640
42641         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42642         m4/inttypes_h.m4, m4/uintmax_t.m4.
42643
42644 2006-09-10  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42647         gl_AC_TYPE_UINTMAX_T.
42648
42649 2006-09-10  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42652
42653 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42654
42655         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42656         convention.  Text proposed by Bruno Haible.
42657         (struct argp_option): Document the use of N_() wrappers.
42658
42659         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42660         '\v', and translate the two parts separately, instead of feeding
42661         the whole string to gettext.  This allows to exclude
42662         '\v' from the strings visible to the translator by writing doc
42663         strings as N_("..") "\v" N_("..").
42664
42665 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42666
42667         * config/srclist.txt: Undo latest change; the bug was fixed.
42668
42669 2006-09-09  Bruno Haible  <bruno@clisp.org>
42670
42671         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42672         assignments if building a library without libtool.
42673         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42674         in func_emit_lib_Makefile_am.
42675         (func_import): When building a static library libfoo.a, arrange to
42676         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42677         (func_create_testdir): Likewise.
42678         * modules/gc (configure.ac, Makefile.am): If building statically,
42679         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42680         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42681         * modules/striconv (configure.ac, Makefile.am): Likewise.
42682         Based on a suggestion by Ralf Wildenhues.
42683
42684 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42685
42686         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42687         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42688         Also:
42689
42690         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42691         Add year_2050_test to catch glibc bug 2821
42692         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42693
42694         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42695         Prefer #ifdef to #if.
42696
42697         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42698         Return from 'main' instead of calling 'exit'.
42699
42700 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42701
42702         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42703         returned the maximum time_t value rather than (time_t) -1.
42704         Problem originally reported by William Bardwell
42705         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42706
42707         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42708         Moved to here ...
42709         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42710         ... from here.
42711
42712 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42713
42714         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42715         2821 is fixed.
42716
42717 2006-09-08  Jim Meyering  <jim@meyering.net>
42718
42719         Don't make generated files read-only.  That would bother too many
42720         people.  However, do retain the ability to work when targets are
42721         read-only: remove the destination and temporary files before writing
42722         them (when generated via sed or echo), or by using the -f option for
42723         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42724         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42725         * modules/byteswap, modules/configmake, modules/fcntl:
42726         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42727         * modules/localcharset, modules/netinet_in, modules/poll:
42728         * modules/stdbool, modules/stdint, modules/sys_select:
42729         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42730
42731 2006-09-08  Jim Meyering  <jim@meyering.net>
42732
42733         Avoid new build failure on FreeBSD 6.0.
42734         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42735         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42736         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42737
42738 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42739
42740         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42741
42742 2006-09-07  Jim Meyering  <jim@meyering.net>
42743
42744         Fix global typo in last change: use chmod u-w, not chmod u-x.
42745         Spotted by Paul Eggert and Bruce Korb.
42746         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42747         * modules/byteswap, modules/configmake, modules/fcntl:
42748         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42749         * modules/localcharset, modules/netinet_in, modules/poll:
42750         * modules/stdbool, modules/stdint, modules/sys_select:
42751         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42752
42753 2006-09-06  Jim Meyering  <jim@meyering.net>
42754
42755         Make generated files be read-only.
42756         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42757         Ensure that each generated file is now read-only.
42758         * modules/argz: Likewise.
42759         * modules/arpa_inet: Likewise.
42760         * modules/byteswap: Likewise.
42761         * modules/configmake: Likewise.
42762         * modules/fcntl: Likewise.
42763         * modules/fnmatch: Likewise.
42764         * modules/getopt: Likewise.
42765         * modules/glob: Likewise.
42766         * modules/inttypes: Likewise.
42767         * modules/netinet_in: Likewise.
42768         * modules/poll: Likewise.
42769         * modules/stdbool: Likewise.
42770         * modules/stdint: Likewise.
42771         * modules/sys_select: Likewise.
42772         * modules/sys_socket: Likewise.
42773         * modules/sys_stat: Likewise.
42774         * modules/sysexits: Likewise.
42775         * modules/localcharset: Same as above, but continue using temporary
42776         file named "t-$@" (why different?) rather than the "$@-t" used
42777         everywhere else.
42778
42779         * modules/sysexits (Makefile.am): Replace literal occurrences
42780         of "sysexit.h" more readable, and more consistent, "$@".
42781
42782 2006-09-06  Bruno Haible  <bruno@clisp.org>
42783
42784         * modules/striconv: New file.
42785         * modules/xstriconv: New file.
42786         * MODULES.html.sh (Internationalization functions): Add striconv,
42787         xstriconv.
42788
42789 2006-09-06  Bruno Haible  <bruno@clisp.org>
42790
42791         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42792         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42793         not using libtool correctly.
42794
42795 2006-09-06  Bruno Haible  <bruno@clisp.org>
42796
42797         * lib/striconv.h: New file.
42798         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42799         iconvstring.c.
42800         * lib/xstriconv.h: New file.
42801         * lib/xstriconv.c: New file.
42802
42803 2006-09-06  Bruno Haible  <bruno@clisp.org>
42804
42805         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42806         lib_..._LDFLAGS.
42807
42808 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42809
42810         * lib/argz_.h: Sync from Libtool.
42811
42812         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42813                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42814
42815         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42816
42817 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42818
42819         * modules/trim: New file.
42820
42821 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42822
42823         * lib/trim.h: New file.
42824         * lib/trim.c: New file.
42825
42826 2006-09-05  Bruno Haible  <bruno@clisp.org>
42827
42828         * MODULES.html.sh (String handling): Add trim.
42829
42830 2006-09-04  Karl Berry  <karl@gnu.org>
42831
42832         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42833         until next release.
42834
42835 2006-09-03  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42838         correctly.
42839
42840 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42841
42842         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42843         not gl_GETLOADAVG.  Omit unneeded semicolons.
42844         Problems reported by Ralf Wildenhues in
42845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42846         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42847         at the end, which is the usual gnulib style.
42848
42849         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42850         of doing all the work ourselves.
42851         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42852         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42853
42854 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42857         Problem reported by Ralf Wildenhues in
42858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42859
42860         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42861         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42862
42863 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42864
42865         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42866         yesterday's patch by changing test -n to test -z.
42867
42868 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42869
42870         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42871         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42872         the former is now obsolescent.
42873
42874         * modules/chdir-long (Depends-on): Add fcntl.
42875
42876 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42877
42878         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42879         obsolescent, and programs should use gnulib instead.
42880         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42881         but with prefixes changed.
42882
42883 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42884
42885         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42886         or stdbool.h, because they might not exist while configuring.
42887
42888         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42889         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42890         does that for us.
42891         (O_DIRECTORY): Remove.
42892
42893 2006-08-31  Eric Blake  <ebb9@byu.net>
42894
42895         * gnulib-tool: Don't let emacs change spaces to TAB.
42896
42897 2006-08-31  Bruno Haible  <bruno@clisp.org>
42898
42899         * gnulib-tool: When calling func_import more than once, do it in a
42900         subshell.
42901         Reported by Eric Blake <ebb9@byu.net>.
42902
42903 2006-08-31  Bruno Haible  <bruno@clisp.org>
42904
42905         * gnulib-tool (nl): Remove variable.
42906         (sed_transform_lib_file): Use more robust test for config-h module.
42907         (func_import): Fix typo in 2006-08-25 patch.
42908
42909 2006-08-31  Bruno Haible  <bruno@clisp.org>
42910
42911         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42912         specified, augment Makefile.am variables instead of assigning them.
42913
42914 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42915
42916         Work around a bug in both the Linux and SunOS 64-bit kernels:
42917         nanosleep mishandles sleeps for longer than 2**31 seconds.
42918         Problem reported by Frank v Waveren in
42919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42921         Check for nanosleep bug.
42922         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42923
42924 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         Work around a bug in both the Linux and SunOS 64-bit kernels:
42927         nanosleep mishandles sleeps for longer than 2**31 seconds.
42928         Problem reported by Frank v Waveren in
42929         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42930         * lib/nanosleep.c (BILLION): New constant.
42931         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42932         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42933         implementation.
42934
42935 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42936
42937         * modules/nanosleep (Depends-on): Add gettime.
42938
42939 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42940         and Simon Josefsson  <jas@extundo.com>
42941         and Oskar Liljeblad  <oskar@osk.mine.nu>
42942
42943         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42944         * gnulib-tool (func_import): New license type 'unmodifiable license
42945         text'.
42946         * modules/fdl: Use it.  Longer description.
42947         * module/gpl, module/lgpl: New files.
42948
42949 2006-08-30  Jim Meyering  <jim@meyering.net>
42950
42951         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42952         shadowing the parameter.
42953
42954 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42955
42956         Sync from Libtool:
42957
42958         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42959
42960         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42961         sharing with gnulib.  Report by Eric Blake.
42962
42963 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42964
42965         * modules/isapipe: New file.
42966         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42967
42968 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42969
42970         * modules/configmake (Makefile.am): Add a comment, and omit
42971         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42972         by Bruno Haible.
42973
42974 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42975
42976         * m4/isapipe.m4: New file.
42977
42978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42979
42980         * lib/isapipe.c, lib/isapipe.h: New files.
42981
42982 2006-08-29  Jim Meyering  <jim@meyering.net>
42983
42984         * modules/configmake (Makefile.am): Make configmake.h depend on
42985         Makefile.  Otherwise, a stale configmake.h could hang around.
42986
42987 2006-08-29  Eric Blake  <ebb9@byu.net>
42988
42989         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42990         resolution of upstream bug 3044.
42991
42992 2006-08-29  Bruno Haible  <bruno@clisp.org>
42993
42994         * modules/localcharset (Depends-on): Add configmake.
42995         (Makefile.am): Remove setting of LIBDIR through DEFS.
42996
42997 2006-08-29  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43000         defined.
43001
43002 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43003
43004         * modules/fcntl: New file.
43005         * modules/chdir-safer (Depends-on): Add fcntl.
43006         * modules/fts: Likewise.
43007         * modules/mkdir-p: Likewise.
43008
43009         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43010         This undoes the most recent change, since we're now addressing the
43011         problem in a different way.
43012
43013         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43014         into output, since the output might be called Makefile.am even
43015         if $makefile_name is something different.
43016         (func_import): Use $makefile_am rather than
43017         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43018         empty.
43019
43020         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43021
43022 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43023
43024         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43025         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43026         recent change to stdint.m4, since we're now addressing the problem in a
43027         different way.
43028
43029 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         * m4/fcntl_h.m4: New file.
43032
43033 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43034
43035         * lib/fcntl_.h: New file.
43036         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43037         the fcntl module.
43038         * lib/dirchownmod.c: Likewise.
43039         * lib/fts.c: Likewise.
43040
43041         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43042         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43043         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43044         just before including <inttypes.h>, to avoid circular inclusion.
43045
43046 2006-08-28  Jim Meyering  <jim@meyering.net>
43047
43048         * doc/visibility.texi: Actually read and correct the grammar of the
43049         sentence affected by yesterday's change.
43050
43051 2006-08-28  Eric Blake  <ebb9@byu.net>
43052
43053         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43054         needs wrapper.
43055
43056 2006-08-28  Eric Blake  <ebb9@byu.net>
43057
43058         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43059
43060 2006-08-28  Eric Blake  <ebb9@byu.net>
43061
43062         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43063
43064 2006-08-28  Bruno Haible  <bruno@clisp.org>
43065
43066         * modules/c-strstr: New file, from GNU gettext.
43067         * MODULES.html.sh (String handling): Add c-strstr.
43068
43069 2006-08-28  Bruno Haible  <bruno@clisp.org>
43070
43071         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43072         macros.
43073         Reported by Eric Blake.
43074
43075 2006-08-28  Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43078         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43079         * lib/vasprintf.c: Include errno.h, limits.h.
43080         (EOVERFLOW): New fallback definition.
43081         (vasprintf): Test here whether the string length is > INT_MAX.
43082         * lib/vsnprintf.c: Include errno.h, limits.h.
43083         (EOVERFLOW): New fallback definition.
43084         (vsnprintf): Fix bug when generated string was too long for the buffer.
43085         Test here whether the string length is > INT_MAX.
43086
43087 2006-08-28  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/inttypes_.h (SCNX*): Remove definitions.
43090         Reported by Eric Blake.
43091
43092 2006-08-28  Bruno Haible  <bruno@clisp.org>
43093
43094         * lib/c-strstr.h: New file, from GNU gettext.
43095         * lib/c-strstr.c: New file, from GNU gettext.
43096
43097 2006-08-28  Bruno Haible  <bruno@clisp.org>
43098
43099         * gnulib-tool: Reorder some statements.
43100
43101 2006-08-28  Bruno Haible  <bruno@clisp.org>
43102
43103         * gnulib-tool: New option --makefile-name.
43104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43105         $makefile_name.
43106         (func_import): Write $makefile_name to the cache file, and read it from
43107         there unless explicitly specified. Use $makefile_name as file name
43108         instead of Makefile.am. Adjust the recommendations accordingly.
43109
43110 2006-08-28  Bruno Haible  <bruno@clisp.org>
43111
43112         * gnulib-tool (func_verify_module): Check against misapplying patch.
43113
43114 2006-08-28  Bruno Haible  <bruno@clisp.org>
43115
43116         * gnulib-tool (func_relativize, func_relconcat): New functions.
43117         Give an error if --local-dir is given with --update.
43118         Remove trailing slashes from $local_gnulib_dir.
43119         (func_import): Store the relativized $local_gnulib_dir in
43120         gnulib-cache.m4, and read it from there if not specified explicitly.
43121
43122 2006-08-28  Bruno Haible  <bruno@clisp.org>
43123
43124         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43125         is the current directory. Respect also $local_gnulib_dir.
43126
43127 2006-08-28  Bruno Haible  <bruno@clisp.org>
43128             Simon Josefsson  <jas@extundo.com>
43129
43130         BeOS portability.
43131         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43132
43133 2006-08-27  Jim Meyering  <jim@meyering.net>
43134
43135         * doc/visibility.texi: Remove duplicate word: "pointer".
43136
43137 2006-08-26  Bruno Haible  <bruno@clisp.org>
43138
43139         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43140         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43141         (Makefile.am): Create inttypes.h from inttypes_.h.
43142         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43143
43144         * modules/imaxabs: New file.
43145
43146         * modules/imaxdiv: New file.
43147
43148 2006-08-26  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/inttypes.m4: New file.
43151         * m4/_inttypes_h.m4: Remove file.
43152         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43153         PRI_MACROS_BROKEN.
43154         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43155
43156         * m4/imaxabs.m4: New file.
43157
43158         * m4/imaxdiv.m4: New file.
43159
43160 2006-08-26  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/inttypes_.h: New file.
43163         * lib/inttypes.h: Remove file.
43164         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43165
43166         * lib/imaxabs.c: New file.
43167
43168         * lib/imaxdiv.c: New file.
43169
43170 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43171
43172         New config-h module, so that "make" output needn't be cluttered
43173         by -DHAVE_CONFIG_H.
43174         * MODULES.html.sh (Support for building libraries and executables):
43175         Add config-h.
43176         * modules/config-h: New file.
43177         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43178         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43179         the config-h module is used.
43180
43181         New configmake module, so that "make" output needn't be cluttered
43182         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43183         * MODULES.html.sh (Support for building libraries and executables):
43184         Add configmake.
43185         * modules/configmake: New file.
43186
43187 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43188
43189         * m4/config-h.m4: New file.
43190
43191 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         * config/srclist.txt: Add elisp-comp.
43194
43195 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43196
43197         * MODULES.html.sh (Support for building libraries and executables):
43198         Add elisp-comp.
43199         * build-aux/elisp-comp: New file.
43200         * modules/elisp-comp: New file.
43201
43202 2006-08-24  Bruno Haible  <bruno@clisp.org>
43203
43204         * gnulib-tool (func_create_testdir): Use non-default values of
43205         sourcebase and m4base.
43206
43207 2006-08-24  Bruno Haible  <bruno@clisp.org>
43208
43209         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43210         HTML structure.
43211
43212 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43213
43214         * modules/openat (Depends-on): Add lchown.
43215
43216 2006-08-23  Bruno Haible  <bruno@clisp.org>
43217
43218         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43219         of gl_LOCK_EARLY instead of gl_LOCK.
43220
43221 2006-08-23  Bruno Haible  <bruno@clisp.org>
43222
43223         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43224         on OSF/1 to no.
43225         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43226
43227 2006-08-23  Bruno Haible  <bruno@clisp.org>
43228
43229         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43230         as unusable.
43231
43232         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43233         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43234         (gl_LOCK): New macro.
43235
43236 2006-08-22  Simon Josefsson  <jas@extundo.com>
43237
43238         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43239         to md5 module.
43240
43241 2006-08-22  Simon Josefsson  <jas@extundo.com>
43242
43243         * MODULES.html.sh: Add "Support for maintaining and release
43244         projects".
43245
43246         * build-aux/gnupload: New file, from coreutils.
43247
43248 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43249
43250         Avoid the need for AC_LIBSOURCES in m4 macros.
43251         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43252         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43253         * modules/check-version (EXTRA_DIST): Add check-version.h.
43254         * modules/crc (EXTRA_DIST): Add crc.h.
43255         * modules/des (EXTRA_DIST): Add des.h.
43256         * modules/gc (EXTRA_DIST): Add gc.h.
43257         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43258         * modules/getline (EXTRA_DIST): Add getline.h.
43259         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43260         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43261         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43262         * modules/md2 (EXTRA_DIST): Add md2.h.
43263         * modules/md4 (EXTRA_DIST): Add md4.h.
43264         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43265         * modules/read-file (EXTRA_DIST): Add read-file.h.
43266         * modules/readline (EXTRA_DIST): Add readline.h.
43267         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43268         rijndael-api-fst.h.
43269
43270 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         * m4/rijndael.m4 (gl_ARCFOUR):
43273         * m4/arctwo.m4 (gl_ARCTWO):
43274         * m4/check-version.m4 (gl_CHECK_VERSION):
43275         * m4/crc.m4 (gl_CRC):
43276         * m4/des.m4 (gl_DES):
43277         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43278         * m4/gc.m4 (gl_GC):
43279         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43280         * m4/getline.m4 (gl_FUNC_GETLINE):
43281         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43282         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43283         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43284         * m4/md2.m4 (gl_MD2):
43285         * m4/md4.m4 (gl_MD4):
43286         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43287         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43288         * m4/readline.m4 (gl_FUNC_READLINE):
43289         * m4/rijndael.m4 (gl_RIJNDAEL):
43290         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43291         to get the necessary .h files and whatnot.
43292
43293 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43294
43295         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43296         gnulib rather than the other way around.
43297         * config/srclistvars.sh (COREUTILS): Remove.
43298
43299 2006-08-22  Jim Meyering  <jim@meyering.net>
43300
43301         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43302
43303         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43304
43305 2006-08-22  Eric Blake  <ebb9@byu.net>
43306
43307         * modules/regexprops-generic: New file.
43308         * MODULES.html.sh (Support for building documentation): List it.
43309
43310 2006-08-22  Eric Blake  <ebb9@byu.net>
43311
43312         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43313         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43315         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43316
43317 2006-08-22  Bruno Haible  <bruno@clisp.org>
43318
43319         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43320         and lib_LTLIBRARIES like the other lib_* variables.
43321
43322 2006-08-22  Bruno Haible  <bruno@clisp.org>
43323
43324         * build-aux/x-to-1.in: New file, from GNU gettext.
43325
43326 2006-08-22  Bruno Haible  <bruno@clisp.org>
43327
43328         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43329         <utmpx.h> exists.
43330
43331 2006-08-22  Bruno Haible  <bruno@clisp.org>
43332
43333         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43334         <utmpx.h> exists.
43335
43336 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43337
43338         BeOS portability.
43339         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43340         exist.
43341         Problem reported by Bruno Haible.
43342
43343 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43344
43345         Avoid the need for AC_LIBSOURCES in m4 macros.
43346         * modules/acl (EXTRA_DIST): Add acl.h.
43347         * modules/argmatch (Files): Add m4/argmatch.m4.
43348         (configure.ac): Add gl_ARGMATCH.
43349         (EXTRA_DIST): Renamed from lib_SOURCES, for
43350         consistency with the other modules.  Remove argmatch.c.
43351         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43352         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43353         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43354         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43355         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43356         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43357         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43358         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43359         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43360         * modules/closeout (EXTRA_DIST): Add closeout.h.
43361         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43362         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43363         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43364         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43365         dirname.h; remove basename.c and stripslash.c.
43366         * modules/exclude (EXTRA_DIST): Add exclude.h.
43367         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43368         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43369         * modules/file-type (EXTRA_DIST): Add file-type.h.
43370         * modules/filemode (EXTRA_DIST): Add filemode.h.
43371         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43372         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43373         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43374         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43375         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43376         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43377         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43378         * modules/getdate (EXTRA_DIST): Add getdate.c.
43379         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43380         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43381         * modules/getpass (EXTRA_DIST): Add getpass.h.
43382         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43383         * modules/group-member (EXTRA_DIST): Add group-member.h.
43384         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43385         * modules/hash (EXTRA_DIST): Add hash.h.
43386         * modules/human (EXTRA_DIST): Add human.h.
43387         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43388         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43389         * modules/lchown (EXTRA_DIST): Add lchown.h.
43390         * modules/long-options (EXTRA_DIST): Add long-options.h.
43391         * modules/lstat (EXTRA_DIST): Add lstat.h.
43392         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43393         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43394         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43395         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43396         * modules/memxor (EXTRA_DIST): Add memxor.h.
43397         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43398         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43399         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43400         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43401         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43402         * modules/physmem (EXTRA_DIST): Add physmem.h.
43403         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43404         * modules/posixver (EXTRA_DIST): Add posixver.h.
43405         * modules/quote (EXTRA_DIST): Add quote.h.
43406         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43407         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43408         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43409         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43410         regex_internal.h regexec.c.
43411         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43412         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43413         * modules/same (EXTRA_DIST): Add same.h.
43414         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43415         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43416         * modules/savedir (EXTRA_DIST): Add savedir.h.
43417         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43418         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43419         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43420         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43421         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43422         * modules/strdup (EXTRA_DIST): Add strdup.h.
43423         * modules/strftime (EXTRA_DIST): Add strftime.h.
43424         * modules/strndup (EXTRA_DIST): Add strndup.h.
43425         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43426         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43427         * modules/time_r (EXTRA_DIST): Add time_r.h.
43428         * modules/timespec (EXTRA_DIST): Add timespec.h.
43429         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43430         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43431         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43432         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43433         * modules/userspec (EXTRA_DIST): Add userspec.h.
43434         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43435         * modules/utimens (EXTRA_DIST): Add utimens.h.
43436         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43437         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43438         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43439         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43440         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43441         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43442         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43443         * modules/yesno (EXTRA_DIST): Add yesno.h.
43444
43445 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43446
43447         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43448
43449         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43450         * m4/dev-ino.m4, same-inode.m4: Remove.
43451
43452         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43453         * m4/acl.m4 (AC_FUNC_ACL):
43454         * m4/backupfile.m4 (gl_BACKUPFILE):
43455         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43456         * m4/canon-host.m4 (gl_CANON_HOST):
43457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43458         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43460         * m4/cloexec.m4 (gl_CLOEXEC):
43461         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43462         * m4/closeout.m4 (gl_CLOSEOUT):
43463         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43464         * m4/dirname.m4 (gl_DIRNAME):
43465         * m4/exclude.m4 (gl_EXCLUDE):
43466         * m4/exitfail.m4 (gl_EXITFAIL):
43467         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43468         * m4/file-type.m4 (gl_FILE_TYPE):
43469         * m4/filemode.m4 (gl_FILEMODE):
43470         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43471         * m4/fpending.m4 (gl_FUNC_FPENDING):
43472         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43473         * m4/fts.m4 (gl_FUNC_FTS):
43474         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43475         * m4/getdate.m4 (gl_GETDATE):
43476         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43477         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43478         * m4/getpass.m4 (gl_FUNC_GETPASS):
43479         * m4/gettime.m4 (gl_GETTIME):
43480         * m4/getugroups.m4 (gl_GETUGROUPS):
43481         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43482         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43483         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43484         * m4/hash.m4 (gl_HASH):
43485         * m4/idcache.m4 (gl_IDCACHE):
43486         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43487         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43488         * m4/long-options.m4 (gl_LONG_OPTIONS):
43489         * m4/lstat.m4 (gl_FUNC_LSTAT):
43490         * m4/md5.m4 (gl_MD5):
43491         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43492         * m4/memcoll.m4 (gl_MEMCOLL):
43493         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43494         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43495         * m4/memxor.m4 (gl_MEMXOR):
43496         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43497         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43498         * m4/modechange.m4 (gl_MODECHANGE):
43499         * m4/mountlist.m4 (gl_MOUNTLIST):
43500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43501         * m4/openat.m4 (gl_FUNC_OPENAT):
43502         * m4/pathmax.m4 (gl_PATHMAX):
43503         * m4/physmem.m4 (gl_PHYSMEM):
43504         * m4/posixtm.m4 (gl_POSIXTM):
43505         * m4/posixver.m4 (gl_POSIXVER):
43506         * m4/quote.m4 (gl_QUOTE):
43507         * m4/quotearg.m4 (gl_QUOTEARG):
43508         * m4/readtokens.m4 (gl_READTOKENS):
43509         * m4/readutmp.m4 (gl_READUTMP):
43510         * m4/regex.m4 (gl_REGEX):
43511         * m4/safe-read.m4 (gl_SAFE_READ):
43512         * m4/safe-write.m4 (gl_SAFE_WRITE):
43513         * m4/same.m4 (gl_SAME):
43514         * m4/save-cwd.m4 (gl_SAVE_CWD):
43515         * m4/savedir.m4 (gl_SAVEDIR):
43516         * m4/settime.m4 (gl_SETTIME):
43517         * m4/sha1.m4 (gl_SHA1):
43518         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43519         * m4/stat-macros.m4 (gl_STAT_MACROS):
43520         * m4/stat-time.m4 (gl_STAT_TIME):
43521         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43522         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43523         * m4/strdup.m4 (gl_FUNC_STRDUP):
43524         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43525         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43526         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43527         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43528         * m4/time_r.m4 (gl_TIME_R):
43529         * m4/timespec.m4 (gl_TIMESPEC):
43530         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43531         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43532         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43533         * m4/userspec.m4 (gl_USERSPEC):
43534         * m4/utimecmp.m4 (gl_UTIMECMP):
43535         * m4/utimens.m4 (gl_UTIMENS):
43536         * m4/xalloc.m4 (gl_XALLOC):
43537         * m4/xgetcwd.m4 (gl_XGETCWD):
43538         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43539         * m4/xreadlink.m4 (gl_XREADLINK):
43540         * m4/xstrtod.m4 (gl_XSTRTOD):
43541         * m4/yesno.m4 (gl_YESNO):
43542         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43543         to get the necessary .h files and whatnot.
43544
43545 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43546             Bruno Haible  <bruno@clisp.org>
43547
43548         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43549         /bin/sh understanding of '!' conditional negation.
43550
43551 2006-08-21  Jim Meyering  <jim@meyering.net>
43552
43553         * modules/openat (Depends-on): Really alphabetize.
43554
43555         * modules/acl (Depends-on): Add error and quote.
43556
43557         * check-module (find_included_lib_files): Add at-func.c to the
43558         ok-to-include-more-than-once white list.
43559
43560         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43561
43562 2006-08-21  Bruno Haible  <bruno@clisp.org>
43563
43564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43565         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43566         Reported by Martin Lambers <marlam@marlam.de>.
43567
43568 2006-08-21  Bruno Haible  <bruno@clisp.org>
43569
43570         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43571         specify an installation location, don't emit a noinst_LIBRARIES or
43572         noinst_LTLIBRARIES assignment.
43573
43574 2006-08-21  Bruno Haible  <bruno@clisp.org>
43575
43576         BeOS portability.
43577         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43578         BeOS has mbrtowc() but no <wctype.h>.
43579
43580 2006-08-21  Bruno Haible  <bruno@clisp.org>
43581
43582         BeOS portability.
43583         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43584         exist.
43585
43586 2006-08-21  Bruno Haible  <bruno@clisp.org>
43587
43588         BeOS portability.
43589         * lib/mbchar.h: Include <wctype.h> only if it exists.
43590
43591 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43592
43593         Remove files that are no longer needed by their respective modules.
43594         * m4/obstack.m4: Remove.
43595         * m4/strerror_r.m4: Remove.
43596         * m4/uint32_t.m4: Remove.
43597         * m4/uintptr_t.m4: Remove.
43598         * m4/ullong_max.m4: Remove.
43599         * m4/xstrtoimax.m4: Remove.
43600         * m4/xstrtoumax.m4: Remove.
43601
43602         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43603         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43604         dependencies now capture this.
43605
43606         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43607         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43608         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43609         * m4/human.m4 (gl_HUMAN): Likewise.
43610         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43611         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43612
43613         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43614
43615         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43616         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43617         stdint.
43618         * m4/human.m4 (gl_HUMAN): Likewise.
43619         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43621         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43622         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43623         * m4/xstrtol (gl_XSTRTOL): Likewise.
43624
43625         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43626         AC_TYPE_LONG_LONG_INT.
43627         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43628         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43629         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43630         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43631
43632         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43633         on stdbool.
43634
43635         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43636         (gl_PREREQ_XSTRTOUL): Remove.
43637
43638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43639
43640         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43641         mode.
43642
43643 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43644
43645         Add and change modules to make it easier for coreutils to use
43646         gnulib-tool.
43647         * modules/backupfile (Files): Remove m4/d-ino.m4.
43648         (Depends-on): Add d-ino.
43649         * modules/cycle-check (Depends-on): Add stdint.
43650         (lib_SOURCES): Add cycle-check.h.
43651         * modules/d-ino: New module.
43652         * modules/d-type: New module.
43653         * modules/error (Files): Remove m4/strerror_r.m4.
43654         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43655         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43656         m4/inttypes_h.m4, m4/uintmax_t.m4.
43657         (Depends-on): Add stdint.
43658         (lib_SOURCES): Add fsusage.h.
43659         * modules/getcwd (Files): Remove d-ino.m4.
43660         (Depends-on): Add d-ino.
43661         * modules/getndelim2 (Depends-on): Add stdint.
43662         * modules/glob (Files): Remove m4/d-type.m4.
43663         (Depends-on): Add d-type.
43664         * modules/host-os: New module.
43665         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43666         m4/inttypes_h.m4, m4/uintmax_t.m4.
43667         * Depends-on: Add stdint.
43668         (lib_SOURCES): Add human.h.
43669         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43670         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43671         m4/uintmax_t.m4, m4/ulonglong.m4.
43672         (Depends-on): Add stdint.
43673         (EXTRA_DIST): Add inttostr.h.
43674         * modules/lchmod: New module.
43675         * modules/link-follow: New module.
43676         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43677         (Depends-on): Add lchmod.
43678         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43679         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43680         (Depends-on): Add stdint.
43681         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43682         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43683         (Depends-on): Add stdint.
43684         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43685         * modules/perl: New module.
43686         * modules/regex (Depends-on): Add stdint.
43687         * modules/rmdir-errno: New module.
43688         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43689         m4/intmax_t.m4.
43690         (Depends-on): Add stdint.
43691         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43692         m4/uintmax_t.m4.
43693         (Depends-on): Add stdint.
43694         * modules/unlink-busy: New module.
43695         * modules/utimecmp (Depends-on): Add stdint.
43696         * modules/uptime: New module.
43697         * modules/winsz-ioctl: New module.
43698         * modules/winsz-termios: New module.
43699         * modules/xnanosleep (Depends-on): Add nanosleep.
43700         * modules/ullong_max: Remove.
43701         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43702         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43703         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43704         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43705         (Depends-on): Add inttypes.
43706         (lib_SOURCES): Add xstrtol.h.
43707         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43708         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43709         * MODULES.html.sh: Move 'assert' into the assert section.
43710         Move 'dummy' into the linking section.
43711         Remove ullong_max.
43712         Add section for compatibility checks for POSIX:2001 functions,
43713         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43714         winsz-ioctl, and winsz-termios into it.
43715         Add lchmod.
43716         Add top-level Misc section and put host-os, perl, and uptime
43717         into it.
43718
43719 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43720
43721         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43722         now assume the stdint module.  Do not include inttypes.h.
43723         * lib/fsusage.h: Likewise.
43724         * lib/getndelim2.c: Likewise.
43725         * lib/human.h: Likewise.
43726         * lib/inttostr.h: Likewise.
43727         * lib/obstack.c: Likewise.
43728         * lib/regex_internal.h: Likewise.
43729         * lib/tempname.c: Likewise.
43730         * lib/utimecmp.c: Likewise.
43731         * lib/xstrtol.h: Likewise.
43732
43733         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43734
43735         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43736         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43737         * lib/xtime.h: Likewise.
43738
43739 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43740
43741         * modules/openat (Files): Add lib/fchmodat.c.
43742         Fixes problem reported by Jay Youngman.
43743
43744 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43745
43746         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43747         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43748
43749 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43750             Bruno Haible  <bruno@clisp.org>
43751
43752         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43753         and is a script that invokes bison. Tighten the code. Add comments.
43754
43755 2006-08-18  Jim Meyering  <jim@meyering.net>
43756
43757         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43758         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43759         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43760         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43761
43762 2006-08-18  Bruno Haible  <bruno@clisp.org>
43763
43764         * modules/bison-i18n: New file.
43765         * MODULES.html.sh (Internationalization functions): Add it.
43766
43767 2006-08-18  Bruno Haible  <bruno@clisp.org>
43768
43769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43770         sys/statvfs.h. When getmntinfo was found, check its declaration and
43771         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43772
43773 2006-08-18  Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/bison-i18n.m4: New file, from bison.
43776
43777 2006-08-18  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43780         (ME_DUMMY): Treat "kernfs" as a dummy.
43781         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43782
43783 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         Update from coreutils.
43786
43787         2006-08-15  Jim Meyering  <jim@meyering.net>
43788
43789         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43790
43791         2006-01-17  Jim Meyering  <jim@meyering.net>
43792
43793         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43794
43795         2006-01-11  Jim Meyering  <jim@meyering.net>
43796
43797         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43798         Check for the lchmod function.
43799
43800 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         Update from coreutils.
43803
43804         * lib/__fpending.h: Add copyright notice.
43805         * lib/fprintftime.h: Likewise.
43806         * lib/savedir.c: Use (C) in copyright notice.
43807         * lib/savedir.h: Likewise.
43808
43809         2006-08-15  Jim Meyering  <jim@meyering.net>
43810
43811         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43812         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43813         in support of the EXPECTED_ERRNO macro.
43814         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43815         definitions.  Instead, define the appropriate symbols and include
43816         "at-func.c".
43817         * lib/mkdirat.c (mkdirat): Likewise.
43818         * lib/fchmodat.c (fchmodat): Likewise.
43819         (ENOSYS): Remove definition.
43820         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43821         it.  Don't include "unistd--.h" -- it wasn't ever used.
43822
43823         2006-01-17  Jim Meyering  <jim@meyering.net>
43824
43825         Rewrite fts.c not to change the current working directory,
43826         by using openat, fstatat, fdopendir, etc..
43827
43828         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43829         (HAVE_OPENAT_SUPPORT): Define.
43830         [_LIBC] (fchdir): Don't undef or define; no longer used.
43831         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43832         Now, this `function' always succeeds, and consumes its file descriptor
43833         parameter -- so callers must not close such FDs.  Update callers.
43834         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43835         (diropen): Add parameter, SP.  Adjust all callers.
43836         Implement using diropen_fd, rather than open.
43837         (fts_open): Initialize new member, fts_cwd_fd.
43838         Remove fts_rft-setting code.
43839         (fts_close): Close fts_cwd_fd, if necessary.
43840         (__opendir2): Define in terms of opendir or opendirat,
43841         depending on whether the FST_NOCHDIR flag is set.
43842         (fts_build): Since fts_safe_changedir consumes its FD, and since
43843         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43844         and close the dup'd file descriptor upon failure.
43845         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43846         (fts_safe_changedir): Tweak semantics to reflect that this function
43847         now calls cwd_advance_fd and hence consumes its FD argument.
43848         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43849         [struct FTS] (fts_rft): Remove now-unused member.
43850         [struct FTS] (fts_cycle.state): Improve comment.
43851
43852         * lib/openat.c (openat_needs_fchdir): New function.
43853         * lib/openat.h (openat_needs_fchdir): Declare it.
43854
43855 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43858         Problem and fix reported by Pádraig Brady in
43859         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43860
43861 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43862
43863         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43864
43865 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43866
43867         * lib/memcoll.c (memcoll): Optimize for the common case where the
43868         arguments are bytewise equal.
43869
43870 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * doc/regexprops-generic.texi: Add a copyright notice.
43873
43874 2006-08-15  Bruno Haible  <bruno@clisp.org>
43875
43876         * modules/tmpdir (License): Change to LGPL.
43877
43878 2006-08-15  Bruno Haible  <bruno@clisp.org>
43879
43880         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43881         module.
43882
43883 2006-08-14  Simon Josefsson  <jas@extundo.com>
43884
43885         * config/srclist.txt: Add gnupload.
43886
43887 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43888
43889         Change copyright notice from LGPL 2 to GPL 2, since that's the
43890         standard form used in the gnulib repository.
43891         * tests/test-lock.c: Likewise.
43892         * tests/test-stdint.c: Likewise.
43893         * tests/test-tls.c: Likewise.
43894
43895         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43896         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43897         Add copyright notice.
43898
43899         * check-module: Add copyright notice.  Output a copyright
43900         notice if "--version" is specified.
43901         * modules/COPYING: New file.
43902         * tests/test-getaddrinfo.c: Add copyright notice.
43903         * tests/test-verify.c: Likewise.
43904
43905 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43906
43907         Change copyright notice from LGPL 2 to GPL 2, since that's the
43908         standard form used in the gnulib repository.
43909         * lib/lock.c: LGPL -> GPL.
43910         * lib/lock.h: Likewise.
43911         * lib/strnlen1.c: Likewise.
43912         * lib/strnlen1.h: Likewise.
43913         * lib/tls.c: Likewise.
43914         * lib/tls.h: Likewise.
43915         * lib/tmpdir.c: Likewise.
43916
43917         * lib/TODO: Remove; this belongs only in coreutils.
43918
43919 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43920
43921         Add copyright notices to long-enough files that lack them, since
43922         otherwise the files aren't clearly free.  Use the same notice that
43923         getdate.texi already uses.
43924         * doc/alloca-opt.texi: Add copyright notice.
43925         * doc/alloca.texi: Likewise.
43926         * doc/ctime.texi: Likewise.
43927         * doc/functions.texi: Likewise.
43928         * doc/gcd.texi: Likewise.
43929         * doc/gnulib-tool.texi: Likewise.
43930         * doc/inet_ntoa.texi: Likewise.
43931         * doc/visibility.texi: Likewise.
43932
43933         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43934         * doc/quote.texi: Add copyright notice.
43935
43936         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43937         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43938         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43939         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43940         is now obsolete, and give a pointer to the Sun list.
43941         Add copyright notice.
43942
43943 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43944
43945         * config/srclistvars.sh: Add copyright notice.
43946
43947 2006-08-14  Eric Blake  <ebb9@byu.net>
43948
43949         Import the following change from libc:
43950
43951         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43952
43953         Upstream bug 2997.
43954         * lib/misc/error.c: Add space between program name and message if file
43955         name is missing.
43956
43957 2006-08-12  Karl Berry  <karl@gnu.org>
43958
43959         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43960         remove, these originate in gnulib now.
43961
43962 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43963
43964         * doc/Makefile (standards.info standards.html standards.dvi):
43965         Also depend on make-stds.texi.
43966
43967 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43968
43969         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43970         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43971
43972         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43973         in wchar_t.  Problem reported by Eric Blake.
43974
43975         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43976         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43977         Also, help the compiler to keep LEN in a register.
43978
43979 2006-08-11  Eric Blake  <ebb9@byu.net>
43980
43981         * users.txt: Sort.  Add tar.
43982
43983 2006-08-11  Bruno Haible  <bruno@clisp.org>
43984
43985         * users.txt: New file.
43986
43987 2006-08-11  Bruno Haible  <bruno@clisp.org>
43988
43989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43990         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43991
43992 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43993
43994         * modules/snprintf (Depends-on): Remove minmax.
43995         (Maintainer): Add self and Bruno.
43996
43997 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43998
43999         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44000         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44001         (EOVERFLOW): Define if the system does not.
44002         Do not include "minmax.h"; it wasn't used.
44003         (snprintf): Don't assume size_t promotes to an unsigned type.
44004         Fix bug when generated string was too long for the buffer: the
44005         buffer's contents are supposed to be the initial prefix of the
44006         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44007         exceeds INT_MAX; do the check ourselves.
44008
44009         Import the following changes from libc:
44010
44011         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44012
44013         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44014         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44015         set wc to the byte which couldn't be converted.
44016         (re_string_reconstruct): Don't clear valid_raw_len before calling
44017         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44018         tip_context using re_string_context_at.
44019
44020         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44021
44022         * lib/posix/regex.h: g++ still cannot handled [restrict].
44023
44024         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44025
44026         * lib/posix/regex.h: Remove special handling for VMS.
44027
44028 2006-08-10  Jim Meyering  <jim@meyering.net>
44029
44030         * modules/same-inode: New module.
44031         * modules/dev-ino: New module.
44032         * modules/cycle-check: Depend on these modules, rather than simply
44033         including their .h files.
44034         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44035         required via m4/cycle-check.m4.
44036         * modules/same: Depend on new same-inode module, rather than
44037         including same-inode.h.
44038         * modules/chdir-safer: New file.
44039
44040         * modules/chown (Depends-on): Add stat-macros.
44041
44042 2006-08-10  Jim Meyering  <jim@meyering.net>
44043
44044         * m4/cycle-check.m4: New file.
44045         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44046         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44047
44048 2006-08-10  Eric Blake  <ebb9@byu.net>
44049
44050         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44051         in from original proposal.
44052
44053 2006-08-10  Eric Blake  <ebb9@byu.net>
44054         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44055
44056         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44057         namespace.
44058
44059 2006-08-10  Bruno Haible  <bruno@clisp.org>
44060
44061         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44062         as well.
44063
44064 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44065
44066         Sync from coreutils.
44067
44068         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44069
44070         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44071         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44072
44073 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44074
44075         * modules/restrict: Remove; no longer needed now that we assume
44076         Autoconf 2.59 or later.
44077         * MODULES.html.sh: Remove 'restrict'.
44078         * modules/argp (Depends-on): Remove 'restrict'.
44079         * modules/base64 (Depends-on): Likewise.
44080         * modules/gc (Depends-on): Likewise.
44081         * modules/getaddrinfo (Depends-on): Likewise.
44082         * modules/glob (Depends-on): Likewise.
44083         * modules/inet_ntop (Depends-on): Likewise.
44084         * modules/inet_pton (Depends-on): Likewise.
44085         * modules/memxor (Depends-on): Likewise.
44086         * modules/regex (Depends-on): Likewise.
44087         * modules/strtok_r (Depends-on): Likewise.
44088         * modules/time_r (Depends-on): Likewise.
44089
44090 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44093         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44094         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44095         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44096         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44097         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44098         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44099         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44100
44101         Merge from coreutils.
44102         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44103         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44105         * m4/time_r.m4 (gl_TIME_R): Likewise.
44106
44107 2006-08-09  Karl Berry  <karl@gnu.org>
44108
44109         * config/srclist.txt: no more gettext-tools, per Bruno.
44110
44111 2006-08-08  Eric Blake  <ebb9@byu.net>
44112
44113         * modules/verror: New module.
44114         * MODULES.html.sh: Document it.
44115
44116 2006-08-08  Eric Blake  <ebb9@byu.net>
44117
44118         * lib/verror.h, lib/verror.c: New files.
44119
44120 2006-08-08  Eric Blake  <ebb9@byu.net>
44121
44122         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44123         verror_at_line output complies with GNU Coding Standards even when
44124         file is NULL.
44125
44126 2006-08-07  Bruno Haible  <bruno@clisp.org>
44127
44128         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44129         versions of AIX.
44130         Reported by Ralf Wildenhues.
44131
44132 2006-08-07  Bruno Haible  <bruno@clisp.org>
44133
44134         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44135         in an AC_DEFUN. Needed so that the autoconf snippets can use
44136         AC_REQUIRE.
44137
44138 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44139
44140         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44141         Initialize pkgdata_DATA.
44142         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44143         overriding it.
44144
44145 2006-08-06  Eric Blake  <ebb9@byu.net>
44146
44147         * lib/error.h: Fold in some upstream changes from glibc.
44148         * lib/error.c: Likewise.
44149
44150 2006-08-04  Bruno Haible  <bruno@clisp.org>
44151
44152         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44153         Make the mostlyclean-local rule depend on mostlyclean-generic.
44154         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44155
44156 2006-07-31  Bruno Haible  <bruno@clisp.org>
44157
44158         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44159         <stdlib.h>, <string.h>.
44160
44161 2006-07-30  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/readlink (License): Change to LGPL.
44164
44165 2006-07-30  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44168         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44169         set PKGDATADIR to point to it.
44170
44171 2006-07-30  Bruno Haible  <bruno@clisp.org>
44172
44173         * modules/csharpexec (configure.ac): Comment out macro invocation.
44174         * modules/javaexec (configure.ac): Likewise.
44175         * modules/javacomp-script (configure.ac): Likewise.
44176
44177         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44178
44179 2006-07-30  Bruno Haible  <bruno@clisp.org>
44180
44181         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44182         linked-list.
44183
44184 2006-07-30  Bruno Haible  <bruno@clisp.org>
44185
44186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44187
44188 2006-07-30  Bruno Haible  <bruno@clisp.org>
44189
44190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44191         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44192         get removed.
44193
44194 2006-07-29  Bruno Haible  <bruno@clisp.org>
44195
44196         Make it possible for gnulib-tool to work with locally modified or
44197         augmented gnulib repositories.
44198         * gnulib-tool (func_usage): Document --local-dir option.
44199         (local_gnulib_dir): New variable.
44200         Handle --local-dir option.
44201         (func_lookup_file): New function.
44202         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44203         (func_get_description, func_get_filelist, func_get_description,
44204         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44205         func_get_automake_snippet, func_get_include_directive,
44206         func_get_license, func_get_maintainer): Use func_lookup_file.
44207         (func_import, func_create_testdir): Use func_lookup_file.
44208
44209 2006-07-29  Bruno Haible  <bruno@clisp.org>
44210
44211         * modules/setenv (Depends-on): Add unistd.
44212
44213 2006-07-29  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44216
44217 2006-07-29  Bruno Haible  <bruno@clisp.org>
44218
44219         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44220
44221 2006-07-29  Bruno Haible  <bruno@clisp.org>
44222
44223         * gnulib-tool (import, update): If there is no Makefile.am, look at
44224         aclocal.m4, instead of bailing out.
44225
44226 2006-07-29  Bruno Haible  <bruno@clisp.org>
44227
44228         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44229         Categorize the options by when they are useful.
44230
44231 2006-07-29  Bruno Haible  <bruno@clisp.org>
44232
44233         * gnulib-tool (func_usage): Document option --no-libtool.
44234         Handle option --no-libtool.
44235         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44236         for changed semantics of $libtool variable.
44237         (func_import): Likewise. If libtool is not used, show this through
44238         an option --no-libtool.
44239         (func_create_testdir): Update.
44240
44241 2006-07-29  Bruno Haible  <bruno@clisp.org>
44242
44243         * gnulib-tool (func_import): Extend error message about missing
44244         --doc-base.
44245
44246 2006-07-29  Bruno Haible  <bruno@clisp.org>
44247
44248         * gnulib-tool (func_import): Don't create the $docbase directory if
44249         there is no file to store there.
44250
44251 2006-07-29  Bruno Haible  <bruno@clisp.org>
44252
44253         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44254         relevant, look for configure.ac there, not in the current directory.
44255         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44256
44257 2006-07-29  Bruno Haible  <bruno@clisp.org>
44258
44259         * gnulib-tool (SORT): New variable.
44260         (func_usage): Undocument --assume-autoconf option.
44261         Remove --assume-autoconf option handling.
44262         (autoconf_minversion): Determine from the contents of configure.ac.
44263         (func_import): Remove autoconf_minversion handling.
44264         Suggested by Eric Blake.
44265
44266 2006-07-29  Bruno Haible  <bruno@clisp.org>
44267
44268         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44269
44270 2006-07-29  Bruno Haible  <bruno@clisp.org>
44271
44272         * config/srclist.txt (*setenv.[ch]): Remove rules.
44273
44274 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44275
44276         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44277
44278 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44279
44280         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44281         arpa/inet.h.
44282
44283 2006-07-28  Simon Josefsson  <jas@extundo.com>
44284
44285         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44286         * modules/inet_pton (Depends-on): Likewise.
44287
44288 2006-07-28  Simon Josefsson  <jas@extundo.com>
44289
44290         * m4/netinet_in_h.m4: New file.
44291
44292 2006-07-28  Simon Josefsson  <jas@extundo.com>
44293
44294         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44295         #include's.
44296
44297 2006-07-28  Simon Josefsson  <jas@extundo.com>
44298
44299         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44300         #include's.
44301
44302 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44303
44304         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44305         setgid on directories only if they set these bits.
44306         * lib/modechange.h: Remove obsolete comment about masks.
44307
44308 2006-07-28  Eric Blake  <ebb9@byu.net>
44309
44310         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44311         macro expansion.
44312
44313 2006-07-28  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44316
44317 2006-07-28  Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44320
44321 2006-07-28  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44324         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44325         Define fallbacks.
44326         Avoids link error on FreeBSD 4.x.
44327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44328
44329         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44330         encoding.
44331         * lib/mbswidth.c (iswcntrl): Likewise.
44332
44333 2006-07-27  Bruno Haible  <bruno@clisp.org>
44334
44335         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44336         test.
44337
44338 2006-07-27  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44341         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44342         defined.
44343
44344 2006-07-26  Eric Blake  <ebb9@byu.net>
44345
44346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44347
44348 2006-07-26  Eric Blake  <ebb9@byu.net>
44349
44350         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44351         like mingw that lack mkstemp.
44352         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44353         avoid compilation warning on mingw.
44354
44355 2006-07-26  Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44358         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44359         INT_FAST*_MIN, INTPTR_MIN.
44360
44361 2006-07-25  Bruno Haible  <bruno@clisp.org>
44362
44363         * modules/version-etc (Depends-on): Add stdarg.
44364
44365 2006-07-25  Bruno Haible  <bruno@clisp.org>
44366
44367         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44368         complex commands.
44369
44370 2006-07-25  Bruno Haible  <bruno@clisp.org>
44371
44372         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44373         defined in <stdarg.h> or config.h.
44374
44375 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44376
44377         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44378         (gl_STDIO_SAFER): Remove.
44379
44380 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         * MODULES.html.sh (File stream based Input/Output):
44383         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44384         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44385         * modules/fopen-safer, modules/tmpfile-safer: New files.
44386         * modules/stdio-safer: Remove.
44387
44388 2006-07-24  Bruno Haible  <bruno@clisp.org>
44389
44390         * modules/tmpdir: New file.
44391         * MODULES.html.sh (File system functions): Add it.
44392
44393 2006-07-24  Bruno Haible  <bruno@clisp.org>
44394
44395         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44396         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44397
44398 2006-07-24  Bruno Haible  <bruno@clisp.org>
44399
44400         * modules/clean-temp: New file.
44401
44402 2006-07-24  Bruno Haible  <bruno@clisp.org>
44403
44404         * m4/tmpdir.m4: New file, from GNU gettext.
44405
44406 2006-07-24  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/tmpdir.h: New file, from GNU gettext.
44409         * lib/tmpdir.c: New file, from GNU gettext.
44410
44411 2006-07-24  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/clean-temp.h: New file, from GNU gettext.
44414         * lib/clean-temp.c: New file, from GNU gettext.
44415
44416 2006-07-23  Eric Blake  <ebb9@byu.net>
44417
44418         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44419         (Depends-on): Add binary-io.
44420
44421 2006-07-23  Eric Blake  <ebb9@byu.net>
44422
44423         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44424
44425 2006-07-23  Eric Blake  <ebb9@byu.net>
44426
44427         * lib/tmpfile-safer.c: New file.
44428         * lib/stdio-safer.h (fopen_safer): Add prototype.
44429         * lib/stdio--.h (tmpfile): Make safer.
44430
44431 2006-07-23  Bruno Haible  <bruno@clisp.org>
44432
44433         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44434         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44435         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44436         gl_linked_remove_at): Use it.
44437
44438 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44439         and Simon Josefsson <jas@extundo.com>
44440
44441         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44442
44443         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44444
44445 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         * modules/close-stream: New file.
44448         * modules/closeout (Description): Make it clear that it exits
44449         with a diagnostic on error.
44450         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44451         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44452
44453 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * m4/close-stream.m4: New file.
44456
44457 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44458
44459         * lib/close-stream.c, lib/close-stream.h: New files.
44460
44461 2006-07-22  Bruno Haible  <bruno@clisp.org>
44462
44463         Merge from GNU gettext 0.15.
44464
44465         2006-05-01  Bruno Haible  <bruno@clisp.org>
44466
44467                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44468
44469         2006-07-22  Bruno Haible  <bruno@clisp.org>
44470
44471                 * modules/javaversion: New file.
44472                 * MODULES.html.sh (Java): Add javaversion.
44473
44474         2006-03-12  Bruno Haible  <bruno@clisp.org>
44475
44476                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44477
44478         2005-12-04  Bruno Haible  <bruno@clisp.org>
44479
44480                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44481                 (untested).
44482
44483         2006-06-21  Bruno Haible  <bruno@clisp.org>
44484
44485                 Avoid warnings from recent versions of mcs.
44486                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44487                 -o, -L, -r any more. Use options documented since mcs-1.0
44488                 instead. Similarly for -g.
44489
44490         2005-12-04  Bruno Haible  <bruno@clisp.org>
44491
44492                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44493                 .resources, not .resource.
44494
44495         2005-07-09  Bruno Haible  <bruno@clisp.org>
44496
44497                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44498                 add a .dll suffix.
44499                 Reported by Mark Junker <mjscod@gmx.de>.
44500
44501         2006-07-22  Bruno Haible  <bruno@clisp.org>
44502
44503                 * modules/gettext: Upgrade to gettext-0.15.
44504                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44505                 m4/visibility.m4.
44506                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44507
44508 2006-07-22  Bruno Haible  <bruno@clisp.org>
44509
44510         Merge from GNU gettext 0.15.
44511
44512         2006-03-25  Bruno Haible  <bruno@clisp.org>
44513
44514                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44515
44516         2006-07-21  Bruno Haible  <bruno@clisp.org>
44517
44518                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44519                 "1.1".
44520
44521         2006-05-09  Bruno Haible  <bruno@clisp.org>
44522
44523                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44524                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44525                 for the conftestver execution.
44526
44527         2006-05-01  Bruno Haible  <bruno@clisp.org>
44528
44529                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44530                 optional target-version argument. Verify that the compiler
44531                 groks source of the specified source-version, or add -source
44532                 option as necessary. Verify that the compiler produces
44533                 bytecode in the specified target-version, or add -target and
44534                 -source options as necessary. Make the result of the test
44535                 available as variable CONF_JAVAC. Also log error output in
44536                 config.log.
44537
44538         2006-03-11  Bruno Haible  <bruno@clisp.org>
44539
44540                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44541
44542         2006-05-09  Bruno Haible  <bruno@clisp.org>
44543
44544                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44545                 CLASSPATH_SEPARATOR to a semicolon.
44546
44547         2006-03-12  Bruno Haible  <bruno@clisp.org>
44548
44549                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44550                 available as variable CONF_JAVA, for subsequent autoconf
44551                 tests. Also log error output in config.log.
44552
44553         2006-07-19  Bruno Haible  <bruno@clisp.org>
44554
44555                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44556                 that getline works on glibc2 systems. Needed to avoid trouble
44557                 in relocatable.c.
44558                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44559
44560         2005-12-04  Bruno Haible  <bruno@clisp.org>
44561
44562                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44563                 launcher (untested).
44564
44565         2005-12-04  Bruno Haible  <bruno@clisp.org>
44566
44567                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44568
44569         2006-07-22  Bruno Haible  <bruno@clisp.org>
44570
44571                 * gettext.m4: Update from GNU gettext-0.15.
44572                 * nls.m4: Likewise.
44573                 * po.m4: Likewise.
44574                 * inttypes-pri.m4: Likewise.
44575                 * inttypes-h.m4: Renamed from inttypes.m4.
44576                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44577
44578 2006-07-22  Bruno Haible  <bruno@clisp.org>
44579
44580         Merge from GNU gettext 0.15.
44581
44582         2005-07-05  Bruno Haible  <bruno@clisp.org>
44583
44584                 * printf-args.c (printf_fetchargs): Work around broken
44585                 definition of wint_t on mingw.
44586
44587         2005-02-12  Bruno Haible  <bruno@clisp.org>
44588
44589                 * xallocsa.h: Add extern "C" for C++.
44590
44591         2006-05-17  Bruno Haible  <bruno@clisp.org>
44592
44593                 Cygwin portability.
44594                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44595
44596         2006-04-30  Bruno Haible  <bruno@clisp.org>
44597
44598                 * progreloc.c: Include <mach-o/dyld.h> if available.
44599                 (find_executable): Use _NSGetExecutablePath when possible.
44600
44601         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44602
44603                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44604                 function.
44605
44606         2005-12-29  Bruno Haible  <bruno@clisp.org>
44607
44608                 * progreloc.c (set_program_name_and_installdir): Fix
44609                 compilation error.
44610
44611         2005-12-04  Bruno Haible  <bruno@clisp.org>
44612
44613                 Cygwin portability.
44614                 * progreloc.c: Include <windows.h> also on Cygwin.
44615                 (find_executable): Add support for Cygwin.
44616                 (set_program_name_and_installdir): Handle also platforms with
44617                 nonempty EXEEXT.
44618
44619         2006-07-11  Bruno Haible  <bruno@clisp.org>
44620
44621                 * javacomp.c: Fix a comment.
44622                 Reported by Jim Meyering.
44623
44624         2006-04-30  Bruno Haible  <bruno@clisp.org>
44625
44626                 * javacomp.h (compile_java_class): Add source_version,
44627                 target_version arguments.
44628                 * javacomp.c: Rewritten to choose only a compiler that
44629                 respects the specified source_version and target_version.
44630
44631         2006-06-27  Bruno Haible  <bruno@clisp.org>
44632
44633                 Assume correct S_ISDIR macro.
44634                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44635
44636         2006-07-22  Bruno Haible  <bruno@clisp.org>
44637
44638                 * javaversion.h: New file, from GNU gettext.
44639                 * javaversion.c: New file, from GNU gettext.
44640                 * javaversion.java: New file, from GNU gettext.
44641                 * javaversion.class: New file, from GNU gettext.
44642
44643         2006-05-17  Bruno Haible  <bruno@clisp.org>
44644
44645                 Cygwin portability.
44646                 * javaexec.c (execute_java_class): Test for jview program
44647                 also on Cygwin.
44648
44649         2006-04-09  Bruno Haible  <bruno@clisp.org>
44650
44651                 * fatal-signal.c: Don't include string.h.
44652                 (at_fatal_signal): Use a copying loop instead of memcpy.
44653
44654         2005-12-04  Bruno Haible  <bruno@clisp.org>
44655
44656                 * csharpexec.c: Add support for 'clix' launcher (untested).
44657                 (execute_csharp_using_sscli): New function.
44658                 (execute_csharp_program): Call it.
44659
44660         2006-06-21  Bruno Haible  <bruno@clisp.org>
44661
44662                 Avoid warnings from recent versions of mcs.
44663                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44664                 -o, -L, -r any more. Use options documented since mcs-1.0
44665                 instead. Similarly for -g.
44666
44667         2005-07-09  Bruno Haible  <bruno@clisp.org>
44668
44669                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44670                 add a .dll suffix.
44671                 Reported by Mark Junker <mjscod@gmx.de>.
44672
44673         2006-06-17  Bruno Haible  <bruno@clisp.org>
44674
44675                 * config.charset: Update for NetBSD 3.0.
44676
44677         2006-05-17  Bruno Haible  <bruno@clisp.org>
44678
44679                 Cygwin portability.
44680                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44681
44682         2006-05-16  Bruno Haible  <bruno@clisp.org>
44683
44684                 * localcharset.c [CYGWIN]: Include <windows.h>.
44685                 (get_charset_aliases): For Cygwin, return the same CPxxx
44686                 aliases list as under WIN32.
44687                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44688                 the environment variables. Fall back to GetACP().
44689
44690         2006-04-05  Bruno Haible  <bruno@clisp.org>
44691
44692                 * config.charset: Update Juan Manuel Guerrero's address.
44693
44694         2005-02-12  Bruno Haible  <bruno@clisp.org>
44695
44696                 * allocsa.h: Add extern "C" for C++.
44697
44698         2005-02-10  Bruno Haible  <bruno@clisp.org>
44699
44700                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44701                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44702
44703         2006-07-22  Bruno Haible  <bruno@clisp.org>
44704
44705                 * gettext.h: Update to GNU gettext-0.15.
44706
44707 2006-07-22  Bruno Haible  <bruno@clisp.org>
44708
44709         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44710         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44711         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44712
44713 2006-07-21  Eric Blake  <ebb9@byu.net>
44714
44715         * modules/stdlib-safer: New file.
44716         * MODULES.html.sh (File stream based Input/Output): Add
44717         stdlib-safer.
44718
44719 2006-07-21  Eric Blake  <ebb9@byu.net>
44720
44721         * lib/stdlib-safer.h: New file from coreutils, required by
44722         stdlib--.h.
44723
44724 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44725
44726         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44727
44728 2006-07-20  Bruno Haible  <bruno@clisp.org>
44729
44730         * gnulib-tool: Recognize new option --assume-autoconf.
44731         (autoconf_minversion): New variable.
44732         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44733
44734 2006-07-20  Bruno Haible  <bruno@clisp.org>
44735
44736         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44737
44738 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44739
44740         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44741         Reindent and repaginate.
44742
44743 2006-07-19  Derek Price  <derek@ximbiot.com>
44744
44745         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44746         Correct grammar.
44747
44748 2006-07-17  Bruno Haible  <bruno@clisp.org>
44749
44750         * modules/list: New file.
44751         * modules/array-list: New file.
44752         * modules/carray-list, modules/carray-list-tests: New files.
44753         * modules/linked-list, modules/linked-list-tests: New files.
44754         * modules/avltree-list, modules/avltree-list-tests: New files.
44755         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44756         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44757         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44758         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44759         * modules/oset: New file.
44760         * modules/array-oset: New file.
44761         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44762         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44763         * tests/test-carray_list.c: New file.
44764         * tests/test-linked_list.c: New file.
44765         * tests/test-avltree_list.c: New file.
44766         * tests/test-rbtree_list.c: New file.
44767         * tests/test-linkedhash_list.c: New file.
44768         * tests/test-avltreehash_list.c: New file.
44769         * tests/test-rbtreehash_list.c: New file.
44770         * tests/test-avltree_oset.c: New file.
44771         * tests/test-rbtree_oset.c: New file.
44772         * MODULES.html.sh (Container data structures): New section.
44773
44774 2006-07-17  Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/gl_list.m4: New file.
44777
44778 2006-07-17  Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/gl_list.h: New file.
44781         * lib/gl_list.c: New file.
44782         * lib/gl_array_list.h: New file.
44783         * lib/gl_array_list.c: New file.
44784         * lib/gl_carray_list.h: New file.
44785         * lib/gl_carray_list.c: New file.
44786         * lib/gl_linked_list.h: New file.
44787         * lib/gl_linked_list.c: New file.
44788         * lib/gl_anylinked_list1.h: New file.
44789         * lib/gl_anylinked_list2.h: New file.
44790         * lib/gl_avltree_list.h: New file.
44791         * lib/gl_avltree_list.c: New file.
44792         * lib/gl_anyavltree_list1.h: New file.
44793         * lib/gl_anyavltree_list2.h: New file.
44794         * lib/gl_rbtree_list.h: New file.
44795         * lib/gl_rbtree_list.c: New file.
44796         * lib/gl_anyrbtree_list1.h: New file.
44797         * lib/gl_anyrbtree_list2.h: New file.
44798         * lib/gl_anytree_list1.h: New file.
44799         * lib/gl_anytree_list2.h: New file.
44800         * lib/gl_linkedhash_list.h: New file.
44801         * lib/gl_linkedhash_list.c: New file.
44802         * lib/gl_anyhash_list1.h: New file.
44803         * lib/gl_anyhash_list2.h: New file.
44804         * lib/gl_avltreehash_list.h: New file.
44805         * lib/gl_avltreehash_list.c: New file.
44806         * lib/gl_rbtreehash_list.h: New file.
44807         * lib/gl_rbtreehash_list.c: New file.
44808         * lib/gl_anytreehash_list1.h: New file.
44809         * lib/gl_anytreehash_list2.h: New file.
44810
44811         * lib/gl_oset.h: New file.
44812         * lib/gl_oset.c: New file.
44813         * lib/gl_array_oset.h: New file.
44814         * lib/gl_array_oset.c: New file.
44815         * lib/gl_avltree_oset.h: New file.
44816         * lib/gl_avltree_oset.c: New file.
44817         * lib/gl_rbtree_oset.h: New file.
44818         * lib/gl_rbtree_oset.c: New file.
44819         * lib/gl_anytree_oset.h: New file.
44820
44821 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44822
44823         * m4/mkancesdirs.m4: New file.
44824         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44825         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44826         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44827         it.
44828
44829 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44830
44831         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44832         * lib/mkancesdirs.h: New files.
44833         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44834         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44835         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44836         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44837         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44838         callers changed.  Revamp internals significantly, by not
44839         attempting to create directories that are temporarily more
44840         permissive than the final results.  Do not attempt to use
44841         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44842         This removes some race conditions, fixes some bugs, and simplifies
44843         things.  Use new dirchownmod function to do owner and mode changes.
44844         * lib/mkdir-p.h: Likewise.
44845         * lib/modechange.c (octal_to_mode): New function.
44846         (struct mode_change): New member mentioned.
44847         (make_node_op_equals): New arg mentioned.  All callers changed.
44848         (mode_compile): Keep track of which mode bits the user has explicitly
44849         mentioned.
44850         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44851         New arg PMODE_BITS, to keep track of which mode bits the user
44852         mentioned; it treats S_ISUID and S_ISGID speciall.
44853         All callers changed.
44854         * lib/modechange.h: Likewise.
44855
44856 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44857
44858         * MODULES.html.sh: Add mkancestors.
44859         * modules/mkancesdirs: New module.
44860         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44861         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44862         The chdir-safer and afs files are now orphans; I'll remove them
44863         unless someone speaks up.
44864         Add lib/dirchownmod.c, lib/dirchownmod.h.
44865         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44866         Add lchown, mkancesdirs.
44867         (Maintainer): Add self.
44868
44869 2006-07-15  Karl Berry  <karl@gnu.org>
44870
44871         * gnulib-tool: help message wording/arrangement.
44872
44873 2006-07-14  Simon Josefsson  <jas@extundo.com>
44874
44875         * doc/gnulib.texi (Libtool and Windows): New section.
44876
44877 2006-07-12  Simon Josefsson  <jas@extundo.com>
44878
44879         * modules/gendocs (License): Fix license, approved by Karl.
44880
44881 2006-07-12  Eric Blake  <ebb9@byu.net>
44882
44883         * MODULES.html.sh: Add gendocs.
44884
44885 2006-07-11  Eric Blake  <ebb9@byu.net>
44886
44887         * modules/fdl: New module, to install doc/fdl.texi.
44888         * MODULES.html.sh: Add new section for documentation modules.
44889         * gnulib-tool: Avoid space-tab.
44890         (--doc-base): New option, to manage files from doc.
44891
44892 2006-07-11  Eric Blake  <ebb9@byu.net>
44893
44894         * m4/absolute-header.m4: Fix comments to match recent change.
44895
44896 2006-07-11  Eric Blake  <ebb9@byu.net>
44897
44898         * gnulib-tool: List --doc-base before --tests-base.
44899
44900 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44901
44902         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44903
44904 2006-07-11  Bruno Haible  <bruno@clisp.org>
44905
44906         * README: Mention where to put documentation.
44907
44908 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44909
44910         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44911
44912 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44913
44914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44915         to stdint.m4.
44916
44917 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44918
44919         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44920         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44921         "no/such/file/stdint.h" when there is no such file, so that
44922         the resulting C code can be parsed by dodgy compilers.
44923         Problems reported by Bob Proulx.
44924
44925 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44926
44927         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44928         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44929         macros into the GNU _D_EXACT_NAMLEN.
44930         * lib/savedir.c:  Likewise.
44931         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44932
44933 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44934         and Paul Eggert  <eggert@cs.ucla.edu>
44935
44936         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44937         * m4/savedir.m4:
44938         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44939         macros into the GNU _D_EXACT_NAMLEN.
44940
44941 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44942
44943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44944         around the absolute name, to work around a problem with the HP-UX
44945         11.23 native C compiler, reported by Bob Proulx.
44946
44947 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44948
44949         * doc/maintain.texi, make-stds.texi: Sync from
44950         <http://savannah.gnu.org/projects/gnustandards>.
44951
44952 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44953
44954         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44955
44956 2006-07-09  Jim Meyering  <jim@meyering.net>
44957
44958         * m4/glob.m4: Remove a doubled word in a comment.
44959
44960 2006-07-09  Jim Meyering  <jim@meyering.net>
44961
44962         * lib/argp-pv.c: Remove a doubled word in a comment.
44963         * lib/check-version.c (check_version): Likewise.
44964         * lib/javacomp.c (compile_java_class): Likewise.
44965
44966 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44969         for the benefit of people using Autoconf 2.60.  If you want to
44970         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44971         (or m4/onceonly.m4, if pre-2.57) manually.
44972
44973 2006-07-08  Jim Meyering  <jim@meyering.net>
44974
44975         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44976         comment.
44977         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44978         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44979         comment.
44980
44981 2006-07-08  Jim Meyering  <jim@meyering.net>
44982
44983         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44984
44985 2006-07-07  Simon Josefsson  <jas@extundo.com>
44986
44987         * tests/test-crc.c: Change expected crc value, the test vector
44988         were probably computed using the old broken crc.c?
44989
44990 2006-07-06  Simon Josefsson  <jas@extundo.com>
44991
44992         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44993         now the canonical place for the M4 file).
44994
44995         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44996         from the sys_socket dependency now.
44997
44998         * modules/inet_pton (Files): Ditto.
44999
45000         * modules/inet_ntop (Files): Ditto.
45001
45002 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45003
45004         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45005         not gl_PREREQ_GETUSERSHELL.
45006
45007 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45008
45009         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45010         with only one argument, for Autoconf 2.60.
45011         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45012         expand to nothing, so add a shell command to avoid syntax error.
45013         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45014
45015 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45016
45017         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45018
45019 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45022         no longer needed.  Check for isblank decl.
45023         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45024         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45025         of existence.
45026
45027 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * lib/getloadavg.c: Use __VMS, not VMS.
45030         * lib/getopt.c: Likewise.
45031         * lib/getpagesize.h: Likewise.
45032         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45033         and probably does not work.
45034
45035 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45036
45037         * lib/.cppi-disable: Add wcwidth.
45038         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45039         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45040         (ISGRAPH): Remove.  All uses changed to isgraph.
45041         (FOLD) [!defined _LIBC]: Remove special case.
45042         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45043         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45044         HAVE_ISBLANK.
45045         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45046         case.
45047
45048 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45049
45050         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45051         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45052         brackets.  Other minor changes to suppress some compiler
45053         warnings.
45054
45055 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45056         and Paul Eggert  <eggert@cs.ucla.edu>
45057
45058         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45059         of invoking obsolescent AC_HEADER_DIRENT macro.
45060         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45061         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45062         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45064         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45065         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45066         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45067         * m4/readdir.m4: Remove; no longer needed.
45068
45069 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45070         and Paul Eggert  <eggert@cs.ucla.edu>
45071
45072         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45073         Don't worry about this obsolete case any more.
45074         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45075         directories.
45076         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45077         worry about this obsolete case any more.
45078         * lib/fts.c: Likewise.
45079         * lib/getcwd.c: Likewise.
45080         * lib/glob.h: Likewise.
45081         * lib/savedir.c: Likewise.
45082
45083 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45084
45085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45086         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45087         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45088         needed.
45089         All uses removed.
45090         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45091         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45092         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45093         needed.
45094         * m4/getdate.m4 (gl_GETDATE): Likewise.
45095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45096         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45098         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45099         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45101         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45102         needed.
45103
45104 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         * lib/memcasecmp.c: Include <limits.h>.
45107         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45108         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45109         Don't assume isdigit succeeds only on '0' through '9'.
45110
45111 2006-07-05  Eric Blake  <ebb9@byu.net>
45112
45113         * modules/getaddrinfo (Depends-on): Add snprintf.
45114
45115 2006-07-05  Eric Blake  <ebb9@byu.net>
45116
45117         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45118         to avoid 'header present but could not be compiled' on cygwin.
45119
45120 2006-07-05  Eric Blake  <ebb9@byu.net>
45121
45122         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45123         missing from netdb.h.
45124         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45125
45126 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45127
45128         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45129         no longer needed.
45130         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45131         * m4/getdate.m4 (gl_GETDATE): Likewise.
45132         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45133         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45134         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45135         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45136         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45137
45138 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45139
45140         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45141         All uses of is_space replaced by isspace.
45142         * lib/exit.h: Don't talk about STDC_HEADERS.
45143         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45144         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45145         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45146         replaced by isprint etc.
45147         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45148         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45149         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45150         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45151         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45152         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45153
45154 2006-07-05  Bruno Haible  <bruno@clisp.org>
45155
45156         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45157         the function exists, before testing against AIX.
45158         Reported by Martin Lambers <marlam@marlam.de>.
45159
45160 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45161
45162         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45163         From Mark D. Baushke.
45164
45165 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45166
45167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45168         to the absolute name, not just one, to bypass Sun C 5.8's
45169         "warning: #include of /usr/include/... may be non-portable".
45170
45171 2006-07-04  Eric Blake  <ebb9@byu.net>
45172
45173         * modules/dirname-tests: New test module.
45174         * tests/test-dirname.c: New file, replacing dirname.c
45175         TEST_DIRNAME section that was recently deleted.
45176
45177 2006-07-04  Bruno Haible  <bruno@clisp.org>
45178
45179         Assume ANSI C header files and <ctype.h> functions.
45180         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45181         (mbsnwidth): Use isprint, iscntrl instead.
45182
45183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45184
45185         Merge from coreutils.
45186         * MODULES.html.sh: Add xstrtold.
45187         * modules/xstrtold: New file.
45188         * modules/cycle-check (Files): Add lib/same-inode.h.
45189         * modules/dirname (Files): Add m4/double-slash-root.m4.
45190         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45191         * modules/mkdir-p (Files): Add lib/same-inode.h.
45192         * modules/same (Files): Add lib/same-inode.h.
45193
45194 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45195
45196         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45197         This is to keep the terminology clean; POSIX talks about
45198         "absolute pathnames", not "full pathnames", but the GNU
45199         Coding Standards say to use "path" for something else;
45200         so use "absolute" to keep both sides happy.
45201         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45202         Set gl_absolute_header, not gl_full_header_path.
45203         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45204         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45205         All uses changed.
45206
45207         Merge from coreutils.
45208
45209         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45210
45211         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45212         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45213         want to require the building of c-strtod.o.
45214         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45215         needs -lm directly.
45216         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45217
45218         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45219
45220         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45221         --as-needed option if available.  Problem reported by Albert Chin in
45222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45223         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45224         cc merely issues a bunch of annoying warnings for --as-needed
45225         (this problem was reported by Bob Proulx).  Also, try linking with
45226         -lm to detect a bug in binutils 2.16 (this problem was reported
45227         by Ralf Wildenhues).
45228
45229         2006-06-18  Jim Meyering  <jim@meyering.net>
45230
45231         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45232         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45233         macro.
45234         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45235         also check for glibc-2.4's abort-inducing bug.
45236
45237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45238         Low-probability clean-up should be to use rmdir to get rid of
45239         the just-created directory, not unlink.
45240
45241         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45242         configure fail, and request a bug report to inform us about it.
45243         Add a comment that, barring reports to the contrary, in 2007 we'll
45244         assume ftruncate is universally available.
45245
45246         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45247
45248         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45249
45250         2006-03-12  Jim Meyering  <jim@meyering.net>
45251
45252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45253         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45254         * m4/same.m4 (gl_SAME): Likewise.
45255         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45256
45257         2006-03-11  Eric Blake  <ebb9@byu.net>
45258
45259         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45260         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45261         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45262         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45263
45264 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45265
45266         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45267         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45268         reported by Mark D. Baushke, one in
45269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45270
45271         Merge from coreutils.
45272
45273         * lib/.cppi-disable: Add stdint_.h.
45274         * lib/.cvsignore: Add stdint.h.
45275
45276         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45277
45278         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45279         both double and long double versions.
45280         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45281         * lib/xstrtold.c: New file.
45282         * lib/xstrtod.h (xstrtold): New decl.
45283
45284         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45285
45286         * lib/filemode.c (setst): Remove.
45287         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45288         (arguably) clearer, and the generated code is a bit smaller on my
45289         Debian GNU/Linux stable x86 host.
45290
45291         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45292
45293         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45294         Assume that filemode.h includes sys/types.h and sys/stat.h.
45295         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45296         (ftypelet): Reorder to put common cases first, for efficiency.
45297         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45298         to do 'M'.
45299         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45300         of 10, for compatibility with FreeBSD.  All callers changed.
45301         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45302         types that can't be deduced solely from st_mode.  First arg is now a
45303         const pointer.
45304         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45305         (strmode): Renamed from mode_string.
45306         (filemodestring): New decl.
45307         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45308         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45309         needed.
45310         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45311
45312         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45313
45314         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45315         fsusage.h now does that.  Include fsusage.h first, to test interface.
45316         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45317         at most one method (the old code could have generated decls that
45318         didn't conform to C89, not that this was ever exercised).
45319         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45320
45321         2006-03-19  Jim Meyering  <jim@meyering.net>
45322
45323         Work even in a chroot where d_ino values for entries in "/"
45324         don't match the stat.st_ino values for the same names.
45325         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45326         number, iterate through all entries again, using lstat instead.
45327         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45328         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45329
45330         * lib/getcwd.c (__getcwd): Clarify a comment.
45331         Use memcpy in place of a call to strcpy.
45332
45333         2006-03-12  Jim Meyering  <jim@meyering.net>
45334
45335         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45336         matches that of the current directory (which we're about to chdir ".."
45337         out of), then save the dev-ino of the parent, instead.
45338
45339         * lib/same-inode.h (SAME_INODE): New file/macro.
45340         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45341         Include "same-inode.h", instead.
45342         * lib/same.c: Likewise.
45343         * lib/cycle-check.h: Include "same-inode.h".
45344         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45345         * lib/cycle-check.c (SAME_INODE): Remove definition.
45346         * lib/root-dev-ino.h: Include "same-inode.h".
45347
45348         2006-03-11  Eric Blake  <ebb9@byu.net>
45349
45350         * lib/same.c (same_name): s/base_name/last_component/
45351         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45352         * lib/filenamecat.c (file_name_concat): Likewise.
45353
45354         2006-03-11  Eric Blake  <ebb9@byu.net>,
45355                     Paul Eggert  <eggert@cs.ucla.edu>
45356
45357         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45358         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45359         drive prefix.
45360         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45361         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45362         (last_component): New method.
45363         * lib/dirname.c (dir_len): Determine when drive letters need a
45364         subsequent slash.  Preserve // when it is special.
45365         (dir_name): Don't append dot when drive letter is absolute.
45366         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45367         * lib/basename.c (base_name): New semantics - malloc the result.
45368         Preserve // when it is special.  Preserve relative files that look
45369         like drive letters.
45370         (base_len): Preserve // when it is special.
45371         (last_component): New method, similar to old base_name semantics.
45372         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45373         base_name.  Strip redundant slashes from ///.
45374
45375 2006-07-03  Jim Meyering  <jim@meyering.net>
45376
45377         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45378         macro is used before the first cycle_check call.
45379
45380 2006-07-03  Eric Blake  <ebb9@byu.net>
45381
45382         * modules/dirname (Depends-on): Add xstrndup.
45383
45384 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45385
45386         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45387         test cases, so that config.log is a bit easier to follow.
45388
45389 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45392         both are 64 bits, since this seems to be the tradition, and this
45393         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45394         we ever run into a host that prefers long long to long in this
45395         case, we'll need another configure-time test.  Problem reported by
45396         Jim Meyering.
45397
45398 2006-07-02  Eric Blake  <ebb9@byu.net>
45399
45400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45401
45402 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * modules/inttypes (Depends-on): No longer depends on stdint.
45405         * modules/stdint (Description): Say more about assumptions.
45406         Say that the fast types might differ.  Say macros are used.
45407         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45408         (Makefile.am): Revise list of substituted symbols to match
45409         new stdint.m4.
45410         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45411         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45412         * tests/test-stdint.c (verify_same_types)
45413         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45414         the code conforms to C99/C89.
45415         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45416         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45417
45418 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45419
45420         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45421         but fix a bug, by requiring at least 64 bits.
45422         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45423         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45424         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45425         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45426
45427         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45428         changes.  Make 2.59 a prerequisite.  Check and substitute for
45429         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45430         inttypes.h.  Do not use special include files; just use the
45431         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45432         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45433         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45434         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45435         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45436         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45437         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45438         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45439         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45440         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45441         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45442         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45443         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45444         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45445         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45446         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45447         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45448         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45449         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45450         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45451         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45452         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45453         not check for things that C99 does not require, e.g., int8_t.  If
45454         a test isn't needed unless <stdint.h> isn't working, and is
45455         unlikely to be needed for any other reason, then don't do it
45456         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45457         size_t, since we assume C89 freestanding at least.  Do not check
45458         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45459         the right thing even if the types are not defined.  Instead use:
45460         (gl_STDINT_TYPE_PROPERTIES): New macro.
45461         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45462         testing whether <sys/types.h> clashes, as Autoconf does this for
45463         us now.  All uses removed.
45464         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45465         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45466         (gl_CHECK_TYPE_SAME):
45467         Remove; no longer needed.
45468         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45469         exists, since we'll return 0 anyway in that case.
45470         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45471
45472 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45473
45474         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45475         possible collision with system files.
45476         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45477         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45478         WCHAR_MIN and WCHAR_MAX in this case.
45479         (<stddef.h>): Do not include; no longer needed.
45480         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45481         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45482         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45483         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45484         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45485         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45486         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45487         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45488         !defined(__c99))]: Include in this case too, since it's harmless
45489         now.
45490         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45491         dangerous to do so.
45492         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45493         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45494         (_STDINT_MIN, _STDINT_MAX): New macros.
45495         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45496         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45497         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45498         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45499         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45500         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45501         macros, not typedefs; this simplifies things quite a bit.
45502         Use long int for all types narrower than int64_t.
45503         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45504         Define in terms of long long int or int64_t or long int,
45505         not int64_t or int32_t.  This saves some compile-time testing.
45506         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45507         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45508         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45509         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45510         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45511         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45512         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45513         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45514         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45515         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45516         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45517         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45518         undef any previous version and define our own version, for
45519         simplicity and consistency with the new macros for types.
45520         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45521         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45522         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45523         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45524         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45525         @WINT_T_SUFFIX@ to keep things simple here.
45526         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45527         Simplify by assuming typical 8/16/32/64 host, since we're
45528         already doing that elsewhere anyway.
45529         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45530         and assume long long int is 64 bits if available.  This
45531         speeds up 'configure'.
45532
45533 2006-07-01  Eric Blake  <ebb9@byu.net>
45534
45535         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45536         Reported by Andreas Buening.
45537
45538 2006-07-01  Eric Blake  <ebb9@byu.net>
45539
45540         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45541
45542 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45543
45544         * lib/getaddrinfo.c: fixed typo
45545
45546 2006-06-29  Jim Meyering  <jim@meyering.net>
45547
45548         * modules/strftime (Maintainer): Add my name, since with the
45549         FPRINTFTIME changes strftime.c has forked from glibc.
45550
45551 2006-06-29  Eric Blake  <ebb9@byu.net>
45552
45553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45554
45555 2006-06-29  Eric Blake  <ebb9@byu.net>
45556
45557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45558
45559 2006-06-29  Eric Blake  <ebb9@byu.net>
45560
45561         * lib/stat_.h: New file.
45562
45563 2006-06-29  Eric Blake  <ebb9@byu.net>
45564
45565         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45566         unused static function.
45567
45568 2006-06-29  Eric Blake  <ebb9@byu.net>
45569
45570         * doc/functions.texi (Function Portability): Document missing lstat
45571         on mingw.
45572
45573 2006-06-29  Eric Blake  <ebb9@byu.net>
45574
45575         * MODULES.html.sh: Add sys_stat.
45576         * modules/sys_stat: New module.
45577         * modules/mkstemp (Depends-on): Add sys_stat.
45578
45579 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45580
45581         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45582
45583 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45584
45585         * m4/c-bs-a.m4: Removed.
45586
45587 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45588
45589         * lib/strftime.c: Assume strftime() exists.
45590
45591 2006-06-29  Derek Price  <derek@ximbiot.com>
45592
45593         * modules/c-bs-a: Removed - \a is C89.
45594         * MODULES.html.sh: Remove c-bs-a.
45595
45596 2006-06-29  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/wcwidth (License): Change to LGPL.
45599
45600 2006-06-28  Simon Josefsson  <jas@extundo.com>
45601
45602         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45603         on _WIN32.
45604
45605         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45606         getnameinfo.
45607
45608 2006-06-28  Simon Josefsson  <jas@extundo.com>
45609
45610         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45611
45612 2006-06-28  Simon Josefsson  <jas@extundo.com>
45613
45614         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45615         functions there.  It will succeed on Windows XP, but on Windows
45616         2000 and (presumably) earlier, it will fail, and use the internal
45617         re-implementation.
45618         (use_win32_p): New function.
45619         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45620         Support AI_NUMERICSERV to disable getservbyname.
45621         (getnameinfo): New function, only supports
45622         NI_NUMERICHOST|NI_NUMERICSERV for now.
45623
45624         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45625         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45626         getnameinfo.
45627
45628 2006-06-28  Eric Blake  <ebb9@byu.net>
45629
45630         * modules/wcwidth: New file.
45631         * modules/mbchar (Depends-on): Add wcwidth.
45632         * modules/mbswidth (Depends-on): Add wcwidth.
45633         * MODULES.html.sh: Add wcwidth.
45634
45635 2006-06-28  Eric Blake  <ebb9@byu.net>
45636
45637         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45639
45640 2006-06-28  Eric Blake  <ebb9@byu.net>
45641
45642         * lib/xvasprintf.h: Fix comments.
45643
45644 2006-06-28  Eric Blake  <ebb9@byu.net>
45645
45646         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45647         * lib/mbswidth.c (wcwidth): Move from here...
45648         * lib/wcwidth.h: ...to this new file.
45649
45650 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45651
45652         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45653
45654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45655         it's obsolete.
45656         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45657
45658 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45659
45660         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45661         Autoconf 2.60 says this stuff was obsolete.
45662
45663 2006-06-28  Bruno Haible  <bruno@clisp.org>
45664
45665         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45666
45667 2006-06-28  Bruno Haible  <bruno@clisp.org>
45668
45669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45670         gt_TYPE_WCHAR_T.
45671
45672 2006-06-28  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45675         declaration for wcwidth.
45676         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45677
45678 2006-06-28  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45681         (mkdir): Define using _mkdir.
45682
45683 2006-06-28  Bruno Haible  <bruno@clisp.org>
45684
45685         * lib/getaddrinfo.h: Fix POSIX URL.
45686         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45687         _WIN32.
45688         (use_win32_p): Make static.
45689         (getaddrinfo): Reject service name if it is empty or does not consist
45690         solely of decimal digits, or if its value is > 65535.
45691         (getnameinfo): Remove useless casts.
45692
45693 2006-06-27  Simon Josefsson  <jas@extundo.com>
45694
45695         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45696         Eggert and Martin Lambers.
45697
45698 2006-06-27  Simon Josefsson  <jas@extundo.com>
45699
45700         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45701         Eggert and Martin Lambers.
45702
45703 2006-06-27  Bruno Haible  <bruno@clisp.org>
45704
45705         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45706         result to 0, not to empty.
45707         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45708
45709 2006-06-27  Bruno Haible  <bruno@clisp.org>
45710
45711         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45712
45713 2006-06-26  Simon Josefsson  <jas@extundo.com>
45714
45715         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45716         present.
45717
45718 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45721         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45723
45724 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45725
45726         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45727
45728 2006-06-26  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45731
45732 2006-06-26  Bruno Haible  <bruno@clisp.org>
45733
45734         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45735
45736 2006-06-26  Bruno Haible  <bruno@clisp.org>
45737
45738         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45739         SGI C compiler in pre-C99 mode.
45740         Suggested by Mark D. Baushke and Larry Jones.
45741
45742 2006-06-26  Bruno Haible  <bruno@clisp.org>
45743
45744         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45745         WCHAR_MAX.
45746         Reported by Mark D. Baushke and Larry Jones.
45747
45748 2006-06-26  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45751         in pre-C99 mode.
45752         Suggested by Mark D. Baushke and Larry Jones.
45753
45754 2006-06-23  Simon Josefsson  <jas@extundo.com>
45755             Bruno Haible  <bruno@clisp.org>
45756
45757         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45758         Emit mostlyclean-local rule.
45759         (func_emit_tests_Makefile_am): Likewise.
45760         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45761
45762 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45763
45764         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45765
45766 2006-06-23  Bruno Haible  <bruno@clisp.org>
45767
45768         * tests/test-stdint.c: Update to match ISO C 99 Technical
45769         Corrigendum 1.
45770
45771 2006-06-23  Bruno Haible  <bruno@clisp.org>
45772
45773         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45774
45775 2006-06-23  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/stdint_.h: Treat IRIX like OpenBSD.
45778
45779 2006-06-23  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45782         ISO C 99 Technical Corrigendum 1.
45783
45784 2006-06-22  Simon Josefsson  <jas@extundo.com>
45785
45786         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45787         MinGW.
45788
45789 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45790
45791         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45792         needed.  Some compiler complained about some of them.  Problem reported
45793         by Larry Jones in
45794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45795
45796 2006-06-21  Simon Josefsson  <jas@extundo.com>
45797
45798         * tests/test-getaddrinfo.c: New file.
45799
45800         * modules/getaddrinfo-tests: New file.
45801
45802         * MODULES.html.sh: Add inet_pton.
45803
45804         * modules/inet_pton: New file.
45805
45806 2006-06-21  Simon Josefsson  <jas@extundo.com>
45807
45808         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45809         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45810         of using the (limited) gnulib implementation on Windows XP.
45811
45812         * m4/inet_pton.m4: New file.
45813
45814 2006-06-21  Simon Josefsson  <jas@extundo.com>
45815
45816         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45817         variable.
45818
45819         * lib/socket_.h: Don't define WINVER.
45820
45821         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45822         slightly modified to work in gnulib.
45823
45824 2006-06-21  Simon Josefsson  <jas@extundo.com>
45825
45826         * doc/gnulib.texi (Windows sockets): Add.
45827
45828 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45829
45830         * lib/read-file.c (fread_file): Start with buffer allocation of
45831         0 bytes rather than 1 byte; this simplifies the code.
45832         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45833         code to free buffer and save/restore errno.
45834         (internal_read_file): Remove unused local.
45835
45836 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45837
45838         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45839         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45840         Problem reported by Denis Excoffier in
45841         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45842
45843 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45844
45845         * modules/sys_socket, modules/socklen: Include sys/types since
45846         FreeBSD 4.x's sys/socket.h needs it.
45847
45848 2006-06-19  Simon Josefsson  <jas@extundo.com>
45849
45850         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45851
45852 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45853
45854         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45855
45856 2006-06-19  Bruno Haible  <bruno@clisp.org>
45857
45858         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45859         and FULL_PATH_INTTYPES_H in angle brackets.
45860         Reported by Mark D. Baushke <mdb@gnu.org>.
45861
45862 2006-06-17  Eric Blake  <ebb9@byu.net>
45863
45864         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45865         errno.
45866
45867 2006-06-17  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45870         <sys/inttypes.h>.
45871
45872 2006-06-17  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45875         whether errno is declared. Assume <errno.h> declares errno.
45876
45877 2006-06-17  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45880
45881 2006-06-17  Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45884         problem on Solaris 2.5.1.
45885
45886 2006-06-16  Eric Blake  <ebb9@byu.net>
45887
45888         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45889         * lib/unicodeio.c [!defined errno]: Likewise.
45890         * lib/strtol.c [!defined errno]: Likewise.
45891         * lib/strtod.c [!defined errno]: Likewise.
45892
45893 2006-06-15  Eric Blake  <ebb9@byu.net>
45894
45895         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45896
45897 2006-06-15  Eric Blake  <ebb9@byu.net>
45898
45899         * config/srclist.txt (ssize_t.m4): Lose sync.
45900
45901 2006-06-15  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/stdint (Files): Include m4/full-header-path.m4,
45904         m4/size_max.m4, m4/wchar_t.m4.
45905         (Makefile.am): Many more substitutions.
45906         * modules/stdint-tests: New file.
45907         * tests/test-stdint.c: New file.
45908
45909 2006-06-15  Bruno Haible  <bruno@clisp.org>
45910
45911         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45912         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45913         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45914         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45915         gl_CHECK_TYPE_SAME): New macros.
45916
45917 2006-06-15  Bruno Haible  <bruno@clisp.org>
45918
45919         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45920
45921 2006-06-15  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/stdint_.h: Rewritten to be fully auto-configured.
45924         Fixes bug on HP-UX/IA64.
45925
45926 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45927
45928         * lib/getdate.y (__attribute__): Don't define if already defined.
45929         Problem reported by Larry Jones.
45930         * lib/utimens.c (__attribute__): Likewise.
45931
45932 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45935         reported by Andreas Schwab.
45936
45937 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45938             Bruno Haible  <bruno@clisp.org>
45939
45940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45941         check for the declaration of strnlen and a run test that exposes the
45942         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45943         rpl_strndup.
45944
45945 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45946             Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45949
45950 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45951
45952         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45953         compile test, for Tru64 4.0D.
45954
45955 2006-05-28  Karl Berry  <karl@gnu.org>
45956
45957         * config/srclist.txt (printf-args.c): lose sync.
45958
45959 2006-05-26  Martin Lambers  <marlam@marlam.de>
45960
45961         * lib/getpass.c: Updates the test for the native W32 API, and adds
45962         missing includes, thus fixing compilation warnings.
45963
45964 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45965
45966         * lib/exclude.c (exclude_fnmatch): New function.
45967         (excluded_file_name): Call exclude_fnmatch.
45968         * lib/exclude.h (excluded_file_name): New prototype
45969
45970 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         * lib/tempname.c (small_open, large_open): New macros.
45973         (__open, __open64) [!_LIBC]: Remove.
45974         (__gen_tempname): Use small_open and large_open instead of __open
45975         and __open64.  This fixes a portability bug on HP-UX 11.11i
45976         reported by Simon Wing-Tang in
45977         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45978
45979 2006-05-24  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45982         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45983         Reported by Thorsten Maerz <torte@netztorte.de> via
45984         Aaron Stone <aaron@serendipity.cx>.
45985
45986 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45987
45988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45989         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45990         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45991         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45992         not really conditional on the cache.
45993         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45994
45995 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45996
45997         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45998         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45999         (my_usleep): Don't mishandle maximum value.
46000
46001 2006-05-19  Jim Meyering  <jim@meyering.net>
46002
46003         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46004
46005 2006-05-17  Bruno Haible  <bruno@clisp.org>
46006
46007         Cygwin portability.
46008         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46009
46010 2006-05-17  Bruno Haible  <bruno@clisp.org>
46011
46012         * lib/stdint_.h: Fix recognition of Cygwin.
46013
46014 2006-05-15  Bruno Haible  <bruno@clisp.org>
46015
46016         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46017         on libtool patch by Ralf Wildenhues.
46018
46019 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46020
46021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46022         test for C99 conformance; (bool) 0.5 is an integer constant
46023         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46024         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46025
46026 2006-05-11  Simon Josefsson  <jas@extundo.com>
46027
46028         * m4/xvasprintf.m4: Fix obvious typo.
46029
46030 2006-05-11  Jim Meyering  <jim@meyering.net>
46031
46032         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46033         James Lemley.
46034
46035 2006-05-10  Simon Josefsson  <jas@extundo.com>
46036
46037         * lib/md4.c: Typo fix, update copyright years.
46038         (K1, K2): Don't use L because it turn computations into 64-bit on
46039         64-bit platforms.
46040
46041 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46042
46043         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46044         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46045         unwanted sign propagation, e.g., on hosts with 64-bit int.
46046         There still are some problems with reeelly weird theoretical hosts
46047         (e.g., 33-bit int) but it's not worth worrying about now.
46048         * lib/sha1.c (rol): Likewise.
46049         (K1, K2, K3, K4): Remove unnecessary L suffix.
46050
46051 2006-05-10  Bruno Haible  <bruno@clisp.org>
46052
46053         * lib/des.c: Cast to avoid warnings.
46054
46055 2006-05-09  Bruno Haible  <bruno@clisp.org>
46056
46057         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46058         (Depends-on): Depend also on xsize, stdarg.
46059         (configure.ac): Add gl_XVASPRINTF.
46060
46061 2006-05-09  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/xvasprintf.m4: New file.
46064
46065 2006-05-09  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46068         (EOVERFLOW): Define fallback value.
46069         (xstrcat): New function.
46070         (xvasprintf): Recognize the special case of a string concatenation.
46071
46072 2006-05-08  Eric Blake  <ebb9@byu.net>
46073
46074         * gnulib-tool (func_version): Base copyright year on CVS date.
46075         (func_emit_copyright_notice): New function.
46076         (func_emit_lib_Makefile_am): Use it.
46077         (func_emit_tests_Makefile_am): Likewise.
46078         (func_import): Likewise.
46079
46080 2006-05-08  Bruno Haible  <bruno@clisp.org>
46081
46082         * modules/stdarg: New file.
46083         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46084
46085 2006-05-08  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/stdarg.m4: New file, from GNU gettext.
46088
46089 2006-05-08  Bruno Haible  <bruno@clisp.org>
46090
46091         * config/srclist.txt (build-aux/config.rpath): different from latest
46092         release.
46093
46094 2006-05-08  Bruno Haible  <bruno@clisp.org>
46095
46096         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46097
46098 2006-05-05  Jim Meyering  <jim@meyering.net>
46099
46100         * m4/warning.m4: New file, derived from bison's file by the same name.
46101
46102 2006-05-03  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/stdint_.h: Shorter URL.
46105         * lib/inttypes.h: Likewise.
46106
46107 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46108
46109         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46110
46111 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46112
46113         * lib/verify.h: Document the internals better.  Most of this change
46114         was written by Bruno Haible.
46115
46116 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46117
46118         * doc/verify.texi: New file, partly based on a proposal by
46119         Bruno Haible.
46120
46121 2006-05-02  Bruno Haible  <bruno@clisp.org>
46122
46123         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46124         test from here...
46125         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46126
46127 2006-04-29  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46130         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46131
46132 2006-04-29  Bruno Haible  <bruno@clisp.org>
46133
46134         * gnulib-tool: Make --update option actually work.
46135
46136 2006-04-29  Bruno Haible  <bruno@clisp.org>
46137
46138         * doc/gcd.texi: New file.
46139         * doc/gnulib.texi: Include it.
46140
46141 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46142
46143         * lib/getdate.y (get_date): When adding relative date, start with the
46144         initial time, not with the result of the first mktime call.
46145
46146 2006-04-25  Bruno Haible  <bruno@clisp.org>
46147
46148         * gnulib-tool (func_import): Output the include directives in three
46149         blocks, sorted separately.
46150         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46151
46152 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46153
46154         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46155         to define main with arguments, for C++.  Reported by Eric Blake.
46156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46157         Prefer 'int main ()' to 'int main (void)', for C++.
46158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46160         for 'main', for C99 and C++.
46161
46162 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46163
46164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46165         Don't assume that exit status -1 is valid.
46166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46167         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46168         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46169         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46170         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46171         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46172         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46173         functions can be used without declaring them, or that you can
46174         exit with status -1.
46175         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46176
46177 2006-04-24  Karl Berry  <karl@gnu.org>
46178
46179         * config/srclist.txt (longdouble.m4): sync lost.
46180
46181 2006-04-24  Eric Blake  <ebb9@byu.net>
46182
46183         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46184
46185 2006-04-24  Bruno Haible  <bruno@clisp.org>
46186
46187         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46188         poll() implementation in AIX.
46189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46190
46191 2006-04-24  Bruno Haible  <bruno@clisp.org>
46192
46193         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46194         assigned exactly once.
46195
46196 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46197             Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46200         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46201         for AM_CPPFLAGS.
46202
46203 2006-04-23  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/copy-file: Depend on unistd.
46206         * modules/execute: Likewise.
46207         * modules/fatal-signal: Likewise.
46208         * modules/findprog: Likewise.
46209         * modules/mkdtemp : Likewise.
46210         * modules/pipe: Likewise.
46211         * modules/wait-process: Likewise.
46212
46213 2006-04-23  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46216         condition was already detected.
46217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46218
46219 2006-04-23  Bruno Haible  <bruno@clisp.org>
46220
46221         * lib/copy-file.c: Include <unistd.h> unconditionally.
46222         * lib/execute.c: Likewise.
46223         * lib/fatal-signal.c: Likewise.
46224         * lib/findprog.c: Likewise.
46225         * lib/mkdtemp.c: Likewise.
46226         * lib/pipe.h: Likewise.
46227         * lib/pipe.c: Likewise.
46228         * lib/wait-process.h: Likewise.
46229
46230 2006-04-23  Bruno Haible  <bruno@clisp.org>
46231
46232         * gnulib-tool (func_usage): Fix --import description. Document
46233         --update.
46234         (func_import): Create temporary file in a temporary directory, if
46235         --dry-run is specified. Silence errors from 'grep' when there are no
46236         m4 files in $m4dir.
46237         (func_create_testdir): Silence errors from 'grep' when there are no
46238         m4 files in $m4dir.
46239         Reported by Karl Berry <karl@freefriends.org>.
46240
46241 2006-04-20  Bruno Haible  <bruno@clisp.org>
46242
46243         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46244         one argument, so that the code will be portable to Autoconf 2.60.
46245         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46247         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46248
46249 2006-04-19  Derek Price  <derek@ximbiot.com>
46250             Eric Blake  <ebb9@byu.net>
46251
46252         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46253         rather than "/full/path.h".  Update comment to match.  Shorten &
46254         generalize m4_translit call via AS_TR_CPP.
46255
46256 2006-04-19  Derek Price  <derek@ximbiot.com>
46257             Eric Blake  <ebb9@byu.net>
46258
46259         * lib/inttypes.h: Correct grammar in comment.
46260
46261 2006-04-18  Derek Price  <derek@ximbiot.com>
46262             Paul Eggert  <eggert@cs.ucla.edu>
46263
46264         * modules/inttypes: New file.
46265         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46266
46267 2006-04-18  Derek Price  <derek@ximbiot.com>
46268             Paul Eggert  <eggert@cs.ucla.edu>
46269
46270         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46271         New files.
46272
46273 2006-04-18  Derek Price  <derek@ximbiot.com>
46274             Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * lib/inttypes.h: New file.
46277         * lib/strtoimax.c: Assume <inttypes.h>.
46278
46279 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46280
46281         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46282         isn't mounted.  Problem reported by Kir Kolyshkin.
46283
46284 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46285
46286         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46287         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46288         Derek R. Price.
46289         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46290         implementation.
46291
46292 2006-04-12  Eric Blake  <ebb9@byu.net>
46293
46294         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46295         is now done automatically by the corresponding Autoconf macro.
46296
46297 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46298
46299         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46300         time_r.h.
46301
46302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46303
46304         Merge regex changes from libc, removing some of our
46305         POSIX-conformance changes that were rejected and redoing them in a
46306         less-intrusive way.
46307
46308         * lib/regcomp.c (re_compile_internal, init_dfa):
46309         Length arg is now size_t, not Idx.  All uses changed.
46310         (peek_token): Forward decl now says internal_function.
46311         (__re_error_msgid, __re_error_msgid_idx):
46312         Now static rather than extern with attribute_hidden.
46313         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46314         For some reason libc prefers K&R style defns for external functions.
46315         (regerror) [!defined _LIBC]: Likewise.
46316         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46317         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46318         (build_range_exp, build_collating_symbol):
46319         Use K&R-style defn.
46320         (re_compile_fastmap): Use '\0' to memset, not 0.
46321         (utf8_sb_map): Make the calculations more obvious.
46322         (init_dfa, parse_bracket_exp, build_charclass_op):
46323         Call calloc and cast result, as glibc does.
46324         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46325         (build_range_exp, build_collating_symbol):
46326         Now internal functions.
46327
46328         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46329
46330         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46331         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46332         Don't depend on VMS; depend on __VMS instead, for POSIX
46333         namespace cleanness.
46334         (regoff_t): Define to ssize_t, not long int.
46335
46336         Remove the REG_ macros named below.  Instead, make the old names
46337         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46338         __USE_GNU_REGEX.
46339         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46340         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46341         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46342         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46343         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46344         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46345         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46346         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46347         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46348         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46349         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46350         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46351         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46352         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46353         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46354         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46355         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46356         (REG_NREGS):
46357         Remove.  All uses replaced by the old RE_* names.
46358         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46359         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46360         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46361         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46362         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46363         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46364         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46365         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46366         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46367         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46368         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46369         Don't bother having these macros be independent of each others'
46370         values, since they no longer exist in the POSIX name space.
46371
46372         Rename the following member names back to their old names,
46373         unless !__USE_GNU_REGEX.  All uses changed back.
46374         (buffer): Renamed from re_buffer.
46375         (allocated): Renamed from re_allocated.
46376         (used): Renamed from re_used.
46377         (syntax): Renamed from re_syntax.
46378         (fastmap): Renamed from re_fastmap.
46379         (translate): Renamed from re_translate.
46380         (can_be_null): Renamed from re_can_be_null.
46381         (regs_allocated): Renamed from re_regs_allocated.
46382         (fastmap_accurate): Renamed from re_fastmap_accurate.
46383         (no_sub): Renamed from re_no_sub.
46384         (not_bol): Renamed from re_not_bol.
46385         (not_eol): Renamed from re_not_eol.
46386         (newline_anchor): Renamed from re_newline_anchor.
46387         (num_regs): Renamed from rm_num_regs.
46388         (start): Renamed from rm_start.
46389         (end): Renamed from rm_end.
46390
46391         (free_state): Move up a bit.
46392
46393         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46394         #define to be empty.
46395         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46396         when that is what is intended.
46397         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46398         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46399         (MAX): New macro.
46400         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46401         All uses changed back to re_malloc, etc.  It's now the caller's
46402         responsibility to check for overflow; all callers changed.
46403         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46404         (re_x2nrealloc): Remove.
46405         (free_state): Remove decl.
46406
46407         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46408         (re_set_registers, re_exec):
46409         Use K&R-style defn.
46410
46411         2006-01-31  Roland McGrath  <roland@redhat.com>
46412
46413         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46414         Reported by Mike Frysinger <vapier@gentoo.org>.
46415
46416         2006-01-15  Andreas Jaeger  <aj@suse.de>
46417
46418         [BZ #1950]
46419         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46420         build_wcs_upper_buffer change.
46421         (build_wcs_upper_buffer): Change return type.
46422
46423         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46424
46425         * lib/regex_internal.h: Include <stdint.h> if available.
46426
46427         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46428
46429         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46430
46431         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46432
46433         * lib/regcomp.c: Adjust for changed secondary hash function.
46434
46435         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46436
46437         * lib/regex.h: Pretty printing.
46438         Clean up namespace a bit.
46439
46440         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46441
46442         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46443         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46444
46445         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46446                     Ulrich Drepper  <drepper@redhat.com>
46447
46448         [BZ #1302]
46449         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46450         changed.
46451         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46452
46453         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46454
46455         [BZ #281]
46456         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46457         * lib/regcomp.c: Remove unnecessary uses of
46458         unsigned RE_TRANSLATE_TYPE.
46459         * lib/regex_internal.h: Likewise.
46460         * lib/regex_internal.c: Likewise.
46461         * lib/regexec.c: Likewise.
46462         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46463
46464         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46465
46466         * lib/regexec.c (find_recover_state): Remove unnecessary
46467         initialization.
46468         (transit_state_bkref): Make DFA a const pointer.
46469         (get_subexp): Likewise.
46470         (check_arrival): Likewise.
46471         (update_cur_sifted_state): Likewise.
46472         (re_search_internal): Likewise.
46473         (prune_impossible_nodes): Likewise.
46474         (acquire_init_state_context): Likewise.
46475         (proceed_next_node): Likewise.
46476         (set_regs): Likewise.
46477         (free_fail_stack_return): Likewise.
46478         (check_arrival_expand_ecl): Mark DFA parameter as const.
46479         (check_arrival_expand_ecl_sub): Likewise.
46480         (check_subexp_limits): Likewise.
46481         (sub_epsilon_src_nodes):  Likewise.
46482         (add_epsilon_src_nodes):  Likewise.
46483         (merge_state_array): Likewise.
46484         (update_regs): Likewise.
46485         (build_trtable): Likewise.
46486         (sift_states_backward): Mark MCTX parameter as const.
46487         (build_sifted_states): Likewise.
46488         (update_cur_sifted_state): Likewise.
46489         (sift_states_mkref): Likewise.
46490         (check_arrival_expand_ecl): Mark eclosure as const.
46491         (check_dst_limits_calc_pos_1): Likewise.
46492         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46493         pointer.
46494
46495         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46496
46497         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46498         (transit_state_sb): Likewise.
46499         (transit_state_mb): Likewise.
46500         (sift_states_iter_mb): Likewise.
46501         (check_arrival_add_next_nodes): Likewise.
46502         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46503         [_LIBC] (re_search_2_stub): Use mempcpy.
46504
46505         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46506         mbrtowc for very simple UTF-8 case.
46507
46508         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46509         a pointer-to-const.
46510         (re_acquire_state_context): Likewise.
46511         * lib/regex_internal.h: Adjust prototypes.
46512
46513         * lib/regex.c: Prevent using C++ compilers.
46514
46515         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46516         (re_acquire_state_context): Likewise.
46517
46518 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46519
46520         * modules/regex (Depends-on): Add ssize_t.
46521
46522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46523
46524         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46525         translation table.
46526
46527 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46528
46529         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46530
46531 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46532             Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46535         <sys/types.h> and <inttypes.h>.
46536
46537 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46538
46539         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46540         `__error_t_defined', so argp.h will not typedef the former.
46541
46542 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46543
46544         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46545         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46546         glibc names.  Even if glibc is changed to conform to POSIX, the
46547         traditional names will be available anyway, since regex depends on
46548         the extensions module.  Also, fix a longstanding typo in the
46549         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46550         reported by Emanuele Giaquinta.  Also, change sense of cached
46551         variable, so that the message makes sense.
46552
46553 2006-03-24  Simon Josefsson  <jas@extundo.com>
46554
46555         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46556         including some doc fixes.
46557         (base64_encode_alloc): Fix +1 bug on allocation failures.
46558
46559 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46560
46561         * lib/base64.c (base64_encode): Do not read past end of array with
46562         unsanitized input on systems with CHAR_BIT > 8.
46563
46564 2006-03-24  Eric Blake  <ebb9@byu.net>
46565
46566         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46567
46568 2006-03-22  Karl Berry  <karl@gnu.org>
46569
46570         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46571         * config/srclistvars.sh (COREUTILS): new var.
46572
46573 2006-03-17  Jim Meyering  <jim@meyering.net>
46574
46575         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46576         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46577
46578 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46579
46580         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46581         no longer needs it.  Instead, check that regoff_t is as least
46582         as wide as ptrdiff_t.
46583
46584         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46585         so that our regex.h stays compatible with the installed regex.
46586         This is helpful for installers who configure --without-included-regex.
46587         Problem reported by Emanuele Giaquinta.
46588
46589 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46590
46591         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46592         Typedef to long int, not to off_, as POSIX will likely change
46593         in that direction.
46594
46595 2006-03-15  Eric Blake  <ebb9@byu.net>
46596
46597         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46598
46599 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46600
46601         * lib/argp-help.c (validate_uparams): Fix typo
46602         * lib/argp-parse.c (argp_default_options): Consistently begin help
46603         messages with a lowercase letter.
46604
46605 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46606
46607         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46608         overrun buffers and shouldn't be used (much as gets shouldn't be
46609         used).
46610         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46611
46612 2006-03-08  Simon Josefsson  <jas@extundo.com>
46613
46614         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46615         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46616
46617 2006-03-08  Simon Josefsson  <jas@extundo.com>
46618
46619         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46620         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46621
46622 2006-03-08  Simon Josefsson  <jas@extundo.com>
46623
46624         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46625         signal that configure disabled the device.
46626
46627 2006-03-08  Simon Josefsson  <jas@extundo.com>
46628
46629         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46630         languages.
46631
46632 2006-03-07  Simon Josefsson  <jas@extundo.com>
46633
46634         * modules/getopt (Depends-on): Add unistd.
46635
46636         * modules/unistd: New file.
46637
46638 2006-03-07  Simon Josefsson  <jas@extundo.com>
46639
46640         * modules/gc-random: New file.
46641
46642 2006-03-07  Simon Josefsson  <jas@extundo.com>
46643
46644         * m4/unistd_h.m4: New file.
46645
46646 2006-03-07  Simon Josefsson  <jas@extundo.com>
46647
46648         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46649         test to be side-effect free by storing the result in the cache
46650         variable gl_cv_lib_readline, and moving the assignment of
46651         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46652         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46653
46654 2006-03-07  Simon Josefsson  <jas@extundo.com>
46655
46656         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46657         error on missing devices (the functions will return an error).
46658
46659         * m4/gc.m4: Move random stuff to gc-random.m4
46660
46661 2006-03-07  Simon Josefsson  <jas@extundo.com>
46662
46663         * lib/unistd_.h: New file.
46664
46665 2006-03-07  Simon Josefsson  <jas@extundo.com>
46666
46667         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46668
46669 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46670
46671         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46672         Problem reported by Juan Manuel Guerrero.
46673
46674 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46675
46676         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46677         the unistd module.
46678         * lib/getlogin_r.c: Likewise.
46679         * lib/getlogin_r.h: Likewise.
46680         * lib/glob.c: Likewise.
46681         * lib/pagealign_alloc.c: Likewise.
46682         * lib/unistd_.h: Remove; no longer needed.
46683
46684 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46685
46686         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46687         Add unistd.
46688         * modules/c-stack (Depends-on): Add unistd.
46689         * modules/getlogin_r: Likewise.
46690         * modules/glob: Likewise.
46691         * modules/pagealign_alloc: Likewise.
46692         * modules/unistd (Files): Remove lib/unistd_.h.
46693         (EXTRA_DIST): Remove.
46694         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46695         need unistd_.h.
46696         (MOSTLYCLEANFILES): Remove unistd.h-t.
46697
46698 2006-03-03  Simon Josefsson  <jas@extundo.com>
46699
46700         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46701
46702 2006-03-03  Simon Josefsson  <jas@extundo.com>
46703
46704         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46705         libidn and bison.
46706
46707 2006-03-03  Simon Josefsson  <jas@extundo.com>
46708
46709         * build-aux/maint.mk: Add indent target.
46710
46711 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46712
46713         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46714         our replacement poll.h in any case, to avoid a differing
46715         declaration from a system header.  Seen on AIX.
46716
46717 2006-03-01  Simon Josefsson  <jas@extundo.com>
46718
46719         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46720         <kasal@ucw.cz>.
46721
46722 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * modules/gettime (Depends-on): Add extensions module.
46725         * modules/nanosleep (Depends-on): Likewise.
46726         * modules/settime (Depends-on): Likewise.
46727
46728 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46729
46730         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46731         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46732         pedantically.
46733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46734         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46735
46736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46737         not "==".  Reported by Ralf Wildenhues.
46738
46739 2006-03-01  Karl Berry  <karl@gnu.org>
46740
46741         * doc/Copyright/request-*: new files, synced from gnuorg.
46742
46743 2006-03-01  Karl Berry  <karl@gnu.org>
46744
46745         * config/srclist.txt (Copyright/*): new entries.
46746
46747 2006-02-28  Simon Josefsson  <jas@extundo.com>
46748
46749         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46750
46751 2006-02-27  Simon Josefsson  <jas@extundo.com>
46752
46753         * lib/base64.h: Indent #define's.  From Jim Meyering
46754         <jim@meyering.net>.
46755
46756 2006-02-27  Jim Meyering  <jim@meyering.net>
46757
46758         Revert the change of 2006-02-24, so these files can continue
46759         to be sync'd from gettext.
46760         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46761         of `config.h'.
46762
46763 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46764
46765         * modules/intprops: New file.
46766         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46767         Add intprops.
46768         * modules/getloadavg (Files): Remove lib/intprops.h.
46769         (Depends-on): Add intprops.
46770         * modules/human: Likewise.
46771         * modules/inttostr: Likewise.
46772         * modules/openat: Likewise.
46773         * modules/sig2str: Likewise.
46774         * modules/userspec: Likewise.
46775         * modules/utimecmp: Likewise.
46776         * modules/xnanosleep: Likewise.
46777         * modules/xstrtol: Likewise.
46778
46779 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46780
46781         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46782         * modules/lock-tests (TESTS): Use $(EXEEXT).
46783         * modules/tls-tests: Likewise.
46784         * modules/argp-tests: Likewise.
46785         (check_PROGRAMS): New var, replacing...
46786         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46787
46788 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46789
46790         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46791         `config.h'.
46792
46793 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46794
46795         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46796
46797 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46798
46799         Sync from coreutils.
46800         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46801         gl_CHDIR_SAFER.
46802
46803 2006-02-22  Jim Meyering  <jim@meyering.net>
46804
46805         Sync from coreutils.
46806         * m4/chdir-safer.m4: New file.
46807
46808 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46809
46810         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46811         AT_FDCWD exceeds INT_MAX.
46812         * lib/openat.h (AT_FDCWD): Likewise.
46813
46814 2006-02-17  Eric Blake  <address@hidden>
46815
46816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46817
46818 2006-02-16  Simon Josefsson  <jas@extundo.com>
46819
46820         * modules/getaddrinfo (Depends-on): Add sys_socket.
46821
46822 2006-02-15  Simon Josefsson  <jas@extundo.com>
46823
46824         * build-aux/maint.mk: Add dsyntax-check rule.
46825
46826 2006-02-15  Eric Blake  <ebb9@byu.net>
46827
46828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46829         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46830         'present but cannot compile' warnings on cygwin.
46831         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46832         use ws2tcpip.h if sys/socket.h works.
46833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46834         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46835
46836 2006-02-14  Simon Josefsson  <jas@extundo.com>
46837
46838         * modules/maintainer-makefile (Files): Rename.
46839
46840         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46841         and (the local) Makefile.cfg to maint-cfg.mk.
46842
46843         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46844         to the latter.
46845
46846         * modules/maintainer-makefile: New module.
46847
46848         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46849         severaly stripped to make it possible to build it up from scratch
46850         with reliable tests.
46851
46852         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46853         fixes to permit overriding the default actions when configure and
46854         makefile are not available.
46855
46856 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46857
46858         Sync from coreutils.
46859         * modules/lstat (Depends-on): Don't depend on xalloc.
46860         (License): Change from GPL to LGPL, since this is now simply a
46861         replacement for a libc function.
46862
46863 2006-02-14  Jim Meyering  <jim@meyering.net>
46864
46865         Sync from coreutils.
46866
46867         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46868         failure on deficient systems, and simplify gnulib lgpl dependencies.
46869         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46870         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46871
46872         * lib/xalloc-die.c: Remove unused definition of N_.
46873
46874 2006-02-14  Jim Meyering  <jim@meyering.net>
46875
46876         Sync from coreutils.
46877         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46878         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46879         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46880         double-quote uses of that variable, to accommodate the rare case in
46881         which getmntent is available in none of the libraries checked.  This
46882         happens at least on FreeBSD 5.0.
46883
46884 2006-02-13  Simon Josefsson  <jas@extundo.com>
46885
46886         * gnulib-tool (Usage): Fix --import, from
46887         karl@freefriends.org (Karl Berry).
46888
46889 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46890
46891         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46892
46893 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46894
46895         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46896         "autoupdate" on 2005-12-12.
46897
46898 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46899
46900         * modules/closeout (Depends-on): Remove atexit.
46901
46902 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46903
46904         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46905         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46906
46907 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46908
46909         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46910         __EXTENSIONS__ if this causes compilation to fail.  Problem
46911         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46912         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46913
46914 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46915
46916         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46917         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46919         All uses changed.
46920
46921 2006-01-26  Simon Josefsson  <jas@extundo.com>
46922
46923         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46924         prototype is visible on mingw32.
46925
46926         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46927         for mingw32.
46928
46929         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46930         mingw32).
46931
46932 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46933
46934         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46935         attempt to open for write; this always fails, at least on POSIX
46936         hosts.  This reinstates the 2006-01-09 change, which was
46937         inadvertently removed.
46938
46939 2006-01-26  Bruno Haible  <bruno@clisp.org>
46940
46941         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46942         Reported by Paul Eggert.
46943
46944 2006-01-26  Bruno Haible  <bruno@clisp.org>
46945             Paul Eggert  <eggert@cs.ucla.edu>
46946
46947         * lib/stdbool_.h (_Bool)
46948         [(! (defined __cplusplus || defined __BEOS__)
46949           && !defined __GNUC__
46950           && !(defined __HP_cc || defined __xlc__
46951                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46952                || defined __sgi))]:
46953         #define to signed char in these cases too; this simplifies
46954         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46955         etc., separately) and makes it more conservative.
46956
46957 2006-01-25  Simon Josefsson  <jas@extundo.com>
46958
46959         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46960         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46961         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46962
46963 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46964
46965         * lib/argp-namefrob.h: Bugfix. Remove stray #
46966
46967 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46968
46969         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46970         so that we test the test.
46971         Check for yet another HP-UX cc bug involving *bool |= bool.
46972
46973 2006-01-25  Karl Berry  <karl@gnu.org>
46974
46975         * config/srclist.txt (vasnprintf.c): sync lost.
46976
46977 2006-01-25  Jim Meyering  <jim@meyering.net>
46978
46979         Sync from the stable (b5) branch of coreutils:
46980
46981         * lib/fts.c (fts_children): Don't let close() clobber errno from
46982         failed fchdir().
46983
46984         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46985         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46986         a dangling symlink.  That can also happen at least for ELOOP.
46987         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46988         FYI, this bug predates the inclusion of fts.c in coreutils.
46989
46990         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46991         in their own block, so pre-c99 compilers don't object.
46992
46993         Avoid the double-free (first in fts_read, second in fts_close) that
46994         would occur when an `active' directory is made inaccessible (e.g.,
46995         via chmod a-x) during a traversal.
46996         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46997         before returning.  Reproduce this failure by
46998         mkdir -p a/b; cd a; chmod a-x . b
46999         Reported by Stavros Passas.
47000
47001 2006-01-25  Jim Meyering  <jim@meyering.net>
47002
47003         * lib/fileblocks.c: Remove more useless parentheses.
47004         * lib/readutmp.h: Likewise.
47005
47006 2006-01-25  Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47009         warnings.
47010         Reported by Paul Eggert.
47011
47012 2006-01-25  Bruno Haible  <bruno@clisp.org>
47013
47014         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47015         rid of a trap command. For Solaris sh.
47016         Reported by Mark D. Baushke <mdb@gnu.org>.
47017
47018 2006-01-24  Simon Josefsson  <jas@extundo.com>
47019
47020         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47021         Bruno.
47022
47023 2006-01-24  Karl Berry  <karl@gnu.org>
47024
47025         * config/srclist.txt (argp-namefrob.h): sync lost.
47026
47027 2006-01-24  Jim Meyering  <jim@meyering.net>
47028
47029         * modules/openat (Files): Add lib/intprops.h.
47030         From Mark D. Baushke.
47031
47032 2006-01-24  Jim Meyering  <jim@meyering.net>
47033
47034         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47035         Reported by Mark D. Baushke.
47036
47037 2006-01-24  Jim Meyering  <jim@meyering.net>
47038
47039         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47040
47041 2006-01-24  Bruno Haible  <bruno@clisp.org>
47042
47043         * modules/strnlen (Maintainer): Change from glibc to all.
47044
47045 2006-01-24  Bruno Haible  <bruno@clisp.org>
47046
47047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47048         Patch by Paul Eggert.
47049
47050 2006-01-24  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47053         already has it.
47054         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47055         2005-11-26.
47056
47057         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47058         'signed char' to avoid problems with the built-in _Bool type.
47059         Reported by Paul Eggert on 2005-11-26.
47060
47061 2006-01-24  Bruno Haible  <bruno@clisp.org>
47062
47063         * gnulib-tool (func_import): Avoid constructing complicated sed
47064         expressions inside backquote.
47065         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47066
47067 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47068
47069         These changes imported from libc.
47070         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47071         test and two separate function calls.
47072         * lib/strndup.c (__strndup): Add libc_hidden_def.
47073
47074 2006-01-23  Simon Josefsson  <jas@extundo.com>
47075
47076         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47077         Remove the test_*_SOURCES variable: automake infers it by default.
47078         * modules/tls-tests: Likewise.
47079
47080 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47081
47082         Work around porting bugs reported by Dieter in
47083         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47084         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47085         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47086         Include "getopt.h" first, to check interface.
47087         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47088         !HAVE_DECL_GETENV.
47089         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47090         (__strndup): Revert to K&R-style function dfns, the glibc style.
47091         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47092         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47093         Include strnlen.h first, to get prototype properly.
47094         (strnlen): Renamed from __strnlen.
47095         Remove weak alias.
47096
47097 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47098
47099         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47100
47101 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47102
47103         * config/srclist.txt: Adjust to reflect glibc reorganization.
47104         This affects only comments.
47105
47106 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47107
47108          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47109          Reported by Bruce Korb <bkorb@gnu.org>.
47110
47111 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47114         to pacify gcc -Wswitch-default.
47115
47116 2006-01-22  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47119         temporary buffer for sprintf, take into account the precision also
47120         for 'd', 'i', 'u', 'o', 'x', 'X'.
47121
47122 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47123
47124         * modules/argp-tests: New module
47125         * tests/test-argp.c: New file
47126         * tests/test-argp-2.sh: New file
47127
47128 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47129
47130         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47131         (__argp_base_name): Removed
47132         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47133         typo.
47134         (__argp_base_name): Provide macro definition or extern declaration
47135         depending on the configuration
47136
47137 2006-01-20  Simon Josefsson  <jas@extundo.com>
47138
47139         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47140
47141 2006-01-20  Simon Josefsson  <jas@extundo.com>
47142
47143         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47144
47145 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47146
47147         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47148         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47149         Suggested by Bruno Haible.
47150
47151 2006-01-20  Karl Berry  <karl@gnu.org>
47152
47153         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47154         until changes propagate, I guess.
47155
47156 2006-01-19  Simon Josefsson  <jas@extundo.com>
47157
47158         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47159
47160 2006-01-19  Simon Josefsson  <jas@extundo.com>
47161
47162         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47163
47164 2006-01-19  Simon Josefsson  <jas@extundo.com>
47165
47166         * gnulib-tool: Set check_PROGRAMS.
47167
47168         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47169         modules/des-tests, modules/gc-arcfour-tests,
47170         modules/gc-arctwo-tests, modules/gc-des-tests,
47171         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47172         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47173         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47174         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47175         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47176         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47177         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47178         test_*_SOURCES.
47179
47180 2006-01-18  Simon Josefsson  <jas@extundo.com>
47181
47182         * modules/socklen (Depends-on): Depend on sys_socket.
47183
47184 2006-01-18  Simon Josefsson  <jas@extundo.com>
47185
47186         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47187         modules/des-tests, modules/gc-arcfour-tests,
47188         modules/gc-arctwo-tests, modules/gc-des-tests,
47189         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47190         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47191         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47192         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47193         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47194         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47195         $(EXEEXT) to automake TESTS variable, for mingw32.
47196
47197 2006-01-17  Simon Josefsson  <jas@extundo.com>
47198
47199         * modules/socklen (Include): Need sys/socket.h.
47200
47201 2006-01-17  Bruno Haible  <bruno@clisp.org>
47202
47203         * modules/ssize_t (Include): Add <sys/types.h>.
47204
47205 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47206
47207         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47208         it's not portable and it doesn't work with cross-compiles.
47209         Problem reported by Bruno Haible.  Fix missing-$ typo in
47210         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47211         -zignore from being used with Sun's C compiler.
47212
47213 2006-01-12  Simon Josefsson  <jas@extundo.com>
47214
47215         * lib/base64.c: Fix warning, reported by Bruno Haible
47216         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47217
47218 2006-01-12  Bruno Haible  <bruno@clisp.org>
47219
47220         * modules/ldd: New file.
47221         * build-aux/ldd.sh.in: New file.
47222         * MODULES.html.sh (Support for building libraries and executables): Add
47223         ldd.
47224
47225 2006-01-12  Bruno Haible  <bruno@clisp.org>
47226
47227         * m4/ldd.m4: New file.
47228
47229 2006-01-12  Bruno Haible  <bruno@clisp.org>
47230
47231         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47232         endless loop while replacing $auxdir with build-aux.
47233
47234 2006-01-11  Simon Josefsson  <jas@extundo.com>
47235
47236         * lib/stdint_.h (SIZE_MAX): Add missing (.
47237
47238 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47239
47240         Sync from coreutils.
47241         * lib/md5.c: Fix commentary typos.
47242         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47243         * lib/md5.h (__attribute__): Remove; unused.
47244         * lib/sha1.c: Fix commentary to match md5 better.
47245         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47246         so that we don't need to worry about alignment.  All uses changed.
47247         This merges the 2005-10-28 md5 change into sha1.
47248
47249 2006-01-11  Jim Meyering  <jim@meyering.net>
47250
47251         Sync from coreutils.
47252         * lib/md5.c (OP): Fix spacing.
47253
47254 2006-01-11  Bruno Haible  <bruno@clisp.org>
47255
47256         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47257         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47258         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47259
47260 2006-01-11  Bruno Haible  <bruno@clisp.org>
47261
47262         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47263         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47264         the "early" section as well.
47265
47266 2006-01-11  Bruno Haible  <bruno@clisp.org>
47267
47268         Avoid "ar: no archive members specified" error on MacOS X.
47269         * gnulib-tool (func_modules_add_dummy): New function.
47270         (func_import, func_create_testdir): Invoke it.
47271
47272 2006-01-11  Bruno Haible  <bruno@clisp.org>
47273
47274         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47275         with $auxdir in AC_CONFIG_FILES statements.
47276
47277 2006-01-11  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47280         Initialize also noinst_HEADERS to empty.
47281
47282 2006-01-11  Bruno Haible  <bruno@clisp.org>
47283
47284         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47285         variables.
47286         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47287         autoreconf.
47288
47289 2006-01-11  Bruno Haible  <bruno@clisp.org>
47290
47291         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47292         overridable by the user.
47293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47294
47295 2006-01-10  Simon Josefsson  <jas@extundo.com>
47296
47297         * modules/sys_socket: New file.
47298
47299 2006-01-10  Simon Josefsson  <jas@extundo.com>
47300
47301         * m4/sys_socket_h.m4: New file.
47302
47303 2006-01-10  Simon Josefsson  <jas@extundo.com>
47304
47305         * lib/socket_.h: New file.
47306
47307 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47308
47309         * modules/readutmp (Maintainer): Add myself.
47310
47311 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47312
47313         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47314         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47315         People who are still concerned with buggy memcmp implementations
47316         can invoke gl_FUNC_MEMCMP themselves.
47317
47318 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * lib/regex_internal.h (BITSET_WORD_BITS):
47321         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47322         preprocessor mishandles large unsigned values as if they were signed.
47323         Problem reported by Claudio Fontana in
47324         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47325
47326 2006-01-10  Jim Meyering  <jim@meyering.net>
47327
47328         Avoid the double-free (first in fts_read, second in fts_close) that
47329         would occur when an `active' directory is made inaccessible (e.g.,
47330         via chmod a-x) during a traversal.
47331         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47332         before returning.  Reproduce this failure by
47333         mkdir -p a/b; cd a; chmod a-x . b
47334         Reported by Stavros Passas.
47335
47336         Sync from coreutils.
47337         * lib/sha1.c: Tweak grammar in a comment.
47338
47339 2006-01-10  Jim Meyering  <jim@meyering.net>
47340
47341         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47342         Patch by Joerg Sonnenberger.
47343
47344 2006-01-10  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/readutmp: Depend on module free.
47347         * modules/strtok_r: Depend on module restrict.
47348
47349 2006-01-10  Bruno Haible  <bruno@clisp.org>
47350
47351         * modules/gettext (configure.ac): Add an invocation of
47352         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47353
47354 2006-01-10  Bruno Haible  <bruno@clisp.org>
47355
47356         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47357         Reported by Werner Lemberg <wl@gnu.org>.
47358
47359 2006-01-10  Bruno Haible  <bruno@clisp.org>
47360
47361         * lib/localcharset.c: Update from GNU gettext.
47362
47363 2006-01-10  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/argp.h (__const): Remove macro. Use const instead.
47366         * lib/argp-fmtstream.h (__const): Likewise.
47367         * lib/glob_.h (__const): Remove macro.
47368         * lib/glob-libc.h: Use const instead of __const.
47369
47370 2006-01-10  Bruno Haible  <bruno@clisp.org>
47371
47372         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47373         variable.
47374         Needed to avoid an automake error regarding the 'gettext' module.
47375
47376 2006-01-09  Simon Josefsson  <jas@extundo.com>
47377
47378         * modules/inet_ntop (Depends-on): Add restrict.
47379
47380 2006-01-09  Simon Josefsson  <jas@extundo.com>
47381
47382         * modules/gc-rijndael-tests (License): Put under LGPL.
47383
47384         * modules/gc-des-tests (License): Likewise.
47385
47386         * modules/gc-arcfour-tests (License): Likewise.
47387
47388         * modules/gc-arctwo-tests (License): Likewise.
47389
47390         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47391
47392         * modules/gc-hmac-sha1-tests (Files): Likewise.
47393
47394         * modules/gc-hmac-md5-tests (License): Likewise.
47395
47396         * modules/gc-sha1-tests (License): Likewise.
47397
47398         * modules/gc-md5-tests (License): Likewise.
47399
47400         * modules/gc-md4-tests (License): Likewise.
47401
47402         * modules/gc-md2-tests (License): Likewise.
47403
47404         * modules/gc-tests (License): Likewise.
47405
47406         * modules/des-tests (License): Likewise.
47407
47408         * modules/md4-tests (License): Likewise.
47409
47410         * modules/md2-tests (License): Likewise.
47411
47412 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47413
47414         Sync from coreutils:
47415
47416         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47417         * modules/lib-ignore: New file.
47418         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47419         chdir-safer.m4, lchmod.m4.
47420         * modules/openat: Add mkdirat.c, openat-priv.h.
47421
47422 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         Sync from coreutils.
47425         * m4/lib-ignore.m4: New file.
47426         * m4/lchmod.m4: New file.
47427
47428 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47429
47430         Sync from coreutils.
47431         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47432         for write access: POSIX says that must fail.
47433         * lib/fts.c (diropen): Likewise.
47434         * lib/save-cwd.c (save_cwd): Likewise.
47435         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47436         well, for minor improvements on hosts that lack O_DIRECTORY.
47437         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47438         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47439         Fall back on chown if open failed with EACCES.
47440
47441         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47442         Report an error at compile-time if only a 1-second nominal clock
47443         resolution is found.
47444
47445         * lib/lchmod.h: New file.
47446         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47447         (make_dir_parents): Use lchown rather than chown, and
47448         lchmod rather than chmod.
47449
47450         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47451         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47452         "proc" reported by n0dalus.
47453
47454         * lib/mountlist.c: Include <limits.h>.
47455         (dev_from_mount_options)
47456         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47457         New function.  It no longer assumes "dev=" has the System V meaning
47458         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47459         (read_file_system_list)
47460         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47461         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47462         dev= in that case.
47463
47464         * lib/posixtm.h (PDS_PRE_2000): New macro.
47465         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47466         allow_century.  All usages changed.  Reject dates outside the range
47467         1969-1999 if PDS_PRE_2000 is used.
47468
47469 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         Sync from coreutils.
47472         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47473         (Time of day items): Mention the possibility of leap seconds.
47474         Problem reported by Dr. David Alan Gilbert.
47475
47476 2006-01-09  Jim Meyering  <jim@meyering.net>
47477
47478         Sync from coreutils.
47479
47480         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47481
47482         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47483
47484         * lib/modechange.c (mode_compile): Reject an invalid mode string
47485         that starts with an octal digit.  From Andreas Gruenbacher.
47486
47487         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47488         and dup to open_safer and dup_safer, respectively.
47489         (openat_permissive): Fix typo in comment.
47490
47491         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47492         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47493         (_): Remove; no longer needed.
47494         (openat): Renamed from rpl_openat; no need for rpl_openat
47495         since openat.h renames openat for us.
47496         Replace most of the body with a call to openat_permissive,
47497         to avoid duplicate code.
47498         Port to (probably hypothetical) environments were mode_t is
47499         wider than int.
47500         (openat_permissive): Require mode arg, so that we can check
47501         types better.  Put it just after flags.  Change cwd failure
47502         indicator from pointer-to-bool to pointer-to-errno-value.
47503         All callers changed.
47504         Invoke openat_save_fail and/or openat_restore_fail if
47505         cwd_errno is null, so that openat can call us.
47506         (openat_permissive, fdopendir, fstatat, unlinkat):
47507         Simplify errno handling to avoid some duplicate code,
47508         as it's OK to set errno on success.
47509         * lib/openat.h: Revamp code so that function macros depend on
47510         __OPENAT_PREFIX only, not also on AT_FDCWD.
47511         (openat_ro): Remove.  Caller changed to use openat_permissive.
47512         (openat_permissive): Now a macro, if not a function.
47513         (openat_restore_fail, openat_save_fail): Now always functions,
47514         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47515
47516         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47517         and openat.c.
47518         * lib/mkdirat.c: Include openat-priv.h.
47519         Remove definitions of macros defined therein.
47520         * lib/openat.c: Likewise.
47521
47522         * lib/mkdirat.c (mkdirat): New file and function.
47523         * lib/openat.h (mkdirat): Declare.
47524
47525         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47526
47527         * lib/openat.h (openat_permissive): Declare.
47528         (openat_ro): Define.
47529
47530         * lib/openat.c (EXPECTED_ERRNO): New macro.
47531         (openat_permissive): New function -- used in remove.c rewrite.
47532         (all functions): Set errno just before returning, only if there
47533         was an actual failure.
47534         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47535
47536         Emulate openat-family functions using Linux's procfs, if possible.
47537         Idea and some code based on Ulrich Drepper's glibc changes.
47538
47539         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47540         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47541         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47542         before falling back on save_cwd and restore_cwd.
47543         (fdopendir, fstatat, unlinkat): Likewise.
47544
47545         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47546         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47547
47548         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47549         as second argument to va_arg.  Otherwise, some versions of gcc
47550         warn that `if this code is reached, the program will abort'.
47551
47552 2006-01-09  Jim Meyering  <jim@meyering.net>
47553
47554         Sync from coreutils.
47555         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47556         Require openat-priv.h.
47557
47558 2006-01-09  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/strnlen (Include): Use strnlen.h.
47561
47562 2006-01-09  Bruno Haible  <bruno@clisp.org>
47563
47564         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47565
47566 2006-01-09  Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/sysexit_.h (EX_OK): New macro.
47569         Suggested by Martin Lambers <marlam@marlam.de>.
47570
47571 2006-01-09  Bruno Haible  <bruno@clisp.org>
47572
47573         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47574         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47575
47576 2006-01-09  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47579         numbers.
47580
47581 2006-01-09  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47584         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47585         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47586         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47587
47588 2006-01-09  Bruno Haible  <bruno@clisp.org>
47589
47590         * build-aux/javacomp.sh.in: New file, moved from lib/.
47591         * modules/javacomp-script (Files): Update.
47592         (configure.ac): Add AC_CONFIG_FILES invocation.
47593         (EXTRA_DIST): Remove variable.
47594
47595         * build-aux/javaexec.sh.in: New file, moved from lib/.
47596         * modules/javaexec (Files): Update.
47597         (configure.ac): Add AC_CONFIG_FILES invocation.
47598         (EXTRA_DIST): Remove javaexec.sh.in.
47599
47600         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47601         * modules/csharpcomp-script (Files): Update.
47602         (configure.ac): Add AC_CONFIG_FILES invocation.
47603         (EXTRA_DIST): Remove variable.
47604
47605         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47606         * modules/csharpexec (Files): Update.
47607         (configure.ac): Add AC_CONFIG_FILES invocation.
47608         (EXTRA_DIST): Remove csharpexec.sh.in.
47609
47610 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47611
47612         Sync from coreutils.
47613
47614         Add POSIX ACL support
47615         * lib/acl.h (copy_acl, set_acl): Add declarations.
47616         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47617         systems other than Linux.
47618         (chmod_or_fchmod): New function: use fchmod when possible,
47619         and chmod otherwise.
47620         (file_has_acl): Add a POSIX ACL implementation, with a
47621         Linux-specific subcase.
47622         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47623         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47624         acls are unsupported.
47625         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47626         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47627         are unsupported.
47628
47629 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47630
47631         Sync from coreutils.
47632         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47633
47634 2006-01-07  Bruno Haible  <bruno@clisp.org>
47635
47636         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47637         gl_EARLY.
47638
47639 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47640
47641         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47642         Problem reported for Mingw by Mark Junker.
47643
47644 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47645
47646         * README: Gnulib normally doesn't generate a tarball.
47647
47648 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47649
47650         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47651         long int, not int, for nanosecond counts, so that people who are
47652         used to POSIX struct timespec won't be surprised.  Reported by Jim
47653         Meyering.
47654
47655 2005-12-28  Bruno Haible  <bruno@clisp.org>
47656
47657         * build-aux/config.rpath: Update from GNU gettext.
47658
47659 2005-12-16  Jim Meyering  <jim@meyering.net>
47660
47661         * modules/fprintftime: New module.
47662         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47663
47664 2005-12-16  Jim Meyering  <jim@meyering.net>
47665
47666         * m4/fprintftime.m4: New file.
47667
47668 2005-12-16  Jim Meyering  <jim@meyering.net>
47669
47670         * lib/fprintftime.c, lib/fprintftime.h: New files.
47671
47672 2005-12-15  Simon Josefsson  <jas@extundo.com>
47673
47674         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47675         new m4/socklen.m4.
47676
47677 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47678
47679         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47680         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47681
47682 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47683
47684         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47685         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47686         struct uparams is valid. Fall back to the default values if it is
47687         not.
47688
47689 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47690
47691         * modules/argp (Files): Add argp-pin.c
47692         (Depends-on): dirname
47693         (lib_SOURCES): Add argp-pin.c
47694
47695 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47696
47697         * m4/argp.m4:  Check if program_invocation_name and
47698         program_invocation_short_name are declared and define appropriate
47699         macros if they are not.
47700
47701 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47702
47703         * lib/argp-help.c (__argp_base_name): New function
47704         (__argp_short_program_name): Rewrite using __argp_base_name
47705         * lib/argp-namefrob.h: Define program_invocation_name and
47706         program_invocation_short_name if requested
47707         (__argp_base_name): Add prototype
47708         * lib/argp-parse.c (argp_def): Use gettext wrappers
47709         (argp_default_parser): Use __argp_base_name
47710         * lib/argp-pin.c: New file. Defines program_invocation_name and
47711         program_invocation_short_name on systems that lack them.
47712
47713 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47716         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47717         porting problem reported by Georg Schwarz in
47718         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47719
47720 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47721
47722         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47723         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47724         porting problem reported by Georg Schwarz in
47725         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47726
47727 2005-12-05  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47730         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47731         Reported by Mark Junker <mjscod@gmx.de>.
47732
47733 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47734
47735         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47736         Use implementation from Albert Chin, with some
47737         comments/corrections by Stepan Kasal and myself.
47738
47739 2005-12-02  Bruno Haible  <bruno@clisp.org>
47740
47741         * gnulib-tool (func_import): Accept GPLed build tool modules when
47742         --lgpl is given.
47743         * modules/csharpcomp-script: New file.
47744         * modules/csharpcomp: Depend on it.
47745         * modules/javacomp-script: New file.
47746         * modules/javacomp: Depend on it.
47747         Suggested by Simon Josefsson.
47748
47749 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47750
47751         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47752         statement, to work around an HP-UX 10.20 compiler bug reported by
47753         Peter O'Gorman.
47754
47755 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47756
47757         * modules/savedir (Depends-on): Add openat.
47758
47759 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47760
47761         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47762         (uintmax_t) [defined uintmax_t]: Do not declare.
47763         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47764         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47765         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47766         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47767         sake of portability to weird hosts that C allows (though we don't
47768         know of any practical examples).
47769
47770         * lib/savedir.h (fdsavedir): New decl.
47771         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47772         contains most of the former guts of savedir.
47773         (savedir): Use savedirstream.
47774         Include "openat.h".
47775
47776 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47777
47778         * modules/obstack (Files): Add m4/ulonglong.m4.
47779         Problem reported by Davide Angelocola.
47780
47781 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47782
47783         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47784         coreutils no longer futzes with rounding modes.
47785
47786 2005-11-14  Jim Meyering  <jim@meyering.net>
47787
47788         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47789         replacement of mkstemp.
47790
47791 2005-11-10  Simon Josefsson  <jas@extundo.com>
47792
47793         * lib/readline.c: Remove EOL.
47794
47795 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47796
47797         * modules/gethrxtime (Depends-on): Add gettime.
47798
47799 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47802         or gettimeofday; no longer needed.
47803
47804 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47805
47806         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47807         time business.
47808         (gethrxtime) [! (HAVE_NANOUPTIME
47809         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47810         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47811         our own approximation.
47812
47813 2005-11-08  Eric Blake  <ebb9@byu.net>
47814
47815         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47816
47817 2005-11-08  Eric Blake  <ebb9@byu.net>
47818
47819         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47820
47821 2005-11-04  Bruno Haible  <bruno@clisp.org>
47822
47823         * gnulib-tool: Implement --update mode.
47824
47825 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47826
47827         Fix porting problem reported by Theodoros V. Kalamatianos.
47828         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47829         Don't assume that futimes failing means we must fail.
47830
47831 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47832
47833         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47834         variables to suggest the intended function of the PATH_MAX check.
47835
47836 2005-10-30  Kean Johnston  <jkj@sco.com>
47837
47838         Trivial changes to support SCO systems.
47839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47840         as PATH_MAX.
47841         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47842         where __ptr is null when no I/O is pending.
47843
47844 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47847         leave errno alone.  Problem reported by Dmitry V. Levin.
47848
47849 2005-10-28  Simon Josefsson  <jas@extundo.com>
47850
47851         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47852         Test more.
47853
47854         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47855
47856         * modules/md2, modules/md2-tests: New files.
47857
47858 2005-10-28  Simon Josefsson  <jas@extundo.com>
47859
47860         * m4/inet_ntop.m4: More tests.
47861
47862         * m4/gc-md2.m4, md2.m4: New file.
47863
47864 2005-10-28  Simon Josefsson  <jas@extundo.com>
47865
47866         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47867         "restrict" keywords, as per POSIX.  Protect the function
47868         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47869         Don't use K&R prototypes.  Check the sprintf return values.
47870         Re-define EAFNOSUPPORT if not present.  Indent.
47871
47872         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47873         suggested by Bruno Haible <bruno@clisp.org>.
47874
47875         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47876
47877         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47878
47879         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47880         libgcrypt).
47881
47882         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47883
47884         * lib/md2.h, lib/md2.c: New files.
47885
47886 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47889         errno alone.  Problem reported by Frederic Jolliton.
47890
47891 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47892
47893         * modules/verify (License): Change from GPL to LGPL.  This is a
47894         tiny module and there are apparently near-equivalents that are
47895         under the BSD license.
47896
47897 2005-10-24  Simon Josefsson  <jas@extundo.com>
47898
47899         * modules/sha1: Relicense to LGPL.
47900
47901 2005-10-24  Simon Josefsson  <jas@extundo.com>
47902
47903         * lib/md4.h: Shrink buffer size, now that we changed the type.
47904
47905 2005-10-23  Simon Josefsson  <jas@extundo.com>
47906
47907         * gnulib-tool (func_import): Fix --tests-base.
47908
47909 2005-10-22  Simon Josefsson  <jas@extundo.com>
47910
47911         * modules/arcfour (Depends-on): Need stdint.
47912
47913 2005-10-22  Simon Josefsson  <jas@extundo.com>
47914
47915         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47916         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47917
47918 2005-10-22  Simon Josefsson  <jas@extundo.com>
47919
47920         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47921         suggested by Bruno Haible <bruno@clisp.org>.
47922
47923 2005-10-22  Simon Josefsson  <jas@extundo.com>
47924
47925         * lib/crc.h: Include stddef.h, for size_t.
47926
47927 2005-10-22  Simon Josefsson  <jas@extundo.com>
47928
47929         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47930         arcfour_context struct (simplify test vector testing in GNU
47931         Shishi).
47932
47933 2005-10-21  Simon Josefsson  <jas@extundo.com>
47934
47935         * modules/des, modules/des-tests: New files.
47936
47937         * modules/gc-des, modules/gc-des-tests: New files.
47938
47939         * tests/test-des.c, tests/test-gc-des.c: New file.
47940
47941 2005-10-21  Simon Josefsson  <jas@extundo.com>
47942
47943         * modules/arctwo, modules/arctwo-tests: New files.
47944
47945         * tests/test-arctwo.c: New file.
47946
47947         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47948
47949         * tests/test-gc-arctwo.c: New file.
47950
47951 2005-10-21  Simon Josefsson  <jas@extundo.com>
47952
47953         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47954         Bruno Haible <bruno@clisp.org>.
47955
47956         * m4/gc-des.m4: New file.
47957
47958 2005-10-21  Simon Josefsson  <jas@extundo.com>
47959
47960         * m4/arctwo.m4: New file.
47961
47962         * m4/gc-arctwo.m4: New file.
47963
47964 2005-10-21  Simon Josefsson  <jas@extundo.com>
47965
47966         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47967         block.
47968
47969 2005-10-21  Simon Josefsson  <jas@extundo.com>
47970
47971         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47972         <bruno@clisp.org>.
47973
47974         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47975
47976         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47977         Bruno Haible <bruno@clisp.org>.
47978
47979         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47980         <bruno@clisp.org>.
47981
47982 2005-10-21  Simon Josefsson  <jas@extundo.com>
47983
47984         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47985
47986 2005-10-21  Simon Josefsson  <jas@extundo.com>
47987
47988         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47989
47990 2005-10-21  Simon Josefsson  <jas@extundo.com>
47991
47992         * lib/des.h, lib/des.c: New files.
47993
47994         * lib/gc-gnulib.c: Support DES.c
47995
47996 2005-10-21  Simon Josefsson  <jas@extundo.com>
47997
47998         * lib/arctwo.h, lib/arctwo.c: New files.
47999
48000         * lib/gc-gnulib.c: Support ARCTWO.
48001
48002 2005-10-21  Simon Josefsson  <jas@extundo.com>
48003
48004         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48005         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48006
48007 2005-10-21  Simon Josefsson  <jas@extundo.com>
48008
48009         * gnulib-tool (func_import, func_create_testdir): Define automake
48010         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48011         Makefile.am snippet),
48012         suggested by Bruno Haible <bruno@clisp.org>.
48013
48014         * modules/gc (Makefile.am): Use it.
48015
48016 2005-10-21  Bruno Haible  <bruno@clisp.org>
48017
48018         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48019         patch.
48020
48021 2005-10-19  Simon Josefsson  <jas@extundo.com>
48022
48023         * tests/test-gc-rijndael.c: New file.
48024
48025         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48026
48027 2005-10-19  Simon Josefsson  <jas@extundo.com>
48028
48029         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48030         interface too.
48031
48032 2005-10-19  Simon Josefsson  <jas@extundo.com>
48033
48034         * tests/test-gc-arcfour.c: New file.
48035
48036         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48037
48038 2005-10-19  Simon Josefsson  <jas@extundo.com>
48039
48040         * modules/gc-md4, modules/gc-md4-tests: New file.
48041
48042         * tests/test-gc-md4.c: New file.
48043
48044 2005-10-19  Simon Josefsson  <jas@extundo.com>
48045
48046         * m4/gc-md4.m4: New file.
48047
48048 2005-10-19  Simon Josefsson  <jas@extundo.com>
48049
48050         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48051         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48052         <kasal@ucw.cz>.
48053
48054 2005-10-19  Simon Josefsson  <jas@extundo.com>
48055
48056         * m4/gc-arcfour.m4: New file.
48057
48058         * m4/gc-rijndael.m4: New file.
48059
48060 2005-10-19  Simon Josefsson  <jas@extundo.com>
48061
48062         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48063
48064 2005-10-19  Simon Josefsson  <jas@extundo.com>
48065
48066         * lib/gc-gnulib.c: Support ARCFOUR.
48067
48068 2005-10-19  Simon Josefsson  <jas@extundo.com>
48069
48070         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48071         support.
48072
48073         * lib/gc.h: Add ECB enum type.
48074
48075         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48076
48077 2005-10-18  Simon Josefsson  <jas@extundo.com>
48078
48079         * tests/test-md5.c: New file.
48080
48081         * modules/md5-tests: New file.
48082
48083 2005-10-18  Simon Josefsson  <jas@extundo.com>
48084
48085         * tests/test-md4.c: New file.
48086
48087         * modules/md4, modules/md4-tests: New files.
48088
48089 2005-10-18  Simon Josefsson  <jas@extundo.com>
48090
48091         * m4/md4.m4: New file.
48092
48093 2005-10-18  Simon Josefsson  <jas@extundo.com>
48094
48095         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48096
48097 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48098
48099         * gnulib-tool (func_create_testdir): Omit the second check whether
48100         BUILT_SOURCES in nonempty.
48101
48102 2005-10-17  Simon Josefsson  <jas@extundo.com>
48103
48104         * tests/test-rijndael.c: New file.
48105
48106 2005-10-17  Simon Josefsson  <jas@extundo.com>
48107
48108         * modules/sha1: Depend on stdint instead of md5.
48109
48110         * modules/md5: Depend on stdint, remove uint32_t.
48111
48112 2005-10-17  Simon Josefsson  <jas@extundo.com>
48113
48114         * modules/gc-sha1-tests: New file.
48115
48116         * tests/test-gc-sha1.c: New file.
48117
48118 2005-10-17  Simon Josefsson  <jas@extundo.com>
48119
48120         * m4/md5.m4: Remove call to uint32_t.m4.
48121
48122 2005-10-17  Simon Josefsson  <jas@extundo.com>
48123
48124         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48125
48126         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48127         md5.h.
48128
48129         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48130
48131         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48132
48133 2005-10-17  Simon Josefsson  <jas@extundo.com>
48134
48135         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48136
48137 2005-10-17  Simon Josefsson  <jas@extundo.com>
48138
48139         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48140
48141 2005-10-17  Simon Josefsson  <jas@extundo.com>
48142
48143         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48144
48145         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48146
48147 2005-10-17  Bruno Haible  <bruno@clisp.org>
48148
48149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48150         that it can also be used in a test.
48151
48152 2005-10-16  Bruno Haible  <bruno@clisp.org>
48153
48154         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48155         TESTS_ENVIRONMENT, so that individual tests can augment it.
48156
48157         * gnulib-tool (func_create_testdir): Use an intermediate target for
48158         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48159         macros, like $(ALLOCA_H), which cannot be passed through the command
48160         line.
48161
48162 2005-10-15  Simon Josefsson  <jas@extundo.com>
48163
48164         * modules/rijndael-tests: New file.
48165
48166         * modules/rijndael: New file.
48167
48168 2005-10-15  Simon Josefsson  <jas@extundo.com>
48169
48170         * m4/rijndael.m4: New file.
48171
48172 2005-10-15  Simon Josefsson  <jas@extundo.com>
48173
48174         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48175
48176         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48177
48178 2005-10-14  Simon Josefsson  <jas@extundo.com>
48179
48180         * tests/test-arcfour.c: New file.
48181
48182         * modules/arcfour, modules/arcfour-tests: New files.
48183
48184 2005-10-14  Simon Josefsson  <jas@extundo.com>
48185
48186         * m4/arcfour.m4: New file.
48187
48188 2005-10-14  Simon Josefsson  <jas@extundo.com>
48189
48190         * lib/arcfour.h, lib/arcfour.c: New files.
48191
48192 2005-10-14  Roland McGrath  <roland@redhat.com>
48193
48194         Import from libc.  [BZ #1331]
48195         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48196         macro argument.
48197         Reported by Matej Vela <vela@debian.org>.
48198
48199 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48200
48201         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48202         include <wchar.h>; no longer needed.
48203
48204 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48207
48208 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48209         and  Ulrich Drepper  <drepper@redhat.com>
48210
48211         Import from libc.
48212         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48213         instead of inline stream orientation test and two separate
48214         function calls.  Pay no attention to USE_IN_LIBIO.
48215
48216 2005-10-13  Simon Josefsson  <jas@extundo.com>
48217
48218         * modules/gc-hmac-md5-tests: New file.
48219
48220         * tests/test-gc-hmac-sha1.c: New file.
48221
48222         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48223
48224         * modules/gc-hmac-md5-tests: New file.
48225
48226         * tests/test-gc-md5.c: New file.
48227
48228         * modules/gc-md5-tests: New file.
48229
48230 2005-10-13  Simon Josefsson  <jas@extundo.com>
48231
48232         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48233         Move memory allocation outside of loop.
48234
48235 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48238         intermediate directory is in a read-only file system.  Problem
48239         reported by Eric Blake.
48240
48241 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48242
48243         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48244
48245 2005-10-12  Simon Josefsson  <jas@extundo.com>
48246
48247         * tests/test-hmac-sha1.c: New file.
48248
48249         * modules/hmac-sha1-tests: New file.
48250
48251         * modules/hmac-sha1: New file.
48252
48253 2005-10-12  Simon Josefsson  <jas@extundo.com>
48254
48255         * modules/gc-sha1: New file.
48256
48257 2005-10-12  Simon Josefsson  <jas@extundo.com>
48258
48259         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48260
48261         * tests/test-gc-pbkdf2-sha1.c: New file.
48262
48263 2005-10-12  Simon Josefsson  <jas@extundo.com>
48264
48265         * modules/gc-md5, modules/gc-hmac-md5: New files.
48266
48267         * modules/gc (Files): Remove md5, memxor and hmac files.
48268
48269 2005-10-12  Simon Josefsson  <jas@extundo.com>
48270
48271         * m4/gc-pbkdf2-sha1.m4: New file.
48272
48273         * m4/gc-hmac-sha1.m4: New file.
48274
48275         * m4/gc-sha1: New file.
48276
48277         * m4/hmac-sha1.m4: New file.
48278
48279 2005-10-12  Simon Josefsson  <jas@extundo.com>
48280
48281         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48282
48283         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48284
48285 2005-10-12  Simon Josefsson  <jas@extundo.com>
48286
48287         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48288         suggested by Bruno Haible <bruno@clisp.org>.
48289
48290 2005-10-12  Simon Josefsson  <jas@extundo.com>
48291
48292         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48293
48294 2005-10-12  Simon Josefsson  <jas@extundo.com>
48295
48296         * lib/gc-pbkdf2-sha1.c: New file.
48297
48298         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48299
48300 2005-10-12  Simon Josefsson  <jas@extundo.com>
48301
48302         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48303
48304         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48305
48306 2005-10-12  Simon Josefsson  <jas@extundo.com>
48307
48308         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48309         GC_USE_HMAC_MD5, respectively.
48310
48311         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48312         (gc_md5): Fix typo.
48313
48314         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48315
48316         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48317
48318         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48319
48320 2005-10-12  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48323         Reported by Stepan Kasal <kasal@ucw.cz>.
48324
48325 2005-10-11  Simon Josefsson  <jas@extundo.com>
48326
48327         * tests/test-crc.c: New file.
48328
48329         * modules/crc, modules/crc-tests: New files.
48330
48331 2005-10-11  Simon Josefsson  <jas@extundo.com>
48332
48333         * m4/crc.m4: New file.
48334
48335 2005-10-11  Simon Josefsson  <jas@extundo.com>
48336
48337         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48338
48339         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48340
48341         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48342
48343 2005-10-11  Simon Josefsson  <jas@extundo.com>
48344
48345         * lib/crc.h, lib/crc.c: New files.
48346
48347         * lib/gc.h (gc_hash_buffer): Add doc.
48348
48349 2005-10-11  Bruno Haible  <bruno@clisp.org>
48350
48351         * modules/c-strcasestr: New file.
48352         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48353
48354 2005-10-11  Bruno Haible  <bruno@clisp.org>
48355
48356         * modules/c-strcase: New file.
48357         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48358
48359 2005-10-11  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/strcasecmp.c: Include limits.h.
48362         (strcasecmp): Avoid integer overflow on exotic platforms.
48363         * lib/strncasecmp.c: Include limits.h.
48364         (strncasecmp): Avoid integer overflow on exotic platforms.
48365         Reported by Paul Eggert.
48366
48367 2005-10-11  Bruno Haible  <bruno@clisp.org>
48368
48369         * lib/c-strcasestr.h: New file, from GNU gettext.
48370         * lib/c-strcasestr.c: New file, from GNU gettext.
48371
48372 2005-10-11  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/c-strcase.h: New file, from GNU gettext.
48375         * lib/c-strcasecmp.c: New file, from GNU gettext.
48376         * lib/c-strncasecmp.c: New file, from GNU gettext.
48377
48378 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * modules/mempcpy (License): GPL -> LGPL.
48381         * modules/strchrnul (License): Likewise.
48382         * modules/sysexits (License): Likewise.
48383
48384 2005-10-08  Simon Josefsson  <jas@extundo.com>
48385
48386         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48387
48388 2005-10-07  Simon Josefsson  <jas@extundo.com>
48389
48390         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48391
48392 2005-10-06  Simon Josefsson  <jas@extundo.com>
48393
48394         * tests/test-hmac-md5.c: New file.
48395
48396         * modules/hmac-md5-tests: New file.
48397
48398         * modules/hmac-md5: New file.
48399
48400 2005-10-06  Simon Josefsson  <jas@extundo.com>
48401
48402         * m4/hmac-md5.m4: New file.
48403
48404         * m4/memxor.m4: Require gl_C_RESTRICT.
48405
48406 2005-10-06  Simon Josefsson  <jas@extundo.com>
48407
48408         * lib/memxor.c (memxor): Avoid casts and warnings.
48409
48410 2005-10-06  Simon Josefsson  <jas@extundo.com>
48411
48412         * lib/hmac-md5.c: New file.
48413
48414         * lib/hmac.h: New file.
48415
48416 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48417
48418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48419         promotes to int, not unsigned int, to catch the AIX 5.3
48420         compiler bug.
48421
48422 2005-10-05  Simon Josefsson  <jas@extundo.com>
48423
48424         * modules/memxor: New file.
48425
48426         * modules/iconv (Files): Move config.rpath to havelib, it is used
48427         there.
48428
48429         * modules/havelib (Files): Add config.rpath.
48430
48431 2005-10-05  Simon Josefsson  <jas@extundo.com>
48432
48433         * m4/memxor.m4: New file.
48434
48435 2005-10-05  Simon Josefsson  <jas@extundo.com>
48436
48437         * lib/memxor.c (memxor): Fix compiler error.
48438
48439         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48440         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48441
48442         * lib/memxor.h, lib/memxor.c: New files.
48443
48444         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48445         we assume all systems have it, suggested by Jim Meyering
48446         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48447         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48448         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48449         same reasons.
48450
48451 2005-10-05  Simon Josefsson  <jas@extundo.com>
48452
48453         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48454
48455 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48456
48457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48458         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48459         needed, since the source code now assumes these .h files.
48460
48461 2005-10-05  Derek Price  <derek@ximbiot.com>
48462
48463         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48464
48465 2005-10-05  Bruno Haible  <bruno@clisp.org>
48466
48467         * modules/stdint (License): Change to LGPL.
48468
48469 2005-10-04  Simon Josefsson  <jas@extundo.com>
48470
48471         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48472         D. Baushke" <mdb@gnu.org>.
48473
48474 2005-10-04  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/verify.h (verify_true): Provide alternative definition for C++.
48477
48478 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48479
48480         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48481         (SSIZE_MAX): New macro, if not already defined.
48482         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48483         than 2 GiB.
48484
48485 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48486
48487         Sync from coreutils.
48488         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48489         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48490         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48491         ULLONG_MAX doesn't work with 2.7.2.1.
48492
48493 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48496         From Ben Pfaff.
48497
48498         * modules/exclude (Depends-on): Depend on verify.
48499         * modules/strtoimax (Depends-on): Likewise.
48500         * modules/utimecmp (Depends-on): Likewise.
48501
48502 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48503
48504         * lib/exclude.c: Include verify.h.
48505         (verify): Remove.  All callers changed to use verify.h's version.
48506         * lib/strtoimax.c: Likewise.
48507         * lib/utimecmp.c: Likewis.e
48508
48509         Sync from coreutils.
48510         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48511         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48512         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48513         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48514         bother returning ENOSYS if settimeofday or stime fails; just let
48515         them return whatever errno they want to return.
48516         * lib/utimens.c: Include unistd.h, for dup2.
48517         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48518         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48519
48520 2005-10-02  Jim Meyering  <jim@meyering.net>
48521
48522         Sync from coreutils.
48523         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48524         from glibc-2.2.5 that fails for read-only files.
48525
48526 2005-10-02  Jim Meyering  <jim@meyering.net>
48527
48528         Sync from coreutils.
48529         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48530         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48531         `#if HAVE_CONFIG_H'.
48532         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48533         Remove AT_FDCWD test.
48534         Do not consume the fd unless successful.
48535         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48536         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48537         block, so that we don't even try to compile it if settimeofday is
48538         available.  This works around a compilation failure on OSF1 V5.1,
48539         due to stime requiring a `long int*' while tv_sec is `int'.
48540
48541 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48542
48543         Sync from coreutils.
48544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48545         against `yes', rather than just testing for nonempty.
48546
48547 2005-10-01  Simon Josefsson  <jas@extundo.com>
48548
48549         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48550         and Darwin.
48551
48552         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48553         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48554         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48555         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48556         Check if struct addrinfo is declared.
48557
48558 2005-10-01  Simon Josefsson  <jas@extundo.com>
48559
48560         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48561         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48562         AI_* and EAI_* definitions.  Protect function declarations.
48563
48564 2005-10-01  Jim Meyering  <jim@meyering.net>
48565
48566         Sync from coreutils.
48567
48568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48569         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48570         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48572         in the inet and nsl libraries.  Required on Solaris 5.7.
48573
48574 2005-10-01  Jim Meyering  <jim@meyering.net>
48575
48576         Sync from coreutils.
48577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48578         in the inet and nsl libraries.  Required on Solaris 5.7.
48579
48580 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48581
48582         * lib/getdelim.c (getdelim): Remove unused variables.
48583
48584 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48585
48586         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48587         so that the code works even with ancient cpp.  Portability problem
48588         with GCC 2.7.2.1 reported by Thomas M.Ott.
48589
48590 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48591
48592         * modules/regex (Depends-on): Add strcase.
48593
48594         * modules/gethostname (Licence): Change from GPL to LGPL, since
48595         gethostname.c is a trivial implementation of a standard library
48596         function.
48597         * modules/poll (License): Change from GPL to LGPL, since it's
48598         derived from LGPL code.
48599
48600 2005-09-27  Jim Meyering  <jim@meyering.net>
48601
48602         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48603         HAVE_CONFIG_H.
48604
48605         * lib/intprops.h (signed_type_or_expr__): Define.
48606         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48607         for unsigned types.
48608
48609 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         * lib/verify.h (verify_expr): Remove, replacing with:
48612         (verify_true): New macro that returns true instead of void.
48613         (verify_type__): Remove.
48614         (verify): Use verify_true rather than verify_type__.
48615
48616 2005-09-26  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48619         is necessary.
48620         (lib_SOURCES): Remove mbchar.c.
48621         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48622         (Files): Add m4/mbrtowc.m4.
48623         * modules/mbiter: Likewise.
48624         * modules/mbuiter: Likewise.
48625
48626 2005-09-26  Bruno Haible  <bruno@clisp.org>
48627
48628         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48629         compile mbchar.c if they are not both present.
48630         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48631         * m4/mbiter.m4 (gl_MBITER): Likewise.
48632         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48633         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48634         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48635
48636 2005-09-25  Jim Meyering  <jim@meyering.net>
48637
48638         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48639         also uses socklen_t.
48640
48641 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48642
48643         * lib/utimens.c (ENOSYS): Define if not already defined.
48644         (futimens): Support having a null PATH if the file descriptor
48645         is nonnegative.
48646
48647         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48648         Remove.
48649         (__attribute): Define to empty unless GCC 3.1 or later.
48650         This works around a core dump on OpenBSD 3.4, which has GCC
48651         2.95.3, which dumps core when given __attribute__(()).  It also
48652         simplifies other tests, since we really don't want to bother with
48653         worrying about which ancient version of GCC supported what.
48654         Original problem reported by Yoann Vandoorselaere, with part of
48655         the fix suggested by Derek Price.
48656
48657 2005-09-24  Jim Meyering  <jim@meyering.net>
48658
48659         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48660         so we can once again use a positive bitfield width of 1 -- now we
48661         don't have to explain why we were using a bitfield width of 2.
48662
48663 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48664
48665         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48666         and similarly for the other external symbols.  Problem reported
48667         by James Gallager.
48668
48669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48670         bug reported by Jim Meyering.
48671
48672         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48674         not needed, since socklen is a prerequisite module.
48675
48676 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48677
48678         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48679         Problem reported by Eric Blake.
48680         (getaddrinfo): Initialize se so that it's not garbage.
48681         Redo internal storage allocation so that it doesn't make unportable
48682         assumptions about alignment.
48683         Fix a memory leak.
48684
48685         * lib/utimens.c (futimens): Use futimesat if available.
48686         Prefer it to futimes since it doesn't have the futimes bug.
48687
48688         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48689         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48690         Instead, declare a function that returns a pointer to an array,
48691         and use verify_type__ to declare the size of the array.
48692         Problem and germ of a solution reported by Bruno Haible.
48693         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48694         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48695
48696 2005-09-23  Jim Meyering  <jim@meyering.net>
48697
48698         Sync from coreutils.
48699         Correct build failure (socklen_t not defined) on at least
48700         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48702
48703 2005-09-23  Jim Meyering  <jim@meyering.net>
48704
48705         * modules/getaddrinfo (Depends-on): Add socklen.
48706
48707 2005-09-23  Bruno Haible  <bruno@clisp.org>
48708
48709         * tests/test-verify.c: New file.
48710
48711 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48712
48713         Sync from coreutils.
48714
48715         * modules/argmatch (Depends-on): Add verify.
48716         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48717         unistd-safer.
48718         * modules/save-cwd (Depends-on): Likewise.
48719
48720         * modules/openat (Files): Add lib/openat-die.c.
48721         (Depends-on): Remove error, exitfail.
48722         Add dirname.
48723
48724         * modules/verify: New file.
48725         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48726         with "verify" module.
48727
48728 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48729
48730         Sync from coreutils.
48731
48732         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48733         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48734         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48735         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48736         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48737         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48738         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48739         Don't bother checking for string.h, stdlib.h, unistd.h.
48740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48742         module's job.
48743         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48744         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48745
48746         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48747         (gl_GETDATE): Use it.
48748
48749         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48750
48751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         Sync from coreutils.
48754
48755         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48756         stat-time.h.
48757         * lib/argmatch.h: Include verify.h
48758         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48759         (ARGMATCH_ASSERT): Remove; unused.
48760         * lib/canonicalize.c: Assume STDC_HEADERS.
48761         * lib/exclude.c: Include "strcase.h".
48762         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48763         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48764         and stdio-safer.h.
48765         (getusershell): Call fopen, not fopen_safer.
48766         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48767         Do not include unistd-safer.h.
48768         (save_cwd): Don't call fd_safer; no longer needed
48769         now that we include fcntl--.h.
48770
48771         * lib/getdate.y (relative_time): New type.
48772         (RELATIVE_TIME_0): New constant.
48773         (parser_control): Use relative_time instead of doing it ourselves.
48774         (%union): Add new relative_time rel member.
48775         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48776         Now typeless.
48777         (relunit, relunit_snumber): Now of type rel.
48778         (zone, rel, relunit, get_date): Adjust to above changes.
48779
48780         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48781         Do not include unistd-safer.h.
48782         (getloadavg): Don't call fd_safer; no longer needed
48783         now that we include fcntl--.h.
48784
48785         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48786         (make_dir_parents): Treat ENOSYS like EEXIST.
48787
48788         Improve quality of diagnostics on restore_cwd failure.
48789         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48790         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48791         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48792         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48793         each time through the loop.  Do not diagnose restore_cwd failure;
48794         that is the caller's job (and perhaps the caller does not care).
48795
48796         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48797         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48798         If the file already exists but is not a directory, don't bother
48799         to try to make its parents.
48800         Close potential file descriptor leak if we can't chdir("/") (!).
48801         Don't always return true if chdir($PWD) fails; return true only
48802         if the requested action was done successfully (except for the
48803         chdir($PWD)).
48804         Don't log final directory unless we actually made it.
48805         Refactor to avoid duplicate code to fix up permissions.
48806         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48807
48808         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48809         to make it a bit faster and (I hope) clearer.
48810         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48811         Fix bug in formats like %2N.
48812
48813         * lib/verify.h: New file.
48814
48815 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         Sync from coreutils.
48818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48819
48820 2005-09-22  Jim Meyering  <jim@meyering.net>
48821
48822         Sync from coreutils.
48823
48824         * m4/lstat.m4 (gl_FUNC_LSTAT):
48825         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48826         Remove obsolete comment.
48827         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48828         * m4/xstrtod.m4: Likewise.
48829
48830         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48831
48832 2005-09-22  Jim Meyering  <jim@meyering.net>
48833
48834         Sync from coreutils.
48835
48836         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48837
48838         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48839         the .tm_year member, since otherwise gcc-4.0 would now warn about
48840         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48841
48842         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48843         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48844
48845         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48846         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48847         when run in a time zone for which daylight savings time is in effect
48848         for the starting date.
48849
48850         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48851         stop us from restricting permissions of just-created absolute-named
48852         directories.
48853         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48854         to restore initial working directory.
48855         * lib/mkdir-p.c (make_dir_parents): New parameter:
48856         different_working_dir, to tell caller if/when we change the working
48857         directory and are unable to return to the initial one.
48858         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48859         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48860         `return false'.  This fixes a bug introduced on 2004-07-30.
48861
48862         * lib/openat.c (fdopendir): Be sure to close the supplied
48863         file descriptor before returning.  This makes our replacement
48864         implementation a little closer to Solaris's, where fdopendir
48865         ties the file descriptor to the returned DIR* pointer.
48866         * lib/openat.c (unlinkat): New function.
48867         * lib/openat.h (unlinkat): Add prototype.
48868         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48869         (openat_restore_fail): Rename from openat_restore_die.
48870         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48871
48872         Provide an alternative to exiting immediately upon save_cwd or
48873         restore_cwd failure.  Now, an application can arrange e.g.,
48874         to perform a longjump in that case.
48875         * lib/openat.c: Include dirname.h.
48876         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48877         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48878         and openat_restore_die rather than calling error directly.
48879         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48880
48881         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48882         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48883         define.
48884
48885         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48886         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48887                             int utc, int nanoseconds);
48888         Background:
48889         date should not have to allocate a megabyte of virtual memory to
48890         handle a format argument like +%1048575T.  When implemented with
48891         strftime, it must allocate such a buffer, use strftime to fill it
48892         in, print it, then free it.
48893         With fprintftime, it simply prints everything and exits.
48894         With no need for memory allocation, that's one fewer way to fail.
48895         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48896         optional field width, not before, so we accept %9:z, not %:9z.
48897         (my_strftime): Be sure to use L_('x') for literals.
48898
48899         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48900         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48901         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48902         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48903         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48904         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48905         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48906         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48907         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48908         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48909         * lib/xgethostname.c, lib/xreadlink.c:
48910         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48911
48912         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48913         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48914         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48915         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48916         and don't include <sys/file.h>).
48917
48918 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48919
48920         Sync from coreutils.
48921
48922         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48923         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48924         [!LDAV_DONE]: Avoid unused variable warning.
48925
48926 2005-09-21  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/unicodeio.h (unicode_to_mb): New declaration.
48929
48930 2005-09-20  Derek Price  <derek@ximbiot.com>
48931
48932         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48933         getaddrinfo.h.
48934
48935 2005-09-20  Bruno Haible  <bruno@clisp.org>
48936
48937         * gnulib-tool: Remove trailing slashes from the values specified for
48938         --source-base, --m4-base, --tests-base, --aux-dir.
48939         Suggested by Simon Josefsson <jas@extundo.com>.
48940
48941 2005-09-20  Bruno Haible  <bruno@clisp.org>
48942
48943         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48944         func_modules_to_filelist, func_import, func_create_testdir): Make all
48945         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48946         change when gnulib-tool is invoked in a different locale.
48947
48948 2005-09-19  Simon Josefsson  <jas@extundo.com>
48949
48950         * m4/socklen.m4: Fix typo.
48951
48952 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48953
48954         Use a consistent style for including <config.h>.
48955         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48956         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48957         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48958         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48959         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48960         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48961         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48962         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48963         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48964         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48965         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48966         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48967         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48968         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48969         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48970         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48971         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48972         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48973         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48974         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48975         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48976         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48977         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48978         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48979         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48980         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48981         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48982         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48983         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48984         lib/xstrtoumax.c, lib/yesno.c:
48985         Standardize inclusion of config.h.
48986         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48987         lib/inttostr.h:  Removed inclusion of config.h from header files.
48988         * lib/inttostr.c:  Adjusted in-tree users.
48989         * lib/timespec.h: Remove superfluous warning to include config.h.
48990         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48991         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48992         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48993         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48994         config.h with HAVE_CONFIG_H.
48995
48996 2005-09-19  Jim Meyering  <jim@meyering.net>
48997
48998         * modules/pathmax (License): Change to LGPL.
48999
49000 2005-09-19  Derek Price  <derek@ximbiot.com>
49001
49002         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49003
49004 2005-09-19  Bruno Haible  <bruno@clisp.org>
49005
49006         * gnulib-tool (import): Provide default for --tests-base.
49007
49008 2005-09-19  Bruno Haible  <bruno@clisp.org>
49009
49010         * doc/quote.texi: New file, extracted from gnulib.texi.
49011         * doc/ctime.texi: New file, extracted from gnulib.texi.
49012         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49013         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49014         * doc/gnulib.texi: Include them.
49015
49016 2005-09-18  Bruno Haible  <bruno@clisp.org>
49017
49018         Portability fix.
49019         * gnulib-tool (func_readlink): New function.
49020         (func_ln_if_changed): Use it.
49021
49022 2005-09-18  Bruno Haible  <bruno@clisp.org>
49023
49024         * gnulib-tool: Support --with-tests also with --import.
49025         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49026         (func_import): Use variables $testsbase and $inctests. Emit a
49027         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49028         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49029         SUBDIRS += $testsdir.
49030         (func_create_testdir): Update.
49031
49032 2005-09-18  Bruno Haible  <bruno@clisp.org>
49033
49034         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49035         instead of $dry_run.
49036         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49037         (func_ln_if_changed): Don't handle dry-run here.
49038         (func_import): In dry-run mode, detect more precisely which actions
49039         would be performed, and don't use "...ing" verbs.
49040
49041 2005-09-18  Bruno Haible  <bruno@clisp.org>
49042
49043         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49044         (func_import): Use join on two temporary files instead of three nested
49045         loops, in order to determine which files are new or old.
49046
49047 2005-09-18  Bruno Haible  <bruno@clisp.org>
49048
49049         * gnulib-tool (func_import): Comment out code that spits out the
49050         new files with --dry-run.
49051
49052 2005-09-18  Bruno Haible  <bruno@clisp.org>
49053
49054         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49055
49056 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49057
49058         * lib/stat-time.h: New file.
49059         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49060         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49061         in a different way.
49062         (timespec_cmp): New function.
49063         * lib/utimecmp.c: Include stat-time.h.
49064         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49065         members exist, not on the obsolescent ST_MTIM_NSEC.
49066         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49067
49068 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49071
49072 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49073
49074         * MODULES.html.sh (File system functions): Add stat-time.
49075         * modules/stat-time: New file.
49076         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49077         is now done in a different way, by the stat-time module.
49078         * modules/utimecmp (Depends-on): Add stat-time.
49079
49080 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49081
49082         * m4/st_mtim.m4: Remove.  Superseded by...
49083         * m4/stat-time.m4: New file.
49084         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49085         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49086
49087 2005-09-15  Derek Price  <derek@ximbiot.com>
49088
49089         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49090
49091 2005-09-15  Derek Price  <derek@ximbiot.com>
49092
49093         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49094         * lib/regex_internal.c: Ditto, using this...
49095         (__GNUC_PREREQ): ...new macro.
49096         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49097         using...
49098         (__GNUC_PREREQ): ...this new macro.
49099
49100         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49101
49102 2005-09-15  Derek Price  <derek@ximbiot.com>
49103             Paul Eggert  <eggert@cs.ucla.edu>
49104
49105         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49106         changes, consolidating in...
49107         * lib/regex_internal.h: ...this file.
49108
49109 2005-09-13  Jim Meyering  <jim@meyering.net>
49110
49111         * lib/canon-host.c: Filter through gnu indent and reword comments
49112         slightly.
49113         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49114
49115 2005-09-13  Derek Price  <derek@ximbiot.com>
49116
49117         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49118         failure.
49119         Reported by Jim Meyering  <jim@meyering.net>.
49120
49121 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49122
49123         * lib/base64.c: Typo.
49124         (base64_encode): Put b64str in initialized data section.
49125
49126 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         Merge glibc and coreutils changes into gnulib, plus a few
49129         extra fixes.
49130         * lib/md5.c: Use #error rather than a string.
49131         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49132         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49133         (__attribute__): Define to empty for non recent-GCC.
49134         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49135         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49136         Renamed from their non-__ counterparts, with new macros replacing
49137         them if not _LIBC.  Add __THROW attribute.
49138         (rol): Remove.
49139         (struct md5_ctx): Align buffer if using GCC.
49140         * lib/sha1.h (struct sha1_ctx): Likewise.
49141         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49142         The old name was backwards.
49143         (NOTSWAP): Remove; not used.
49144         (rol): New macro, moved here from md5.h.
49145         (sha1_process_block): Remove a FIXME that doesn't make sense.
49146
49147 2005-09-12  Derek Price  <derek@ximbiot.com>
49148
49149         Return usable errors from canon-host.
49150         * lib/canon-host.h: New file.
49151         * lib/canon-host.c (canon_host): Wrap...
49152         (canon_host_r): ...this new function, which now relies exclusively on
49153         getaddrinfo.
49154         (ch_strerror): New function.
49155         (last_cherror): New global.
49156         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49157         interface.
49158         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49159         void *.
49160         (freeaddrinfo): Free ai->ai_canonname when set.
49161
49162 2005-09-12  Derek Price  <derek@ximbiot.com>
49163
49164         Make canon-host require getaddrinfo.
49165         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49166         AC_LIBSOURCE canon-host.h.  Call...
49167         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49168         gl_GETADDRINFO.
49169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49170
49171 2005-09-12  Derek Price  <derek@ximbiot.com>
49172
49173         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49174         LGPL.
49175         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49176
49177 2005-09-12  Derek Price  <derek@ximbiot.com>
49178
49179         * lib/gai_strerror.c: Include config.h when available.  Include
49180         getaddrinfo.h before other headers to test interface.
49181         Reported by Larry Jones <lawrence.jones@ugs.com>.
49182
49183 2005-09-12  Derek Price  <derek@ximbiot.com>
49184             Paul Eggert  <eggert@cs.ucla.edu>
49185
49186         * modules/glob (Files): Add glob-libc.h.
49187
49188 2005-09-12  Derek Price  <derek@ximbiot.com>
49189             Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49192         glob_.h, glob-libc.h.
49193         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49194
49195 2005-09-12  Derek Price  <derek@ximbiot.com>
49196             Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49199         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49200         protecting things that should be done only in gnulib contexts.
49201         * lib/glob_.h: New file, containing only the glob things needed for
49202         gnulib.
49203         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49204         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49205         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49206         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49207         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49208         and to respect the namespace rules better.
49209
49210 2005-09-08  Simon Josefsson  <jas@extundo.com>
49211
49212         * modules/socklen: New file.
49213
49214 2005-09-08  Simon Josefsson  <jas@extundo.com>
49215
49216         * m4/socklen.m4: New file.
49217
49218 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         * modules/utimens (Files): Add m4/utimbuf.m4, since
49221         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49222         Reported by Sergey Poznyakoff.
49223
49224 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49225
49226         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49227         definitions, since that's the preferred style in glibc.
49228         Fix a minor spacing issue, and update copyright notice to match
49229         glibc's.
49230
49231 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49232
49233         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49234
49235 2005-09-06  Simon Josefsson  <jas@extundo.com>
49236
49237         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49238         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49239
49240 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49241
49242         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49243         warning.
49244
49245 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49246
49247         * config/srclist.txt: Add glibc bug 1302.
49248
49249 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49250
49251         Change bitset word type from unsigned int to unsigned long int,
49252         as this has better performance on typical 64-bit hosts.
49253         Port bitset code to hosts with unusual word sizes.
49254         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49255         (build_collating_symbol):
49256         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49257         argument is a bitset.  This is merely a style issue, but it makes
49258         it clearer that an entire array is expected.
49259         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49260         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49261         Port to the case where bitset_word is not the same as unsigned int.
49262         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49263         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49264         Likewise.
49265         * lib/regexec.c (check_dst_limits_calc_pos_1,
49266         check_subexp_matching_top):
49267         (build_trtable, group_nodes_into_DFAstates):
49268         Likewise.
49269         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49270         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49271         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49272         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49273         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49274         * lib/regcomp.c (optimize_subexps, lower_subexp):
49275         Work even if bitset_word has holes in its bitwise representation.
49276         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49277         * lib/regexec.c (check_dst_limits_calc_pos_1,
49278         check_subexp_matching_top):
49279         Likewise.
49280         * lib/regex_internal.c (re_string_reconstruct):
49281         Don't assume UCHAR_MAX == 255.
49282         * lib/regex_internal.h (bitset_set_all): Likewise.
49283         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49284         All uses changed.
49285         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49286         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49287         All uses changed.
49288         (BITSET_WORD_MAX): New macro.
49289         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49290         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49291         (bitset_empty, bitset_copy):
49292         Prefer sizeof (bitset) to multiplying it out ourselves.
49293         (bitset_not_merge): Remove; unused.
49294         (bitset_contain): Return bool, not unsigned int with one bit on.
49295         All callers changed.
49296         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49297         alignment than re_node_set; do this by defining a new internal
49298         type struct dests_alloc and using it to allocate memory.
49299
49300 2005-09-05  Bruno Haible  <bruno@clisp.org>
49301
49302         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49303         links.
49304
49305 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49306
49307         * modules/size_max (Makefile.am): Add size_max.h
49308
49309 2005-09-04  Derek Price  <derek@ximbiot.com>
49310
49311         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49312
49313 2005-09-03  Simon Josefsson  <jas@extundo.com>
49314
49315         * gnulib-tool: Fix typo.
49316
49317 2005-09-03  Simon Josefsson  <jas@extundo.com>
49318
49319         * config/srclist.txt: Add glibc bug 1293.
49320
49321 2005-09-03  Derek Price  <derek@ximbiot.com>
49322
49323         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49324         From Larry Jones <lawrence.jones@ugs.com>.
49325
49326 2005-09-02  Simon Josefsson  <jas@extundo.com>
49327
49328         * modules/socklen: New file.
49329
49330 2005-09-02  Simon Josefsson  <jas@extundo.com>
49331
49332         * modules/havelib: New module.
49333
49334         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49335         Use havelib.
49336
49337 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         Check for arithmetic overflow when calculating sizes, to prevent
49340         some buffer-overflow issues.  These patches are conservative, in the
49341         sense that when I couldn't determine whether an overflow was possible,
49342         I inserted a run-time check.
49343         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49344         macros.
49345         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49346         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49347         (re_xnrealloc, re_x2nrealloc): New inline functions.
49348         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49349         parse_bracket_exp):
49350         (build_equiv_class, build_charclass): Check for arithmetic overflow
49351         in size expression calculations.
49352         * lib/regex_internal.c (re_string_realloc_buffers):
49353         (build_wcs_upper_buffer, re_node_set_add_intersect):
49354         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49355         (re_dfa_add_node, register_state): Likewise.
49356         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49357         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49358         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49359         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49360
49361 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49364         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49365
49366 2005-09-02  Bruno Haible  <bruno@clisp.org>
49367
49368         Support for lib vs. lib64 distinction on biarch platforms.
49369         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49370         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49372
49373 2005-09-02  Bruno Haible  <bruno@clisp.org>
49374
49375         * gnulib-tool (import): In the other first-use case, provide defaults
49376         as well.
49377
49378 2005-09-02  Bruno Haible  <bruno@clisp.org>
49379
49380         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49381         patches not yet found in the latest gettext release.
49382
49383 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49384
49385         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49386         to avoid a collision with bits/local_lim.h in glibc.
49387         All uses changed.  Problem reported by Dmitry V. Levin in
49388         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49389
49390         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49391         bugs in int versus size_t comparisons.
49392         (re_string_context_at): Fix bug where the code assumed that
49393         Idx is signed.
49394
49395         Use bool where appropriate.
49396         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49397         All callers changed.
49398         (calc_eclosure_iter): Likewise, for ROOT arg.
49399         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49400         (build_charclass_op): Likewise, for NON_MATCH arg.
49401         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49402         (re_string_construct_common): Likewise, for ICASE arg.
49403         * lib/regexec.c (re_search_2_stub, re_search_stub):
49404         Likewise, for RET_LEN arg.
49405         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49406         (set_regs): Likewise, for FL_BACKTRACK arg.
49407         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49408         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49409         (calc_eclosure_iter, parse_bracket_exp):
49410         Use bool for internal variables that are booleans.
49411         * lib/regexec.c (re_search_internal, check_matching,
49412         proceed_next_node):
49413         (set_regs, build_sifted_states, sift_states_bkref):
49414         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49415         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49416         (find_collation_sequence_value):
49417         Likewise.
49418         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49419         (re_node_set_compare):
49420         Return bool, not int. All callers changed.
49421         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49422         (build_trtable, check_node_accept): Likewise.
49423         * lib/regex_internal.h: Include stdbool.h.
49424
49425         Fix bugs uncovered when converting to bool.
49426         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49427         failure instead of charging ahead blindly.
49428         * lib/regex_internal.c (register_state): Likewise.
49429         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49430         for freeing internal storage.
49431         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49432         bitset pieces used as boolean, to avoid undefined behavior
49433         on hosts that do int overflow checking.
49434
49435 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49436
49437         * config/srclist.txt: Add glibc bugs 1285-1287.
49438
49439 2005-09-01  Jim Meyering  <jim@meyering.net>
49440
49441         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49442         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49443         Require gl_STAT_MACROS, too.
49444
49445 2005-09-01  Bruno Haible  <bruno@clisp.org>
49446
49447         * gnulib-tool (import): In the first-use case, provide defaults.
49448
49449 2005-09-01  Bruno Haible  <bruno@clisp.org>
49450
49451         * gnulib-tool (func_import): Remove the .tmp files.
49452
49453 2005-09-01  Bruno Haible  <bruno@clisp.org>
49454
49455         * gnulib-tool (func_import): Fix handling of symbolic links.
49456
49457 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49458
49459         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49460         old glibc regex code mishandles strings longer than 2**31 bytes.
49461         This patch fixes this when the regex code is used in gnulib
49462         (i.e., outside glibc).
49463
49464         This patch should not affect the use of the regex code inside
49465         glibc.  No doubt this problem also needs to be handled for glibc
49466         as well, but the result will be an incompatible change to the
49467         glibc ABI, and the old ABI will have to be supported too.  That
49468         can be the the subject for another patch.
49469
49470         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49471         governing whether the rest of this patch is active.  By default,
49472         the macro is disabled and the patch has no effect.
49473         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49474         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49475         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49476         (re_match_2, re_set_registers): Use the new types.
49477         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49478         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49479         New macros.
49480         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49481         (re_string_context_at, bin_tree_t, re_dfastate_t):
49482         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49483         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49484         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49485         (re_string_char_size_at, re_string_wchar_at):
49486         (re_string_elem_size_at):
49487         Use the new types and macros to port to 64-bit hosts.
49488         Use unsigned types for internal values, so that the code
49489         mostly works even for arrays larger than SSIZE_MAX.
49490         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49491         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49492         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49493         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49494         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49495         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49496         (calc_inveclosure, parse_dup_op, build_range_exp):
49497         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49498         (fetch_number, create_token_tree, mark_opt_subexp):
49499         Likewise.
49500         * lib/regex_internal.c (re_string_construct_common,
49501         create_ci_newstate):
49502         (create_cd_newstate, re_string_allocate, re_string_construct):
49503         (re_string_realloc_buffers, build_wcs_upper_buffer):
49504         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49505         (re_string_reconstruct, re_string_peek_byte_case):
49506         (re_string_fetch_byte_case, re_string_context_at):
49507         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49508         (re_node_set_init_copy, re_node_set_add_intersect):
49509         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49510         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49511         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49512         (re_acquire_state, re_acquire_state_context, register_state):
49513         Likewise.
49514         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49515         search_cur_bkref_entry):
49516         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49517         (re_search_internal, re_search_2_stub, re_search_stub)
49518         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49519         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49520         (update_cur_sifted_state, check_dst_limits):
49521         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49522         (check_subexp_limits, sift_states_bkref, merge_state_array):
49523         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49524         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49525         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49526         (expand_bkref_cache, check_node_accept_bytes):
49527         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49528         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49529         (acquire_init_state_context, check_halt_node_context):
49530         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49531         (sift_states_backward, clean_state_log_if_needed):
49532         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49533         (find_recover_state, transit_state_sb, transit_state_mb):
49534         (transit_state_bkref, build_trtable, match_ctx_clean):
49535         Likewise.
49536         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49537         to work around an assumption that REG_MISSING is negative.
49538
49539         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49540         (seek_collating_symbol_entry) [defined _LIBC]:
49541         (lookup_collation_sequence_value) [defined _LIBC]:
49542         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49543         Use prototypes rather than old-style function definitions.
49544         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49545         (transit_state_sb) [0]:
49546         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49547
49548         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49549         rm_eo.
49550
49551         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49552         (optimize_subexps, lower_subexp):
49553         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49554         since the signed shift might overflow.  Use 1u<<31 instead.
49555         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49556         Likewise.
49557         * lib/regexec.c (check_dst_limits_calc_pos_1,
49558         check_subexp_matching_top): Likewise.
49559
49560         * lib/regcomp.c (optimize_subexps, lower_subexp):
49561         Use CHAR_BIT rather than 8, for clarity.
49562         * lib/regexec.c (check_dst_limits_calc_pos_1):
49563         (check_subexp_matching_top): Likewise.
49564         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49565         have to worry about portability issues when shifting it left.
49566         Remove no-longer-needed test for table_size > 0.
49567         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49568         in a word, as the resulting behavior is undefined.
49569         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49570         in one case, a <= should have been an <, and in another case the
49571         whole test was missing.
49572         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49573         the standard name CHAR_BIT.
49574         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49575         this is not true on one's complement and signed-magnitude hosts.
49576
49577         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49578         next_last_offset.
49579         (struct re_dfa_t): Remove unused member states_alloc.
49580         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49581
49582 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49585         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49586         and large-file glibc and in 32-bit large-file Solaris.
49587
49588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49589
49590         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49591         lengths fit in regoff_t; this isn't true if regoff_t is the same
49592         width as size_t.
49593         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49594         (= START + RANGE) instead of RANGE.  This avoids overflow
49595         problems when regoff_t is the same width as size_t.
49596         All callers changed.
49597         (re_search_2_stub): Check for overflow when adding the
49598         sizes of the two strings.
49599         (re_search_stub): Check for overflow when adding START
49600         to RANGE; if it occurs, substitute the extreme value.
49601
49602 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49605
49606 2005-08-31  Jim Meyering  <jim@meyering.net>
49607
49608         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49609         a pointer-to-const.
49610         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49611         (register_state): Likewise.
49612         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49613         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49614         (group_nodes_into_DFAstates): Likewise.
49615
49616 2005-08-31  Jim Meyering  <jim@meyering.net>
49617
49618         * check-module: Add a FIXME comment.
49619
49620 2005-08-31  Eric Blake  <ebb9@byu.net>
49621
49622         * modules/unistd-safer (Files): Add unistd--.h.
49623         * modules/stdio-safer (Files): Add stdio--.h.
49624
49625 2005-08-31  Derek Price  <derek@ximbiot.com>
49626
49627         * lib/getdelim.c (getdelim): Return EOF on EOF.
49628         Reported by Larry Jones <lawrence.jones@ugs.com>.
49629
49630 2005-08-31  Bruno Haible  <bruno@clisp.org>
49631
49632         Avoid unnecessary diffs in the generated lib/Makefile.am.
49633         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49634         the generated files.
49635         (func_import): Don't set cmd.
49636
49637 2005-08-31  Bruno Haible  <bruno@clisp.org>
49638
49639         * lib/strstr.c: Include <stddef.h>, for NULL.
49640         * lib/strcasestr.c: Likewise.
49641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49642
49643 2005-08-31  Bruno Haible  <bruno@clisp.org>
49644
49645         * gnulib-tool: New option --macro-prefix.
49646         (func_import): Use macro_prefix.
49647         (import): Handle option --macro-prefix.
49648
49649 2005-08-31  Bruno Haible  <bruno@clisp.org>
49650
49651         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49652         Also use new variables cached_lgpl, cached_libtool.
49653
49654 2005-08-31  Bruno Haible  <bruno@clisp.org>
49655
49656         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49657         always instantiating them.
49658
49659 2005-08-31  Bruno Haible  <bruno@clisp.org>
49660
49661         * gnulib-tool (func_import): Read the previous cached settings
49662         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49663         earlier added by gnulib but are now dropped. Warn when a gnulib file
49664         overwrites a non-gnulib file.
49665
49666 2005-08-31  Bruno Haible  <bruno@clisp.org>
49667
49668         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49669         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49670         projects that don't keep autogenerated files in CVS. Put into
49671         actioncmd only the specified modules, not the transitive closure.
49672
49673 2005-08-31  Bruno Haible  <bruno@clisp.org>
49674
49675         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49676         Create directories that shall be filled.
49677         (import): Don't look for gl_* macros in configure.ac. Recurse across
49678         all directories containing a gnulib-cache.m4 files, if meaningful.
49679
49680 2005-08-31  Bruno Haible  <bruno@clisp.org>
49681
49682         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49683         (import): Set seen_libtool when we see gl_LIBTOOL.
49684
49685 2005-08-31  Bruno Haible  <bruno@clisp.org>
49686
49687         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49688         declaration macro definitions from generated gnulib.m4.
49689
49690 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49691
49692         * lib/iconvme.h: Add prototype for iconv_alloc.
49693
49694 2005-08-29  Simon Josefsson  <jas@extundo.com>
49695
49696         * lib/iconvme.c: Fix errno.
49697
49698 2005-08-29  Bruno Haible  <bruno@clisp.org>
49699
49700         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49701         that it works when the directory contains spaces.
49702
49703 2005-08-29  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49706
49707 2005-08-29  Bruno Haible  <bruno@clisp.org>
49708
49709         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49710         Emit more advice.
49711
49712 2005-08-29  Bruno Haible  <bruno@clisp.org>
49713         and Stepan Kasal  <kasal@ucw.cz>
49714
49715         * check-module: If more parameters are given, check each of them
49716         separately; add more exceptions, as noted by Jim Meyering.
49717         (check_module): New procedure.
49718         (%exempt_header): Now contains all exceptions.
49719
49720 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49721
49722         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49723
49724 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49725
49726         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49727
49728 2005-08-28  Bruno Haible  <bruno@clisp.org>
49729
49730         * m4/gnulib-tool.m4: New file.
49731
49732 2005-08-27  Jim Meyering  <jim@meyering.net>
49733
49734         * modules/unistd-safer (Files): Add pipe-safer.c.
49735         * modules/fcntl-safer (Files): Add creat-safer.c.
49736
49737 2005-08-27  Jim Meyering  <jim@meyering.net>
49738
49739         * m4/stdlib-safer.m4: New file.  From coreutils.
49740         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49741         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49742         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49743         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49744         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49745
49746 2005-08-27  Jim Meyering  <jim@meyering.net>
49747
49748         * lib/fopen-safer.c: Merge minor changes from coreutils.
49749         * lib/dup-safer.c: Likewise.
49750         * lib/fd-safer.c: Likewise.
49751
49752         Merge from coreutils.
49753         * lib/stdio--.h: New file.
49754         * lib/stdlib--.h: New file.
49755         * lib/mkstemp-safer.c: New file.
49756
49757         GNU tar needs these.
49758         * lib/pipe-safer.c: New file.
49759         * lib/creat-safer.c: New file.
49760         * lib/fcntl--.h (creat): Define to creat_safer.
49761         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49762         * lib/unistd--.h (pipe): Define to pipe_safer.
49763         * lib/unistd-safer.h: Declare pipe_safer.
49764
49765 2005-08-26  Simon Josefsson  <jas@extundo.com>
49766
49767         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49768         Haible <bruno@clisp.org>.
49769
49770 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         * lib/regex_internal.h: Remove all references to
49773         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49774         or better.
49775         (bitset_not, bitset_merge, bitset_not_merge):
49776         (bitset_mask, re_string_allocate, re_string_construct):
49777         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49778         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49779         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49780         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49783         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49784         (re_acquire_state_context):
49785         Remove unnecessary forward decls.
49786         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49787         Put __attribute at function definition,
49788         now that the function decl has been removed.
49789         * lib/regex_internal.c (re_string_peek_byte_case):
49790         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49791         Likewise.
49792
49793 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49794
49795         * m4/regex.m4: Add AC_PREREQ(2.50).
49796         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49797
49798 2005-08-25  Simon Josefsson  <jas@extundo.com>
49799
49800         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49801         __fsetlocking.
49802
49803 2005-08-25  Simon Josefsson  <jas@extundo.com>
49804
49805         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49806         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49807         GLIBC specific code.
49808
49809 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         Make regex safe for g++.  This fixes one real bug (an "err"
49812         that should have been "*err").  g++ problem reported by
49813         Sam Steingold.
49814         * lib/regex_internal.h (re_calloc): New macro, consistent with
49815         re_malloc etc.  All callers of calloc changed to use re_calloc.
49816         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49817         not int.  All callers changed.
49818         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49819         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49820         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49821         (find_recover_state): Change "err" to "*err"; this fixes what
49822         appears to be a real bug.
49823         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49824         versus int.
49825
49826 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         * modules/regex (Depends-on): Add malloc, since the code
49829         assumes that !malloc(0) means failure.
49830
49831 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49832
49833         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49834
49835         alloca modernization/simplification for regex.
49836         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49837         needs to be at the start of the file, and can be moved into
49838         regex_internal.h and simplified.
49839         * lib/regex_internal.h: Include <alloca.h>.
49840         (__libc_use_alloca) [!defined _LIBC]: New macro.
49841         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49842         now works outside glibc.
49843
49844 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         * config/srclist.txt: Add glibc bugs 1241, 1245.
49847
49848 2005-08-25  Jim Meyering  <jim@meyering.net>
49849
49850         * lib/open-safer.c: Include <config.h>.
49851         Otherwise, we'd lose LARGEFILE support in any file using
49852         e.g. "fcntl--.h"
49853
49854 2005-08-25  Bruno Haible  <bruno@clisp.org>
49855
49856         * m4/minmax.m4: Require autoconf 2.52.
49857         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49858         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49859         alternatives of translit over the alphabet.
49860         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49861
49862 2005-08-24  Simon Josefsson  <jas@extundo.com>
49863
49864         * tests/test-getpass.c: New file.
49865
49866 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49869         for GNU regex features.
49870
49871 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49872
49873         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49874         * lib/regex.h (regerror): Likewise.
49875
49876         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49877         requires this.  (The code never needed it.)
49878
49879         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49880         All uses of recently-renamed identifiers changed to use the new,
49881         POSIX-compliant names.  The code will build and run just fine
49882         without these changes, but it's better to eat our own dog food
49883         and use the standard-conforming names.
49884
49885         * lib/regex.h: Fix a multitude of POSIX name space violations.
49886         These changes have an effect only for programs that define
49887         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49888         do not change anything for programs compiled in the normal way.
49889         Also, there is no effect on the ABI.
49890
49891         (_REGEX_SOURCE): New macro.
49892         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49893         defined and _GNU_SOURCE is not; this fixes a name space violation.
49894
49895         Rename the following macros to obey POSIX requirements.
49896         The old names are still visible as macros if _REGEX_SOURCE is defined.
49897         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49898         RE_BACKSLASH_ESCAPE_IN_LISTS.
49899         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49900         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49901         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49902         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49903         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49904         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49905         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49906         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49907         (REG_INTERVALS): renamed from RE_INTERVALS.
49908         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49909         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49910         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49911         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49912         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49913         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49914         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49915         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49916         RE_UNMATCHED_RIGHT_PAREN_ORD.
49917         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49918         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49919         (REG_DEBUG): renamed from RE_DEBUG.
49920         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49921         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49922         unusual, since we can't clash with the POSIX REG_ICASE.
49923         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49924         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49925         (REG_NO_SUB): renamed from RE_NO_SUB.
49926         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49927         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49928         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49929         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49930         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49931         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49932         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49933         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49934         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49935         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49936         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49937         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49938         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49939         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49940         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49941         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49942         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49943         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49944         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49945         (REG_FIXED): Renamed from REGS_FIXED.
49946         (REG_NREGS): Renamed from RE_NREGS.
49947
49948         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49949         of other REG_* macros, since POSIX says the user is allowed to
49950         #undef these macros selectively.
49951
49952         (reg_errcode_t): Update comment stating what other tables need
49953         to be consistent.
49954
49955         Rename the following enum values to obey POSIX requirements.
49956         The old names are still visible as macros.
49957         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49958         is not defined, since GNU is supposed to be a superset of POSIX as
49959         much as possible, and since we want reg_errcode_t to be a signed
49960         type for implementation consistency.
49961         (_REG_NOERROR): Renamed from REG_NOERROR.
49962         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49963         (_REG_BADPAT): Renamed from REG_BADPAT.
49964         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49965         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49966         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49967         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49968         (_REG_EBRACK): Renamed from REG_EBRACK.
49969         (_REG_EPAREN): Renamed from REG_EPAREN.
49970         (_REG_EBRACE): Renamed from REG_EBRACE.
49971         (_REG_BADBR): Renamed from REG_BADBR.
49972         (_REG_ERANGE): Renamed from REG_ERANGE.
49973         (_REG_ESPACE): Renamed from REG_ESPACE.
49974         (_REG_BADRPT): Renamed from REG_BADRPT.
49975         (_REG_EEND): Renamed from REG_EEND.
49976         (_REG_ESIZE): Renamed from REG_ESIZE.
49977         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49978         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49979         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49980         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49981         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49982
49983         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49984         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49985         changed.  But support the old name if the new one is not defined
49986         and if _REGEX_SOURCE.
49987
49988         Change the following member names in struct re_pattern_buffer.
49989         The old names are still supported if !_REGEX_SOURCE.
49990         The new names are always supported, regardless of _REGEX_SOURCE.
49991         (re_buffer): Renamed from buffer.
49992         (re_allocated): Renamed from allocated.
49993         (re_used): Renamed from used.
49994         (re_syntax): Renamed from syntax.
49995         (re_fastmap): Renamed from fastmap.
49996         (re_translate): Renamed from translate.
49997         (re_can_be_null): Renamed from can_be_null.
49998         (re_regs_allocated): Renamed from regs_allocated.
49999         (re_fastmap_accurate): Renamed from fastmap_accurate.
50000         (re_no_sub): Renamed from no_sub.
50001         (re_not_bol): Renamed from not_bol.
50002         (re_not_eol): Renamed from not_eol.
50003         (re_newline_anchor): Renamed from newline_anchor.
50004
50005         Change the following member names in struct re_registers.
50006         The old names are still supported if !_REGEX_SOURCE.
50007         The new names are always supported, regardless of _REGEX_SOURCE.
50008         (rm_num_regs): Renamed from num_regs.
50009         (rm_start): Renamed from start.
50010         (rm_end): Renamed from end.
50011
50012         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50013         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50014         Prepend __ to parameter names.
50015
50016         Undo yesterday's changes.
50017
50018 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50021         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50022         lib/regex.c.
50023
50024 2005-08-24  Jim Meyering  <jim@meyering.net>
50025
50026         Sync from coreutils.
50027         * m4/fcntl-safer.m4: New file.
50028
50029         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50030         and object files for this module.
50031
50032 2005-08-24  Jim Meyering  <jim@meyering.net>
50033
50034         Sync from coreutils.
50035         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50036
50037 2005-08-24  Jim Meyering  <jim@meyering.net>
50038
50039         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50040         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50041
50042 2005-08-24  Jim Meyering  <jim@meyering.net>
50043
50044         * modules/fcntl-safer: New module.
50045         * modules/fts (Depends-on): Add fcntl-safer.
50046         * MODULES.html.sh (File descriptor based Input/Output):
50047         Add fcntl-safer.
50048
50049 2005-08-24  Bruno Haible  <bruno@clisp.org>
50050
50051         Support for unit test modules.
50052         * modules/README: Mention tests modules.
50053         * modules/TEMPLATE-TESTS: New file.
50054         * gnulib-tool: New options --extract-tests-module, --with-tests and
50055         --tests-base (unused for the moment).
50056         (testsbase, inctests): New variables.
50057         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50058         (func_verify_module): Exclude TEMPLATE-TESTS.
50059         (func_verify_nontests_module, func_verify_tests_module): New functions.
50060         (func_get_dependencies): Add implicit dependency for tests modules.
50061         (func_get_tests_module): New function.
50062         (func_modules_transitive_closure): When --with-tests was specified,
50063         include the unit tests as well, unless explicitly avoided.
50064         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50065         (func_emit_tests_Makefile_am): New function.
50066         (func_create_testdir): When --with-tests was specified, emit a
50067         tests/ directory.
50068         * MODULES.html.sh (Future developments): Update.
50069
50070 2005-08-24  Bruno Haible  <bruno@clisp.org>
50071
50072         * modules/tls-tests: New file.
50073         * tests/test-tls.c: New file, from GNU gettext.
50074
50075 2005-08-24  Bruno Haible  <bruno@clisp.org>
50076
50077         * modules/lock-tests: New file.
50078         * tests/test-lock.c: New file, from GNU gettext.
50079
50080 2005-08-24  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/lock.h: Add multiple inclusion guard.
50083         * lib/tls.h: Add multiple inclusion guard.
50084
50085 2005-08-24  Bruno Haible  <bruno@clisp.org>
50086
50087         * gnulib-tool: Add support for the --aux-dir option to
50088         --create-testdir, --create-megatestdir, --test, --megatest.
50089         (func_create_testdir, func_create_megatestdir): Optionally emit a
50090         AC_CONFIG_AUX_DIR directive.
50091         (create-testdir, create-megatestdir, test, megatest): Provide a
50092         default value for $auxdir.
50093
50094 2005-08-24  Bruno Haible  <bruno@clisp.org>
50095
50096         * gnulib-tool (import): Use compound statement instead of subshell
50097         where possible.
50098
50099 2005-08-24  Bruno Haible  <bruno@clisp.org>
50100
50101         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50102
50103 2005-08-24  Bruno Haible  <bruno@clisp.org>
50104
50105         * gnulib-tool (func_version): Update.
50106
50107 2005-08-24  Bruno Haible  <bruno@clisp.org>
50108
50109         * gnulib-tool (func_import, func_create_testdir,
50110         func_create_megatestdir): Quote all autoconf macro arguments.
50111
50112 2005-08-24  Bruno Haible  <bruno@clisp.org>
50113
50114         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50115         option --force, because --force causes the aclocal.m4 of each
50116         subdirectory to be newer than the corresponding config.h.in.
50117
50118 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50119
50120         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50121         All contents moved to gl_REGEX.
50122         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50123         assume that it does.
50124
50125 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * lib/regex.h (REG_NOSYS)
50128         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50129         Define, since POSIX requires it as of 2001.
50130         (_REG_ENOSYS)
50131         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50132         New private symbol, used to keep the enum signed in all cases.
50133         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50134         Youngman in
50135         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50136
50137         * lib/regex_internal.c (re_string_skip_chars, register_state):
50138         (calc_state_hash):
50139         Remove forward decls; no longer needed now that we use prototypes.
50140         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50141         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50142         (clean_state_log_if_needed): Likewise.
50143
50144 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50145
50146         * config/srclist.txt: Add glibc bugs 1231-1233.
50147
50148 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50149
50150         Fix problems reported by Sam Steingold in
50151         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50152         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50153         assumed that reg_errcode_t is a signed type, which is not
50154         necessarily true if _XOPEN_SOURCE is not defined.
50155         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50156         since some compilers warn about it otherwise.
50157
50158 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50159
50160         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50161         (init_word_char, create_initial_state, duplicate_node_closure):
50162         (fetch_token, peek_token_bracket, build_range_exp):
50163         (build_collating_symbol): Remove forward decls; no longer needed
50164         now that we use prototypes.
50165
50166         * lib/regcomp.c:
50167         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50168         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50169         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50170         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50171         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50172         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50173         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50174         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50175         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50176         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50177         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50178         (build_charclass, build_charclass_op, fetch_number, create_tree):
50179         (create_token_tree, mark_opt_subexp, duplicate_tree):
50180         Use prototypes rather than old-style definitions.
50181
50182         * lib/regex_internal.c:
50183         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50184         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50185         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50186         (re_string_reconstruct, re_string_peek_byte_case):
50187         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50188         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50189         (re_node_set_init_copy, re_node_set_add_intersect):
50190         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50191         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50192         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50193         (re_acquire_state, re_acquire_state_context, register_state):
50194         (create_ci_newstate, create_cd_newstate, free_state):
50195         Likewise.
50196         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50197         re_search_2):
50198         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50199         (re_search_internal, prune_impossible_nodes):
50200         (acquire_init_state_context, check_matching, static):
50201         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50202         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50203         (update_regs, sift_states_backward, build_sifted_states):
50204         (clean_state_log_if_needed, merge_state_array):
50205         (update_cur_sifted_state, add_epsilon_src_nodes):
50206         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50207         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50208         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50209         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50210         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50211         (check_arrival, check_arrival_add_next_nodes):
50212         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50213         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50214         (check_node_accept_bytes, check_node_accept, extend_buffers):
50215         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50216         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50217         (sift_ctx_init):
50218         Likewise.
50219
50220         * lib/regex_internal.h:
50221         (re_string_allocate, re_string_construct, re_string_reconstruct):
50222         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50223         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50224         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50225         (re_string_context_at, re_string_peek_byte_case):
50226         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50227         is defined, since we now use prototypes always.
50228
50229         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50230         C89 or better.  All uses removed.
50231
50232 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50233
50234         * config/srclist.txt: Add glibc bugs 1220-1227.
50235
50236 2005-08-20  Jim Meyering  <jim@meyering.net>
50237
50238         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50239         of unused local, dfa.
50240
50241 2005-08-20  Bruno Haible  <bruno@clisp.org>
50242
50243         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50244
50245 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50248         (re_node_set_insert_last, re_dfa_add_node):
50249         Rename local variables to avoid GCC shadowing warnings.
50250
50251 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50252
50253         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50254         [defined lint]: Suppress bogus uninitialized-variable warnings.
50255
50256         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50257         and let the caller return REG_ESPACE if out of space.  This
50258         removes an uninitialied-variable warning with GCC 4.0.1, and also
50259         avoids taking the address of a local variable.  All callers
50260         changed.
50261
50262 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50263
50264         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50265         $LIBCSRC/posix/regexec.c.
50266         Add glibc bug 1217 for regcomp.c.
50267
50268 2005-08-19  Jim Meyering  <jim@meyering.net>
50269
50270         * lib/regexec.c (proceed_next_node): Redo local variables to
50271         avoid GCC shadowing warnings.
50272
50273 2005-08-18  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/strstr.c (strstr): Fix return value in multibyte case.
50276         * lib/strcasestr.c (strcasestr): Likewise.
50277
50278 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50279
50280         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50281
50282 2005-08-17  Jim Meyering  <jim@meyering.net>
50283
50284         Make the %s format (seconds since the epoch) work for a negative
50285         number and when used with a zero-padded field width, e.g. %015s.
50286
50287         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50288         label so that it precedes the code to set `digits'.  Otherwise,
50289         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50290         print `00-22'.  Now, it prints `-0022', as it should.
50291
50292 2005-08-17  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/strstr (Files): Add m4/mbrtowc.m4.
50295         (Depends-on): Add mbuiter.
50296
50297 2005-08-17  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/strcasestr: New file.
50300         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50301         strcasestr.
50302
50303 2005-08-17  Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50306
50307 2005-08-17  Bruno Haible  <bruno@clisp.org>
50308
50309         * modules/mbuiter: New file.
50310         * MODULES.html.sh (Extended multibyte and wide character utilities):
50311         Add mbuiter.
50312
50313 2005-08-17  Bruno Haible  <bruno@clisp.org>
50314
50315         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50316         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50317
50318 2005-08-17  Bruno Haible  <bruno@clisp.org>
50319
50320         * m4/strcasestr.m4: New file.
50321
50322 2005-08-17  Bruno Haible  <bruno@clisp.org>
50323
50324         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50325         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50326
50327 2005-08-17  Bruno Haible  <bruno@clisp.org>
50328
50329         * lib/strcasestr.h: New file.
50330         * lib/strcasestr.c: New file.
50331
50332 2005-08-17  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/strcasecmp.c: Use mbuiter.h.
50335
50336 2005-08-17  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/mbuiter.h: New file.
50339
50340 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50341
50342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50343         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50344         and gl_GETOPT are both invoked via different paths (as happens
50345         with GNU tar CVS because it uses both argp and getopt), the former
50346         wins.
50347
50348 2005-08-16  Bruno Haible  <bruno@clisp.org>
50349
50350         * modules/tls: New file.
50351         * MODULES.html.sh (Multithreading): Add tls.
50352
50353 2005-08-16  Bruno Haible  <bruno@clisp.org>
50354
50355         * modules/strnlen1: New file.
50356         * MODULES.html.sh (String handling): Add strnlen1.
50357
50358 2005-08-16  Bruno Haible  <bruno@clisp.org>
50359
50360         * modules/strcase (Files): Add m4/mbrtowc.m4.
50361         (Depends-on): Add strnlen1, mbchar.
50362
50363 2005-08-16  Bruno Haible  <bruno@clisp.org>
50364
50365         * modules/mbiter: New file.
50366         * MODULES.html.sh (Extended multibyte and wide character utilities):
50367         Add mbiter.
50368
50369 2005-08-16  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/mbfile: New file.
50372         * MODULES.html.sh (Extended multibyte and wide character utilities):
50373         Add mbfile.
50374
50375 2005-08-16  Bruno Haible  <bruno@clisp.org>
50376
50377         * modules/mbchar: New file.
50378         * MODULES.html.sh (Extended multibyte and wide character utilities):
50379         New section.
50380
50381 2005-08-16  Bruno Haible  <bruno@clisp.org>
50382
50383         * m4/tls.m4: New file, from GNU gettext.
50384
50385 2005-08-16  Bruno Haible  <bruno@clisp.org>
50386
50387         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50388         always.
50389         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50390
50391 2005-08-16  Bruno Haible  <bruno@clisp.org>
50392
50393         * m4/mbiter.m4: New file.
50394
50395 2005-08-16  Bruno Haible  <bruno@clisp.org>
50396
50397         * m4/mbfile.m4: New file.
50398
50399 2005-08-16  Bruno Haible  <bruno@clisp.org>
50400
50401         * m4/mbchar.m4: New file.
50402
50403 2005-08-16  Bruno Haible  <bruno@clisp.org>
50404
50405         * lib/tls.h: New file, from GNU gettext.
50406         * lib/tls.c: New file, from GNU gettext.
50407
50408 2005-08-16  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/strnlen1.h: New file.
50411         * lib/strnlen1.c: New file.
50412
50413 2005-08-16  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50416         (mbi_init): Update.
50417         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50418         NUL byte, not after it.
50419
50420 2005-08-16  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/strcase.h (strcasecmp): Add note in comments.
50423         * lib/strncasecmp.c: Use code from strcasecmp.c.
50424         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50425         (strcasecmp): Work correctly in multibyte locales.
50426
50427 2005-08-16  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/mbiter.h: New file.
50430
50431 2005-08-16  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/mbfile.h: New file.
50434
50435 2005-08-16  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/mbchar.h: New file.
50438         * lib/mbchar.c: New file.
50439
50440 2005-08-16  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50443         the valid ones. Makes the comparison operations transitive:
50444         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50445         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50446
50447 2005-08-15  Simon Josefsson  <jas@extundo.com>
50448
50449         * modules/ssize_t (License): Change to 'unlimited'.
50450
50451         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50452
50453 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50454
50455         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50456         Add comments for each pending glibc patch.
50457
50458 2005-08-15  Bruno Haible  <bruno@clisp.org>
50459
50460         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50461         __cplusplus is defined.
50462
50463 2005-08-14  Jim Meyering  <jim@meyering.net>
50464
50465         Sync from coreutils.
50466
50467         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50468         Use the hash-table-based cycle-detection code not just when
50469         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50470         Reported by James Youngman in
50471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50472         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50473         FTS_TIGHT_CYCLE_CHECK.
50474         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50475         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50476         once again.
50477         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50478         * lib/fts.c (fd_safer): Remove decl.
50479         Include fcntl--.h rather than unistd-safer.h
50480         (fts_safe_changedir): Don't call fd_safer; no longer needed
50481         now that we include fcntl--.h.
50482
50483 2005-08-12  Simon Josefsson  <jas@extundo.com>
50484
50485         * modules/getndelim2: Use ssize_t module.
50486         * modules/getnline: Likewise.
50487         * modules/safe-read: Likewise.
50488         * modules/xreadlink: Likewise.
50489
50490         * modules/ssize_t: New file.
50491
50492 2005-08-12  Simon Josefsson  <jas@extundo.com>
50493
50494         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50495
50496 2005-08-12  Simon Josefsson  <jas@extundo.com>
50497
50498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50499         ssize_t.
50500
50501 2005-08-12  Simon Josefsson  <jas@extundo.com>
50502
50503         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50504         readline, getdelim and check_version.
50505         (Support for systems lacking ISO C 99: Sizes of integer types):
50506         Add size_max.
50507
50508 2005-08-12  Bruno Haible  <bruno@clisp.org>
50509
50510         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50511
50512 2005-08-11  Simon Josefsson  <jas@extundo.com>
50513
50514         * modules/readline: New file.
50515
50516         * modules/strnlen (Files): Add strnlen.h.
50517
50518 2005-08-11  Simon Josefsson  <jas@extundo.com>
50519
50520         * m4/readline.m4: New file.
50521
50522 2005-08-11  Simon Josefsson  <jas@extundo.com>
50523
50524         * lib/readline.h, readline.c: New file.
50525
50526 2005-08-11  Simon Josefsson  <jas@extundo.com>
50527
50528         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50529         gl_AVOID.
50530
50531 2005-08-11  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50534
50535 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50536
50537         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50538
50539 2005-08-10  Simon Josefsson  <jas@extundo.com>
50540
50541         * tests/test-iconvme.c: New file.
50542
50543 2005-08-10  Simon Josefsson  <jas@extundo.com>
50544
50545         * m4/strnlen.m4: New file.
50546
50547         * m4/strndup.m4: Don't check for strnlen declaration, done in
50548         strnlen.m4.
50549
50550 2005-08-10  Simon Josefsson  <jas@extundo.com>
50551
50552         * lib/strndup.c: Use strnlen.h.
50553
50554         * lib/strnlen.h: New file.
50555
50556 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50557
50558         * README: Typos.
50559
50560 2005-08-02  Simon Josefsson  <jas@extundo.com>
50561
50562         * modules/readline: New file.
50563
50564 2005-08-02  Simon Josefsson  <jas@extundo.com>
50565
50566         * modules/getdelim: New file.
50567
50568         * modules/getline: Rewrite, don't use getndelim2.
50569
50570 2005-08-02  Simon Josefsson  <jas@extundo.com>
50571
50572         * m4/getline.m4: Separate out getdelim stuff into separate module.
50573
50574         * m4/getdelim.m4: New file.
50575
50576 2005-08-02  Simon Josefsson  <jas@extundo.com>
50577
50578         * lib/getline.h, getline.c: Rewrite.
50579
50580         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50581
50582 2005-07-31  Bruno Haible  <bruno@clisp.org>
50583
50584         * lib/lock.h (gl_lock_initializer): New macro.
50585         (gl_lock_define_initialized): Use it.
50586         (gl_rwlock_initializer): New macro.
50587         (gl_rwlock_define_initialized): Use it.
50588         (gl_recursive_lock_initializer): New macro.
50589         (gl_recursive_lock_define_initialized): Use it.
50590
50591 2005-07-30  Karl Berry  <karl@gnu.org>
50592
50593         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50594         Report from Ben Pfaff, regarding getopt.
50595
50596 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50599         normal way.
50600         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50601         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50602         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50603         (gl_GETOPT): Use the new macros.  Most of the implementation
50604         is moved to the new macros.  This is for programs like Emacs
50605         that don't want all the functionality of gl_GETOPT.
50606
50607 2005-07-26  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/lock.m4: Update from GNU gettext.
50610
50611 2005-07-26  Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/lock.h: Update from GNU gettext.
50614         * lib/lock.c: Update from GNU gettext.
50615
50616 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50617
50618         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50619         obsolescent AC_TRY_RUN.  Include the default includes files, for
50620         'exit'.
50621
50622 2005-07-24  Bruno Haible  <bruno@clisp.org>
50623
50624         * modules/visibility: New file.
50625         * MODULES.html.sh (Misc): Add visibility.
50626
50627 2005-07-24  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/visibility.m4: New file.
50630
50631 2005-07-24  Bruno Haible  <bruno@clisp.org>
50632
50633         * doc/visibility.texi: New file.
50634
50635 2005-07-22  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50638         $(ALLOCA_H), redundant through BUILT_SOURCES.
50639         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50640         redundant through BUILT_SOURCES.
50641         * modules/byteswap (Makefile.am): Remove explicit dependency on
50642         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50643         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50644         $(FNMATCH_H), redundant through BUILT_SOURCES.
50645         * modules/getopt (Makefile.am): Remove explicit dependency on
50646         $(GETOPT_H), redundant through BUILT_SOURCES.
50647         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50648         redundant through BUILT_SOURCES.
50649         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50650         redundant through BUILT_SOURCES.
50651         * modules/stdbool (Makefile.am): Remove explicit dependency on
50652         $(STDBOOL_H), redundant through BUILT_SOURCES.
50653         * modules/stdint (Makefile.am): Remove explicit dependency on
50654         $(STDINT_H), redundant through BUILT_SOURCES.
50655         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50656         Remove explicit dependency on $(SYSEXITS_H).
50657         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50658
50659 2005-07-18  Simon Josefsson  <jas@extundo.com>
50660
50661         * lib/check-version.c (check_version): Accept identical versions too.
50662
50663 2005-07-18  Bruno Haible  <bruno@clisp.org>
50664
50665         * modules/lock: New file.
50666         * MODULES.html.sh (Multithreading): New section.
50667
50668 2005-07-18  Bruno Haible  <bruno@clisp.org>
50669
50670         * m4/lock.m4: New file, from GNU gettext.
50671
50672 2005-07-18  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/lock.h: New file, from GNU gettext.
50675         * lib/lock.c: New file, from GNU gettext.
50676
50677 2005-07-18  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/lock.h (gl_once_t): New type.
50680         (gl_once_define, gl_once): New macros.
50681         * lib/lock.c (fresh_once): New variable.
50682         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50683         functions.
50684
50685 2005-07-16  Simon Josefsson  <jas@extundo.com>
50686
50687         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50688         workaround, suggested by Bruno.
50689
50690 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50691
50692         * modules/xalloc (Depends-on): Add xalloc-die.
50693         * modules/xvasprintf (Depends-on): Add xalloc-die.
50694
50695 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50696
50697         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50698         with a minor change.
50699
50700 2005-07-15  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50703         When using lib/poll.c, define poll as rpl_poll.
50704
50705 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * modules/argp (Depends-on): Remove unlocked-io.
50708
50709 2005-07-14  Derek Price  <derek@ximbiot.com>
50710
50711         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50712         for glob symlink bug.
50713
50714 2005-07-14  Bruno Haible  <bruno@clisp.org>
50715
50716         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50717         Instead, test for *_unlocked function declarations directly.
50718
50719 2005-07-11  Simon Josefsson  <jas@extundo.com>
50720
50721         * modules/size_max: New file.
50722
50723         * modules/xsize: Depend on size_max module for size_max.m4.
50724
50725 2005-07-11  Simon Josefsson  <jas@extundo.com>
50726
50727         * lib/size_max.h: New file.
50728
50729 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50732         copyright symbol and the year.
50733         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50734         (version_etc_va): Use parameterized copyright notice.
50735         Reword to conform to the current GNU coding standards.
50736
50737 2005-07-11  Karl Berry  <karl@gnu.org>
50738
50739         * doc/gnulib.texi (Quoting): new node.
50740         (Initial import): more info, from Patrice.
50741
50742 2005-07-11  Bruno Haible  <bruno@clisp.org>
50743
50744         * gnulib-tool (func_usage): Document option --avoid.
50745         (Command line options): Handle --avoid.
50746         (func_acceptable): New function.
50747         (func_modules_transitive_closure): Use it.
50748
50749 2005-07-11  Bruno Haible  <bruno@clisp.org>
50750
50751         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50752         Reported by Jim Meyering.
50753
50754 2005-07-10  Bruno Haible  <bruno@clisp.org>
50755
50756         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50757         Needed when size_t is smaller than 'unsigned int'.
50758         Reported by Paul Eggert.
50759
50760 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50761
50762         * modules/argp (Depends-on): Add unlocked-io
50763
50764 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50765
50766         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50767         block of defines.
50768
50769 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50772         fix now.
50773
50774 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50775         and Paul Eggert  <eggert@cs.ucla.edu>
50776
50777         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50778         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50779
50780 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         * modules/regex (Files): Add lib/regex_internal.c,
50783         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50784         (Depends-on): Add extensions.
50785         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50786
50787 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50788
50789         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50790         pathconf.
50791         * m4/same.m4 (gl_SAME): Likewise.
50792         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50793
50794         * m4/regex.m4: Adjust to new libc regex implementation.
50795         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50796         all the .c and .h parts of (the new) regex.
50797         Quote the m4 stuff better.
50798         Check for RE_ICASE bug of old gnulib.
50799         Check for REG_STARTEND of recent libc.
50800         Rename local variables from jm_* to gl_*.
50801         Quote operand of "test -f".
50802         Say "recent enough" version of libc, not "version 2".
50803         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50804         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50805         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50806         Remove check for btowc, isascii.
50807         Require AM_LANGINFO_CODESET.
50808
50809 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50810
50811         * lib/regex.c, regex.h: Sync from libc.
50812         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50813         * lib/regexec.c:
50814         New files, synced from libc, except that regex_internal.h
50815         currently has a small porting fix.
50816
50817 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50818
50819         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50820         regex_internal.c, regexec.c.
50821         Add regex_internal.h too, but as a comment, since the libc version
50822         is currently broken in gnulib mode.
50823
50824 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50825
50826         Support programs like Emacs that use gnulib but not gettext.
50827         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50828         * modules/gettext-h: New file.
50829         * modules/gettext (Files): Remove lib/gettext.h.
50830         (Depends-on): Add gettext-h.
50831         (Makefile.am): Remove lib_SOURCES.
50832         * modules/argmatch, modules/c-stack, modules/closeout:
50833         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50834         * modules/execute, modules/file-type, modules/getaddrinfo:
50835         * modules/getopt, modules/human, modules/javacomp:
50836         * modules/javaexec, modules/mkdir-p, modules/obstack:
50837         * modules/openat, modules/pagealign_alloc, modules/pipe:
50838         * modules/quotearg, modules/regex, modules/rpmatch:
50839         * modules/unicodeio, modules/userspec, modules/version-etc:
50840         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50841         * modules/xsetenv:
50842         Depend on gettext-h, not gettext.
50843
50844 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * gnulib-tool (func_import): Add support for 'public domain' license.
50847         * modules/alloca, modules/atexit, modules/memmove:
50848         Now public domain, not GPL.
50849         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50850         * modules/realloc, modules/strerror, modules/strtod:
50851         Now LGPL, not GPL.
50852
50853 2005-07-05  Bruno Haible  <bruno@clisp.org>
50854
50855         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50856         autoconf CVS. Needed for mingw.
50857
50858 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         Remove the dependency of the strftime module on the tzset module.
50861         * modules/strftime (Depends-on): Remove dependency on tzset.
50862
50863 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         Remove the dependency of the strftime module on the tzset module.
50866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50867         gl_FUNC_TZSET_CLOBBER.
50868
50869 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         Remove the dependency of the strftime module on the tzset module.
50872         * lib/strftime.c (my_strftime)
50873         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50874         Copy the input structure, to work around some of the bug with
50875         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50876         Solaris releases, you should also use the tzset module, but we won't
50877         require it as a dependency any more since we don't want LGPLed code
50878         to depend on GPLed code.
50879
50880 2005-07-02  Jim Meyering  <jim@meyering.net>
50881
50882         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50883         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50884         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50885         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50886
50887 2005-07-02  Jim Meyering  <jim@meyering.net>
50888
50889         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50890
50891 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50894         declares only 'struct timespec;' (!).
50895
50896 2005-07-01  Jim Meyering  <jim@meyering.net>
50897
50898         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50899         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50900         * lib/save-cwd.c, tempname.c:
50901         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50902         and don't include <sys/file.h>).
50903
50904 2005-06-29  Jim Meyering  <jim@meyering.net>
50905
50906         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50907         type name.  Use the variable name instead.
50908         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50909         Likewise.
50910
50911 2005-06-28  Simon Josefsson  <jas@extundo.com>
50912
50913         * modules/check-version (Files): Add check-version.m4.
50914
50915 2005-06-28  Simon Josefsson  <jas@extundo.com>
50916
50917         * m4/check-version.m4: New file, suggested by Jim Meyering
50918         <jim@meyering.net>.
50919
50920 2005-06-28  Simon Josefsson  <jas@extundo.com>
50921
50922         * lib/check-version.h, lib/check-version.c: New files.
50923
50924 2005-06-28  Simon Josefsson  <jas@extundo.com>
50925
50926         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50927         collision with global variable.  Better indentation.  Don't
50928         increment buffer pointer beyond buffer end.  Based on comments
50929         from Paul Eggert <eggert@cs.ucla.edu>.
50930
50931         * lib/base64.h: Indent.
50932
50933 2005-06-28  Simon Josefsson  <jas@extundo.com>
50934
50935         * doc/gnulib.texi (Library version handling): New section.
50936
50937 2005-06-28  Jim Meyering  <jim@meyering.net>
50938
50939         * check-module (find_included_lib_files): Hard-code another
50940         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50941         but modules/fts-lgpl (correctly) does not list those files.
50942
50943         * modules/canonicalize (Files): Add lib/pathmax.h.
50944
50945 2005-06-25  Simon Josefsson  <jas@extundo.com>
50946
50947         * modules/check-version: New file.
50948
50949 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50952         initializer of struct addrinfo, as an indication that we don't
50953         care how many members the structure has.
50954
50955 2005-06-24  Derek Price  <derek@ximbiot.com>
50956         and Bruno Haible  <bruno@clisp.org>
50957
50958         Remove stat module & update lstat.
50959         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50960         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50961         * m4/stat.m4: Remove this file.
50962
50963 2005-06-24  Derek Price  <derek@ximbiot.com>
50964         and Bruno Haible  <bruno@clisp.org>
50965
50966         Remove stat module & update lstat.
50967         * lib/stat.c: Remove this file...
50968         (slash_aware_lstat): ...moving this content and its support...
50969         * lib/lstat.c (rpl_lstat): ...into here.
50970         * lib/lstat.h: New file.
50971
50972 2005-06-24  Derek Price  <derek@ximbiot.com>
50973         and Bruno Haible  <bruno@clisp.org>
50974
50975         Remove stat module & update lstat.
50976         * config/srclist.txt (libc sources): Remove stat.
50977
50978 2005-06-24  Derek Price  <derek@ximbiot.com>
50979         and Bruno Haible  <bruno@clisp.org>
50980
50981         Remove stat module & update lstat.
50982         * MODULES.html.sh (stat): Remove.
50983         * MODULES.html: Regenerated.
50984         * modules/lstat (Description): Correct function name.
50985         (Files): Add "lstat.h".
50986         (Depends-on): Remove stat, add xalloc, stat-macros.
50987         * modules/stat: Remove this file.
50988         (Include): Add "lstat.h", remove <sys/stat.h>.
50989
50990 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50993         (ranged_convert): Don't save conversion in a temporary struct.
50994         This causes a warning with GCC 4.0.0, and anyway in the typical
50995         case it's not worth the extra 100 bytes or so of code.
50996         (ranged_convert, __mktime_internal): When calling a function via a
50997         pointer P, use P () rather than (*P) (), as we now assume C89 or
50998         better.
50999
51000 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51001
51002         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51003         "who -r" failed to give output.  Problem reported by Tim Waugh.
51004
51005         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51006         (xcalloc): Use it to avoid needless tests.
51007         Problem reported by Jim Meyering.
51008
51009 2005-06-20  Derek Price  <derek@ximbiot.com>
51010
51011         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51012         unnecessary for Autoconfs > 2.59c.
51013
51014 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51015
51016         * lib/argp.h (__option_is_short): Check upper limit of
51017         __key. Isprint() requires its argument to have the value
51018         of an unsigned char or EOF.
51019
51020 2005-06-16  Jim Meyering  <jim@meyering.net>
51021
51022         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51023         when either N or S is zero.
51024
51025 2005-06-16  Derek Price  <derek@ximbiot.com>
51026
51027         * m4/bison.m4: Declare YACC & YFLAGS precious.
51028
51029 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51030
51031         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51032         multibyte string or pattern, fall back on unibyte matching.
51033         Problem reported by James Youngman.
51034
51035 2005-06-08  Bruno Haible  <bruno@clisp.org>
51036
51037         * modules/csharpcomp: New file.
51038         * MODULES.html.sh (C#): Add csharpcomp.
51039
51040 2005-06-08  Bruno Haible  <bruno@clisp.org>
51041
51042         * m4/csharpcomp.m4: New file, from GNU gettext.
51043
51044 2005-06-08  Bruno Haible  <bruno@clisp.org>
51045
51046         * lib/csharpcomp.h: New file, from GNU gettext.
51047         * lib/csharpcomp.c: New file, from GNU gettext.
51048         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51049
51050 2005-06-08  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51053         warning on mingw.
51054
51055 2005-06-07  Derek Price  <derek@ximbiot.com>
51056
51057         Sync from CVS.
51058         * lib/glob_.h: Indent nested #ifdef.
51059
51060 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         Sync from coreutils.
51063         Use "file name" when talking about file names, instead of "filename"
51064         or "path", as per the GNU coding standards.
51065         * lib/mkdir-p.c: Renamed from makepath.c.
51066         (make_dir_parents): Renamed from make_path.  All callers changed.
51067         * lib/mkdir-p.h: Likewise.  All includers changed.
51068         * lib/filenamecat.c: Renamed from path-concat.c.
51069         (file_name_concat): Renamed from path_concat.  All callers changed.
51070         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51071         * lib/filenamecat.h: Likewise.  All includers changed.
51072         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51073         in comments or local variable names.
51074         * lib/basename.c: Likewise.
51075         * lib/canonicalize.c, canonicalize.h: Likewise.
51076         * lib/dirname.c, dirname.h: Likewise.
51077         * lib/euidaccess.c: Likewise.
51078         * lib/exclude.c: Likewise
51079         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51080         * lib/fsusage.c, fsuage.h: Likewise.
51081         * lib/fts.c, fts_.h: Likewise.
51082         * lib/getcwd.c: Likewise.
51083         * lib/getloadavg.c: Likewise.
51084         * lib/mkstemp.c: Likewise.
51085         * lib/mountlist.c, mountlist.h: Likewise.
51086         * lib/openat.c, openat.h: Likewise.
51087         * lib/readlink-stub.c: Likewise.
51088         * lib/readutmp.c, readutmp.h: Likewise.
51089         * lib/rename.c: Likewise.
51090         * lib/rmdir.c: Likewise.
51091         * lib/same.c: Likewise.
51092         * lib/savedir.c: Likewise.
51093         * lib/stripslash.c: Likewise.
51094         * lib/tempname.c: Likewise.
51095         * lib/xreadlink.c: Likewise.
51096         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51097         All uses changed.
51098         * lib/exclude.h: Likewise.
51099
51100         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51101         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51102         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51103         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51104         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51105         files have been getting away with it for years (MORE/BSD 4.3
51106         is extinct now).
51107         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51108         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51109
51110         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51111         Define to 256, not 255, as per modern POSIX.
51112
51113 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51114
51115         Sync from coreutils.
51116         Use "file name" when talking about file names, instead of "filename"
51117         or "path", as per the GNU coding standards.
51118         * MODULES.html.sh: mkdir-p renamed from makepath.
51119         filenamecat renamed from path-concat.
51120         * modules/filenamecat: Renamed from modules/path-concat.
51121         (Files): filenamecat.h and filenamecat.c renamed from
51122         path-concat.h and path-concat.c.
51123         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51124         (Include): filenamecat.h, not path-concat.h.
51125         * modules/mkdir-p: Renamed from modules/makepath.
51126         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51127         makepath.c.
51128         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51129         (Include): mkdir-p.h, not makepath.h.
51130
51131 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         Sync from coreutils.
51134         * m4/mkdir-p.m4: Renamed from makepath.m4.
51135         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51136         Rename files from makepath.c to mkdir-p.c, and from
51137         makepath.h to mkdir-p.h.
51138         * m4/filenamecat.m4: Renamed from path-concat.m4.
51139         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51140         Rename files from path-concat.c to filenamecat.c,
51141         and from path-concat.h to filenamecat.h.
51142         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51143         "file name" in local variables or comments.
51144         * m4/rename.m4: Likewise.
51145
51146 2005-06-01  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/csharpexec: New file.
51149         * MODULES.html.sh (C#): New section.
51150
51151 2005-06-01  Bruno Haible  <bruno@clisp.org>
51152
51153         * m4/csharp.m4: New file, from GNU gettext.
51154         * m4/csharpexec.m4: New file, from GNU gettext.
51155
51156 2005-06-01  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/csharpexec.h: New file, from GNU gettext.
51159         * lib/csharpexec.c: New file, from GNU gettext.
51160         * lib/csharpexec.sh.in: New file, from GNU gettext.
51161
51162 2005-05-31  Derek Price  <derek@ximbiot.com>
51163             Paul Eggert  <eggert@cs.ucla.edu>
51164
51165         Sync from cvs.
51166         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51167
51168 2005-05-31  Derek Price  <derek@ximbiot.com>
51169             Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         Sync from cvs.
51172         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51173
51174 2005-05-29  Derek Price  <derek@ximbiot.com>
51175
51176         * config/srclist.txt (glob_.h, glob.c): Add these files.
51177
51178 2005-05-29  Derek Price  <derek@ximbiot.com>
51179
51180         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51181         * modules/glob: New file.
51182         * modules/getlogin_r: Add link to POSIX spec in description.
51183
51184 2005-05-29  Derek Price  <derek@ximbiot.com>
51185             Paul Eggert  <eggert@cs.ucla.edu>
51186
51187         * m4/glob.m4: New file.
51188
51189 2005-05-29  Derek Price  <derek@ximbiot.com>
51190             Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * lib/glob_.h, lib/glob.c: New files.
51193
51194 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51195
51196         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51197         * modules/fts-lgpl (Depends-on): Remove gettext.
51198
51199 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51200
51201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51202         and don't require gt_INTTYPES_PRI.
51203
51204 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51207
51208         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51209         the configuration hassle isn't worth it.
51210         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51211         (LONGEST_MODIFIER, PRIuMAX): Remove.
51212
51213 2005-05-27  Bruno Haible  <bruno@clisp.org>
51214
51215         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51216
51217 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51220         _POSIX_PTHREAD_SEMANTICS for Solaris.
51221
51222 2005-05-25  Derek Price  <derek@ximbiot.com>
51223
51224         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51225
51226 2005-05-25  Derek Price  <derek@ximbiot.com>
51227             Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51230         * lib/getlogin_r.c, getlogin_r.h: New files.
51231
51232 2005-05-25  Bruno Haible  <bruno@clisp.org>
51233             Derek Price  <derek@ximbiot.com>
51234
51235         * lib/getlogin_r.h: Simplify API documentation.
51236
51237 2005-05-23  Derek Price  <derek@ximbiot.com>
51238
51239         * modules/minmax (Files): Add m4/minmax.m4.
51240         (configure.ac): Add gl_MINMAX.
51241
51242 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51243
51244         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51245         so that unistd-safer.h (GPL'ed code) need not be included.
51246
51247 2005-05-22  Bruno Haible  <bruno@clisp.org>
51248
51249         * m4/minmax.m4: New file.
51250         Based on a patch by Derek Price <derek@ximbiot.com>.
51251
51252 2005-05-22  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51255         (INT64_MIN): Fix definition.
51256         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51257
51258         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51259         NEED_SIGNED_INT_TYPES.
51260
51261         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51262         HAVE_SYSTEM_INTTYPES.
51263
51264 2005-05-22  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51267         Also include <sys/param.h> if it defines MIN, MAX.
51268         Based on a patch by Derek Price <derek@ximbiot.com>.
51269
51270 2005-05-21  Jim Meyering  <jim@meyering.net>
51271
51272         * modules/fts (Files): Add m4/inttypes-pri.m4.
51273         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51274
51275 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         New fts module.
51278         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51279         (setup_dir, free_dir): New functions.
51280         (enter_dir, leave_dir): Define trivial
51281         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51282         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51283         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51284         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51285         Move to fts-cycle.c.
51286         (fts_open): Use setup_dir.
51287         (fts_close): Use free_dir.
51288         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51289         This adds a label and some gotos, but the alternatives were messier.
51290         Check for memory allocation failure when entering a dir.
51291         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51292         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51293         (FTS): New member fts_cycle, that is a union that contains the
51294         old active_dir_ht and cycle_state.  All uses changed to mention
51295         fts_cycle.ht and fts_cycle.state.
51296         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51297         fts.c, with the following changes:
51298         (setup_dir, free_dir): New functions.
51299         (enter_dir): Now returns bool.  Return true if successful, false
51300         if memory exhausted.  All callers changed.
51301         Do not bother partly cleaning up on
51302         memory allocation failure; that is free_dir's job.
51303         However, free ad if hash_insert fails, to avoid memory leak.
51304         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51305         fts->fts_options to see which union member to use.
51306
51307 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51310         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51311
51312 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51313
51314         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51315
51316 2005-05-20  Jim Meyering  <jim@meyering.net>
51317
51318         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51319         Now a macro, to pacify GCC.
51320
51321 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51322
51323         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51324         of -1.
51325
51326 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51327
51328         * lib/chown.c (rpl_chown): Return -1 on failure.
51329
51330 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51333         Don't check for stddef.h.
51334         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51335         don't use its results.
51336         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51337         since we include them unconditionally.  Don't require
51338         AM_STDBOOL_H, since stdbool is a prerequisite.
51339         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51340         since we assume C89 or better.
51341         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51342         as we don't use their results.
51343         Don't check for fchdir, memmove, memset, strrchr, as we use
51344         them unconditionally.
51345         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51346         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51347
51348 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51351         Include <stddef.h> unconditionally, since we assume C89 now.
51352         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51353         * lib/fts.c: Include fts_.h first, to check interface.
51354         Do not include intprops.h; no longer needed.
51355         Include cycle-check.h and hash.h, since fts_.h no longer does.
51356         Remove unnecessary casts of closedir to void.
51357         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51358         decide whether to decrement nlinks.
51359         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51360         (FTS): Use struct hash_table * instead of Hash_table, so that
51361         we no longer need to include hash.h here.
51362
51363 2005-05-18  Jim Meyering  <jim@meyering.net>
51364
51365         * modules/dirfd (License): Change to LGPL.  Most of the code
51366         is already in the public domain.
51367
51368 2005-05-18  Jim Meyering  <jim@meyering.net>
51369
51370         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51371         Reported by Yoann Vandoorselaere.
51372
51373 2005-05-17  Jim Meyering  <jim@meyering.net>
51374
51375         * m4/fts.m4: New file, from coreutils.
51376
51377 2005-05-17  Jim Meyering  <jim@meyering.net>
51378
51379         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51380
51381 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         Sync from coreutils.
51384         * m4/unlinkdir.m4: New file.
51385
51386 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51387
51388         Sync from coreutils.
51389         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51390         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51391         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51392         White space changes only.
51393         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51394         special.
51395         * lib/yesno.c: Include getline.h, not ctype.h.
51396         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51397         Use getline to remove arbitrary restriction on response length.
51398
51399 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         * config/srclist-update: Spell out "Street" in FSF postal
51402         mail address; this is the style the FSF seems to prefer.
51403
51404         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51405         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51406         this updates FSF postal mail address.
51407
51408         Sync from coreutils.
51409         * modules/unlinkdir: New file.
51410         * modules/yesno (Depends-on): Add getline.
51411         * MODULES.html.sh (File system functions): Add unlinkdir.
51412
51413 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51416         lib/strsep.h:
51417         Change the initial comment to refer to GPL, not LGPL.
51418         gnulib-tool will change it to LGPL as needed.
51419
51420         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51421         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51422         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51423         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51424         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51425         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51426         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51427         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51428         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51429         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51430         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51431         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51432         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51433         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51434         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51435         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51436         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51437         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51438         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51439         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51440         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51441         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51442         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51443         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51444         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51445         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51446         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51447         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51448         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51449         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51450         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51451         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51452         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51453         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51454         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51455         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51456         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51457         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51458         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51459         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51460         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51461         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51462         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51463         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51464         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51465         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51466         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51467         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51468         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51469         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51470         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51471         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51472         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51473         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51474         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51475         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51476         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51477         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51478         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51479         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51480         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51481         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51482         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51483         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51484         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51485         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51486         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51487         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51488         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51489         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51490         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51491         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51492         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51493         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51494         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51495         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51496         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51497         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51498         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51499         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51500         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51501         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51502         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51503         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51504         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51505         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51506         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51507         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51508         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51509         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51510         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51511         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51512         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51513         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51514         lib/yesno.c, lib/yesno.h:
51515         Update FSF postal mail address.
51516
51517 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51518
51519         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51520         tests/test-memmem.c, tests/test-stpncpy.c:
51521         Update FSF postal mail address.
51522
51523 2005-05-13  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51526         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51527         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51528         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51529         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51530         Add support for 64-bit integers in the MSVC compiler.
51531
51532 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51533
51534         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51535
51536 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51537
51538         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51539
51540 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * doc/getdate.texi (General date syntax): Don't say that date
51543         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51544         Problem reported by Nic Ferrier.
51545
51546 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51547
51548         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51549         specified in ai_socktype. Fix invalid ai_protocol
51550         check. ai_protocol is usually set to 0 or depending on
51551         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51552         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51553         ai_socktype / ai_protocol in the returned addrinfo structure.
51554
51555 2005-05-10  Simon Josefsson  <jas@extundo.com>
51556
51557         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51558         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51559
51560 2005-05-10  Karl Berry  <karl@gnu.org>
51561
51562         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51563         (from http://www.gnu.org/licenses).
51564         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51565         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51566         fdl.texi suffices.
51567
51568 2005-05-10  Karl Berry  <karl@gnu.org>
51569
51570         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51571         (COPYING.DOC): remove.
51572
51573         * config/srclist-update: new FSF address.
51574
51575 2005-05-10  Derek Price  <derek@ximbiot.com>
51576
51577         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51578         possible.
51579
51580 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51581             Bruno Haible  <bruno@clisp.org>
51582
51583         * modules/inet_ntop: New file.
51584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51585         inet_ntop.
51586
51587 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51588             Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/inet_ntop.m4: New file.
51591
51592 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51593             Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/inet_ntop.h: New file.
51596         * lib/inet_ntop.c: New file, from glibc with modifications.
51597
51598 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * modules/time_r (License): Change to LGPL.
51601         * modules/extensions (License): Change to LGPL.  Actually,
51602         the license is more permissive than that, but currently gnulib-tool
51603         doesn't know how to handle more-permissive licenses.
51604
51605         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51606         Problem reported by Dave Love.
51607
51608 2005-05-08  Jim Meyering  <jim@meyering.net>
51609
51610         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51611         blank.
51612
51613 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51614
51615         * modules/argmatch (Depends-on): Add stdbool.
51616         * modules/backupfile (Depends-on): Likewise.
51617         * modules/chdir-long (Depends-on): Likewise.
51618         * modules/closeout (Depends-on): Likewise.
51619         * modules/cycle-check (Depends-on): Likewise.
51620         * modules/dirname (Depends-on): Likewise.
51621         * modules/fnmatch (Depends-on): Likewise.
51622         * modules/fsusage (Depends-on): Likewise.
51623         * modules/fwriteerror (Depends-on): Likewise.
51624         * modules/getcwd (Depends-on): Likewise.
51625         * modules/getloadavg (Depends-on): Likewise.
51626         * modules/hard-locale (Depends-on): Likewise.
51627         * modules/makepath (Depends-on): Likewise.
51628         * modules/mountlist (Depends-on): Likewise.
51629         * modules/nanosleep (Depends-on): Likewise.
51630         * modules/posixtm (Depends-on): Likewise.
51631         * modules/quotearg (Depends-on): Likewise.
51632         * modules/readtokens (Depends-on): Likewise.
51633         * modules/readtokens0 (Depends-on): Likewise.
51634         * modules/readutmp (Depends-on): Likewise.
51635         * modules/save-cwd (Depends-on): Likewise.
51636         * modules/strftime (Depends-on): Likewise.
51637         * modules/userspec (Depends-on): Likewise.
51638         * modules/utimecmp (Depends-on): Likewise.
51639         * modules/xgetcwd (Depends-on): Likewise.
51640         * modules/xnanosleep (Depends-on): Likewise.
51641         * modules/xstrtod (Depends-on): Likewise.
51642         * modules/yesno (Depends-on): Likewise.
51643
51644 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51645
51646         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51647         needless checks.
51648
51649 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         Merge from coreutils.  Among other things,
51652         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51653         * lib/fd-safer.c: New file.
51654         * lib/fcntl-safer.h, open-safer.c: Remove.
51655         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51656         * lib/dup-safer.c: Include unistd-safer.h first.
51657         Don't include errno.h.
51658         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51659         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51660         * lib/file-type.c: Rely on file-type.h change.
51661         * lib/getloadavg.c: Include unistd-safer.h.
51662         (getloadavg): Use safer open.
51663         * lib/getusershell.c: Include "stdio-safer.h".
51664         (getusershell): Use safer fopen.
51665         * lib/long-options.c (long_options): Use NULL rather than 0.
51666         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51667         'free'.
51668         * lib/modechange.c: Likewise.
51669         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51670         (MODE_DONE): New constant.
51671         (struct mode_change): Remove 'next' member.
51672         (make_node_op_equals): New function; like the old one of the
51673         same name, except it allocates an array.
51674         (mode_compile, mode_create_from_ref): Use it.
51675         (mode_compile): Allocate result as an array, not a linked list.
51676         Parse octal string ourself, so that we catch mistakes like "+0".
51677         (mode_adjust): Arg is an array, not a linked list.
51678         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51679         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51680         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51681         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51682         Remove.  This is now stat-macros.h's job.
51683         (talloc): Remove.  All callers replaced by xalloc, so that
51684         our invokers don't have to worry about reporting memory failures.
51685         (make_node_op_equals): Remove.
51686         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51687         New constants.
51688         (struct mode_change): Moved here from modechange.h.
51689         (mode_append_entry): Remove.
51690         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51691         apps to have incorrect behavior.  Use simpler algorithm for head
51692         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51693         Detect more invalid usages rather than having somewhat-random behavior.
51694         Don't insert an "a=" action, as that leads to incorrect behavior.
51695         (mode_compile, mode_create_from_ref): Return NULL on error instead
51696         of an enum, since now there's only one way to have an error.  All
51697         callers changed.
51698         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51699         at the correct time.  Simplify calculation of "+u" and its ilk.
51700         Don't mishandle "+X".
51701         (mode_free): Remove "register" and localize decls.
51702         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51703         (struct mode_change): Move to modechange.c; callers don't
51704         need to see this stuff.
51705         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51706         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51707         (mode_change, mode_adjust): Reflect the new signatures noted above.
51708         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51709         that might redefine system include files.
51710         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51711         (my_usleep): Use NULL rather than (void *) 0.
51712         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51713         Use siginterrupt to specify that system calls should be interrupted.
51714         (rpl_nanosleep): Move initialization of suspended closer to call of
51715         my_usleep.
51716         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51717         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51718         (desirable_utmp_entry): New function.
51719         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51720         using x2nrealloc, to simplify logic.
51721         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51722         size calculation.  Do not assume utmp file is a regular file.
51723         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51724         (READ_UTMP_CHECK_PIDS): New constant.
51725         * lib/save-cwd.c: Include unistd-safer.h.
51726         (save_cwd): Use fd_safer.
51727         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51728         [!_LIBC] Include "stat-macros.h" instead.
51729         * lib/unistd-safer.h (fd_safer): New decl.
51730
51731 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51732
51733         * modules/getloadavg (Depends-on): Add unistd-safer.
51734         * modules/getusershell (Depends-on): Add stdio-safer.
51735         * modules/lstat (Depends-on): Remove xalloc.
51736         * modules/mkstemp (Depends-on): Add stat-macros.
51737         * modules/modechange (Depends-on): Remove xstrtol.
51738         Add stat-macros, xalloc.
51739         * modules/save-cwd (Depends-on): Add unistd-safer.
51740         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51741         * modules/unistd-safer (Files): Add lib/fd-safer.c
51742         (Makefile.am): Remove lib_SOURCES.
51743
51744         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51745         Remove fcntl-safer; unistd-safer supersedes it.
51746
51747 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51750         AC_HEADER_STAT.
51751         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51752         (gl_PREREQ_CHOWN): Remove.
51753         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51754         it.  Don't require AC_HEADER_STAT.
51755         (gl_PREREQ_LSTAT): Remove.
51756         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51757         Don't require AC_HEADER_STAT.
51758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51759         (gl_PREREQ_RMDIR): Remove.
51760         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51761         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51762         the stat-macros module a prerequisite.
51763         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51764         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51765         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51766         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51767         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51768         variable names.
51769         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51770         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51771         variable prefixes.
51772         * m4/fcntl-safer.m4: Remove.
51773         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51774         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51775         Invoke gl_PREREQ_FD_SAFER.
51776         (gl_PREREQ_FD_SAFER): New macro.
51777         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51778         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51779         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51780         Remove duplicate call to AC_LIBOBJ(readutmp).
51781         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51782
51783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51784         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51785
51786 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51787
51788         * MODULES.html.sh (Misc): Add byteswap.
51789
51790 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51791
51792         * modules/getcwd (Depends-on): Add extensions.
51793         * modules/openat (Depends-on): Likewise.
51794
51795 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51796
51797         * modules/byteswap: New file.
51798
51799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51800
51801         * m4/byteswap.m4: New file.
51802
51803 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51804
51805         * lib/byteswap_.h: New file.
51806
51807 2005-04-25  Karl Berry  <karl@gnu.org>
51808
51809         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51810
51811 2005-04-25  Albert Chin  <china@thewrittenword.com>
51812
51813         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51814         Toolkit C bug.
51815
51816 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51817
51818         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51819         (func_ln_if_changed) Remove forcibly for no error message
51820         in case file does not exist.
51821
51822 2005-04-19  Simon Josefsson  <jas@extundo.com>
51823
51824         * gnulib-tool (Options): Make --symlink mean --symbolic.
51825
51826 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51827
51828         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51829
51830 2005-04-16  Simon Josefsson  <jas@extundo.com>
51831
51832         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51833
51834 2005-04-15  Simon Josefsson  <jas@extundo.com>
51835
51836         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51837
51838 2005-04-15  Simon Josefsson  <jas@extundo.com>
51839
51840         * gnulib-tool: Rename --symlink to --symbolic.
51841
51842 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51843
51844         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51845         symbolic links to files instead of copying/moving.  Add --aux-dir,
51846         specifying directory relative --dir where auxiliary build tools
51847         are placed.
51848
51849 2005-04-14  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/allocsa (License): Change to LGPL.
51852         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51853
51854 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51855
51856         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51857         that "UTC +1 second" continues to work.  Problem reported
51858         by Dmitry V. Levin.
51859         (relunit_snumber): New rule.
51860         (relunit): Use it.
51861
51862 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51863
51864         * lib/getdate.y (universal_time_zone_table): New constant.
51865         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51866         universal_time_zone_table.
51867         (lookup_zone): Prefer universal_time_zone_table to
51868         local_time_zone_table, so that "GMT" time stamps are allowed in
51869         London during the summer.  Problem reported by Ian Abbott.
51870
51871 2005-04-12  Jim Meyering  <jim@meyering.net>
51872
51873         * lib/human.c (humblock): Set *options even when returning due to
51874         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51875         warning from gcc-4.
51876
51877 2005-04-09  Jim Meyering  <jim@meyering.net>
51878
51879         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51880         -Wuninitialized: initialize tm0.tm_year.
51881
51882 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51883
51884         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51885         count, since there's no maximum.  All uses changed.
51886         Add member dsts_seen.
51887         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51888         not being INT_MAX.
51889         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51890         Use pc_rels_seen to decide whther a date is absolute.
51891
51892         * lib/getdate.y (number): Don't overwrite year.
51893         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51894         check.
51895
51896 2005-04-02  Simon Josefsson  <jas@extundo.com>
51897
51898         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51899         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51900
51901 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51902
51903         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51904         where no absolute path name can be longer than PATH_MAX.
51905
51906 2005-03-27  Jim Meyering  <jim@meyering.net>
51907
51908         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51909
51910 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51911
51912         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51913         "one's complement" -> "ones' complement" in comment, as per Knuth.
51914         "value of type" -> "type or expression" in comment.
51915         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51916
51917 2005-03-26  Jim Meyering  <jim@meyering.net>
51918
51919         Comment nits.
51920         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51921         Correct typos: s/or/of/.
51922
51923 2005-03-26  Jim Meyering  <jim@meyering.net>
51924
51925         * modules/check-include-files: Move to ../ and rename to...
51926         * check-module: ...this.
51927
51928 2005-03-25  Jim Meyering  <jim@meyering.net>
51929
51930         * modules/xvasprintf (Files): Add xalloc.h.
51931
51932 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * modules/gettext (Files): config/config.rpath ->
51935         build-aux/config.rpath
51936         * modules/iconv (Files): Likewise.
51937         Problem reported by Oskar Liljeblad.
51938
51939 2005-03-23  Jim Meyering  <jim@meyering.net>
51940
51941         * modules/check-include-files: New script to check for
51942         missing dependencies, multiple includes, etc.
51943
51944         * modules/c-strtold (Depends-on): Add xalloc.
51945         * modules/c-strtod (Depends-on): Add xalloc.
51946         * modules/hash (Depends-on): Add xalloc.
51947         (Files): Remove lib/xalloc.h.
51948
51949         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51950         * modules/userspec (Files): Add lib/inttostr.h.
51951
51952 2005-03-23  Jim Meyering  <jim@meyering.net>
51953
51954         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51955
51956 2005-03-22  Jim Meyering  <jim@meyering.net>
51957
51958         * modules/stat-macros: New module.
51959         * modules/canonicalize, modules/euidaccess, modules/file-type,
51960         * modules/filemode, modules/lchown, modules/makepath,
51961         * modules/rmdir, modules/stat: Depend on new stat-macros module
51962         rather than listing lib/stat-macros.h manually.
51963         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51964
51965 2005-03-22  Jim Meyering  <jim@meyering.net>
51966
51967         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51968
51969 2005-03-22  Bruno Haible  <bruno@clisp.org>
51970
51971         * config/srclist.txt: Replace target directory 'config' with
51972         'build-aux'.
51973         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51974         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51975         ../build-aux/.
51976
51977 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * modules/chdir-long (Depends-on): Add mempcpy.
51980
51981         * modules/acl, modules/backupfile, modules/c-strtod,
51982         modules/c-strtold, modules/canon-host, modules/canonicalize,
51983         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51984         modules/exclude, modules/exitfail, modules/file-type,
51985         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51986         modules/getdate, modules/getline, modules/getpagesize,
51987         modules/getpass, modules/getugroups, modules/group-member,
51988         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51989         modules/inttostr, modules/long-options, modules/makepath,
51990         modules/md5, modules/memcasecmp, modules/memcoll,
51991         modules/modechange, modules/mountlist, modules/path-concat,
51992         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51993         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51994         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51995         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51996         modules/strftime, modules/strndup, modules/strverscmp,
51997         modules/timespec, modules/unlocked-io, modules/userspec,
51998         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51999         modules/yesno:
52000         Remove lib_SOURCES line from Makefile.am section, as this is now
52001         done automatically by the corresponding Autoconf macro.
52002
52003 2005-03-21  Jim Meyering  <jim@meyering.net>
52004
52005         Changes imported from coreutils.
52006
52007         * lib/cycle-check.c: Don't include xalloc.h.
52008
52009         * lib/path-concat.c: Don't include assert.h.
52010         (path_concat): Remove assertion that would have triggered
52011         for ABASE starting with more than one slash.
52012         Reported by Andreas Schwab.
52013
52014         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52015         properly when ABASE is an absolute file name.
52016         Correct the description of this function.
52017         Include <assert.h>.
52018         Add an assertion and a test driver.
52019         This fixes a bug introduced on 2004-07-02.
52020         Andreas Schwab reported the resulting failure of cp --parents:
52021         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52022
52023 2005-03-21  Jim Meyering  <jim@meyering.net>
52024
52025         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52027
52028 2005-03-21  Jim Meyering  <jim@meyering.net>
52029         and  Paul Eggert  <eggert@cs.ucla.edu>
52030
52031         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52032         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52033         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52034         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52035         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52036         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52037         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52038         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52039         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52040         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52041         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52042         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52043         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52044         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52045         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52046         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52047         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52048         for these modules.
52049
52050 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52051
52052         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52053         (which shouldn't happen), generate nothing instead of returning 0
52054         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52055
52056 2005-03-16  Bruno Haible  <bruno@clisp.org>
52057
52058         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52059         HAVE_LONGLONG_64BIT.
52060
52061 2005-03-16  Bruno Haible  <bruno@clisp.org>
52062
52063         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52064         HAVE_LONGLONG_64BIT.
52065
52066 2005-03-16  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52069         HAVE_LONGLONG_64BIT.
52070
52071 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52074         reliably distinguish strftime failure from empty output on POSIX
52075         hosts.
52076
52077 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52078
52079         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52080         (iconv_string): Don't guess a size-zero buffer, as that might cause
52081         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52082         result would be 'too large', where 'too large' is (heuristically)
52083         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52084         overflow concerns.  This will prevent some unwanted malloc failures
52085         when the inputs are very large.
52086
52087 2005-03-15  Karl Berry  <karl@gnu.org>
52088
52089         * config/srclist.txt (config.rpath): from gettext.
52090         * config/config.rpath: update.
52091
52092 2005-03-15  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52095         to 'negate'.
52096
52097         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52098         variable.
52099
52100         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52101         results.
52102
52103 2005-03-14  Simon Josefsson  <jas@extundo.com>
52104
52105         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52106         <fx@gnu.org>.
52107
52108 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52109
52110         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52111         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52112         intprops.h.
52113         * lib/strtol.c: Likewise.
52114
52115 2005-03-14  Jim Meyering  <jim@meyering.net>
52116
52117         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52118         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52119         to be nonzero so that we (and caller) can detect the difference
52120         between a valid zero-length expansion and an error return, even
52121         when the underlying strftime fails before writing anything into
52122         that location.
52123
52124 2005-03-14  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52127         Update from GNU gettext 0.14.3.
52128
52129 2005-03-10  Jim Meyering  <jim@meyering.net>
52130
52131         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52132
52133 2005-03-10  Jim Meyering  <jim@meyering.net>
52134
52135         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52136         so that this module works on systems without fchdir.
52137
52138 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         Factor int-properties macros into a single file, except for
52141         glibc-related files.
52142         * lib/intprops.h: New file.
52143         * lib/getloadavg.c: Include it instead of limits.h.
52144         (INT_STRLEN_BOUND): Remove.
52145         * lib/human.c: Include intprops.h.
52146         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52147         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52148         302/1000.
52149         * lib/inttostr.h: Include intprops.h instead of limits.h.
52150         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52151         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52152         for consistency with intprops.h.
52153         (time_t_is_integer, twos_complement_arithmetic): Use them.
52154         * lib/sig2str.h: Include <signal.h>, intprops.h.
52155         (INT_STRLEN_BOUND): Remove.
52156         * lib/strftime.c (TYPE_SIGNED): Remove.
52157         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52158         * lib/strtol.c: Adjust comments to match intprops.h.
52159         * lib/userspec.c: Include intprops.h.
52160         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52161         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52162         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52163         instead of rolling our own expressions.
52164         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52165
52166         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52167         instead of int.
52168         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52169         the right thing even if adding 1900 would overflow.  Similarly
52170         for tm_mon + 1 and tm_yday + 1.
52171         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52172         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52173         (DO_SIGNED_NUMBER): New macro.
52174         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52175
52176 2005-03-07  Bruno Haible  <bruno@clisp.org>
52177
52178         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52179
52180 2005-03-07  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52183
52184 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52185
52186         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52187         (func_import): Only replace files via --import when they have actually
52188         changed.
52189
52190 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52191
52192         * m4/mmap-anon.m4: New file.
52193         * m4/pagealign_alloc.m4: New file.
52194
52195 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52196             Bruno Haible  <bruno@clisp.org>
52197
52198         * modules/pagealign_alloc: New file.
52199         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52200
52201 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52202             Bruno Haible  <bruno@clisp.org>
52203
52204         * lib/pagealign_alloc.h: New file.
52205         * lib/pagealign_alloc.c: New file.
52206
52207 2005-03-03  Bruno Haible  <bruno@clisp.org>
52208
52209         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52210         Use an all-permissive copyright notice, recommended by RMS.
52211
52212 2005-03-02  Bruno Haible  <bruno@clisp.org>
52213
52214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52215         of AIX, the replacement has to be done only after <string.h> is
52216         included, therefore not in config.h. stpncpy.h does the replacement,
52217         and stpncpy.c uses it.
52218
52219 2005-03-02  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52222         stpncpy.c uses it.
52223
52224 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52225
52226         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52227         The workaround isn't strictly needed for POSIX conformance, and
52228         it's too much of a pain to configure and maintain.  We'll ask
52229         people to fix their kernels instead.
52230         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52231         (NANOSLEEP_BUG_WORKAROUND): Remove.
52232         (xnanosleep): Remove the workaround.
52233
52234 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52237         Reported by Derek Price.
52238         (Include): Add "timespec.h".
52239
52240         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52241
52242 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52243
52244         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52245         to detect nanosleep bug.
52246
52247 2005-03-01  Bruno Haible  <bruno@clisp.org>
52248
52249         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52250
52251 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52252
52253         * modules/gethrxtime: New file.
52254         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52255         (Depends-on): Add gethrxtime.
52256         (configure.ac): Add gl_XNANOSLEEP.
52257         (Makefile.am): Remove lib_SOURCES line.
52258
52259 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52260
52261         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52262         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52263
52264 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52267         * lib/timespec.h (gettime): Return void, since it always
52268         succeeds now.  All uses changed.
52269         * lib/gettime.c (gettime) Likewise.
52270         [HAVE_NANOTIME]: Prefer nanotime.
52271         Assume gettimeofday succeeds, as POSIX requires.
52272         Assime time () succeeds, since other code already does.
52273         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52274         (timespec_subtract): Remove.
52275         (NANOSLEEP_BUG_WORKAROUND): New constant.
52276         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52277         things considerably.  Use it only on GNU/Linux hosts, since the
52278         workaround shouldn't be needed elsewhere.
52279
52280 2005-02-24  Bruno Haible  <bruno@clisp.org>
52281
52282         * modules/gettext (Files): Add m4/glibc2.m4.
52283
52284 2005-02-24  Bruno Haible  <bruno@clisp.org>
52285
52286         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52287         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52288         * m4/progtest.m4:
52289         Update from GNU gettext 0.14.2.
52290         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52291
52292 2005-02-24  Bruno Haible  <bruno@clisp.org>
52293
52294         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52295         * lib/config.charset: Update from GNU gettext 0.14.2.
52296
52297 2005-02-24  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/gettext.h: Update from GNU gettext 0.14.2.
52300
52301 2005-02-23  Simon Josefsson  <jas@extundo.com>
52302
52303         * m4/iconvme.m4: New file.
52304
52305 2005-02-23  Jim Meyering  <jim@meyering.net>
52306
52307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52308         change.
52309         Thanks to Bruno Haible for catching it.
52310
52311 2005-02-22  Simon Josefsson  <jas@extundo.com>
52312
52313         * modules/iconvme: New file.
52314
52315         * MODULES.html.sh: Add iconvme.
52316
52317 2005-02-22  Simon Josefsson  <jas@extundo.com>
52318
52319         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52320
52321 2005-02-22  Simon Josefsson  <jas@extundo.com>
52322
52323         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52324
52325 2005-02-22  Jim Meyering  <jim@meyering.net>
52326
52327         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52328         s/ifndef/ifdef/.
52329
52330 2005-02-20  Neil Conway  <neilc@samurai.com>
52331
52332         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52333         returned by OSX/Darwin if the specified buffer is not large
52334         enough for the hostname.
52335
52336 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52337
52338         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52339         pass it to _help, otherwise the latter coredumps trying to
52340         dereference state.root_argp.
52341
52342 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * modules/chdir-long (Depends-on): Add memrchr.
52345         * modules/memrchr (Files): Add lib/memrchr.h.
52346         (Include): "memrchr.h".
52347
52348 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52351
52352 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52353
52354         * lib/memrchr.h: New file.
52355         * lib/chdir-long.c: Include it.
52356         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52357         Don't bother including stddef.h.
52358
52359 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52362         inclusion.
52363         Include <sys/types.h>, for dev_t.
52364         (ME_DUMMY, ME_REMOTE): Move from here....
52365         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52366         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52367         Dmitry V. Levin.
52368         Include mountlist.h first, to test the interface.
52369
52370 2005-01-29  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/progname.c (program_name): Initialize.
52373         Needed when linking statically on MacOS X.
52374
52375 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         Sync from coreutils.
52378         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52379         (Depends-on): Add c-strtod.
52380         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52381
52382 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         Sync from coreutils.
52385         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52386
52387         Remove files that are specific to coreutils.
52388         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52389
52390 2005-01-28  Bruno Haible  <bruno@clisp.org>
52391
52392         * modules/javacomp: New file.
52393         * MODULES.html.sh (Java): Add javacomp.
52394
52395 2005-01-28  Bruno Haible  <bruno@clisp.org>
52396
52397         * m4/javacomp.m4: New file, from GNU gettext.
52398
52399 2005-01-28  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/javacomp.sh.in: New file, from GNU gettext.
52402         * lib/javacomp.h: New file, from GNU gettext.
52403         * lib/javacomp.c: New file, from GNU gettext.
52404
52405 2005-01-26  Simon Josefsson  <jas@extundo.com>
52406
52407         * lib/gai_strerror.c: Use GPL in header.
52408
52409 2005-01-26  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/javaexec: New file.
52412         * MODULES.html.sh (Java): Add javaexec.
52413
52414 2005-01-26  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/javaexec.m4: New file, from GNU gettext.
52417
52418 2005-01-26  Bruno Haible  <bruno@clisp.org>
52419
52420         * lib/javaexec.sh.in: New file, from GNU gettext.
52421         * lib/javaexec.h: New file, from GNU gettext.
52422         * lib/javaexec.c: New file, from GNU gettext.
52423
52424 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52425
52426         * modules/lchown (Depends-on): Remove lchown.h
52427
52428 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52429
52430         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52431         must be defined if the header file was not found, in order
52432         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52433
52434 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52435
52436         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52437         initializers for struct pentry_state.
52438         (__argp_error): Check return value of __asprintf
52439         (__argp_failure): Translate error message
52440
52441         * lib/argp-parse.c: Removed braces around the expansion of N_()
52442
52443 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52444
52445         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52446         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52447         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52448         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52449         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52450         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52451         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52452         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52453         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52454         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52455         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52456         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52457         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52458         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52459         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52460         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52461         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52462         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52463         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52464         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52465         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52466         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52467         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52468         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52469         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52470         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52471         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52472         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52473         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52474         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52475         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52476         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52477         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52478         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52479         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52480         Use an all-permissive copyright notice, recommended by RMS.
52481
52482 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52483
52484         * modules/chdir-long (Depends-on): Remove mempcpy.
52485
52486 2005-01-21  Jim Meyering  <jim@meyering.net>
52487
52488         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52489         same value as for Solaris 9.
52490
52491         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52492         component length.  This included changing the parameter to be
52493         of type `char *' rather than `char const *'.
52494         * lib/chdir-long.h (chdir_long): Update prototype.
52495
52496         * lib/openat.c (fdopendir, fstatat): New functions.
52497         * lib/openat.h: Include headers required for use of DIR and struct
52498         stat.
52499         [AT_SYMLINK_NOFOLLOW]: Define.
52500         (fdopendir, fstatat): Add prototypes.
52501
52502 2005-01-21  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/classpath: New file.
52505         * MODULES.html.sh (Java): Add classpath.
52506
52507 2005-01-21  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/classpath.h: New file, from GNU gettext.
52510         * lib/classpath.c: New file, from GNU gettext.
52511
52512 2005-01-20  Simon Josefsson  <jas@extundo.com>
52513
52514         * modules/version-etc-fsf: New file.
52515
52516 2005-01-20  Simon Josefsson  <jas@extundo.com>
52517
52518         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52519         * lib/version-etc.c: Remove version_etc_copyright.
52520         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52521         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52522
52523 2005-01-20  Simon Josefsson  <jas@extundo.com>
52524
52525         * lib/base64.h (isbase64): Add.
52526
52527         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52528         using a unsigned prototype, don't inline.
52529         (base64_decode): Use it.
52530
52531 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52534         it.
52535
52536 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52537
52538         * lib/save-cwd.c (save_cwd): Remove code to support the case
52539         where fchdir is missing or flaky.
52540
52541 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52544
52545 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52546
52547         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52548         AC_LIBSOURCES now does this.
52549         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52550         with new ullong_max module.
52551
52552 2005-01-19  Bruno Haible  <bruno@clisp.org>
52553
52554         * modules/sh-quote: New file.
52555         * MODULES.html.sh (Executing programs): Add sh-quote.
52556
52557 2005-01-19  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/sh-quote.h: New file, from GNU gettext.
52560         * lib/sh-quote.c: New file, from GNU gettext.
52561
52562 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         Merge from coreutils.
52565         * m4/ullong_max.m4: New file.
52566         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52567         (gl_MACROS): Assume localeconv exists.
52568
52569 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52570
52571         Merge changes from coreutils, as described below in several
52572         changelogs dated today.
52573
52574         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52575         (O_DIRECTORY): Remove; not needed here, since "." must be
52576         a directory.  All uses removed.
52577         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52578         universal on Suns, and we also need to test for IRIX.
52579         Revamp code to use 'if' rather than '#if'.
52580         Avoid unnecessary comparison of cwd->desc to 0.
52581
52582         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52583         for known valid error numbers rather than observed invalid ones.
52584
52585 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         * modules/ullong_max: New file.
52588
52589         * modules/chdir-long, modules/openat: New files.
52590         * modules/save-cwd (Depends-on): Depend on chdir-long.
52591         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52592
52593 2005-01-18  Jim Meyering  <jim@meyering.net>
52594
52595         Merge from coreutils.
52596         * m4/chdir-long.m4, m4/openat.m4: New files.
52597         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52598         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52599         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52600         is sane and DOES follow symlinks.  Besides, testing 20 different
52601         systems found no broken chown implementations.
52602         Prompted by a change in rsync's copy of this macro.
52603         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52604
52605         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52606
52607         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52608         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52609         NULL-means-set-to-current-time semantics.
52610         Remove temporary file immediately, rather than waiting
52611         for configure's at-exit trap code to do it.
52612
52613 2005-01-18  Jim Meyering  <jim@meyering.net>
52614
52615         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52616
52617         * lib/utimens.c (futimens): Account for the fact that futimes
52618         can also fail with errno == ENOSYS or errno == ENOENT.
52619         Patch from Dmitry V. Levin.
52620
52621         Change the name of the robust chdir function from chdir to chdir_long.
52622         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52623         (restore_cwd): Use chdir_long, not chdir.
52624         * lib/chdir-long.c: Renamed from chdir.c.
52625         * lib/chdir-long.h: Renamed from chdir.h.
52626         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52627         Hurd.
52628
52629 2005-01-18  Bruno Haible  <bruno@clisp.org>
52630
52631         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52632         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52633         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52634         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52635         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52636         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52637         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52638         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52639         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52640         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52641         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52642         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52643         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52644         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52645         Use an all-permissive copyright notice, recommended by RMS.
52646
52647 2005-01-18  Bob Proulx  <bob@proulx.com>
52648
52649         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52650         simplify offsetof() macro construct to avoid compile failure with
52651         native HP-UX 11.0 ANSI C compiler.
52652
52653 2005-01-17  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52656         redundant because stpncpy.m4 takes care of it.
52657
52658 2005-01-17  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52661
52662 2005-01-17  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52665         used.
52666
52667 2005-01-17  Bruno Haible  <bruno@clisp.org>
52668
52669         * lib/fwriteerror.h (fwriteerror): Change specification to include
52670         fclose.
52671         * lib/fwriteerror.c: Include <stdbool.h>.
52672         (fwriteerror): At the end, close the file stream. Record whether
52673         stdout was already closed.
52674
52675 2005-01-17  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/execute.c (environ): Declare if needed.
52678         * lib/pipe.c (environ): Likewise.
52679         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52680
52681 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52682
52683         * modules/argp: Depend on vsnprintf
52684
52685 2005-01-10  Jim Meyering  <jim@meyering.net>
52686
52687         * modules/closeout (Depends-on): Add atexit.
52688
52689 2005-01-06  Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52692
52693 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52694
52695         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52696         definitions to be after all include files, to avoid collisions.
52697         Problem reported by Bob Proulx.
52698
52699 2005-01-04  Jim Meyering  <jim@meyering.net>
52700
52701         Changes imported from coreutils.
52702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52703         as the mkstemp template, use a temporary directory and an
52704         8.3-friendly template to avoid trouble on systems like DJGPP.
52705         Reported by Juan M. Guerrero via Stepan Kasal.
52706         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52707         close. Remove the temporary directory right away, rather than waiting
52708         for configure's at-exit trap code to do it.
52709         Suggestion from Stepan Kasal.
52710
52711 2005-01-01  Simon Josefsson  <jas@extundo.com>
52712
52713         * gnulib-tool: Print #include directives when --import'ing.
52714
52715 2004-12-28  Simon Josefsson  <jas@extundo.com>
52716
52717         * tests/test-base64.c: Include required header files.  Remove
52718         unused variables.
52719
52720 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * modules/error (Depends-on): Remove gettext.
52723
52724 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52727         not needed.  This removes a dependency on the gettext module.
52728         [defined _LIBC]: Do not include <libintl.h>; not needed.
52729
52730 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52731
52732         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52733         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52734
52735 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52736
52737         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52738         HAVE_DECL_STRTOLD.
52739
52740 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         * modules/getdate (Depends-on): Remove alloca-opt.
52743
52744 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52747
52748 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52749
52750         * lib/argp-parse.c: Include <stddef.h>.
52751         (alignof, alignto): New macros.
52752         (parser_init): Don't assume that void * is aligned sufficiently
52753         for struct option.
52754
52755         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52756         need to extend the stack.
52757         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52758         large.
52759
52760 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52761
52762         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52763
52764 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52767         (2004-10-24) change.  Apparently this was a false alarm.
52768
52769         * modules/getdate: Depend on alloca-opt, not alloca.
52770
52771 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52772
52773         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52774         Remove now-obsolete comment about AIX.
52775         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52776         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52777         (YYMAXDEPTH): New macro.
52778
52779 2004-12-18  Simon Josefsson  <jas@extundo.com>
52780
52781         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52782
52783 2004-12-18  Bruno Haible  <bruno@clisp.org>
52784
52785         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52786
52787 2004-12-18  Bruno Haible  <bruno@clisp.org>
52788
52789         * lib/fatal-signal.c (fatal_signals): Make non-const.
52790         (init_fatal_signals): New function.
52791         (uninstall_handlers, install_handlers): Ignore signals that were set to
52792         SIG_IGN.
52793         (at_fatal_signal): Call init_fatal_signals.
52794         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52795         SIG_IGN.
52796         Reported by Paul Eggert.
52797
52798 2004-12-18  Bruno Haible  <bruno@clisp.org>
52799
52800         * doc/alloca.texi: New file.
52801         * doc/alloca-opt.texi: New file.
52802
52803 2004-12-17  Jim Meyering  <jim@meyering.net>
52804
52805         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52806         Otherwise, install-sh could exit with improper exit status when
52807         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52808
52809 2004-12-16  Simon Josefsson  <jas@extundo.com>
52810
52811         * tests/test-base64.c: Add license.
52812
52813 2004-12-15  Stepan Kasal  <address@hidden>
52814
52815         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52816
52817 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         * modules/getcwd (Files): Add m4/d-ino.m4.
52820         Suggested by Mark D. Baushke.
52821
52822 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52823
52824         * lib/getdate.y (textint): New member "negative".
52825         (time_zone_hhmm): New function.
52826         Expect 14 shift-reduce conflicts, not 13.
52827         (o_colon_minutes): New rule.
52828         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52829         (yylex): Set the "negative" member of signed numbers.
52830
52831 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * doc/getdate.texi (Time of day items, Time zone items):
52834         Describe new formats +00:00, UTC+00:00.
52835
52836 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52839         spurious "-l"s.  Problem reported by Stepan Kasal.
52840
52841 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52842
52843         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52844         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52845
52846 2004-12-04  Simon Josefsson  <jas@extundo.com>
52847
52848         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52849         Vandoorselaere <yoann@prelude-ids.org>.
52850
52851 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52852
52853         Changes imported from coreutils.
52854         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52855         exist.
52856         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52857
52858 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         Changes imported from coreutils.
52861         * lib/hard-locale.c: Assume <locale.h> exists.
52862         Include "strdup.h".
52863         (GLIBC_VERSION): New macro.
52864         (hard_locale): Assume setlocale exists.
52865         Rewrite to avoid #ifdef.
52866         Use strdup rather than malloc + strcpy.
52867         * lib/human.c: Assume <locale.h> exists.
52868         (human_readable): Assume localeconv exists.
52869
52870 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52871
52872         * modules/hard-locale (Depends-on): Add strdup.
52873
52874 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52875
52876         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52877         convert T2, not T.  (Imported from libc.)
52878
52879 2004-11-30  Simon Josefsson  <jas@extundo.com>
52880
52881         * modules/restrict (License): Change to LGPL.
52882
52883 2004-11-30  Simon Josefsson  <jas@extundo.com>
52884
52885         * m4/restrict.m4: Add copyright and copying conditions.
52886
52887 2004-11-30  Simon Josefsson  <jas@extundo.com>
52888
52889         * m4/base64.m4: New file.
52890
52891 2004-11-30  Simon Josefsson  <jas@extundo.com>
52892
52893         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52894         base64.
52895
52896         * tests/test-base64.c: New file.
52897
52898         * modules/base64: New file.
52899
52900 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52901
52902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52903         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52904
52905         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52906
52907 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52908
52909         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52910         (__getcwd.c): Don't restore errno; glibc doesn't.
52911         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52912         first, falling back to our code only if its results look suspicious.
52913         Ensure that the resulting buffer is only as large as necessary.
52914
52915         * lib/readutmp.c: Include readutmp.h first.
52916         Include <errno.h>, since readutmp.h no longer does that.
52917         * lib/readutmp.h: Don't include <errno.h>,
52918         <sys/param.h>, <time.h>; not needed to establish interface.
52919         (errno): Remove decl.
52920         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52921         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52922         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52923
52924 2004-11-28  Simon Josefsson  <jas@extundo.com>
52925
52926         * lib/base64.h, base64.c: New file.
52927
52928 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52931
52932 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52935         (Depends-on): Remove pathmax, same.  Add mempcpy.
52936         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52937         (Makefile.am): Append getcwd.h to lib_SOURCES.
52938         (Include): Add getcwd.h.
52939         (Maintainer): Change from Jim Meyering to "all, glibc",
52940         since getdate now uses intended-for-glibc code.
52941         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52942         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52943
52944 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52947         HP's ANSI C compiler.
52948         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52949         Declaring int functions causes warnings on some modern systems and
52950         shouldn't be needed to compile on ancient ones.
52951         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52952         defined.
52953
52954         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52955         with the following changes.
52956         (__set_errno): Parenthesize properly.
52957         Include <stdbool.h>.
52958         (MIN, MAX, MATCHING_INO): New macros.
52959         (__getcwd): Define with prototype, not K&R form.
52960         Use heuristics to allocate default buffer on stack if possible.
52961         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52962         behavior, and to avoid the PATH_MAX limit when computing
52963         ../../../../...
52964         Use MATCHING_INO to compare inode number to file.
52965         Check for arithmetic overflow in size calculations.
52966         Fix bug in reallocation of dot array that caused getcwd to fail
52967         on directories nested deeper than 75.
52968         Be more careful about saving errno on error.
52969         Do not use realloc; use only free+malloc, as this is a bit
52970         more flexible and avoids a needless copy operation.
52971         Do not inspect st_dev and st_ino for symbolic links; POSIX
52972         doesn't specify the latter.
52973         Check for closedir errors.
52974         Avoid needless casts.
52975         Use "#ifdef weak_alias" around weak_alias, to be like other
52976         glibc code.
52977         The following changes to getcwd.c have effect only when used in
52978         gnulib; they have no effect inside glibc proper.
52979         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52980         as alloca isn't used.
52981         (alloca, __alloca): Likewise.
52982         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52983         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52984         unconditionally, as gnulib assumes C89 or better.
52985         Do not include <sys/param.h>.
52986         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52987         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52988         better.
52989         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52990         Include <dirent.h> in a way that is compatible with modern Autoconf.
52991         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52992         New macros, if not already defined.
52993         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52994         Use "_LIBC", not "defined _LIBC", for consistency.
52995         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52996         a mempcpy module.
52997         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52998         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52999         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53000         credit only to Jim Meyering and adjust the copyright dates.
53001         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53002         <stdlib.h>, <unistd.h>, "pathmax.h".
53003         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53004         (INITIAL_BUFFER_SIZE): Remove.
53005         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53006
53007 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53010         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53011         Use the _ONCE methods, for efficiency.
53012         Check for fcntl.h.  In test program, include <errno.h>
53013         and <fcntl.h> if available.  Remove old K&R cruft from
53014         test program.  Check for common errors in GNU/Linux,
53015         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53016         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53017         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53018         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53019         name accordingly.
53020         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53021         accommodate new getcwd.c.
53022         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53023         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53024         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53025         that's all we need now.
53026
53027 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53028
53029         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53030         argp-parse.c depends on getopt internals, that means we should
53031         always use our getopt, to be on the safe side.
53032         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53033         order not to spoil the result of an eventual previous invocation
53034         of gl_GETOPT_SUBSTITUTE.
53035
53036 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53037
53038         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53039         redefinition warnings. To avoid them, include the defines
53040         in `#if !defined __need_getopt ... #endif'. The only place
53041         where __getopt_argv_const is used is in definitions
53042         of getopt_long and getopt_long_only below, which are as well
53043         protected by `#ifndef __need_getopt'.
53044         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53045         __need_getopt after including <stdio.h> and <unistd.h> These
53046         headers might have defined it.
53047
53048 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53051
53052 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53055         (futimens): New function, which uses futimes if available.
53056         (futimens, utimens): Support timespec==NULL, with same semantics
53057         as utime and utimens.
53058         * lib/utimens.h (futimens): New decl.
53059
53060 2004-11-23  Jim Meyering  <jim@meyering.net>
53061
53062         * lib/getopt_.h: Remove trailing blanks.
53063
53064 2004-11-23  Jim Meyering  <jim@meyering.net>
53065
53066         * lib/__fpending.c: Add comment.
53067
53068 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * modules/canonicalize (Depends-on): Add xreadlink.
53071         Problem reported by James Youngman.
53072
53073 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53076         New macros.
53077         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53078         optopt): Use them instead of invoking ## directly; otherwise, the
53079         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53080
53081 2004-11-19  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/strtok_r.c: Move comments from here...
53084         * lib/strtok_r.h: ... to here.
53085
53086 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53087
53088         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53089         implementations that mishandle size_t overflow.
53090
53091 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53094         might fail.  Problem reported by Yoann Vandoorselaere.
53095         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53096         implementations that mishandle size_t overflow.
53097
53098 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * modules/canon-host (Depends-on): Add strdup.
53101
53102 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53103
53104         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53105
53106 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * lib/canon-host.c: Include "strdup.h".
53109         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53110         Use strdup instead of malloc/strcpy to duplicate strings.
53111
53112         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53113         (human_space_before_unit): New constant.
53114         * lib/human.c (human_readable): Support it.
53115
53116         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53117         (xgetcwd): Set errno correctly when failing.
53118         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53119         the failure is actually due to a PATH_MAX problem.
53120
53121         Further getopt changes to make it more likely that glibc will
53122         buy the changes back.
53123         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53124         (getopt): Use it, so to preserve glibc semantic
53125         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53126         when compiling for libc.
53127         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53128         (getopt_long, getopt_long_only): Use it.
53129
53130         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53131         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53132         (getopt): Argv is now char * const *, as per standard.
53133         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53134         not char *__getopt_argv_const *.
53135         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53136         _getopt_long_only_r): Likewise.
53137         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53138         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53139         _getopt_long_r, _getopt_long_only_r): Likewise.
53140         * lib/getopt_.h (__getopt_argv_const): Remove.
53141         (getopt): Argv is now char * const *, as per standard.
53142
53143         * lib/getdate.y (tORDINAL): New token.
53144         (day, relunit): Allow it for relative times.
53145         (relative_time_table): Use tORDINAL for ordinals.
53146
53147 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53150         Document that "second" isn't allowed as an ordinal number.
53151
53152 2004-11-16  Jim Meyering  <jim@meyering.net>
53153
53154         * modules/closeout (Depends-on): Add fpending.
53155
53156 2004-11-15  Jim Meyering  <jim@meyering.net>
53157
53158         * lib/closeout.c: Include "__fpending.h" once again.
53159         Include <stdbool.h>.
53160         (close_stdout): Don't fail just because stdout was closed initially,
53161         since some programs don't write to stdout in the normal course of
53162         operation (other than --version and --help), and we don't want this
53163         function to make e.g. `touch file >&-' fail.
53164         But do fail if it was closed and someone has tried to write to it.
53165         E.g., `printf foo >&-' must fail.
53166
53167 2004-11-13  Jim Meyering  <jim@meyering.net>
53168
53169         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53170
53171 2004-11-12  Simon Josefsson  <jas@extundo.com>
53172
53173         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53174         small doc fix is still pending.
53175
53176 2004-11-11  Simon Josefsson  <jas@extundo.com>
53177
53178         * modules/strtok_r: New file.
53179
53180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53181         strtok_r.
53182
53183 2004-11-11  Simon Josefsson  <jas@extundo.com>
53184
53185         * m4/strtok_r.m4: New file.
53186
53187         * m4/getopt.m4: Replace opterr.
53188
53189 2004-11-11  Simon Josefsson  <jas@extundo.com>
53190
53191         * lib/strtok_r.h, strtok_r.c: New file.
53192
53193 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53194
53195         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53196         of replacing opterr, getopt, etc.  This should handle the
53197         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53198
53199 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53202         we can stop lying to compilers about the constness of argv when we
53203         are compiled outside glibc.
53204         (getopt, getopt_long, getopt_long_only): Use it.
53205         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53206         _getopt_internal, getopt): Likewise.
53207         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53208         _getopt_long_only_r): Likewise.
53209         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53210         _getopt_long_r, _getopt_long_only_r): Likewise.
53211
53212         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53213         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53214         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53215         the other external symbols.
53216         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53217         declaration, since the above renaming now works around collisions.
53218
53219 2004-11-11  Jim Meyering  <jim@meyering.net>
53220
53221         * lib/linebreak.c: Remove trailing blanks.
53222         * lib/alloca_.h: Likewise.
53223         * lib/acosl.c: Likewise.
53224         * lib/euidaccess.c: Likewise.
53225         * lib/allocsa.h: Likewise.
53226
53227 2004-11-10  Simon Josefsson  <jas@extundo.com>
53228
53229         * m4/getaddrinfo.m4: New file.
53230
53231 2004-11-10  Simon Josefsson  <jas@extundo.com>
53232
53233         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53234
53235 2004-11-10  Simon Josefsson  <jas@extundo.com>
53236
53237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53238         getaddrinfo.
53239
53240         * modules/getaddrinfo: New file.
53241
53242 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53243
53244         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53245
53246 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * lib/mktime.c (SHR): New macro, which is a portable
53249         substitute for >> that should work even on Crays.
53250         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53251         Problem reported by Mark D. Baushke in
53252         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53253         * lib/getdate.y (SHR): Likewise.
53254         (tm_diff): Use it.
53255         * lib/strftime.c (SHR): Likewise.
53256         (tm_diff): Use it.
53257         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53258         quote_these_too, so that right shifts are well defined.  All uses
53259         changed.
53260
53261 2004-11-10  Jim Meyering  <jim@meyering.net>
53262
53263         Ensure that no close failure goes unreported.
53264         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53265         return early when it seems there's nothing to flush.
53266         Don't include __fpending.h.
53267
53268 2004-11-10  Jim Meyering  <jim@meyering.net>
53269
53270         * modules/closeout (Depends-on): Remove fpending.
53271
53272 2004-11-10  Jim Meyering  <jim@meyering.net>
53273
53274         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53275
53276 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53279         gl_FUNC_STRFTIME.
53280         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53281         and AC_REQUIRE when possible, to avoid duplicate checks.
53282         Check for <wchar.h>.
53283
53284 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53285
53286         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53287
53288 2004-11-09  Bruno Haible  <bruno@clisp.org>
53289
53290         * m4/sockpfaf.m4: New file.
53291
53292 2004-11-05  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53295         Reported by Mark D. Baushke <mdb@cvshome.org>.
53296
53297 2004-11-04  Bruno Haible  <bruno@clisp.org>
53298
53299         2004-09-11  Bruno Haible  <bruno@clisp.org>
53300                 * allocsa.valgrind: New file.
53301         2004-02-06  Bruno Haible  <bruno@clisp.org>
53302                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53303                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53304                 Reported by Christopher Seip <chris.seip@hp.com>.
53305
53306 2004-11-04  Bruno Haible  <bruno@clisp.org>
53307
53308         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53309         (Makefile.am): Distribute it.
53310
53311 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53312
53313         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53314         with errno == ERANGE if the buffer is too small.
53315         Problem reported by Mark D. Baushke.
53316
53317 2004-11-03  Albert Chin  <china@thewrittenword.com>
53318             Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53321         equivalent, substitute $ac_type for equivalent type rather than
53322         blindly using uint32_t *always* which won't work if uint32_t is not
53323         available.  Define _UINT32_T to work around typedef of uint32_t if
53324         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53325         2.5.1.
53326
53327 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53328
53329         * m4/jm-macros.m4: Sync from coreutils.
53330         (gl_MACROS): Check for mbrlen, for pathchk.
53331         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53332
53333 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53334
53335         * lib/xreadlink.c (MAXSIZE): New macro.
53336         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53337         size does not exceed MAXSIZE.  Avoid cast.
53338         As suggested by Mark D. Baushke in
53339         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53340         if readlink fails with buffer size just under MAXSIZE, try again
53341         with MAXSIZE.
53342
53343 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53346
53347 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53348         and  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53351         (get_date): Overparenthesize to avoid GCC warning.
53352
53353 2004-11-02  Bruno Haible  <bruno@clisp.org>
53354
53355         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53356         returns void.
53357
53358 2004-11-02  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53361         function returns void.
53362
53363 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53366         fflush_unlocked, flockfile, funlockfile, funlockfile,
53367         fputs_unlocked, putc_unlocked.
53368
53369 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53372         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53373         already declared.
53374
53375 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         * modules/getdate (Files): Add doc/getdate.texi.
53378         (Depends-on): Add setenv, xalloc.
53379
53380 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         * lib/getdate.y: Add support for TZ="foo" within a date string.
53383         Fix some bugs near time_t boundaries.  Reject dates with
53384         out-of-range components, e.g., "Sept 31".
53385         Include <stdlib.h>, "setenv.h", "xalloc.h".
53386         (ISDIGIT_LOCALE): Remove; unused.
53387         Note that the TZ and time functions used here are not reentrant.
53388         (mktime_ok, get_tz): New functions.
53389         (TZBUFSIZE): New constant.
53390         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53391         This requires that we sometimes generate our own TZ="XXX..." setting.
53392
53393 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * doc/getdate.texi: New file, from coreutils with modifications for
53396         the new TZ parsing.
53397
53398 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53399
53400         * lib/mktime.c (not_equal_tm): Remove redundant check.
53401
53402 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53403
53404         * modules/regex (lib_SOURCES): Add regex.c.
53405         Reported by James Youngman in
53406         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53407
53408 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53409
53410         * lib/getdate.y: Use Bison 1.875 features, and some minor
53411         code cleanups.  This change does not affect semantics.
53412         Don't include <stdlib.h>; no longer needed.
53413         Don't include unlocked-io.h; only the "#if TEST" code uses
53414         stdio, and performance isn't crucial there.
53415         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53416         Bison 1.875 features as described below.
53417         All uses of "PC." replaced by "pc->".
53418         (YYSTYPE): Add a forward declaration.
53419         (yylex, yyerror): Use full prototypes in forward decls.
53420         Use "%pure-parser" rather than obsolescent "%pure_parser".
53421         Use %parse-param and %lex-param instead of obsolescent
53422         YYPARSE_PARAM and YYLEX_PARAM.
53423         (meridian_table, month_and_day_table, time_units_table,
53424         relative_time_table, time_zone_table, military_table,
53425         lookup_zone, lookup_word, get_date):
53426         Use NULL instead of 0 where appropriate.
53427         (to_hour): Avoid abort (), to avoid a dependency on
53428         stdlib.h.
53429         (yyerror, yylex): Now accepts parser_control * arg.
53430         (main) [TEST]: Use '\0' rather than 0 for char.
53431
53432 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53435
53436 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53439         It's now the caller's responsibility to handle the case where
53440         !HAVE_GETPAGESIZE && !defined getpagesize.
53441
53442         * lib/mktime.c (leapyear): Arg is long int, not int.
53443
53444 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53447
53448 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53451         missing.  Problem reported by James Youngman.
53452
53453 2004-10-16  Simon Josefsson  <jas@extundo.com>
53454
53455         * gnulib-tool: Fix comments.  Fix parse problem.
53456         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53457
53458 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53461         implementation of getopt_long.  Problem reported by Alexander Taler in:
53462         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53463
53464 2004-10-15  Bruno Haible  <bruno@clisp.org>
53465
53466         * gnulib-tool: Untabify. Initialize supplied_libname.
53467         (func_usage): More homogenous output.
53468         (func_modules_transitive_closure, func_modules_to_filelist,
53469         func_emit_lib_Makefile_am): New functions.
53470         (func_import): New function, extracted from big case statement. Use
53471         func_get_license, func_modules_transitive_closure,
53472         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53473         opt_lgpl. Don't use test -a, as it's not portable.
53474         (func_create_testdir): Use func_modules_transitive_closure,
53475         func_modules_to_filelist, func_emit_lib_Makefile_am.
53476
53477 2004-10-15  Bruno Haible  <bruno@clisp.org>
53478
53479         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53480
53481 2004-10-15  Bruno Haible  <bruno@clisp.org>
53482
53483         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53484         the portions belonging to each module.
53485         Suggested by Derek Robert Price <derek@ximbiot.com>.
53486
53487 2004-10-12  Simon Josefsson  <jas@extundo.com>
53488
53489         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53490         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53491         to real functions.
53492
53493 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53494
53495         * modules/vsnprintf: New file.
53496
53497 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53498
53499         * m4/vsnprintf.m4: New file.
53500
53501 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53502
53503         * lib/vsnprintf.h: New file.
53504         * lib/vsnprintf.c: New file.
53505
53506 2004-10-11  Bruno Haible  <bruno@clisp.org>
53507
53508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53509         vsnprintf.
53510
53511 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53514
53515 2004-10-07  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53518         fits into the provided buffer.
53519
53520 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         * lib/diacrit.c, diacrit.h: Add GPL notice.
53523
53524         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53525         notice.
53526         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53527         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53528         This avoids a potential constant-folding bug.
53529
53530 2004-10-05  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53533         for the declaration of strsep.
53534
53535 2004-10-05  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53538
53539 2004-10-04  Simon Josefsson  <jas@extundo.com>
53540
53541         * modules/memmem: New file.
53542         * tests/test-memmem.c: New file.
53543         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53544
53545 2004-10-04  Simon Josefsson  <jas@extundo.com>
53546
53547         * m4/memmem.m4: New file.
53548
53549 2004-10-04  Simon Josefsson  <jas@extundo.com>
53550
53551         * lib/memmem.h: New file.
53552         * lib/memmem.c: New file, taken from glibc.
53553
53554 2004-10-04  Simon Josefsson  <jas@extundo.com>
53555
53556         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53557         '#ifdef USE_UNLOCKED_IO'.
53558
53559 2004-10-04  Simon Josefsson  <jas@extundo.com>
53560
53561         * config/srclist.txt: Add memmem from glibc.
53562
53563 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53566
53567         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53568         modules/exclude, modules/getdate, modules/getline,
53569         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53570         modules/getusershell, modules/linebuffer, modules/md5,
53571         modules/mountlist, modules/posixtm, modules/readtokens,
53572         modules/readutmp, modules/regex, modules/sha1,
53573         modules/version-etc, modules/yesno:
53574         Remove dependency on unlocked-io.
53575
53576 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53577
53578         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53579
53580         * m4/unlocked-io.m4: Add copyright notice.
53581         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53582
53583 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53586         * lib/xmalloc.c (xmemdup): Likewise.
53587         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53588         XFREE): Remove these long-obsolescent macros.
53589         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53590         * lib/xstrdup.c: Remove.
53591
53592         * lib/regex.c (re_comp): Cast gettext return value to char *,
53593         Problem reported by Martin Neitzel via Mark D. Baushke.
53594
53595 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53598         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53599         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53600         regex.c, sha1.c, version-etc.c, yesno.c:
53601         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53602         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53603         the includer's responsibility.
53604
53605         Sync from coreutils.
53606
53607         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53608         points to the start of a string, as the C Standard says the
53609         resulting behavior is undefined.
53610
53611         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53612         simple -> simple_backups, numbered_existing ->
53613         numbered_existing_backups, numbered -> numbered_backups
53614         to avoid shadowing problems.  All uses changed.
53615         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53616         * lib/backupfile.c (check_extension, numbered_backup):
53617         Rename locals to avoid shadowing 'basename'.
53618         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53619         once.
53620
53621         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53622         * lib/.cvsignore: Add getopt.h.
53623
53624 2004-10-04  Bruno Haible  <bruno@clisp.org>
53625
53626         * modules/README: New file.
53627         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53628         not a module.
53629
53630 2004-10-02  Jim Meyering  <jim@meyering.net>
53631
53632         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53633
53634 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53635
53636         * modules/strsep: New file.
53637
53638 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53639
53640         * m4/strsep.m4: New file.
53641
53642 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53643
53644         * lib/strsep.h: New file.
53645         * lib/strsep.c: New file.
53646
53647 2004-10-01  Simon Josefsson  <jas@extundo.com>
53648
53649         * lib/snprintf.c (snprintf): Handle size==0.
53650
53651 2004-10-01  Simon Josefsson  <jas@extundo.com>
53652             Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53655         (snprintf): Declare 'args'.
53656
53657 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53658
53659         * lib/snprintf.c: Remove comments as to why each header is needed.
53660
53661 2004-10-01  Bruno Haible  <bruno@clisp.org>
53662
53663         * MODULES.html.sh: Add strsep.
53664
53665 2004-09-30  Simon Josefsson  <jas@extundo.com>
53666
53667         * modules/snprintf: New file.
53668
53669 2004-09-30  Simon Josefsson  <jas@extundo.com>
53670
53671         * m4/snprintf.m4: New file.
53672
53673 2004-09-30  Simon Josefsson  <jas@extundo.com>
53674
53675         * lib/snprintf.h, lib/snprintf.c: New files.
53676
53677 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53678
53679         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53680         (hol_entry_help): Never translate an empty string.
53681         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53682         * lib/argp.h (OPTION_NO_TRANS): New option.
53683
53684 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * modules/argp (Maintainer): Replace Simon Josefsson
53687         by Sergey Poznyakoff.
53688
53689 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53692         changes merged back into glibc.
53693
53694 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53695
53696         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53697
53698 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53699
53700         * lib/xvasprintf.c: Include xalloc.h.
53701         (xvasprintf): Use xalloc_die, not xmalloc_die.
53702
53703 2004-09-29  Bruno Haible  <bruno@clisp.org>
53704
53705         * modules/alloca-opt: New file, derived from modules/alloca.
53706         * modules/allocsa: Depend on alloca-opt instead of alloca.
53707         * modules/setenv: Likewise.
53708         * modules/vasnprintf: Likewise.
53709         * MODULES.html.sh: Add alloca-opt.
53710
53711 2004-09-28  Simon Josefsson  <jas@extundo.com>
53712
53713         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53714         LGPL, and to replace license template from GPL to LGPL.
53715
53716 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         * modules/dummy: Change license to LGPL.
53719
53720 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53723
53724 2004-09-24  Simon Josefsson  <jas@extundo.com>
53725
53726         * modules/minmax (License): Change from GPL to LGPL.
53727
53728 2004-09-23  Simon Josefsson  <jas@extundo.com>
53729
53730         * gnulib-tool (--import): Typo.
53731
53732 2004-09-23  Simon Josefsson  <jas@extundo.com>
53733
53734         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53735
53736 2004-09-22  Bruno Haible  <bruno@clisp.org>
53737
53738         * modules/*: Add 'License' field.
53739         * gnulib-tool: Accept --extract-license option.
53740         (func_get_license): New function.
53741
53742 2004-09-21  Bruno Haible  <bruno@clisp.org>
53743
53744         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53745         Reported by Simon Josefsson.
53746
53747 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53750         gl_AC_TYPE_LONG_LONG.
53751
53752 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53755
53756 2004-09-18  Simon Josefsson  <jas@extundo.com>
53757         and  Paul Eggert  <eggert@cs.ucla.edu>
53758
53759         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53760         calls with autoreconf.  Define GL_LIB.
53761
53762 2004-09-14  Karl Berry  <karl@gnu.org>
53763
53764         * config/srclist.txt: unsync setenv.c, sigh.
53765
53766 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53769         Problem reported by Bruno Haible in:
53770         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53771
53772 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         * config/srclist.txt: Comment out argp-pvh.c.
53775
53776 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53777
53778         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53779         in case some system header has #define'd it.  Problem reported by
53780         Soeren D. Schulze in
53781         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53782
53783 2004-09-09  Karl Berry  <karl@gnu.org>
53784
53785         * regex.[ch]: delete from the root.  These were supposed to be
53786                 synced with emacs cvs, but this has not happened for about
53787                 a year, and anyway nothing else uses emacs regex.[ch].
53788                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53789                 lib/regex[.ch] is untouched.
53790
53791 2004-09-09  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53794
53795 2004-09-09  Bruno Haible  <bruno@clisp.org>
53796
53797         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53798         modifications.
53799         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53800
53801 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53802
53803         * modules/xvasprintf: New file.
53804         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53805
53806 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53807
53808         * lib/xvasprintf.h: New file.
53809         * lib/xvasprintf.c: New file.
53810         * lib/xasprintf.c: New file.
53811
53812 2004-09-08  Bruno Haible  <bruno@clisp.org>
53813
53814         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53815
53816 2004-09-08  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53819         length is > INT_MAX.
53820         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53821         more.
53822
53823 2004-09-08  Bruno Haible  <bruno@clisp.org>
53824
53825         * lib/stdint_.h: New file, taken from GNU clisp.
53826
53827 2004-09-08  Bruno Haible  <bruno@clisp.org>
53828             Oskar Liljeblad  <oskar@osk.mine.nu>
53829
53830         * modules/stdint: New file.
53831         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53832
53833 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         Import from coreutils.
53836         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53837         strings on unbounded length.  alloca's performance benefits aren't
53838         that important here.
53839         (V_STRDUP): Remove.
53840         (parse_with_separator): New function, with most of the internals
53841         of the old parse_user_spec.  Allow user to omit both user and group,
53842         for compatibility with FreeBSD.
53843         Clone only the user name, not the entire spec.
53844         Do not set *uid, *gid unless entirely successful.
53845         Avoid memory leak in some failing cases.
53846         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53847         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53848         (parse_user_spec): Rewrite to use parse_with_separator.
53849
53850 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * modules/userspec: Don't depend on alloca.
53853
53854 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53857
53858 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53859
53860         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53861         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53862         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53863
53864 2004-08-16  Simon Josefsson  <jas@extundo.com>
53865
53866         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53867         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53868         Add --dry-run for --import.
53869         Let user provided command line parameters override configure.ac
53870         settings.
53871
53872 2004-08-12  Simon Josefsson  <jas@extundo.com>
53873
53874         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53875         as discussed with Paul Eggert in threads rooted at
53876         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53877         and
53878         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53879         Before, the test was empty, and relied on ELIDE_CODE in source
53880         code.)
53881         (gl_PREREQ_GETOPT): New macro.
53882         (gl_GETOPT): Use them.
53883
53884 2004-08-12  Simon Josefsson  <jas@extundo.com>
53885
53886         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53887         * lib/getopt_.h: Renamed from getopt.h.
53888
53889 2004-08-12  Simon Josefsson  <jas@extundo.com>
53890
53891         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53892         Change default library name from libfoo to libgnu.
53893         Now, if you have a configure.ac that says:
53894                 gl_SOURCE_BASE(gl)
53895                 gl_M4_BASE(gl/m4)
53896                 gl_MODULES(error getopt etcetera)
53897                 gl_INIT
53898         you can import all you need by running:
53899                 ../gnulib/gnulib-tool --import
53900
53901         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53902         (Makefile.am): Rewrite, use logic from argz.
53903         (Include): Use <getopt.h> instead of "getopt.h".
53904
53905 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53906
53907         * modules/argp (Files): Add m4/unlocked-io.m4.
53908         (Depends-on): Add extensions.
53909
53910 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53913         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53914         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53915         Check for program_invocation_name, program_invocation_short_name,
53916         flockfile, funlockfile, features.h, _getopt_long_only_r.
53917
53918 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53921         its complicated substitute.
53922         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53923         and program_invocation_name.
53924         (__argp_basename) [!_LIBC]: Remove; the only use was
53925         replaced by its body.
53926         (__argp_short_program_name): Change condition from
53927         !defined __argp_short_program_name to
53928         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53929         to match argp-namefrob.h.
53930         (__argp_failure): Don't assume strerror_r returns char *.
53931         * lib/argp-parse.c (N_): Define unconditionally.
53932         (argp_default_options): Fill out initializers with 0 to avoid
53933         gcc warnings.
53934
53935 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53936
53937         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53938         getopt1.c.
53939
53940 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         Merge from coreutils.
53943
53944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53945
53946         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53947         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53948
53949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53950
53951         Merge from coreutils.
53952
53953         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53954         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53955         for Reliant Unix 5.43.
53956
53957         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53958         (union fooround): Use uintmax_t, not long int.
53959         The rest is a merge from libc:
53960         [defined _LIBC]: Include <shlib-compat.h>.
53961         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53962
53963         * lib/settime.c (settime): Recode to avoid warning with
53964         Sun Forte C 6U2.
53965
53966         * lib/strverscmp.c: Convert to UTF-8.
53967
53968 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53971         m4/uintmax_t.m4.
53972
53973 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53974
53975         * modules/xalloc-die: New file.
53976         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53977
53978         * modules/md5 (Files): Add m4/uint32_t.m4.
53979         * modules/sha1: Renamed from modules/sha.
53980         (Files):
53981         Rename lib/sha.h to lib/sha1.h.
53982         Rename lib/sha.c to lib/sha1.c.
53983         Rename m4/sha.m4 to m4/sha1.m4.
53984         (lib_SOURCES): Likewise.
53985         (configure.ac): Rename gl_SHA to gl_SHA1.
53986         (Include): sha.h -> sha1.h.
53987
53988 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53991         * m4/sha1.m4: Renamed from sha.m4.
53992         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53993
53994 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/obstack.h (obstack_empty_p):
53997         Don't assume that chunk->contents is suitably aligned.
53998         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53999         Likewise. Problem reported by Benno in
54000         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54001
54002         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54003         readable.  This could be improved further but it'd take some work.
54004
54005 2004-08-08  Simon Josefsson  <jas@extundo.com>
54006
54007         * modules/xgethostname (Depends-on): Remove exit and error (not
54008         used).
54009
54010         * modules/getpass-gnu: Add getpass.h.
54011         (Depends-on): Add stdbool.
54012         * modules/getpass: Add getpass.h.
54013
54014 2004-08-08  Simon Josefsson  <jas@extundo.com>
54015
54016         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54017         Check getpass declaration.
54018
54019 2004-08-08  Simon Josefsson  <jas@extundo.com>
54020
54021         * lib/xgethostname.c: Don't include error.h (not used).
54022
54023         * lib/getpass.h: Add.
54024         * lib/getpass.c: Include getpass.h first.
54025
54026 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * lib/xalloc-die.c: New file.
54029         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54030         All uses removed.
54031         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54032         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54033         xalloc-die.c.
54034         (_, N_, xalloc_die): Move to xalloc-die.c.
54035         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54036         so that we needn't mess with xalloc_msg_memory_exhausted.
54037
54038         * lib/sha1.h: Renamed from sha.h.
54039         (SHA1_H): Renamed from _SHA_H.
54040         (sha1_ctx): Renamed from sha_ctx.
54041         (sha1_init_ctx): Renamed from sha_init_ctx.
54042         (sha1_process_block): Renamed from sha_process_block.
54043         (sha1_process_bytes): Renamed from sha_process_bytes.
54044         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54045         (sha1_read_ctx): Renamed from sha_read_ctx.
54046         (sha1_stream): Renamed from sha_stream.
54047         (sha1_buffer): Renamed from sha_buffer.
54048         * lib/sha1.c: Likewise; renamed from sha.c.
54049         Do not include <sys/types.h>.
54050         Include <stddef.h> rather than <stdlib.h>.
54051
54052 2004-08-08  Bruno Haible  <bruno@clisp.org>
54053
54054         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54055         FILESYSTEM_PREFIX_LEN.
54056         * lib/progreloc.c: Likewise.
54057         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54058
54059 2004-08-06  Simon Josefsson  <jas@extundo.com>
54060
54061         * modules/progname (Depends-on): Don't depend on stdbool.
54062
54063 2004-08-06  Simon Josefsson  <jas@extundo.com>
54064
54065         * modules/getsubopt: New file.
54066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54067         getsubopt.
54068
54069 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         More merge from coreutils.
54072
54073         * m4/utimens.m4, m4/utimecmp.m4: New files.
54074         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54075         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54076         prereq.m4, sha.m4: Import changes from coreutils.
54077
54078 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54079
54080         More merge from coreutils.
54081         * modules/raise, modules/readtokens0, modules/utimens:
54082         * modules/utimecmp, module/xnanosleep: New files.
54083         * modules/strftime: Add lib/strftime.h.
54084         Change include from <time.h> to "strftime.h".
54085         * modules/yesno: Add lib/yesno.h.
54086         * modules/backupfile: Remove lib/addext.c.
54087         * modules/euidaccess: Add stat-macros.h.
54088         * modules/canonicalize, modules/euidaccess,
54089         modules/filemode, modules/lchown, modules/makepath,
54090         modules/rmdir, modules/stat: Likewise.
54091
54092 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54093
54094         Merge from tar.
54095         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54096         SIZE_MAX is a valid preprocessor constant.
54097         (__argp_basename): Change from "#ifndef _LIBC"
54098         to "#ifndef __argp_short_program_name", so that
54099         we don't compile these functions for tar.
54100
54101         More merges from coreutils.
54102         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54103         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54104         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54105         * lib/addext.c: Remove; no longer needed.
54106         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54107         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54108         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54109         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54110         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54111         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54112         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54113         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54114         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54115         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54116         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54117         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54118         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54119         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54120         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54121         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54122         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54123         Import changes from coreutils.
54124
54125 2004-08-05  Simon Josefsson  <jas@extundo.com>
54126
54127         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54128
54129 2004-08-05  Simon Josefsson  <jas@extundo.com>
54130
54131         * m4/getsubopt.m4: New file.
54132
54133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54134
54135         Merge from coreutils.
54136
54137         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54138         * m4/getcwd-path-max.m4: New files.
54139
54140         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54141         FILESYSTEM_PREFIX_LEN ->
54142         FILE_SYSTEM_PREFIX_LEN.
54143         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54144         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54145         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54146         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54147
54148         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54149         prerequisite modules now handle the DOS stuff.
54150         Don't check for unistd.h.
54151
54152 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54153
54154         Merge from coreutils.
54155
54156         * lib/.gdb-history: Remove; this doesn't belong here.
54157
54158         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54159         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54160         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54161         * lib/getcwd.c: New files.
54162
54163         * lib/dirname.h: Include <stdbool.h>.
54164         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54165         for consistency with POSIX terminology.  All uses changed.
54166         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54167         (strip_trailing_slashes): Use bool for booleans.
54168         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54169
54170         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54171         sometimes returns a positive errno value even when it succeeds.
54172         (print_errno_message) [!LIBC]: Fall back on strerror if
54173         __strerror_r fails.
54174
54175         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54176         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54177         (longest_relative_suffix): New function.
54178         (path_concat): Use it.  Assume first argument is not NULL.
54179         Port to DOS.  Omit redundant separators.
54180         Report an error instead of returning NULL.
54181         Use mempcpy instead of memcpy.
54182         (xpath_concat): Remove: not declared or used.
54183
54184         * lib/same.h: Include <stdbool.h>
54185         (same_name): Return bool, not int.
54186         * lib/same.c (same_name): Likewise.
54187         (errno): Don't declare; we assume C89 or better now.
54188
54189         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54190         if not already defined.
54191
54192         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54193         * lib/dup-safer.c (errno): Likewise.
54194
54195 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         Merge from coreutils.
54198         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54199         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54200         * modules/path-concat: Don't depend on strdup.
54201
54202 2004-08-03  Simon Josefsson  <jas@extundo.com>
54203
54204         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54205         * lib/progname.h: Don't include stdbool.h.
54206
54207 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54210         * MODULES.html.sh (func_all_modules): Remove fatal.
54211
54212 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54213
54214         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54215
54216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54219         working.
54220
54221 2004-08-02  Simon Josefsson  <jas@extundo.com>
54222
54223         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54224         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54225         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54226
54227 2004-08-01  Simon Josefsson  <jas@extundo.com>
54228
54229         * lib/xgetdomainname.c: Include stdlib.h, for free().
54230
54231 2004-07-19  Bruno Haible  <bruno@clisp.org>
54232
54233         * MODULES.html.sh (func_all_modules): Add dummy.
54234
54235 2004-07-16  Simon Josefsson  <jas@extundo.com>
54236
54237         * modules/dummy: New file.
54238
54239 2004-07-16  Simon Josefsson  <jas@extundo.com>
54240
54241         * lib/dummy.c: New file.
54242
54243 2004-07-16  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/backupfile.h: Add extern "C" for C++.
54246         * lib/closeout.h: Likewise.
54247         * lib/copy-file.h: Likewise.
54248         * lib/findprog.h: Likewise.
54249         * lib/full-write.h: Likewise.
54250         * lib/pathname.h: Likewise.
54251         * lib/progname.h: Likewise.
54252         * lib/stpcpy.h: Likewise.
54253         * lib/stpncpy.h: Likewise.
54254         * lib/strcase.h: Likewise.
54255         * lib/strstr.h: Likewise.
54256         * lib/xalloc.h: Likewise.
54257
54258         * lib/mbswidth.h: Add extern "C" for C++.
54259         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54260
54261 2004-07-13  Robert Millan  <robertmh@gnu.org>
54262
54263         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54264
54265 2004-07-09  Simon Josefsson  <jas@extundo.com>
54266
54267         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54268         failed without this.)
54269
54270 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * modules/chown (Files): Add lib/fchown-stub.c, since
54273         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54274
54275 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54276
54277         * lib/fchown-stub.c: New file.
54278
54279 2004-06-24  Jim Meyering  <jim@meyering.net>
54280
54281         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54282
54283 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * modules/argz: Omit "#include".
54286
54287         * MODULES.html.sh (func_all_modules): Add calloc, to match
54288         2004-06-01 addition of calloc module.
54289
54290 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * m4/argz.m4: New file, which is autoupdated from libtool.
54293
54294 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54297         libtool.
54298
54299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * config/srclist-update: Don't insist on "USA." before the
54302         close-comment, as libtool omits the period and puts the */ on a
54303         separate line.
54304         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54305         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54306
54307 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54308
54309         * modules/argz: New file.
54310         * MODULES.html.sh (func_all_modules): Add argz.
54311
54312 2004-06-12  Jim Meyering  <jim@meyering.net>
54313         and  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         * modules/hash (Files): Add lib/xalloc.h.
54316         * modules/pipe (Depends-on): Add wait-process.
54317         * modules/stat (Depends-on): Add xalloc.
54318         * modules/userspec (Files): Add lib/userspec.h.
54319         * modules/xstrto
54320
54321         Upgrade from gettext-0.13.
54322         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54323         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54324         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54325
54326 2004-06-10  Jim Meyering  <jim@meyering.net>
54327
54328         * lib/calloc.c: New file.
54329
54330 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54331
54332         * lib/getdate.y (yylex): Allow space between sign and number.
54333         Problem reported by Dan Jacobson.
54334
54335 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         Merge from coreutils CVS.
54338
54339         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54340         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54341         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54342         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54343         xstrtol.m4: Fix copyright date and/or serial number.
54344
54345         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54346         See if we need an fchown replacement.
54347         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54348         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54349         and use the replacement function if we detect either defect.
54350
54351         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54352         gl_UTIMECMP.
54353
54354 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54355         and  Jim Meyering  <jim@meyering.net>
54356
54357         Merge from coreutils CVS.
54358
54359         * lib/stat-macros.h: New file, with contents from file-type.h
54360         and coreutils' system.h.
54361         * lib/file-type.c: Include "stat-macros.h".
54362         * lib/file-type.h (file_type): Move all macro definitions to new file,
54363         stat-macros.h.
54364
54365         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54366         Wrap old code with this conditional.
54367         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54368         function that does not dereference symlinks.
54369         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54370
54371         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54372         dependency problems.
54373         (xreadlink): Accept new arg SIZE, for efficiency.
54374         All decls and uses changed.
54375         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54376
54377         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54378         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54379
54380         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54381         sysexits.h.
54382
54383 2004-06-01  Jim Meyering  <jim@meyering.net>
54384
54385         * m4/calloc.m4: New file.
54386
54387 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54388
54389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54390         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54391         Also, fix a typo in a diagnostic.
54392
54393 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54396         or AC_FUNC_REALLOC.
54397
54398 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54401         macros to be defined.
54402         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54403         the allocator returns NULL because the requested size is zero.
54404
54405 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54408         var.  Add comment explaining why libc still defines it.  This
54409         merges the following patch from glibc:
54410         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54411
54412 2004-05-20  Andreas Schwab  <schwab@suse.de>
54413
54414         * m4/free.m4: Replace free if it not known to work, not the other
54415         way round.
54416
54417 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54420         present in glibc since revision 1.1 of this file.
54421         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54422         obstack_alignment_mask, obstack_alloc, obstack_base,
54423         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54424         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54425         obstack_grow0, obstack_init, obstack_int_grow,
54426         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54427         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54428         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54429         nonexistent functions.
54430
54431 2004-05-18  Karl Berry  <karl@gnu.org>
54432
54433         * config/srclist.txt: break link for vasnprintf.c.
54434
54435 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         Port obstack to the AS/400, where pointers are 16 bytes wide and
54438         you cannot cast an integer to a valid pointer.  This patch is
54439         currently waiting to be integrated into glibc; see
54440         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54441
54442         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54443         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54444         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54445         (struct obstack): temp member is now a union of a pointer and
54446         an integer, instead of an integer.  All integer uses changed.
54447         This does not affect the physical layout of struct obstack,
54448         except on hosts (like the AS/400) where the size or alignment of
54449         void * is greater than that of ptrdiff_t.
54450         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54451         __STDC__)]: Store temporary in pointer member of union, not
54452         integer member.
54453         * lib/obstack.c: Include <stddef.h>, for offsetof.
54454         (struct fooalign): Remove; it doesn't need a name.
54455         (union fooround): Change double to long double, and add void *.
54456         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54457         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54458         not a macro.  Hence the values are always int; so remove all
54459         casts-to-int in uses.
54460
54461 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54462
54463         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54464         we can get this patch merged into glibc.
54465
54466 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54467             Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         * m4/argp: Depend on alloca.
54470
54471 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54472             Paul Eggert  <eggert@cs.ucla.edu>
54473
54474         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54475         freecoding.
54476
54477 2004-05-17  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54480         precision that consists of a '.' followed by an empty digit string.
54481         Patch by Tor Lillqvist <tml@iki.fi>.
54482
54483 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54486         for backward compatibility with older code.  We need our own
54487         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54488         it under some other name, and our alloca.h will define it.
54489
54490 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54491             Derek Price  <derek@ximbiot.com>
54492
54493         * lib/alloca.c: Include <alloca.h>, to get our interface.
54494         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54495         include <alloca.h> first.  Use C89 prototype for alloca; this
54496         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54497         Use #elif for simplicity, since we can assume C89 now.
54498         Don't try to source the system alloca.h since it will not be found
54499         and to prevent recursively including its replacement.
54500         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54501         * lib/regex.c: Likewise.
54502
54503 2004-05-16  Derek Price  <derek@ximbiot.com>
54504             Paul Eggert  <eggert@cs.ucla.edu>
54505
54506         getline cleanup.  This changes the getndelim2 API: both order of
54507         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54508         no delimiter).
54509
54510         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54511         interface does that.
54512         (getline): Always use getdelim, so that we don't have two
54513         copies of this code.
54514         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54515         if available.
54516         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54517         (GETNDELIM2_MAXIMUM): New macro.
54518         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54519         instead of the old practice of delim2==0.  All callers changed.
54520         Return -1 on overflow, instead of returning junk.
54521         Do not set *linesize unless allocation succeeds.
54522         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54523         that we include sys/types.h.
54524         * lib/getnline.h: Likewise.
54525         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54526         (getndelim2): Reorder arguments.
54527         * lib/getnline.c (getnline, getndelim):
54528         Don't discard the NMAX argument.
54529         (getnline): Invoke getndelim, to avoid code duplication.
54530         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54531         of (size_t) -1 by callers of the getnline family.
54532
54533 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54534
54535         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54536         Check for gettimeofday.
54537         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54538         Check for settimeofday, stime.
54539
54540 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * lib/nanosleep.c (suspended): Change its type from int to
54543         sig_atomic_t volatile.
54544         (first_call): Make it private to rpl_nanosleep, and have it
54545         be zero initially as that's a bit faster.
54546         (my_usleep): Round up fractional times instead of truncating them,
54547         as this is the usual meaning for 'sleep'.
54548
54549         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54550         doesn't work.
54551         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54552         (ENOSYS): Define if not defined.
54553         (settime): Fall back on stime if it exists and settimeofday fails.
54554         But don't bother with fallbacks if a method fails with errno == EPERM.
54555
54556 2004-05-11  Jim Meyering  <jim@meyering.net>
54557
54558         Prior to this change, the save_cwd caller required read access to the
54559         current directory on most systems (ones with the fchdir function).
54560
54561         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54562         fails, try write-only, and finally, resort to using xgetcwd.
54563
54564 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * lib/obstack.c, obstack.h: Import changes from libc.
54567
54568 2004-04-28  Bruno Haible  <bruno@clisp.org>
54569
54570         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54571         also implicitly appends .exe to executables.
54572         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54573         accepts Windows pathnames.
54574         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54575         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54576         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54577         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54578         Reported by Derek Robert Price <derek@ximbiot.com>.
54579
54580 2004-04-21  Karl Berry  <karl@gnu.org>
54581
54582         * config/srclist.txt (localcharset.c): break sync.
54583
54584 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54585
54586         * m4/host-os.m4: Add a copyright notice.
54587
54588 2004-04-20  Jim Meyering  <jim@meyering.net>
54589
54590         Change UTILS_ to gl_ in AC_DEFINE'd names.
54591         Change utils_- and jm_-prefixed variables, too.
54592         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54593         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54595
54596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54597         Don't emit trailing blanks.
54598         Also rename jm_-prefixed variables to have gl_ prefix.
54599
54600         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54601         Also rename jm_-prefixed variables to have gl_ prefix.
54602
54603         * m4/jm-macros.m4: Reflect the renamings.
54604         * m4/prereq.m4: Likewise.
54605
54606 2004-04-20  Jim Meyering  <jim@meyering.net>
54607
54608         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54609         memory.
54610
54611 2004-04-20  Jim Meyering  <jim@meyering.net>
54612             Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54615         memory when realloc fails.
54616
54617 2004-04-19  Jim Meyering  <jim@meyering.net>
54618
54619         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54620         now that readutmp.c may call `free (0)'.
54621
54622 2004-04-19  Bruno Haible  <bruno@clisp.org>
54623
54624         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54625         * m4/inttypes_h.m4: Likewise.
54626         * m4/stdint_h.m4: Likewise.
54627         * m4/intmax_t.m4: Likewise.
54628         * m4/uintmax_t.m4: Likewise.
54629
54630 2004-04-18  Jim Meyering  <jim@meyering.net>
54631
54632         * m4/prereq.m4: Don't forbid jm_ prefix.
54633
54634         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54635         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54636         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54637         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54638         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54639         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54640         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54641         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54642         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54643         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54644         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54645         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54646         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54647         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54648         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54649         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54650         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54651         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54652         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54653
54654 2004-04-18  Jim Meyering  <jim@meyering.net>
54655
54656         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54657         failure, don't leak memory and do call END_UTMP_ENT.
54658
54659 2004-04-16  Jim Meyering  <jim@meyering.net>
54660
54661         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54662         coreutils' stat program.
54663         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54664
54665 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54666
54667         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54668         C89.
54669         (CHAR_BIT): Remove, since we assume C89.
54670         Include <stdint.h> if available, as per current Autoconf CVS advice.
54671
54672 2004-03-31  Jim Meyering  <jim@meyering.net>
54673
54674         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54675         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54676         * m4/xalloc.m4: Likewise.
54677
54678 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54679
54680         Merge from coreutils.
54681
54682         * m4/inttostr.m4: New file.
54683         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54684         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54685         Require gl_CLOCK_TIME.
54686         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54687
54688 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54689
54690         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54691         not bool, to be more consistent with Unix conventions.
54692         Suggested by Bruno Haible.
54693
54694         Merge from coreutils.
54695
54696         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54697         * lib/umaxtostr.c: New files.
54698
54699         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54700         the usual <time.h> dance.
54701         (get_date): Change signature to support fractional time stamps.
54702         All callers changed.
54703         * lib/getdate.y: Include "getdate.h" first, as we can now
54704         assume C89 and don't need to worry about 'const'.
54705         Similarly, include "unlocked-io.h" near start, not in middle.
54706         Include <limits.h>.
54707         (textint.value): Use long int rather than int.
54708         (textint.digits): Use size_t rather than int.
54709         (BILLION, LOG10_BILLION): New constants.
54710         (parser_control): New member rel_ns.  Members day_ordinal,
54711         time_zone, month, day, hour, minutes, rel_year, rel_month,
54712         rel_day, rel_hour, rel_minutes, rel_seconds
54713         are now long int, not int.  Member seconds is now struct timespec,
54714         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54715         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54716         not int.
54717         (%union.intval): Now long int, not int.
54718         New member timespec.
54719         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54720         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54721         (spec): Now is a timespec or an item list.
54722         (timespec, items): New nonterminals.
54723         (time, rel, relunit, number, get_date):
54724         Add support for fractional seconds.
54725         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54726         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54727         (to_hour): First arg is now long int, not int.
54728         (to_year): Returns long int, not int.
54729         Don't treat year -70 like 70.
54730         (tm_diff): Returns long int, not int.
54731         (lookup_word): Use bool instead of int when appropriate.
54732         (yylex): Use size_t for count, not int.
54733         Detect overflow when parsing large integer constants.
54734         Add support for fractions.
54735         (get_date): Make pointers 'const' if possible.
54736         Use more-portable code to detect integer overflow.
54737         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54738         Don't use ctime; it's not reliable if the year has >4 digits.
54739
54740         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54741         This is for compatibility with BSD.
54742
54743         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54744         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54745         From coreutils' system.h.
54746
54747         * lib/userspec.c: Don't include "posixver.h".
54748         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54749         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54750         compatible extension.  Simplify code by removing a boolean int
54751         that was always nonzero if a string was nonnull.
54752
54753 2004-03-30  Jim Meyering  <jim@meyering.net>
54754
54755         Merge from coreutils.
54756
54757         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54758         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54759         on some systems one must include <grp.h> before it.
54760         Reported by Christian Krackowizer.
54761
54762 2004-03-30  Jim Meyering  <jim@meyering.net>
54763
54764         Merge from coreutils.
54765
54766         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54767
54768         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54769         an empty input stream.
54770
54771         * lib/readtokens.c: Include <stdbool.h>.
54772         (readtoken): Use `size_t' rather than int/long.
54773         All callers adjusted.
54774         Use `bool' rather than `int' where appropriate.
54775         Use memset rather than an explicit loop.
54776         Use x2nrealloc rather than xrealloc.
54777         Allow the use of `\0' as a delimiter.
54778         (readtokens): Likewise.
54779         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54780
54781 2004-03-30  Jim Meyering  <jim@meyering.net>
54782
54783         * m4/realloc.m4: Remove file, since now it does no more than
54784         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54785         the `configure.ac' section of module/realloc.
54786         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54787
54788 2004-03-30  Bruno Haible  <bruno@clisp.org>
54789
54790         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54791         nonnull.
54792
54793 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54794
54795         Merge changes to getloadavg.c from coreutils and Emacs.
54796
54797         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54798         Define to an expression, not to the empty string.
54799         Include cloexec.h and xalloc.h.
54800         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54801         Use set_cloexec_flag rather than rolling our own.
54802         * lib/cloexec.c, lib/cloexec.h: New files.
54803
54804 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54805
54806         * m4/cloexec.m4: New file.
54807
54808 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54809
54810         * lib/getopt.h: Sync with libc CVS.
54811
54812 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54813             Bruno Haible  <bruno@clisp.org>
54814
54815         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54816         mbswidth.
54817
54818 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54819             Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/mbswidth.h: Include <wchar.h> only if
54822         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54823         <wchar.h>.
54824         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54825
54826 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54827
54828         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54829         Sync with libc CVS.
54830         * lib/getopt_int.h: New file, also synced from libc.
54831
54832 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54833
54834         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54835         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54836         Bring back getopt.c, getopt.h, getopt1.c.
54837
54838 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54839
54840         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54841         All uses changed.  Check for sa_sigaction member; this fixes
54842         a bug first reported by Jason Andrade in
54843         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54844
54845 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54846
54847         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54848         '#if' expressions.  Unlike the code it replaces, it does not
54849         depend on (defined _SC_PAGESIZE).  However, it does depend on
54850         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54851         first reported by Jason Andrade in
54852         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54853
54854 2004-02-25  Simon Josefsson  <jas@extundo.com>
54855
54856         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54857
54858 2004-02-25  Simon Josefsson  <jas@extundo.com>
54859
54860         * lib/strdup.h: New file.
54861         * lib/strdup.c: Include it.
54862         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54863         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54864
54865 2004-02-23  Karl Berry  <karl@gnu.org>
54866
54867         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54868         (from fencepost.gnu.org:/gd/gnuorg).
54869
54870 2004-02-23  Karl Berry  <karl@gnu.org>
54871
54872         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54873         * config/srclist.txt: add maintain/standards documents.
54874
54875 2004-02-18  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54878         Reported by Derek Robert Price <derek@ximbiot.com>.
54879
54880 2004-02-16  Karl Berry  <karl@gnu.org>
54881
54882         * config/mkinstalldirs, install-sh: update from automake.
54883
54884 2004-02-06  Karl Berry  <karl@gnu.org>
54885
54886         * m4/po.m4: update from gettext 0.14.1.
54887
54888 2004-02-06  Karl Berry  <karl@gnu.org>
54889
54890         * lib/config.charset: update from gettext 0.14.1.
54891
54892 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54893
54894         Add comments and code, prompted by suggestions from Bruno Haible
54895         for sh-quote.
54896         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54897         describing the enum quoting_style values.
54898         * lib/quotearg.c (quotearg_alloc): New function.
54899         (quotearg_buffer_restyled): Treat lone { and } as special.
54900         Treat = as special.  Work around bug with older shells
54901         that "see" a '\' that is really the 2nd byte of a multibyte char.
54902         Quote empty string with shell_quoting_style.
54903
54904 2004-02-03  Bruno Haible  <bruno@clisp.org>
54905
54906         * m4/pipe.m4: New file, from GNU gettext.
54907
54908 2004-02-03  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/pipe.h: New file, from GNU gettext.
54911         * lib/pipe.c: New file, from GNU gettext.
54912
54913 2004-01-27  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/execute.m4: New file, from GNU gettext.
54916
54917 2004-01-27  Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/execute.h: New file, from GNU gettext.
54920         * lib/execute.c: New file, from GNU gettext.
54921         * lib/w32spawn.h: New file, from GNU gettext.
54922
54923 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54924
54925         Merge from diffutils.
54926
54927         * lib/file-type.c (file_type): Add typed memory objects.
54928         * lib/file-type.h (S_TYPEISTMO): New macro.
54929
54930         * lib/c-stack.h (c_stack_action): Remove argv argument.
54931         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54932         (die): Don't calculate message unless segv_action returns.
54933         (get_stack_location, min_address_from_argv, max_address_from_argv,
54934         volatile stack_base, volatile_stack_size): Remove.
54935         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54936         that every segmentation violation is a stack overflow.  (Ouch!)
54937         See Debian bug 136249 (still outstanding) for more info about why
54938         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54939
54940 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54941
54942         Exit-status fix from coreutils.
54943
54944         Use exit_failure consistently in place of EXIT_FAILURE,
54945         so that program exit statuses are consistent on failure.
54946
54947         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54948         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54949         * lib/argmatch.h: Comment fix to match the above.
54950         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54951         Now a macro referring to exit_failure, instead of a separate
54952         variable.  Include "exitfail.h" to get it.
54953         * lib/xstrtol.h: Include "exitfail.h".
54954         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54955
54956         * lib/long-options.c (parse_long_options): Use prototype
54957         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54958         for clarity.
54959
54960 2004-01-21  Jim Meyering  <jim@meyering.net>
54961
54962         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54963         so as not to conflict with a different-sized __mktime_internal
54964         function in GNU libc.
54965         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54966         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54967
54968 2004-01-20  Karl Berry  <karl@gnu.org>
54969
54970         * config/config.guess: update from config.
54971
54972         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54973
54974 2004-01-20  Bruno Haible  <bruno@clisp.org>
54975
54976         Safer stack allocation.
54977         * lib/setenv.c: Include allocsa.h.
54978         (alloca): Remove fallback definition.
54979         (freea): Remove macro.
54980         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54981         instead of freea.
54982
54983 2004-01-20  Bruno Haible  <bruno@clisp.org>
54984
54985         * m4/eealloc.m4: New file, from GNU gettext.
54986
54987 2004-01-20  Bruno Haible  <bruno@clisp.org>
54988
54989         * m4/allocsa.m4: New file, from GNU gettext.
54990
54991 2004-01-20  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/xallocsa.h: New file, from GNU gettext.
54994         * lib/xallocsa.c: New file, from GNU gettext.
54995
54996 2004-01-20  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54999
55000 2004-01-20  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55003         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55004         specially.
55005
55006 2004-01-20  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55009         patch.
55010
55011 2004-01-20  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55014
55015 2004-01-20  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/eealloc.h: New file.
55018
55019 2004-01-20  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/binary-io.h: Avoid warnings on Cygwin.
55022
55023 2004-01-20  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/allocsa.h: New file, from GNU gettext.
55026         * lib/allocsa.c: New file, from GNU gettext.
55027
55028 2004-01-18  Karl Berry  <karl@gnu.org>
55029
55030         * doc/gpl.texi, doc/lgpl.texi: new files.
55031
55032 2004-01-18  Karl Berry  <karl@gnu.org>
55033
55034         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55035         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55036
55037 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55038
55039         Merge from coreutils.
55040
55041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55042         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55043         (gl_DEFAULT_POSIX2_VERSION): Move
55044         the documentation from 'configure' into 'config.hin',
55045         so that 'configure --help' isn't burdened by it and
55046         we don't have to worry about its formatting there.
55047         Reword the documentation so that it's more succinct
55048         and can be run together into a single paragraph.
55049         * m4/same.m4 (gl_SAME): Check for pathconf.
55050
55051 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55052
55053         Merge from coreutils.
55054
55055         * lib/posixver.c: Include posixver.h.
55056
55057         * lib/same.c: Include <stdbool.h>, <limits.h>.
55058         (_POSIX_NAME_MAX): Define if not defined.
55059         (MIN): New macro.
55060         (same_name): If file names are silently truncated, report
55061         that the file names are the same if they are the same after
55062         the silent truncation.
55063
55064         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55065         conversion function.
55066         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55067         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55068         longer needed.
55069
55070 2004-01-15  Jim Meyering  <jim@meyering.net>
55071
55072         Merge from coreutils.
55073
55074         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55075         if no library is required.
55076         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55077         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55078         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55079         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55080         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55081         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55082         value, $ac_cv_search_crypt, if it's "none required".
55083         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55084         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55085         not gl_FUNC_GETLOADAVG.
55086         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55087         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55088
55089 2004-01-15  Jim Meyering  <jim@meyering.net>
55090
55091         Merge from coreutils.
55092
55093         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55094         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55095         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55096
55097         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55098         optional configure-time default.
55099
55100         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55101
55102         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55103
55104 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55105
55106         Merge from coreutils.
55107
55108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55109         value, $ac_cv_search_nanosleep, if it's "none required".
55110
55111 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55112
55113         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55114         with like-named macro in fnmatch.c.
55115         (EXT): Use an internal constant instead.
55116
55117         Merge fnmatch patches from glibc.
55118         * lib/fnmatch.c (mbsinit): Remove define.
55119         Add libc_hidden_ver (__fnmatch, fnmatch).
55120         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55121         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55122
55123 2004-01-14  Karl Berry  <karl@gnu.org>
55124
55125         * config/install-sh: update from automake.
55126
55127 2004-01-13  Karl Berry  <karl@gnu.org>
55128
55129         * config/install-sh: update from automake.
55130
55131 2004-01-09  Karl Berry  <karl@gnu.org>
55132
55133         * config/install-sh: update from automake.
55134
55135 2004-01-05  Karl Berry  <karl@gnu.org>
55136
55137         * config/config.{sub,guess}: update from config.
55138
55139 2003-12-31  Karl Berry  <karl@gnu.org>
55140
55141         * config/depcomp: update from automake.
55142
55143 2003-12-14  Karl Berry  <karl@gnu.org>
55144
55145         * lib/config.charset: update from gettext-runtime.
55146
55147 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55148
55149         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55150         Bug reported by Alfred M. Szmidt.
55151
55152 2003-12-03  Bruno Haible  <bruno@clisp.org>
55153
55154         * m4/gettext.m4: Upgrade from gettext-0.13.
55155         * m4/po.m4: Upgrade from gettext-0.13.
55156         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55157         * m4/intmax.m4: New file, from gettext-0.13.
55158         * m4/printf-posix.m4: New file, from gettext-0.13.
55159
55160 2003-11-29  Karl Berry  <karl@gnu.org>
55161
55162         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55163
55164 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55165             Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/printf-parse.h: Don't include sys/types.h.
55168         (ARG_NONE): New macro.
55169         (char_directive): Change type of *arg_index fields to size_t.
55170         * lib/printf-parse.c: Don't include sys/types.h.
55171         (SSIZE_MAX): Remove macro.
55172         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55173         Remove unnecessary overflow check.
55174         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55175         fields.
55176
55177 2003-11-25  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55180
55181 2003-11-25  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55184         gt_TYPE_SSIZE_T.
55185
55186 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55187
55188         * modules/alloca: Remove dependency on xalloc.
55189
55190 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55191
55192         * lib/alloca.c: Remove dependency on xalloc module.
55193         (xalloc_die): Remove.
55194         (memory_full) [!defined emacs]: New macro.
55195         [!defined emacs]: Don't include xalloc.h.
55196         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55197         address arithmetic overflows.  Change datatypes a bit to avoid
55198         unnecessary casts.
55199
55200 2003-11-22  Jim Meyering  <jim@meyering.net>
55201
55202         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55203         s/size/size_t/.
55204
55205 2003-11-21  Karl Berry  <karl@gnu.org>
55206
55207         * config/config.{sub,guess}: update from config.
55208
55209 2003-11-18  Karl Berry  <karl@gnu.org>
55210
55211         * config/config.{sub,guess}: update from config.
55212
55213         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55214
55215 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55216
55217         * README: Mention that S+T cannot overflow if S is the size of
55218         an existing object and T is sufficiently small.
55219
55220 2003-11-17  Jim Meyering  <jim@meyering.net>
55221
55222         On systems without utime and without a utimes function capable of
55223         dealing with a NULL struct utimbuf* argument, this utime replacement
55224         could -- in unusual circumstances -- leak a file descriptor.
55225         * lib/utime.c: Include <unistd.h> and <errno.h>.
55226         (utime_null): Be sure to close `fd' and to preserve errno.
55227         Reported by Geoff Collyer via Arnold Robbins.
55228
55229 2003-11-17  Bruno Haible  <bruno@clisp.org>
55230
55231         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55232         (Depends-on): Add xsize.
55233
55234 2003-11-17  Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55237
55238 2003-11-17  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/vasnprintf.c (alloca): Remove fallback definition.
55241         (freea): Remove definition.
55242         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55243         Reported by Paul Eggert.
55244
55245 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55246             Bruno Haible  <bruno@clisp.org>
55247
55248         Protect against address arithmetic overflow.
55249         * lib/printf-args.h: Include stddef.h.
55250         (arguments): Change type of field 'count' to size_t.
55251         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55252         'unsigned int' where appropriate.
55253         * lib/printf-parse.h: Include sys/types.h.
55254         (char_directive): Change type of *arg_index fields to ssize_t.
55255         (char_directives): Change type of fields 'count', max_*_length to
55256         size_t.
55257         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55258         (SSIZE_MAX): Define fallback value.
55259         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55260         instead of 'int' where appropriate. Check a_allocated, d_allocated
55261         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55262         * lib/vasnprintf.c: Include xsize.h.
55263         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55264         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55265         overflow. Avoid wraparound when converting a width or precision from
55266         decimal to binary.
55267
55268 2003-11-16  Bruno Haible  <bruno@clisp.org>
55269
55270         Update from GNU gettext.
55271         * lib/printf-parse.c: Generalize to it can be compiled for wide
55272         strings.
55273         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55274         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55275         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55276         SNPRINTF): New macros.
55277         Don't include <alloca.h> if the file is used inside libintl.
55278         (local_wcslen): New function, for Solaris 2.5.1.
55279         (VASNPRINTF): Use it instead of wcslen.
55280
55281 2003-11-16  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/xsize.h (xmax): New function.
55284         (xsum, xsum3, xsum4): Declare as "pure" functions.
55285
55286 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55287
55288         * modules/xalloc (Files): Undo latest change, since xalloc.h
55289         no longer needs SIZE_MAX or PTRDIFF_MAX.
55290
55291 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55292
55293         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55294         gl_PTRDIFF_MAX.
55295
55296 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55297
55298         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55299         "return", to pacify some unknown compiler.  Problem reported
55300         by Joerg Schilling.
55301
55302 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55303
55304         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55305         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55306         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55307         heuristic is just as accurate as far as we know, and it removes a
55308         dependency on size_max.m4 and ptrdiff_max.m4.
55309
55310 2003-11-11  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/xsize (Files): Add m4/size_max.m4.
55313         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55314
55315 2003-11-11  Bruno Haible  <bruno@clisp.org>
55316
55317         * m4/size_max.m4: New file.
55318         * m4/ptrdiff_max.m4: New file.
55319         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55320         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55321         (gl_XALLOC): Invoke it.
55322
55323 2003-11-11  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55326         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55327         defined.
55328
55329 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55330
55331         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55332         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55333         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55334         From Bruno Haible.
55335         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55336         not (size_t) -1, since it's defined here.
55337
55338 2003-11-09  Karl Berry  <karl@gnu.org>
55339
55340         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55341
55342 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55343
55344         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55345         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55346         Reject sizes of exactly SIZE_MAX bytes.
55347         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55348         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55349
55350 2003-11-05  Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55353         SIZE_MAX defined in <limits.h> on Solaris.
55354
55355 2003-11-04  Jim Meyering  <jim@meyering.net>
55356
55357         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55358         variable names, rather than @VAR@.
55359         * modules/poll: Likewise.
55360
55361 2003-11-04  Bruno Haible  <bruno@clisp.org>
55362
55363         * modules/xsize: New file.
55364         * modules/linebreak: Depend on xsize.
55365         * MODULES.html.sh (func_all_modules): Add xsize.
55366
55367 2003-11-04  Bruno Haible  <bruno@clisp.org>
55368
55369         * m4/xsize.m4: New file.
55370
55371 2003-11-04  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/xsize.h: New file.
55374         * lib/linebreak.c: Include xsize.h.
55375         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55376         argument for overflow.
55377         Suggested by Paul Eggert.
55378
55379 2003-11-03  Karl Berry  <karl@gnu.org>
55380
55381         * config/config.{guess,sub}: update from config.
55382
55383 2003-11-03  Jim Meyering  <jim@meyering.net>
55384
55385         * modules/userspec (lib_SOURCES): Add userspec.h.
55386         (Include): Add "userspec.h".
55387         Improve description.
55388
55389 2003-11-03  Jim Meyering  <jim@meyering.net>
55390
55391         * lib/userspec.c: Include "userspec.h".
55392         * lib/userspec.h: New file.
55393
55394 2003-11-03  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55397
55398 2003-11-03  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55401         available, to avoid (extremely rare) race condition.
55402         Suggested by Paul Eggert.
55403
55404 2003-11-02  Karl Berry  <karl@gnu.org>
55405
55406         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55407
55408 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55409
55410         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55411         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55412         (read_filesystem_list): Set and use me_type_malloced.
55413         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55414         whatever the type happens to be), for brevity and consistency.
55415         Check for size calculation overflow on Alphas running OSF/1.
55416
55417 2003-10-31  Jim Meyering  <jim@meyering.net>
55418
55419         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55420
55421         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55422
55423 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55424             Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55427         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55428
55429 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55430
55431         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55432         netbsd*-gnu*.  Suggested by Robert Millan.
55433
55434 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55435
55436         * modules/group-member: Depend on stdbool.
55437
55438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55439
55440         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55441
55442 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55443
55444         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55445         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55446         after the 'gnu' in these cases.  This fixes some bugs in the
55447         previous change, and is based on suggestions by Robert Millan.
55448
55449 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55450
55451         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55452         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55453         no longer needed.
55454         * lib/quotearg.c (quotearg_n_options): Use it.
55455         * lib/group-member.c: Include <stdbool.h>.
55456         (free_group_info): Arg is now const *; don't free arg.
55457         (get_group_info): Now returns bool and accepts struct group_info *,
55458         rather than returning a malloc'ed struct group_info *.
55459         All uses changed.  Check for overflow in internal size calculation.
55460
55461         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55462         rather than xmalloc/xrealloc.
55463         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55464         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55465         conformance bug: the old code used a pointer after freeing the
55466         storage that it addressed.
55467         * lib/hash.c (hash_initialize): Simplify the code by using
55468         xalloc_oversized rather than doing it by hand.
55469         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55470         the buffer preserved.  Use free and xmalloc instead.
55471         * lib/quotearg.c (quotearg_n_options): Likewise.
55472         Use a simpler test for size overflow.  Don't use xalloc_oversized
55473         because unsigned int might be wider than size_t (!); this suggests
55474         that we should switch from unsigned int to size_t for slot numbers.
55475
55476 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55477
55478         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55479         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55480         NetBSD kernels.  Requested by Richard Stallman.
55481
55482 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55483
55484         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55485         to allocate the returned structure.  Do not allocate a subarray,
55486         as x2nrealloc will do that.
55487         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55488         instead of xnrealloc.
55489         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55490
55491 2003-10-27  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/stdbool_.h: Better support for BeOS.
55494
55495 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55496
55497         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55498         now uses inline.
55499
55500 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55501
55502         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55503         callers that want to do their own size-overflow checking.  Include
55504         <stdbool.h>, since xalloc_oversized returns bool.
55505         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55506         to use xalloc_oversized.
55507
55508         Add two functions x2realloc, x2nrealloc, for programs that grow
55509         arrays dynamically by doubling their sizes.
55510         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55511         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55512         New functions.
55513
55514         Port to C99 semantics for 'inline' of external functions.
55515         Bug reported by Bruno Haible.
55516         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55517         with the old contents of xnmalloc.
55518         (xnmalloc, xmalloc): Use it.
55519         (xnrealloc_inline): New static inline function,
55520         with the old contents of xnrealloc.
55521         (xnrealloc, xrealloc): Use it.
55522
55523         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55524         that.
55525
55526 2003-10-26  Karl Berry  <karl@gnu.org>
55527
55528         * config/srclist.txt (COPYING.DOC): no longer available from
55529         /gd/gnuorg; don't know where the ultimate source is.
55530
55531 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55532
55533         Fix several address-calculation bugs in the hash modules,
55534         plus some minor code cleanup.
55535
55536         * lib/hash.h: Include <stdbool.h>, for bool.
55537         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55538         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55539         hash_get_n_entries, hash_get_max_bucket_length,
55540         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55541         hash_rehash): Use size_t rather than unsigned.
55542         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55543         hash_get_n_buckets_used, hash_get_n_entries,
55544         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55545         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55546         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55547         Likewise.
55548         (SIZE_MAX): Define if not defined.
55549         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55550         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55551         hash_print):
55552         Use const * when possible.
55553         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55554         (check_tuning): Fix bug: if tuning parameters were very close to
55555         0 or 1, rounding errors could have caused subscript violations.
55556         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55557         (hash_initialize): Add 'fail:' label
55558         to free table and return NULL, and use it to simplify code.
55559         Use calloc rather than clearing the storage ourself.
55560         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55561         buffer size calculations.
55562         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55563         Include <stddef.h>, for size_t.
55564         * lib/hash-pjw.c (hash_pjw): Likewise.
55565         Switch to method described by Bruno Haible.
55566         Include <limits.h>, for CHAR_BIT.
55567         (SIZE_BITS): New macro.
55568
55569 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55570
55571         * m4/getline.m4 (AM_FUNC_GETLINE):
55572         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55573         hosts.  Problem reported by Derek Robert Price in
55574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55575         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55576         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55577
55578 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55579
55580         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55581         ceiling the allocation at NMAX bytes rather than silently
55582         discarding input bytes before NMAX is reached.  This makes
55583         a difference only if NMAX exceeds SIZE_MAX / 2.
55584
55585         * lib/obstack.c: Merge from glibc.
55586         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55587         Add libc_hidden_def (_obstack_newchunk).
55588         (_obstack_free) [! defined _LIBC]: Remove.
55589         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55590         a clone of the function body.
55591         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55592         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55593
55594         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55595         glibc.
55596         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55597         arg to memcpy.
55598
55599         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55600         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55601         Don't use lvalue casts, as GCC plans to remove support for them
55602         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55603         was also present in the non-GCC version, indicating that this
55604         code had always been buggy and had never been widely used.
55605         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55606         Use the fast variant of each macro, rather than copying the
55607         definiens of the fast variant; that way, we'll be more likely to
55608         catch future bugs in the fast variants.
55609
55610 2003-10-20  Bruno Haible  <bruno@clisp.org>
55611
55612         * modules/wait-process: New file.
55613         * MODULES.html.sh (func_all_modules): Add wait-process.
55614
55615 2003-10-20  Bruno Haible  <bruno@clisp.org>
55616
55617         * m4/wait-process.m4: New file.
55618
55619 2003-10-20  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/wait-process.h: New file, from GNU gettext.
55622         * lib/wait-process.c: New file, from GNU gettext.
55623
55624 2003-10-19  Jim Meyering  <jim@meyering.net>
55625
55626         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55627         HPUX 10.20.
55628
55629 2003-10-18  Karl Berry  <karl@gnu.org>
55630
55631         * config/config.guess: update from config.
55632
55633 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55634
55635         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55636         (getgroups): First arg is int, not size_t.
55637         Don't let 'free' mangle errno.
55638
55639 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55640
55641         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55642
55643 2003-10-16  Karl Berry  <karl@gnu.org>
55644
55645         * config/config.{guess,sub}: update from config.
55646
55647 2003-10-16  Jim Meyering  <jim@meyering.net>
55648
55649         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55650         memcpy.
55651
55652 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55653
55654         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55655         (SIZE_MAX): Remove.
55656         (new_exclude, add_exclude_file): Initial size no longer needs to
55657         be a power of 2.
55658         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55659         our own address arithmetic overflow checking.
55660
55661         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55662         (fnmatch): Do not alloca more than 2000 wide characters;
55663         instead, use malloc for large buffers.
55664         Check for address arithmetic overflow, and return -1
55665         with errno set to ENOMEM in that case.
55666         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55667         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55668         instead, return -1.  Check for address arithmetic overflow.
55669
55670 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55671
55672         Handle invalid suffixes and overflow independently, so that
55673         callers can treat them independently as needed.  Fix some bugs in
55674         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55675         suffix for a human-readable blocksize.  The major caller-visible
55676         change is the addition of a new
55677         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55678         that both overflow and suffix chars were found.
55679
55680         * lib/human.c (humblock): Don't check separately for invalid suffix
55681         char; that is xstrtoumax's job (now that its bug is fixed).
55682         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55683         INTMAX_MAX]: New macros.
55684         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55685         TYPE_MAXIMUM): New macros.
55686         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55687         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55688         if overflow occurs, as it's what __strtol does and it's more useful
55689         in practice.
55690         (__xstrtol): If __strtol reports some error other than ERANGE,
55691         reflect it to the caller as LONGINT_INVALID.  If it reports
55692         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55693         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55694         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55695         value.
55696         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55697         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55698         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55699         [defined UINTMAX_MAX]: New macros.
55700
55701 2003-10-14  Bruno Haible  <bruno@clisp.org>
55702
55703         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55704
55705 2003-10-14  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/sig_atomic_t: New file, from GNU gettext.
55708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55709
55710 2003-10-14  Bruno Haible  <bruno@clisp.org>
55711
55712         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55713         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55714         Also use volatile where needed.
55715
55716 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55717
55718         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55719         Change maintainer from Bruno Haible to 'all'.
55720
55721 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55722
55723         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55724
55725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55726
55727         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55728         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55729         and define in terms of the other primitives.
55730         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55731         (SIZE_MAX): Define if not already defined.
55732         (array_size_overflow): New function.
55733         (xalloc_die): Abort instead of exiting if 'error' returns.
55734         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55735         (xmalloc, xrealloc): Use them.
55736         (xcalloc): Check for address arithmetic overflow.
55737         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55738         a bit faster than strcpy.
55739
55740 2003-10-10  Simon Josefsson  <jas@extundo.com>
55741
55742         * modules/argp (Depends-on): Add restrict and strcase.
55743
55744 2003-10-10  Simon Josefsson  <jas@extundo.com>
55745
55746         * m4/argp.m4: Add AC_C_INLINE.
55747
55748 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55749
55750         Merge getpass from libc, plus a few fixes.
55751
55752         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55753         Include <stdbool.h>.
55754         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55755         __fsetlocking to empty.
55756         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55757         do include <bits/libc-lock.h>.
55758         Do not include <fcntl.h>; not needed.
55759         [_LIBC]: Include <wchar.h>.
55760         (NOTCANCEL_MODE): New macro.
55761         (flockfile, funlockfile) [_LIBC]: New macros.
55762         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55763         [!_LIBC]: New macros.
55764         (call_fclose): New function.
55765         (getpass): Use it.  Save tty stream separately; this simplifies the
55766         code and makes it more reliable if stdin happens to equal stdout.
55767         Invoke __fsetlocking on tty.
55768         Handle thread cancellation if needed.
55769         Namespace cleanup (use __tcgetattr, __getline).
55770         Use bool for Booleans.
55771         [USE_IN_LIBIO]: Handle wide streams.
55772         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55773         stream might go where.
55774
55775         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55776         doesn't have to include <stdio.h> before us.
55777         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55778         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55779         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55780         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55781         if not declared, so that we can use getpass.c code from libc without
55782         rewriting it.
55783         (flockfile, ftrylockfile, funlockfile): New macros.
55784
55785 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55786
55787         * modules/getpass: Depend on stdbool.
55788
55789 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55790
55791         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55792
55793 2003-10-07  Karl Berry  <karl@gnu.org>
55794
55795         * config/config.{guess,sub}: update from config.
55796
55797 2003-10-06  Jim Meyering  <jim@meyering.net>
55798             Bruno Haible  <bruno@clisp.org>
55799
55800         This lets translators provide better translations for the
55801         "Written by ..." part of --version output.
55802         * lib/version-etc.h: Include stdarg.h.
55803         (version_etc_copyright): Declare as readonly.
55804         (version_etc): Make this function variadic with a NULL-terminated list
55805         of author name strings.
55806         (version_etc_va): New declaration.
55807         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55808         (version_etc_copyright): Declare as readonly.
55809         (version_etc_va): New function. Provide a different translatable string
55810         for each possible number of authors < 10. Abbreviate when there are 10
55811         authors or more.
55812         (version_etc): Make this function variadic. Call version_etc_va.
55813         Suggestion from Gary V. Vaughan.
55814
55815         * lib/long-options.h (parse_long_options): Change prototype: the
55816         authors string is moved to the end and becomes variadic.
55817         * lib/long-options.c: Include stdarg.h.
55818         (parse_long_options): Make this function variadic, too.
55819         Call version_etc_va, not version_etc.
55820
55821 2003-10-06  Bruno Haible  <bruno@clisp.org>
55822
55823         * modules/version-etc-2: Remove file.
55824         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55825
55826 2003-10-06  Bruno Haible  <bruno@clisp.org>
55827
55828         * modules/fatal-signal: New file.
55829         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55830
55831 2003-10-06  Bruno Haible  <bruno@clisp.org>
55832
55833         * m4/fatal-signal.m4: New file.
55834         * m4/signalblocking.m4: New file, from GNU gettext.
55835
55836 2003-10-06  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/version-etc-2.h: Remove file.
55839         * lib/version-etc-2.c: Remove file.
55840
55841 2003-10-06  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/fatal-signal.h: New file, from GNU gettext.
55844         * lib/fatal-signal.c: New file, from GNU gettext.
55845
55846 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55847
55848         * README: Rework advice for preventing empty .o files.
55849         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55850         not <sys/types.h>.
55851
55852 2003-10-04  Karl Berry  <karl@gnu.org>
55853
55854         * lib/argp*: update from libc.
55855
55856 2003-10-04  Karl Berry  <karl@gnu.org>
55857
55858         * config/config.{guess,sub}: update from config.
55859
55860 2003-10-02  Bruno Haible  <bruno@clisp.org>
55861
55862         * modules/lchown (Include): Add lchown.h.
55863         * modules/time_r (Include): Use "..." syntax.
55864         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55865
55866 2003-10-01  Simon Josefsson  <jas@extundo.com>
55867
55868         * MODULES.html.sh (func_all_modules): Move gethostname from section
55869         'based on' to section 'lacking' POSIX:2001.
55870
55871 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55872
55873         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55874         to output mode on the same stream.
55875
55876 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55877
55878         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55879         Fix arg typo in previous patch.
55880
55881 2003-09-28  Jim Meyering  <jim@meyering.net>
55882
55883         * lib/error.c: Correct cpp indentation.
55884
55885 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55886
55887         * modules/free: New file.
55888
55889 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55890
55891         * m4/free.m4: New file.
55892
55893 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55894
55895         * lib/minmax.h (MIN, MAX)
55896         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55897         Omit the special code that used __typeof__, since we worry that
55898         it could be more trouble than it's worth.  See:
55899         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55900         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55901
55902         * lib/free.c: New file.
55903
55904 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55905
55906         Trivial fixes to Makefile.am parts of module listings.
55907         * modules/strstr: Append strstr.h to lib_SOURCES.
55908         * modules/strcase: Likewise, for strcase.h.
55909
55910 2003-09-27  Karl Berry  <karl@gnu.org>
55911
55912         * config/mkinstalldirs: update from automake.
55913
55914 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55915
55916         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55917         (error_tail): Do not loop, reallocating temporary buffer, since
55918         the output cannot contain more wide characters than the input
55919         contains bytes, the size must be big enough already.  This avoids
55920         one potential size overflow calculation.  Check for size overflow
55921         when calculating temporary buffer size.  Free temporary buffer
55922         when done, if it was allocated with malloc; this plugs a memory
55923         leak.  Remove casts from void * to pointers, that are no longer
55924         needed now that we're assuming C89 or better.
55925
55926         Merge error changes from glibc.
55927
55928         * lib/error.c, error.h: Update copyright notice header to match glibc.
55929         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55930         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55931         Disable cancellation while printing error.
55932         * lib/error.h: Prepend __ to parameter names.
55933
55934 2003-09-26  Jim Meyering  <jim@meyering.net>
55935
55936         * lib/error.c (error_tail): Move some declarations
55937         into inner scope where the local variables are used.
55938
55939 2003-09-26  Bruno Haible  <bruno@clisp.org>
55940
55941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55942         stpncpy().
55943         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55944
55945 2003-09-26  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55948         (stpncpy): Define as alias for gnu_stpncpy.
55949         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55950
55951 2003-09-25  Simon Josefsson  <jas@extundo.com>
55952
55953         * lib/xgetdomainname.h: New file.
55954         * lib/xgetdomainname.c: New file.
55955
55956 2003-09-25  Simon Josefsson  <jas@extundo.com>
55957             Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/getdomainname: New file.
55960         * modules/xgetdomainname: New file.
55961         * MODULES.html.sh (func_all_modules): Add getdomainname,
55962         xgetdomainname.
55963
55964 2003-09-25  Simon Josefsson  <jas@extundo.com>
55965             Bruno Haible  <bruno@clisp.org>
55966
55967         * m4/getdomainname.m4: New file.
55968
55969 2003-09-25  Simon Josefsson  <jas@extundo.com>
55970             Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/getdomainname.h: New file.
55973         * lib/getdomainname.c: New file.
55974
55975 2003-09-25  Karl Berry  <karl@gnu.org>
55976
55977         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55978
55979 2003-09-25  Karl Berry  <karl@gnu.org>
55980
55981         * config/install-sh: update from automake.
55982
55983 2003-09-25  Bruno Haible  <bruno@clisp.org>
55984
55985         * modules/version-etc-2: New file, from modules/version-etc with
55986         modifications.
55987         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55988
55989 2003-09-25  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55992         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55993
55994 2003-09-24  Simon Josefsson  <jas@extundo.com>
55995
55996         * modules/xgethostname: Add xgethostname.h.
55997
55998 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55999
56000         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56001         the buffer associated with the argument.  Bug reported by
56002         Simon Josefsson.
56003
56004 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56005
56006         * README: Document assumptions that 'int' is at least 32 bits
56007         wide, that integer arithmetic is 2's complement without overflow,
56008         that there are no holes in integer values, that adding sizes of
56009         two nonoverlapping objects can't overflow, and that all-bits-zero
56010         yields scalar zero.  Fix spelling and capitalization typos.
56011
56012 2003-09-19  Karl Berry  <karl@gnu.org>
56013
56014         * lib/argp.h: update from libc.
56015
56016 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56017
56018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56019         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56020         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56021
56022 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56023
56024         * gnulib-tool: Use "test -h", not "test -L", for portability
56025         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56026         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56027         (sed_extract_prog): Issue s commands one-by-one, rather than
56028         using \| in one s command.
56029
56030 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56031
56032         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56033         input error, instead of returning NULL the next time we are called
56034         (and therefore losing track of errno).
56035
56036 2003-09-16  Bruno Haible  <bruno@clisp.org>
56037
56038         * gnulib-tool (func_create_testdir): Warn about duplicated
56039         dependencies.
56040
56041 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56042
56043         * modules/argmatch, modules/fatal, modules/obstack,
56044         modules/xalloc, modules/xgethostname: Sort dependencies by
56045         importance, not alphabetically.
56046
56047 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56048
56049         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56050         fails, so that the caller gets the proper errno.
56051
56052         * lib/readutmp.c (read_utmp): Likewise.
56053         Check for fstat error.  Close stream and free storage
56054         when failing.
56055
56056 2003-09-14  Karl Berry  <karl@gnu.org>
56057
56058         * config/srclist.txt (strdup.c): disable for c89 changes.
56059
56060 2003-09-14  Jim Meyering  <jim@meyering.net>
56061
56062         * lib/getloadavg.c: Correct cpp indentation.
56063         * lib/strdup.c: Likewise.
56064         * lib/vasnprintf.c: Likewise.
56065
56066 2003-09-14  Bruno Haible  <bruno@clisp.org>
56067
56068         * modules/fwriteerror: New file.
56069         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56070
56071 2003-09-14  Bruno Haible  <bruno@clisp.org>
56072
56073         * lib/fwriteerror.h: New file.
56074         * lib/fwriteerror.c: New file.
56075
56076 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56077
56078         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56079         modules/xgethostname, modules/xalloc: Depend on exit.
56080
56081 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56082
56083         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56084
56085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56086         and AC_MINIX, too, so that their extensions are available.
56087
56088         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56089         This macro has been superseded by gl_BACKUPFILE.
56090
56091         More patches to assume C89 or better.
56092
56093         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56094
56095         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56096         unconditionally.
56097         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56098         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56099         Include <string.h>, <stdlib.h> unconditionally.
56100         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56101         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56102         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56103         headers or for string.h.
56104         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56105         or strtoul.
56106
56107         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56108         headers.
56109         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56110         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56111         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56112         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56113         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56114         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56115         memcpy, memset.
56116         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56117         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56118         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56119         strtol.
56120         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56121         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56123         strtoul.
56124
56125 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56126
56127         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56128         * lib/obstack.c [!defined _LIBC]: Likewise.
56129         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56130         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56131         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56132
56133         More changes to assume C89 or better.
56134
56135         * lib/error.c (error_tail): Assume vprintf.
56136
56137         * lib/argmatch.c (getenv): Remove decl.
56138         * lib/progreloc.c (get_full_program_name): Define via prototype.
56139         * lib/setenv.c (clearenv): Likewise.
56140         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56141         needed.
56142         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56143         (malloc, memcpy): Remove decls.
56144         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56145         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56146         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56147         (memcpy): Remove macro.
56148         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56149         (__P): Remove.  All uses removed.
56150         (PTR): Remove.  All uses changed to void *.
56151         (CHAR_BIT, NULL): Remove.
56152         (spaces, zeros, memset_space, memset_zero)
56153         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56154         Remove.
56155         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56156         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56157         Define with prototype.
56158         Remove now-unnecessary prototype decl.
56159         (extra_args_spec): Assume ANSI C.  All uses changed.
56160         (extra_args_spec_iso): Remove.
56161         (my_strftime, emacs_strftimeu): Define via prototype.
56162         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56163         unconditionally.
56164         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56165         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56166         (strtoul, strtol): Remove decls.
56167         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56168         LONG_MAX): Remove.
56169         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56170         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56171         (LOCALE_PARAM_PROTO): New macro.
56172         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56173         (INTERNAL (strtol), strtol): Define with a prototype.
56174         (PARAMS): Remove.  All uses removed.
56175         * lib/tempname.c: Include <string.h> unconditionally.
56176         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56177         * lib/xgethostname.c (main): Define with a prototype.
56178         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56179         Include <stdlib.h> unconditionally.
56180         (calloc, malloc, realloc, free): Remove decls.
56181         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56182         Include <stdlib.h> unconditionally.  Sort include file names.
56183         (strtod): Remove.
56184         (xstrtod): Define with a prototype.
56185         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56186         (strtol, strtoul): Remove decls.
56187
56188 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56189
56190         More patches to assume C89 or better.
56191         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56192         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56193         string.h, memchr, STDC_HEADERS.
56194
56195 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56196
56197         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56198         Include <stdlib.h>, <string.h> unconditionally.
56199         Remove now-unnecessary cast to char *.
56200         * lib/strnlen.c: Include <string.h> unconditionally.
56201         * lib/yesno.c (yesno): Define with a prototype.
56202
56203 2003-09-11  Bruno Haible  <bruno@clisp.org>
56204
56205         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56206
56207 2003-09-10  Jim Meyering  <jim@meyering.net>
56208
56209         * lib/error.c: Correct indentation of cpp directives.
56210
56211 2003-09-10  Bruno Haible  <bruno@clisp.org>
56212
56213         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56214         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56215         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56216         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56217         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56218         <stdlib.h> and <string.h> checks.
56219         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56220         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56221
56222 2003-09-10  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/strcspn.c: Include <string.h> unconditionally.
56225         * lib/strpbrk.c: Include <string.h> unconditionally.
56226         * lib/strstr.c: Include <string.h> unconditionally.
56227         * lib/unicodeio.c: Include <string.h> unconditionally.
56228         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56229         * lib/unsetenv.c: Likewise.
56230         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56231         * lib/yesno.c: Include <stdlib.h> unconditionally.
56232         (rpmatch): Add prototype.
56233
56234 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56235
56236         More patches to assume C89 or better.
56237         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56238         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56239         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56240         or for string.h.
56241         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56242         stdlib.h.
56243         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56244         C headers.
56245         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56246         string.h.
56247         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56248         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56249         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56250         or for string.h.
56251         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56252         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56253         C headers.
56254         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56255         memcpy.
56256         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56257         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56258         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56259         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56260         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56261         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56262         string.h, free.
56263         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56264         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56265         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56266         C headers, or for string.h.
56267         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56268         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56269         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56270         headers, memory.h, stdlib.h, string.h, strings.h.
56271         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56272         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56273         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56274         strchr.
56275         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56276         headers, memory.h, string.h.
56277         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56278         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56279         free.
56280         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56281         headers.
56282         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56283         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56284         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56285         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56286         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56287
56288 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56289
56290         More K&R removal.
56291
56292         * lib/acosl.c (main): Use a prototype.
56293         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56294         tanl.c: Likewise.
56295
56296         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56297
56298         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56299         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56300         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56301         with a prototype.
56302         * lib/getopt.c (const): Remove macro.
56303         Include <string.h> unconditionally.
56304         (my_index): Remove; all uses changed to strchr.
56305         (strlen): Remove decl.
56306         (exchange): Remove forward decl; no longer needed.
56307         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56308         Define with prototype.
56309         * lib/getopt1.c (const): Remove macro.
56310         (getopt_long, getopt_long_only, main): Define with prototype.
56311
56312         * lib/getugroups.c: Include <string.h> unconditionally.
56313
56314         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56315         (getusershell, setusershell, endusershell, readname, main):
56316         Define with prototypes.
56317
56318         * lib/group-member.c: Include group-member.h first.
56319         Include <stdlib.h> unconditionally.
56320
56321         * lib/hard-locale.c: Include hard-locale.h first.
56322         Include <stdlib.h>, <string.h> unconditionally.
56323
56324         * lib/hash.c (free, malloc): Remove decls.
56325         Include <stdlib.h> unconditionally.
56326
56327         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56328         (getenv): Do not declare.
56329
56330         * lib/idcache.c: Include <string.h> unconditionally.
56331
56332         * lib/long-options.c: Include long-options.h first, to test interface.
56333         Include <stdlib.h> unconditionally.
56334
56335         * lib/makepath.c: Include makepath.h first, to test interface.
56336         Include <stdlib.h> and <string.h> unconditionally.
56337
56338         * lib/linebuffer.c: Include <stdlib.h>.
56339         (free): Remove decl.
56340
56341         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56342         stddef.h. rpl_malloc returns void *, not char *.
56343         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56344         prototype.
56345
56346         * lib/md5.h: Include <limits.h> unconditionally.
56347         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56348         (__P): Remove; all uses removed.
56349         * lib/md5.c: Include "md5.h" first.
56350         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56351         md5_buffer, md5_process_bytes, md5_process_block):
56352         Define with prototypes.
56353         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56354         * lib/sha.c: Include "sha.h" first.
56355         Include <stdlib.h>, <string.h> unconditionally.
56356
56357         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56358         * lib/memcmp.c (__ptr_t): Likewise.
56359         * lib/memrchr.c (__ptr_t): Likewise.
56360         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56361         Include <string.h> unconditionally.
56362         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56363         * lib/memchr.c: Include <stdlib.h> unconditionally.
56364         * lib/memchr.c (LONG_MAX): Remove.
56365         * lib/memrchr.c (LONG_MAX): Likewise.
56366         * lib/memchr.c (__memchr): Define via a prototype.
56367         * lib/memrchr.c (__memrchr): Likewise.
56368         * lib/memcmp.c (__P): Remove, and remove all uses.
56369         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56370         Remove forward decls; no longer needed.
56371         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56372         Use types required by C89 in prototype.
56373
56374         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56375         * lib/savedir.c: Likewise.
56376         * lib/mkdir.c (free): Remove decl.
56377         * lib/rmdir.c (rmdir): Define with a prototype.
56378         * lib/savedir.c: Include savedir.h first, to test interface.
56379
56380         * lib/mktime.c (STDC_HEADERS): Remove.
56381         Include <stdlib.h>, <string.h> unconditionally.
56382
56383         * lib/modechange.c: Include <stdlib.h> unconditionally.
56384         (malloc): Remove decl.
56385
56386         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56387         (free): Remove decl.
56388
56389         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56390         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56391         (This type really should be intptr_t, but that's a C99ism.)
56392         (_obstack_memcpy): Remove: all uses changed to memcpy.
56393         Include <string.h> unconditionally.
56394         (struct obstack): Assume __STDC__ for types of members
56395         chunkfun, freefun, extra_arg.
56396         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56397         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56398         obstack_begin, obstack_specify_allocation,
56399         obstack_specify_allocation_with_arg, obstack_chunkfun,
56400         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56401         Remove unprototyped decls and the macros that use them.
56402         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56403         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56404         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56405         (defined __STDC__ && __STDC__)]:
56406         Remove nonprototyped code.
56407         Include <stdlib.h> unconditionally.
56408         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56409         _obstack_allocated_p, _obstack_free, obstack_free,
56410         _obstack_memory_used, print_and_abort):
56411         Define using prototypes.
56412         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56413         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56414         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56415         obstack_next_free, obstack_object_size, obstack_room) [0]:
56416         Remove unused, unprototyped code.
56417
56418         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56419
56420         * lib/physmem.c (physmem_total, physmem_available, main): Define
56421         with prototypes.
56422
56423         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56424         (main): Define with a prototype.
56425
56426         * lib/posixver.c (getenv): Remove decl.
56427
56428         * lib/putenv.c (malloc): Returns void *, not char *.
56429         Include <string.h> unconditionally.
56430         (strchr, memcpy, NULL): Do not define.
56431
56432         * lib/readtokens.c: Include readtokens.h first, to test interface.
56433         Include <stdlib.h>, <string.h> unconditionally.
56434         (init_tokenbuffer): Define with a prototype.
56435
56436         * lib/regex.c (PARAMS): Remove.  All uses removed.
56437         All uses of _RE_ARGS removed, too.
56438         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56439         unconditionally.
56440         (bzero): Assume memset exists.
56441         (memcmp, memcpy, NULL): Remove.
56442         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56443         char, or assignments to local vars of type signed char.
56444         (init_syntax_once, PREFIX(extract_number_and_incr),
56445         PREFIX(print_partial_compiled_pattern),
56446         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56447         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56448         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56449         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56450         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56451         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56452         wcs_compile_range, byte_compile_range, truncate_wchar,
56453         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56454         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56455         count_mbs_length, wcs_re_match_2_internal,
56456         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56457         PREFIX(alt_match_null_string_p),
56458         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56459         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56460         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56461         now-unnecessary declaration, if any.
56462         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56463         regcomp, regexec):
56464         Remove now-unnecessary casts among pointer types.
56465         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56466
56467         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56468         (free): Remove decl.
56469
56470         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56471
56472         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56473         (free): Remove decl.
56474
56475         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56476         * lib/xgetcwd.c: Likewise.
56477
56478         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56479         (free): Remove decl.
56480
56481         * lib/strchrnul.c (strchrnul): Define with a prototype.
56482         Fix bug: c_in was not converted to char before searching.
56483
56484         The following changes are not K&R related:
56485
56486         * lib/group-member.h: Include <sys/types.h>, so that this file is
56487         self-contained.
56488         * lib/makepath.h: Likewise.
56489
56490         * lib/getusershell.c (readname, default_index, line_size, readname):
56491         Use size_t, not int, for sizes.
56492         (readname): If the size overflows, report an error instead of
56493         looping forever.
56494
56495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56496
56497         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56498         libc.
56499
56500 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56501
56502         * README: New section: portability guidelines.
56503
56504 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56505
56506         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56507         C89 spec.
56508
56509 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56510
56511         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56512
56513 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56514
56515         Assume C89 or better; remove K&R cruft.
56516         A few of these changes were first proposed by Derek Robert Price
56517         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56518
56519         * lib/addext.c: Include <string.h> unconditionally.
56520         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56521         Don't declare getenv or malloc.
56522
56523         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56524         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56525         (NULL): Remove.
56526         (find_stack_direction, alloca): Use prototypes.
56527
56528         * lib/atexit.c (atexit): Define using a prototype.
56529
56530         * lib/basename.c, dirname.c, stripslash.c:
56531         Include <string.h> unconditionally.
56532
56533         * lib/bcopy.c: Include <stddef.h>.
56534         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56535
56536         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56537
56538         * lib/error.h (error, error_at_line, error_print_progname)
56539         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56540         * lib/error.c: Include error.h first, to check interface.
56541         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56542         (VA_START): Remove; all uses changeed to va_start.
56543         (exit, strerror): Remove decls.
56544         (error_print_progname): Prototype uncondionally.
56545         Don't include <errno.h>; no longer needed.
56546         (private_strerror): Remove.
56547         (error_tail): Always define.
56548         (error, error_at_line): Assume C89 or better; always use prototypes.
56549         * lib/fatal.c: Include "fatal.h" first, to test interface.
56550         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56551         (VA_START): Remove; all uses changed to va_start.
56552         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56553         this case.
56554         (exit): Remove decl.
56555         (fatal): Prototype unconditionally.  Assume va_start works.
56556         Abort at end, to pacify gcc.
56557
56558         * lib/euidaccess.c (main): Define with a prototype.
56559
56560         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56561
56562         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56563
56564         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56565         prototypes.
56566         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56567         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56568         (getenv): Remove decl.
56569         (fnmatch): Define using a prototype.
56570         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56571         (FCT): Define using a prototype.
56572
56573         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56574
56575         * lib/gethostname.c: Include <stddef.h>.
56576         (gethostname): Define with prototype.  Length is size_t, not int.
56577
56578 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56579
56580         Assume C89 or better; remove K&R cruft.
56581         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56582         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56583         string.h, getenv, malloc.
56584         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56585         headers.
56586         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56587         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56588         do not check for strerror.
56589         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56590         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56591         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56592         do not check for doprnt or vprintf.
56593         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56594         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56595
56596 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56597
56598         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56599         getversion.c should have been removed then, but was accidentally
56600         preserved.
56601
56602         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56603         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56604
56605 2003-09-08  Karl Berry  <karl@gnu.org>
56606
56607         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56608                 config, forget about prep.
56609
56610         * config/depcomp, missing: update from automake.
56611
56612 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56613
56614         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56615         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56616
56617 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56618
56619         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56620         copy_tm_result.  Bug reported by Simon Josefsson in
56621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56622
56623 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56624
56625         * m4/time_r.m4: New file.
56626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56628         is. Check for timegm declaration.
56629         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56630         Do not check for gmtime_r.
56631         Replace mktime if __mktime_internal does not exist and if mktime
56632         hasn't been replaced already.
56633
56634 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56635
56636         * lib/time_r.c, lib/time_r.h: New files.
56637
56638         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56639         __localtime_r.
56640         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56641         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56642
56643         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56644         __gmtime_r.
56645         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56646         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56647         Include <time_r.h>.
56648
56649         * lib/timegm.c: Switch to glibc implementation, with the following
56650         changes:
56651         [defined HAVE_CONFIG_H]: Include <config.h>.
56652         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56653         (__mktime_internal) [!defined _LIBC]: New decl.
56654         (__gmtime_r) [!defined _LIBC]: New macro and function.
56655         (timegm): Use a prototype, since gnulib assumes C89.
56656         Do not bother declaring tmp to be const, as it's not really usefu.
56657         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56658         (timegm): Declare only if HAVE_DECL_TIMEGM.
56659
56660 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56661
56662         * MODULES.html.sh (func_all_modules): Add time_r.
56663         * modules/time_r: New file.
56664         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56665         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56666
56667 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56668
56669         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56670         Bug reported by Lute Kamstra in
56671         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56672
56673         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56674         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56675         course with correspondingly smaller numbers for tomorrow and
56676         yesterday.  From Tadayoshi Funaba.  Originally installed into
56677         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56678         coreutils merge?).
56679
56680 2003-08-31  Simon Josefsson  <jas@extundo.com>
56681
56682         * modules/timegm: New file.
56683         * MODULES.html.sh (func_all_modules): Add timegm.
56684
56685 2003-08-31  Simon Josefsson  <jas@extundo.com>
56686
56687         * m4/timegm.m4: New file.
56688
56689 2003-08-31  Simon Josefsson  <jas@extundo.com>
56690
56691         * lib/timegm.h: New file.
56692         * lib/timegm.c: New file.  Based on
56693         wget-1.8.2/src/http.c:mktime_from_utc.
56694
56695 2003-08-31  Karl Berry  <karl@gnu.org>
56696
56697         * lib/argp.h: update from libc.
56698
56699 2003-08-28  Bruno Haible  <bruno@clisp.org>
56700
56701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56702         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56703         followed by '#define fnmatch fnmatch_posix' gives an error.
56704
56705 2003-08-28  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56708         warning on QNX, which defines O_BINARY to 000000.
56709
56710 2003-08-27  Jim Meyering  <jim@meyering.net>
56711
56712         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56713         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56714         would fail after 32.  Reported by Danny Levinson.  Details here:
56715         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56716
56717 2003-08-24  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56720         MSVC7 <stdio.h> is included later.
56721
56722 2003-08-22  Simon Josefsson  <jas@extundo.com>
56723
56724         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56725
56726 2003-08-20  Karl Berry  <karl@gnu.org>
56727
56728         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56729
56730 2003-08-20  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/progname: New file.
56733         * MODULES.html.sh (func_all_modules): Add progname.
56734
56735 2003-08-20  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/progname.h: New file, from GNU gettext.
56738         * lib/progname.c: New file, from GNU gettext.
56739         * lib/progreloc.c: New file, from GNU gettext.
56740
56741 2003-08-19  Jim Meyering  <jim@meyering.net>
56742
56743         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56744         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56745
56746 2003-08-19  Bruno Haible  <bruno@clisp.org>
56747
56748         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56749         more.
56750
56751 2003-08-19  Bruno Haible  <bruno@clisp.org>
56752
56753         * lib/xstrdup.c: Assume <string.h> exists.
56754
56755 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56756
56757         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56758         in makefile rules.
56759
56760 2003-08-18  Jim Meyering  <jim@meyering.net>
56761
56762         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56763         * m4/lib-ld.m4: Likewise.
56764
56765 2003-08-18  Jim Meyering  <jim@meyering.net>
56766
56767         * lib/setenv.h: Indent nested cpp directive.
56768         * lib/vasnprintf.c: Remove trailing blanks.
56769
56770 2003-08-17  Simon Josefsson  <jas@extundo.com>
56771
56772         * modules/xstrndup: New file.
56773         * MODULES.html.sh (func_all_modules): Add xstrndup.
56774
56775 2003-08-17  Simon Josefsson  <jas@extundo.com>
56776
56777         * modules/argp: Fix autoconf macro name. Add more dependencies.
56778
56779 2003-08-17  Simon Josefsson  <jas@extundo.com>
56780
56781         * m4/xstrndup.m4: New file.
56782
56783 2003-08-17  Simon Josefsson  <jas@extundo.com>
56784
56785         * m4/argp.m4: New file.
56786
56787 2003-08-17  Simon Josefsson  <jas@extundo.com>
56788             Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/xstrndup.h: New file.
56791         * lib/xstrndup.c: New file.
56792
56793 2003-08-17  Bruno Haible  <bruno@clisp.org>
56794
56795         * modules/strndup (Files, Include): Add lib/strndup.h.
56796
56797 2003-08-17  Bruno Haible  <bruno@clisp.org>
56798
56799         * modules/euidaccess (Files): Add lib/euidaccess.h.
56800
56801 2003-08-17  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/strndup.h: New file.
56804
56805 2003-08-17  Bruno Haible  <bruno@clisp.org>
56806
56807         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56808         like AC_GNU_SOURCE.
56809         * modules/extensions (configure.ac): Comment out the invocation of
56810         gl_USE_SYSTEM_EXTENSIONS.
56811
56812 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56813
56814         Merges from coreutils, etc.
56815         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56816         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56817         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56818         fixing a typo.
56819         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56820         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56821
56822 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56823
56824         Document merge from coreutils.
56825         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56826         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56827         * modules/utime: Add m4/utimes-null.m4.
56828
56829 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56830
56831         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56832         space, undoing this 2003-08-12 change:
56833         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56834
56835 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56836
56837         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56838         strtoul.c from libc, undoing this 2003-08-12 change:
56839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56840
56841 2003-08-16  Jim Meyering  <jim@meyering.net>
56842
56843         Merges from coreutils.
56844         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56845         prefix.  Adjust cache variables similarly.  Create 500 rather than
56846         just 300 files, to exercise bug on Darwin6.5, too.
56847         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56848         $missing_dir.
56849         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56850         AM_SYS_POSIX_TERMIOS.
56851         Reported by mkc@mathdogs.com.
56852         Also change use of $am_cv_sys_posix_termios
56853         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56854         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56855         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56856         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56857         in /proc/mounts until it finds one with matching device number.  This
56858         is unnecessary when the FILE argument *is* a mount point.  No stat call
56859         is necessary in that case.  So, disable the statvfs-testing code on
56860         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56861         as RedHat bug# 84846.
56862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56863         to 1MB, so as not to render systems with no stack size limit (e.g.,
56864         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56865         Include <unistd.h>.  On some systems,
56866         it is required for the definition of _SC_PAGESIZE.
56867
56868 2003-08-16  Jim Meyering  <jim@meyering.net>
56869
56870         Merge from coreutils.
56871         * lib/xstrtoimax.c: #else #if -> #elif.
56872         * lib/xstrtoumax.c: Likewise.
56873
56874 2003-08-16  Jim Meyering  <jim@meyering.net>
56875
56876         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56877         * m4/utimes.m4: Removed.
56878         * m4/utimes-null.m4: Renamed from utimes.m4.
56879
56880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56881         to 1MB, so as not to render systems with no stack size limit (e.g.,
56882         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56883         Include <unistd.h>.  On some systems,
56884         it is required for the definition of _SC_PAGESIZE.
56885
56886 2003-08-16  Jim Meyering  <jim@meyering.net>
56887         and Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         Merges from coreutils, etc.
56890
56891         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56892         using the latest version from cvs.  This avoids problems with #line
56893         directives using a vendor (Sun) compiler.
56894         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56895         Don't set GETGROUPS_LIB here; now it's
56896         done via getgroups.m4's wrapper function.
56897         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56898         rather than just in sh-util/configure.in, so that the
56899         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56900         same.
56901         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56902         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56903         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56904         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56905         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56906         Remove code that is now done by the newly-required macros.
56907         Append $(EXEEXT) to DF_PROG.
56908         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56909         Do not invoke or require the following here,
56910         since prereq.m4 or some gnulib .m4 now does this for us:
56911         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56912         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56913         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56914         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56915         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56916         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56917         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56918         AC_FUNC_OBSTACK.
56919         Do not replace the following functions, as this is now the job
56920         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56921         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56922         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56923         atexit getpass, strdup, getpagesize.
56924         Replace 'raise'.
56925         Do not check for the following functions, as this is now the job
56926         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56927         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56928         setregid.
56929         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56930         Check for sys/sysctl.h.
56931         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56932         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56933         of checking for ssize_t ourselves.
56934
56935         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56936         Require every macro that gnulib/modules/* suggests for us.
56937         (jm_PREREQ_ADDEXT): New macro.
56938         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56939         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56940
56941         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56942         (gl_PHYSMEM): Use it.
56943         Also check for `table' function.
56944         Check for new headers and functions.
56945         Add check for sys/sysmp.h.
56946         With suggestions from Kaveh Ghazi.
56947         Ignore headers that are present but cannot be compiled.  This
56948         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56949         C 5.4.
56950
56951 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56952
56953         Document merge from coreutils.
56954         * modules/userspec: Depend on posixver.
56955         * modules/strftime: Depend on tzset.
56956
56957 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56958
56959         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56960         rather than tab, after '#' in shell-script copyright notices.
56961         Suggested by Bruno Haible.
56962
56963 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56964
56965         * config/srclist-update: Use three spaces, rather than tab, after '#'
56966         in shell-script copyright notices.  Suggested by Bruno Haible.
56967         Remove unnecessary parenthesization in regular expression.
56968
56969 2003-08-15  Jim Meyering  <jim@meyering.net>
56970
56971         Merge from coreutils.
56972         * lib/xgethostname.c: Include <stdlib.h>.
56973         (xghostname): Don't exit for anything other than memory-related
56974         failure; just return NULL.
56975         * lib/userspec.c: Include "posixver.h".
56976         (parse_user_spec): Accept `.' as a separator only
56977         in pre-POSIX-200112 mode.
56978         * lib/strtoimax.c: Use #elif rather than #else #if.
56979         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56980         Remove function, now that we can rely on a working tzset function.
56981         [!_LIBC]: Ensure that the required autoconf test has been run.
56982         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56983         Use underlying_strftime for %r.
56984         * lib/sha.c: Merge in some clean-up and optimization changes from
56985         glibc.
56986         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56987         Ensure that it is a multiple of 64.
56988         Rearrange loop exit tests so as to avoid performing an
56989         additional fread after encountering an error or EOF.
56990         * lib/realloc.c: Update copyright date.
56991
56992 2003-08-15  Jim Meyering  <jim@meyering.net>
56993         and Paul Eggert  <eggert@twinsun.com>
56994
56995         Merge from coreutils.
56996         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56997         member but strut utmpx does not.  Needed for AIX 4.3.3.
56998         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56999
57000 2003-08-15  Jim Meyering  <jim@meyering.net>
57001         and Paul Eggert  <eggert@cs.ucla.edu>
57002
57003         Merges from coreutils, etc.
57004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57005         Require gl_FUNC_TZSET_CLOBBER.
57006         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57007         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57008         members.
57009
57010 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57011
57012         Help the merge from coreutils.
57013         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57014         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57015         * m4/tzset.m4: Use it too.
57016
57017 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57018
57019         * modules/tzset: New file.
57020
57021 2003-08-14  Jim Meyering  <jim@meyering.net>
57022
57023         Merges from coreutils.
57024         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57025         variable names, rather than @FNMATCH_H@.
57026         * modules/alloca: Likewise for $(ALLOCA_H).
57027
57028         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57029         the three copies of the literal target, `fnmatch.h'.
57030         * modules/alloca (alloca.h): Likewise.
57031
57032 2003-08-14  Jim Meyering  <jim@meyering.net>
57033
57034         Merge from coreutils.
57035         * m4/tzset.m4: New file.
57036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57037         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57038         otherwise, AIX 5.1 systems would end up using the latter.
57039         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57040         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57041         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57042         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57043
57044 2003-08-14  Jim Meyering  <jim@meyering.net>
57045
57046         Merge from coreutils.
57047         * lib/obstack.h: Whitespace changes.
57048         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57049         and xcalloc return values.
57050         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57051         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57052         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57053         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57054         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57055         error from mntctl.
57056         Use mntctl's return value to drive the entry-processing loop, since
57057         we can't rely on the value of the vmt_length member in the last
57058         entry.  On some systems doing so could result in exhausting
57059         virtual memory.  Based in part on a patch from Mike Jetzer.
57060
57061 2003-08-14  Jim Meyering  <jim@meyering.net>
57062         and Paul Eggert  <eggert@twinsun.com>
57063
57064         Merges from coreutils, plus other fixes.
57065         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57066         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57067         for credits and details.  Thanks to Kaveh Ghazi for helping
57068         to keep these files in sync.
57069         (ARRAY_SIZE): Define it.
57070         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57071         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57072         (memcasecmp): Don't assume size_t fits in unsigned int.
57073         Remove casts and duplicate code.
57074         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57075         (memcpy): Remove definition.
57076         Merge in some clean-up and optimization changes from glibc.
57077         [BLOCKSIZE]: Move definition to top of file.
57078         Ensure that it is a multiple of 64.
57079         Rearrange loop exit tests so as to avoid performing an
57080         additional fread after encountering an error or EOF.
57081         * lib/md5.h (md5_uintptr): Define.
57082         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57083         return to the initial working directory.  Preserve errno
57084         for caller.
57085         * lib/idcache.c: Include "xalloc.h".
57086         (xmalloc, xrealloc): Remove decls.
57087         (getuser): Remove casts no longer required in C89.
57088         * lib/human.c: Include stdio.h, for sprintf.
57089         * lib/group-member.c: Include "xalloc.h".
57090         (xmalloc, xrealloc): Remove decls.
57091         (get_group_info): Remove casts no longer required in C89.
57092         * lib/getusershell.c (readname): Remove casts no longer required in
57093         C89.
57094         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57095         * lib/getline.c: Whitespace fix, from coreutils.
57096
57097 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57098
57099         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57100         Check for isascii.
57101
57102         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57103         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57104         Undo previous (whitespace-only) change.
57105
57106 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57107
57108         * lib/exclude.c: Include <ctype.h>
57109         (IN_CTYPE_DOMAIN): New macro.
57110         (is_space): New fn.
57111         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57112         and empty lines.
57113
57114         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57115         Undo previous (whitespace-only) change.
57116
57117 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57118
57119         * config/srclist-update: Change update back to the old behavior,
57120         leaving whitespace alone.  Use one 'sed' command rather than a
57121         pipeline.
57122         (fixlicense): Now a variable, not a function.
57123         (remove_trailing_blanks): Remove.
57124         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57125         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57126         Undo previous (whitespace-only) change.
57127
57128 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57129
57130         Merge from coreutils.
57131         * modules/euidaccess: Add lib_SOURCES, include for new
57132         file euidaccess.h
57133
57134 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57135
57136         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57137         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57138         Normalize leading white space and remove trailing white space.
57139
57140         Merge from coreutils
57141         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57142
57143         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57144         0.12.1.  These files are now being upgraded automatically by
57145         ../config/srclist-update.
57146
57147 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57148
57149         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57150         Normalize leading white space and remove trailing white space.
57151         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57152         notice, as per ../config/srclist-update.
57153
57154         Merge from coreutils.
57155         * lib/euidaccess.h: New file.
57156         * lib/euidaccess.c: Include it.
57157         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57158         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57159         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57160
57161 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57162
57163         * config/srclist-update: Add copyright notice.
57164         (remove_id_lines, remove_trailing_blanks): New constants.
57165         (fixfile): Use them to normalize spacing a bit in copied files.
57166         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57167         Normalize leading white space and remove trailing white space.
57168
57169         * config/texinfo.tex: Sync with texinfo.
57170
57171         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57172         strtoul.c from libc, to merge coreutils whitespace changes.
57173
57174         * config/srclist.txt: Get the following m4 files from gettext:
57175         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57176         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57177         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57178         wint_t.m4.
57179
57180 2003-08-12  Karl Berry  <karl@gnu.org>
57181
57182         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57183         been made.
57184
57185 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57186
57187         * modules/gnu-source, m4/gnu-source.m4:
57188         Remove; we're assuming Autoconf 2.54 or later now.
57189         Suggested by Bruno Haible.
57190         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57191
57192 2003-08-11  Bruno Haible  <bruno@clisp.org>
57193
57194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57195
57196 2003-08-11  Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57199         (vasnprintf): Use it instead of wcslen.
57200
57201 2003-08-11  Bruno Haible  <bruno@clisp.org>
57202
57203         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57204         value to ensure that _Bool promotes to int. Use #define for _Bool when
57205         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57206
57207 2003-08-10  Karl Berry  <karl@gnu.org>
57208
57209         * lib/regex.h: update from libc (whitespace fix).
57210
57211 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57212
57213         Merge some files from coreutils.  These changes were
57214         originally made by Jim Meyering.
57215         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57216         many older Unixes require this.
57217         * lib/alloca.c (alloca): Remove cast to argument of free;
57218         no longer needed in C89.
57219         * lib/alloca_.h, regex.h: Fix white space to match
57220         what GNU indent does.
57221
57222 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57223
57224         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57225         apparently Emacs's Unicode mode got confused before my 2003-08-05
57226         checkin.
57227
57228 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57229
57230         * m4/extensions.m4: New file.
57231         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57232         Require gl_USE_SYSTEM_EXTENSIONS.
57233         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57234         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57235
57236 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57237
57238         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57239         * modules/extensions, modules/gnu-source: New files.
57240         * modules/timespec, modules/unlocked-io: Depend on extensions.
57241
57242 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57243
57244         * modules/restrict: New file.
57245         * MODULES.html.sh (func_all_modules): Add restrict.
57246         * modules/regex: Depend on restrict.
57247
57248 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57249
57250         * m4/restrict.m4: New file.
57251         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57252
57253 2003-08-07  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57256         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57257
57258 2003-08-07  Bruno Haible  <bruno@clisp.org>
57259
57260         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57261         makes the module 'getndelim2' compatible with the module 'getline'.
57262
57263 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57264
57265         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57266         byte with "\201" to avoid glitches when editing that source file
57267         with multi-gnome-terminal.
57268
57269 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57270
57271         * lib/bumpalloc.h: Remove.
57272
57273 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57274
57275         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57276         * modules/bumpalloc: Remove.
57277
57278 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57279
57280         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57281         GNU coding style.
57282
57283         Merge from coreutils.
57284         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57285         1. From glibc.
57286         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57287         from Karl Berry, implemented by Jim Meyering.
57288         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57289         from Dmitry V. Levin.
57290         Remove anachronistic cast of xrealloc.
57291         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57292         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57293         type. Otherwise, it wouldn't compile with at least /bin/cc on
57294         ymp-cray-unicos9.0.2.X.
57295         Combine two mostly-identical uses of alloca into one.
57296         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57297
57298 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57299
57300         [From Emacs.]
57301
57302         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57303         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57304         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57305         obsolete NLIST_NAME_UNION.
57306         [__GNU__]: Undef BSD and FSCALE.
57307         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57308
57309 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57310
57311         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57312         an enum type, so that it's guaranteed to promote to int.  See:
57313         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57314
57315 2003-08-03  Karl Berry  <karl@gnu.org>
57316
57317         * config/depcomp: update from automake.
57318
57319 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57320
57321         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57322         (strerror): Don't assume that a printable int fits in 14 bytes.
57323
57324 2003-07-31  Bruno Haible  <bruno@clisp.org>
57325
57326         * modules/getpass-gnu: New file.
57327         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57328
57329 2003-07-31  Bruno Haible  <bruno@clisp.org>
57330
57331         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57332
57333 2003-07-24  Karl Berry  <karl@gnu.org>
57334
57335         * config/missing: update from automake.
57336
57337 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57338             Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57341         * lib/getline.c (getline, getdelim): Likewise.
57342         Remove _GNU_SOURCE define; now it's defined in config.h through
57343         m4/getline.m4.
57344
57345 2003-07-23  Karl Berry  <karl@gnu.org>
57346
57347         * config/config.sub: update from prep.
57348
57349 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57350
57351         * modules/xalloc (Depends-on): Add exitfail.
57352         * modules/xmemcoll: Likewise.
57353
57354 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57355
57356         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57357         over-parenthesization in macros.
57358
57359         Sync with coreutils.
57360
57361         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57362         required by C99.
57363
57364         Use `exit_failure' for xalloc and xmemcoll instead of their own
57365         private exit-failure variables.
57366         * lib/xalloc.h (xalloc_exit_failure): Remove.
57367         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57368         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57369         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57370         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57371         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57372
57373 2003-07-20  Jim Meyering  <jim@meyering.net>
57374
57375         * modules/closeout (Depends-on): Add exitfail.
57376         Suggestion from Bruno Haible.
57377
57378 2003-07-19  Karl Berry  <karl@gnu.org>
57379
57380         * config/config.sub: update from prep.
57381
57382 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57383
57384         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57385         Remove.
57386         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57387         to test that it can stand by itself.  Include "exitfail.h".
57388         Clients should set exit_failure instead.
57389         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57390
57391 2003-07-18  Bruno Haible  <bruno@clisp.org>
57392
57393         * modules/getndelim2: New file.
57394         * modules/getline: Share files with module getndelim2.
57395         * modules/getnline: Depend on getndelim2 instead of sharing files with
57396         it. Add getnline.c to lib_SOURCES.
57397         * MODULES.html.sh (func_all_modules): Add getndelim2.
57398
57399 2003-07-18  Bruno Haible  <bruno@clisp.org>
57400
57401         * m4/getndelim2.m4: New file.
57402         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57403         invoke gl_PREREQ_GETNDELIM2.
57404         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57405         gl_PREREQ_GETNDELIM2.
57406         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57407         gl_GETNDELIM2.
57408
57409 2003-07-18  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/getndelim2.h: New file.
57412         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57413         getndelim2.h.
57414         (getndelim2): Make non-static. Change return type to ssize_t.
57415         * lib/getline.h: Change argument names.
57416         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57417         * lib/getnline.c: Include getndelim2.h.
57418
57419 2003-07-18  Andreas Schwab  <schwab@suse.de>
57420
57421         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57422
57423 2003-07-17  Karl Berry  <karl@gnu.org>
57424
57425         * config/config.sub: update from prep.
57426
57427 2003-07-17  Bruno Haible  <bruno@clisp.org>
57428
57429         * modules/getnline: New file.
57430         * modules/getline: Add lib/getndelim2.c to source file list.
57431         * MODULES.html.sh (func_all_modules): Add getnline.
57432
57433 2003-07-17  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/getnline.m4: New file.
57436
57437 2003-07-17  Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/Makefile.am.in: Remove file.
57440         * m4/Makefile.am: Remove file.
57441         * m4/Makefile.in: Remove file.
57442
57443 2003-07-17  Bruno Haible  <bruno@clisp.org>
57444
57445         * lib/getnline.h: New file.
57446         * lib/getnline.c: New file.
57447         * lib/getndelim2.c: New file, extracted from getline.c.
57448         (getndelim2): Renamed from getdelim2, with added nmax argument.
57449         * lib/getline.c: Include getndelim2.c.
57450         (getdelim2): Moved out to getndelim2.c.
57451         (getline, getdelim): Update.
57452
57453 2003-07-17  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/Makefile.am: Remove file.
57456         * lib/Makefile.in: Remove file.
57457
57458 2003-07-17  Bruno Haible  <bruno@clisp.org>
57459
57460         * configure.in: Remove file.
57461         * Makefile.in: Remove file.
57462
57463 2003-07-17  Bruno Haible  <bruno@clisp.org>
57464
57465         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57466
57467 2003-07-16  Karl Berry  <karl@gnu.org>
57468
57469         * config/srclist-update: was running fixlicense twice, which caused
57470                 texinfo.tex to be nullified for some reason.  Simplify,
57471                 $gplsrc is no longer needed as far as I can see?
57472
57473 2003-07-16  Jim Meyering  <jim@meyering.net>
57474
57475         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57476
57477 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57478
57479         * config/srclist.txt: Get the following files from gettext-runtime/intl
57480         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57481         ref-del.sin.  From Bruno Haible.
57482         * config/srclist-update (fixfile): Change grep pattern again, since the
57483         previous fix didn't work (there was another trailing $).  Use
57484         '[$]' to escape the $s.
57485
57486 2003-07-15  Karl Berry  <karl@gnu.org>
57487
57488         * lib/vasnprintf.c: update from gettext.
57489
57490 2003-07-15  Karl Berry  <karl@gnu.org>
57491
57492         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57493         gets expanded when surrounded by '$'.
57494
57495 2003-07-15  Jim Meyering  <jim@meyering.net>
57496
57497         * modules/save-cwd: Don't depend on error.  From Derek Price.
57498
57499 2003-07-15  Jim Meyering  <jim@meyering.net>
57500
57501         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57502
57503 2003-07-14  Simon Josefsson  <jas@extundo.com>
57504
57505         * modules/mempcpy: New file.
57506         * MODULES.html.sh (func_all_modules): Add mempcpy.
57507
57508 2003-07-14  Simon Josefsson  <jas@extundo.com>
57509
57510         * m4/mempcpy.m4: New file.
57511
57512 2003-07-14  Simon Josefsson  <jas@extundo.com>
57513
57514         * lib/mempcpy.h: New file.
57515         * lib/mempcpy.c: New file.
57516
57517 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57518
57519         * modules/getdate, modules/posixtm: Depend on mktime.
57520
57521 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57522
57523         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57524         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57525         unicodeio.c, unicodeio.h, unlocked-io.h:
57526         Switch from LGPL to GPL.
57527
57528 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57529
57530         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57531         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57532         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57533         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57534         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57535         updated automatically by ../config/srclist-update.  This changes
57536         their license from LPGL to GPL.
57537
57538 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57539
57540         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57541         assumed to refer to the root of the most recent stable gettext version.
57542         * config/srclistvars.sh: Add defaults for eggert.
57543         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57544         Match "This program" as well as "The program".  This is needed
57545         for gettext.
57546
57547 2003-07-14  Jim Meyering  <jim@meyering.net>
57548
57549         Don't emit diagnostics.  Let callers do that.
57550         * lib/save-cwd.c: Don't include "error.h".
57551         (save_cwd): Don't call error.  Ensure that errno is valid
57552         when returning nonzero.
57553
57554         * lib/save-cwd.h (restore_cwd): Update prototype.
57555         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57556         Simplify.  Don't call error upon failure.  Let callers do that.
57557         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57558         when auditing is enabled.  But don't bother updating the #if.
57559
57560 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57561
57562         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57563         it breaks C++ compilation.
57564         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57565
57566 2003-07-10  Simon Josefsson  <jas@extundo.com>
57567
57568         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57569
57570 2003-07-10  Jim Meyering  <jim@meyering.net>
57571
57572         * m4/clock_time.m4: Remove trailing blank.
57573         * m4/intmax_t.m4: Likewise.
57574
57575 2003-07-10  Jim Meyering  <jim@meyering.net>
57576
57577         * lib/vasnprintf.c: Remove trailing blanks.
57578         Make cpp indentation consistent.
57579
57580 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57581
57582         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57583         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57584         Switch from LGPL to GPL.
57585
57586 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57587
57588         * config/srclist.txt: Sort sublists.  Add
57589         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57590         that differ from gnulib for one reason or another; we'd like this list
57591         to be smaller but for now let's document what we have.
57592
57593 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57594
57595         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57596         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57597         and sweeter "eval x=$x".
57598         * config/srclist.txt: Get lib/argp* from glibc.
57599
57600 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57601
57602         * lib/mktime.c: Fix some boundary cases and remove need for floating
57603         point.
57604
57605         Issue a compile-time diagnostic if time_t is floating point, or if
57606         two's complement arithmetic is not in effect, or if arithmetic
57607         right shift does not propagate the sign.  These assumptions were
57608         all in the original code but they weren't checked.
57609
57610         (TIME_T_MIDPOINT, verify): New macros.
57611         (__isleap): Remove; it has integer overflow problems.
57612         (leapyear): New function, without those problems.
57613         (ydhms_tm_diff): Remove; splitting into two parts.
57614         (ydhms_diff): New function, containing the arithmetic part of
57615         the old ydhms_tm_diff function.  Issue a compile-time
57616         diagnostic if we are not using C99 integer division.
57617         Avoid casts when possible.
57618         (guess_time_tm): New function, containing the checking part of
57619         the old ydhms_tm_diff function.  Return the new value, rather than
57620         the difference between it and the old.  Accept a new argument T
57621         so that *T specifies the old value.  Check for overflow in the result.
57622
57623         (__mktime_internal): Use a time_t offset, not a long int offset.
57624         This undoes the 2003-06-04 change, which is no longer needed now
57625         that we have better overflow checking.
57626         (localtime_offset): Likewise.
57627
57628         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57629         and long are 64-bit but int is only 32-bit.
57630         (ydhms_diff): Use long int to store year1 and yday1.
57631         Issue a compile-time diagnostic if long int is not wide enough.
57632
57633         (__mktime_internal): Use long int to store adjusted year and yday.
57634         Use plain C rather than preprocessor commands, if that doesn't
57635         affect efficiency.
57636         Check for overflow (and try to repair) after each probe
57637         rather than checking only at the very end.  This avoids some bugs
57638         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57639         does not equal GMT offset at maximum time).
57640         Use integer to check for overflow rather than floating point; this
57641         is more portable to non-IEEE hosts, and is a tad faster.
57642         When we detect that we are oscillating between two values,
57643         don't check whether tm_isdst has the requested value, since
57644         we already know the answer.  When tm_isdst has the wrong value,
57645         use a different heuristic to find the right one, based on the
57646         extreme values actually observed in practice in tz2003a,
57647         rather than the (overly optimistic) "previous 3 calendar quarters".
57648
57649         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57650         "T const" to accommodate glibc style.
57651         (check_result): Use less-confusing report format.  "long" -> "long int.
57652         (main): Likewise.
57653         Don't loop if the iteration overflows time_t.
57654         Allow a negative step in the iteration.
57655
57656 2003-07-06  Karl Berry  <karl@gnu.org>
57657
57658         * config/depcomp: update from automake.
57659         * config/config.sub: update from prep.
57660
57661 2003-07-03  Karl Berry  <karl@gnu.org>
57662
57663         * config/config.guess: update from prep.
57664
57665 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57666
57667         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57668         xreadlink.c now includes it unconditionally.
57669
57670 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57671
57672         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57673         having it depend on HAVE_SYS_TYPES_H.
57674
57675 2003-07-01  Bruno Haible  <bruno@clisp.org>
57676
57677         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57678         <sys/types.h> should be sufficient.
57679         Reported by Paul Eggert.
57680
57681 2003-06-26  Karl Berry  <karl@gnu.org>
57682
57683         * config/depcomp: update from automake.
57684
57685 2003-06-26  Bruno Haible  <bruno@clisp.org>
57686
57687         * modules/human: Depend on module stdbool.
57688
57689 2003-06-25  Bruno Haible  <bruno@clisp.org>
57690
57691         * modules/readlink: New file.
57692         * modules/xreadlink: Depend on it.
57693         * MODULES.html.sh (func_all_modules): Add readlink.
57694
57695 2003-06-25  Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/readlink.m4: New file.
57698
57699 2003-06-25  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/readlink.c: New file.
57702
57703 2003-06-22  Karl Berry  <karl@gnu.org>
57704
57705         * config/srclist.txt: update mkinstalldirs from automake.
57706         * config/mkinstalldirs: update.
57707
57708 2003-06-22  Bruno Haible  <bruno@clisp.org>
57709
57710         Portability to mingw32.
57711         * m4/ssize_t.m4: New file, from GNU gettext.
57712         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57713         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57714
57715 2003-06-22  Bruno Haible  <bruno@clisp.org>
57716
57717         * modules/safe-read: Add m4/ssize_t.m4.
57718         * modules/xreadlink: Add m4/ssize_t.m4.
57719
57720 2003-06-20  Bruno Haible  <bruno@clisp.org>
57721
57722         Assume C89, so PARAMS isn't needed.
57723         * lib/unicodeio.h (PARAMS): Remove.
57724         * lib/unicodeio.c: Don't use PARAMS.
57725
57726 2003-06-18  Karl Berry  <karl@gnu.org>
57727
57728         * config/config.{guess,sub}: update from prep.
57729
57730 2003-06-18  Jim Meyering  <jim@meyering.net>
57731
57732         Merge changes from coreutils.
57733         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57734         Remove explicit declarations of xmalloc and realloc.
57735         Include xalloc.h.
57736         (read_utmp): Remove anachronistic cast of xmalloc.
57737
57738 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57739
57740         Assume C89, so PARAMS isn't needed.
57741         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57742         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57743         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57744         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57745         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57746         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57747         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57748         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57749         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57750         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57751         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57752         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57753         no longer needed. Anyway, config.h should always be included before any
57754         other file.
57755
57756 2003-06-11  Simon Josefsson  <jas@extundo.com>
57757
57758         * modules/sysexits: New file.
57759         * MODULES.html.sh (func_all_modules): Add sysexits.
57760
57761 2003-06-11  Simon Josefsson  <jas@extundo.com>
57762
57763         * lib/sysexit_.h: New file.
57764
57765 2003-06-11  Derek Price  <derek@ximbiot.com>
57766
57767         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57768         necessary.
57769
57770 2003-06-11  Bruno Haible  <bruno@clisp.org>
57771
57772         * m4/sysexits.m4: New file.
57773
57774 2003-06-10  Simon Josefsson  <jas@extundo.com>
57775
57776         * lib/argp.h: New file, from glibc.
57777         * lib/argp-ba.c: New file, from glibc.
57778         * lib/argp-eexst.c: New file, from glibc.
57779         * lib/argp-fmtstream.c: New file, from glibc.
57780         * lib/argp-fmtstream.h: New file, from glibc.
57781         * lib/argp-fs-xinl.c: New file, from glibc.
57782         * lib/argp-help.c: New file, from glibc.
57783         * lib/argp-namefrob.h: New file, from glibc.
57784         * lib/argp-parse.c: New file, from glibc.
57785         * lib/argp-pv.c: New file, from glibc.
57786         * lib/argp-pvh.c: New file, from glibc.
57787         * lib/argp-xinl.c: New file, from glibc.
57788
57789 2003-06-10  Simon Josefsson  <jas@extundo.com>
57790
57791         * modules/strchrnul: New file.
57792
57793 2003-06-10  Simon Josefsson  <jas@extundo.com>
57794
57795         * modules/argp: New file.
57796
57797 2003-06-10  Simon Josefsson  <jas@extundo.com>
57798
57799         * m4/strchrnul.m4: New file.
57800
57801 2003-06-10  Simon Josefsson  <jas@extundo.com>
57802
57803         * lib/strchrnul.h: New file.
57804         * lib/strchrnul.c: New file.
57805
57806 2003-06-10  Bruno Haible  <bruno@clisp.org>
57807
57808         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57809
57810 2003-06-07  Karl Berry  <karl@gnu.org>
57811
57812         * config/config.{guess,sub}: update from prep.
57813
57814 2003-06-07  Jim Meyering  <jim@meyering.net>
57815
57816         * modules/strtod: Use $(...) notation, not @...@ for
57817         AC_REPLACE'd variables.
57818         * modules/localcharset: Likewise.
57819
57820 2003-06-07  Jim Meyering  <jim@meyering.net>
57821
57822         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57823         in place of my name in the copyright comment.
57824         Remove definition and uses of __P.
57825
57826         From coreutils.
57827         * lib/stat.c: Don't declare xmalloc explicitly.
57828         Instead, include "xalloc.h".
57829         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57830         xrealloc, and xcalloc return values.
57831         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57832         Improve comment.
57833         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57834
57835 2003-06-07  Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57838         avoid AC_CONFIG_LINKS.
57839         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57840         fnmatch.h, to avoid AC_CONFIG_LINKS.
57841         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57842
57843 2003-06-07  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57846         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57847         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57848         directory.
57849         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57850         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57851         directory.
57852
57853 2003-06-06  Jim Meyering  <jim@meyering.net>
57854
57855         Merge from coreutils.
57856         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57857         Consolidate declarations and initializations of *_base* locals.
57858
57859         Merge from coreutils.
57860         This avoids a core dump on systems without GNU putenv,
57861         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57862         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57863         (unsetenv): New static function, from GNU libc.
57864         (rpl_putenv): Use it.
57865
57866         * lib/modechange.c: Remove trailing blanks.
57867
57868         Merge from coreutils.
57869         * lib/fsusage.c: Remove declaration of statfs.
57870         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57871
57872         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57873
57874 2003-06-06  Jim Meyering  <jim@meyering.net>
57875
57876         * lib/stdbool_.h: Renamed from stdbool.h.in.
57877
57878 2003-06-06  Jim Meyering  <jim@meyering.net>
57879             Bruno Haible  <bruno@clisp.org>
57880
57881         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57882         Adjust Makefile.am snippet not to redirect directly to target.
57883         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57884
57885 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57886
57887         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57888         mismatch, look in future quarters as well as past.  This fixes a
57889         bug when processing fall-backwards gaps immediately after a long
57890         period of daylight-saving time.
57891
57892         * lib/mktime.c: Assume freestanding C89 or better.
57893         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57894         (__P): Remove; not used.
57895         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57896         (mktime, not_equal_tm, print_tm, check_result,
57897         main): Use prototypes.  Use const * where appropriate.
57898         (main): Fix typo in testing code that uncovered by above changes.
57899         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57900
57901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57902
57903         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57904         locale.h, localeconv.  This merges changes from coreutils.
57905
57906         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57907         It can be removed after the next Autoconf is released.
57908         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57909         needed.
57910
57911 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57912
57913         * lib/mktime.c: Fix Debian bug 177940
57914         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57915         (localtime_offset): Now long int, not time_t, because we want it
57916         to be guaranteed to be signed.  All uses changed.
57917         (__mktime_internal): If overflow would occur when adding offset,
57918         don't add it.
57919
57920         Merge 'human' changes from coreutils.  Rewrite to support
57921         locale-specific notations like thousands separators.
57922         * lib/human.c: Simplify authorship notice.
57923         Include human.h immediately after config.h.
57924         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57925         <limits.h>: Do not include, since human.h does.
57926         (SIZE_MAX, UINTMAX_MAX): New macros.
57927         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57928         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57929         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57930         (power_letter): Renamed from suffixes.
57931         (generate_suffix_backwards): Remove.
57932         (adjust_value): Now takes int style (because of human.h changes)
57933         and long double value (for greater precision on some platforms).
57934         (group_number): New function.
57935         (human_readable): Use it.  Use integer options, not enum.
57936         Put the options before the sizes in the arg list.
57937         Support all the new options.
57938         The old human_readable function has been removed;
57939         use inttostr.h instead.
57940         (human_readable, default_block_size, humblock):
57941         Use uintmax_t, not int, for block sizes.
57942         (human_readable_inexact, block_size_types): Remove.
57943         (block_size_opts): New constant.
57944         (human_options): Renamed from human_block_size, with new signature
57945         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57946         * lib/human.h: Add copyright and authorship notice.
57947         Include <limits.h> and <stdbool.h> unconditionally.
57948         (PARAMS): Remove.  All uses removed.
57949         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57950         (enum human_inexact_style): Remove tag; now a nameless enum.
57951         (human_floor, human_ceiling, human_round_to_even): Now have
57952         values 2, 0, 1 rather than -1, 1, 0.
57953         (human_group_digits, human_suppress_point_zero, human_autoscale,
57954         human_base_1024, human_SI, human_B): New constants.
57955         (human_readable_inexact, human_block_size): Remove.
57956         (human_readable): Size args are now uintmax_t, not int.
57957         (human_options): New decl.
57958
57959         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57960         unnecessary now that we assume C89 or better.  This change
57961         imported from coreutils.
57962
57963         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57964         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57965         in the 2003-05-30 sync from glibc.
57966
57967         .h files should stand alone, but we shouldn't include <sys/types.h>
57968         if we can get away with just <stddef.h>.
57969
57970         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57971         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57972         rather than <sys/types.h>, as we merely need size_t.
57973         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57974         to get size_t.
57975         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57976         Include <stdio.h>, to get FILE.
57977         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57978         memcasecmp.h has included <stddef.h> and all we need is size_t.
57979         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57980         our interface, instead of including <sys/types.h>
57981
57982 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57983
57984         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57985         now, as glibc mktime is buggy on non-glibc systems.
57986
57987 2003-06-03  Karl Berry  <karl@gnu.org>
57988
57989         * config/config.sub: update from prep.
57990
57991 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57992
57993         [from coreutils]
57994         Fix some minor time-related bugs with POSIX time arguments.
57995         Some valid time stamps were being rejected (notably -1, and
57996         time stamps before 1900 on 64-bit hosts).  And some invalid
57997         time stamps were being accepted, e.g. September 31.
57998
57999         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58000         that we can return (time_t) -1 successfully.
58001         * lib/posixtm.c: Likewise.
58002         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58003         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58004         (t): Remove static var.
58005         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58006         of static var.  All uses changed.
58007         (year): Do not reject years before 1900; they can occur with
58008         64-bit time_t.
58009         (posix_time_parse): Do not check for out-of-range components;
58010         that is now the caller's responsibility, since our checks were
58011         only approximations.
58012         (posixtime): Use mktime to check for out-of-range components,
58013         since it knows them exactly.
58014         If mktime returns (time_t) -1, check whether an error actually occurred
58015         by invoking localtime on -1.
58016         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58017         posixtime failures better.
58018         Improve the test data (in comments only).
58019
58020 2003-06-02  Karl Berry  <karl@gnu.org>
58021
58022         * config/mkinstalldirs (version): new variable.
58023         (--version): new option.
58024         (usage): improve message.
58025
58026 2003-05-30  Karl Berry  <karl@gnu.org>
58027
58028         * lib/mktime.c: update from libc.
58029
58030 2003-05-30  Bruno Haible  <bruno@clisp.org>
58031
58032         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58033         * config/config.rpath: Upgrade to gettext-0.12.1.
58034
58035 2003-05-30  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58038         * m4/nls.m4: New file, from gettext-0.12.1.
58039         * m4/po.m4: New file, from gettext-0.12.1.
58040         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58041
58042 2003-05-30  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58045         * lib/localcharset.h: Likewise.
58046         * lib/localcharset.c: Likewise.
58047
58048 2003-05-29  Karl Berry  <karl@gnu.org>
58049
58050         * config/config.rpath: update from gettext.
58051
58052 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58053
58054         Assume the headers required for C89 freestanding compilers.
58055         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58056         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58057         * m4/human.m4 (gl_HUMAN): Likewise.
58058         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58059         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58060         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58061         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58062         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58063         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58064
58065 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58066
58067         Assume the headers required for C89 freestanding compilers.
58068         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58069         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58070         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58071         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58072         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58073         define, since <limits.h> is guaranteed to do that.
58074         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58075         * lib/exclude.c: Include <stdbool.h> unconditionally.
58076         * lib/tempname.c: Include <stddef.h> unconditionally.
58077         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58078         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58079         <stddef.h> does that.
58080         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58081         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58082         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58083         needed.
58084         * lib/xstrtol.c: Likewise.
58085         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58086         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58087
58088         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58089         warnings on some platforms.
58090
58091         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58092         arbitrarily.
58093
58094 2003-05-26  Jim Meyering  <jim@meyering.net>
58095
58096         Merge in a change from coreutils:
58097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58098         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58099         that condition, rather than `-1' which is slightly misleading.
58100         Change the name of the cache variable to have the gl_ prefix.
58101         Prompted by a patch from Richard Dawe for DJGPP.
58102
58103 2003-05-24  Karl Berry  <karl@gnu.org>
58104
58105         * config/config.guess: update from prep.
58106
58107 2003-05-22  Karl Berry  <karl@gnu.org>
58108
58109         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58110
58111 2003-05-20  Karl Berry  <karl@gnu.org>
58112
58113         * config/config.guess: update from prep.
58114
58115 2003-05-18  Karl Berry  <karl@gnu.org>
58116
58117         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58118         might actually be set by the user.
58119
58120         * config/depcomp, install-sh, mdate-sh: update from automake.
58121
58122 2003-05-17  Bruno Haible  <bruno@clisp.org>
58123
58124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58125         invalid expansion for AC_EGREP_CPP.
58126         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58127         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58128         Suggested by Akim Demaille <akim@epita.fr> in
58129         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58130
58131 2003-05-12  Jim Meyering  <jim@meyering.net>
58132
58133         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58134         the space-padded-by-default conversion specifiers, %e, %k, %l.
58135
58136 2003-05-12  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58139         the string is longer than 4 KB.
58140
58141 2003-05-11  Karl Berry  <karl@gnu.org>
58142
58143         * config/config.{guess,sub}: update from prep.
58144
58145 2003-05-09  Bruno Haible  <bruno@clisp.org>
58146
58147         * modules/error: Add m4/strerror_r.m4 to file list.
58148
58149 2003-05-03  Bruno Haible  <bruno@clisp.org>
58150
58151         Upgrade to Unicode-4.0.
58152         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58153         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58154         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58155         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58156         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58157         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58158         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58159         Change width of U+E0100..U+E01EF from 1 to 0.
58160
58161 2003-04-25  Jim Meyering  <jim@meyering.net>
58162
58163         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58164         of type size_t, not int.
58165
58166 2003-04-25  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/copy-file.c: Include <stddef.h>, for size_t.
58169
58170 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58171
58172         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58173         code which expansion is under static control.  Patch imported from
58174         Akim Demaille's patch to Bison; see
58175         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58176
58177 2003-04-14  Bruno Haible  <bruno@clisp.org>
58178
58179         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58180
58181 2003-04-11  Jim Meyering  <jim@meyering.net>
58182
58183         Merge changes from Coreutils.
58184
58185         2003-03-22  Jim Meyering  <jim@meyering.net>
58186
58187         * lib/strftime.c (widen): Cast alloca return value to proper type.
58188
58189         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58190
58191         From GNU libc.
58192         * lib/strftime.c (my_strftime): Handle very large width
58193         specifications for numeric values correctly.  Improve checks for
58194         overflow.
58195
58196         2003-01-19  Jim Meyering  <jim@meyering.net>
58197
58198         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58199         definitions.
58200         (nl_get_alt_digit) [! defined my_strftime]: Define.
58201         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58202         _nl_get_alt_digit and _nl_get_walt_digit.
58203
58204         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58205         libc. These changes have no effect outside of _LIBC.
58206
58207 2003-04-10  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/findprog: New file.
58210         * MODULES.html.sh (func_all_modules): Add it.
58211
58212 2003-04-10  Bruno Haible  <bruno@clisp.org>
58213
58214         * m4/findprog.m4: New file.
58215         * m4/eaccess.m4: New file.
58216
58217 2003-04-10  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/findprog.h: New file, from GNU gettext.
58220         * lib/findprog.c: New file, from GNU gettext.
58221
58222 2003-04-05  Jim Meyering  <jim@meyering.net>
58223
58224         Merge changes from Coreutils.
58225
58226         * lib/exclude.h (PARAMS): Remove definition and uses.
58227         * lib/exclude.c: Remove uses of `PARAMS'.
58228
58229         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58230         Add test-cases for DOS filenames. Declare program_name.
58231         (main): Set up program_name.  Patch by Rich Dawe.
58232
58233         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58234         error from mntctl.
58235         Use mntctl's return value to drive the entry-processing loop, since
58236         we can't rely on the value of the vmt_length member in the last
58237         entry.  On some systems doing so could result in exhausting
58238         virtual memory.  Based in part on a patch from Mike Jetzer.
58239
58240 2003-04-04  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/linebreak: New file.
58243         * MODULES.html.sh (func_all_modules): Add it.
58244
58245 2003-04-04  Bruno Haible  <bruno@clisp.org>
58246
58247         * m4/linebreak.m4: New file.
58248
58249 2003-04-04  Bruno Haible  <bruno@clisp.org>
58250
58251         * lib/linebreak.h: New file, from GNU gettext.
58252         * lib/linebreak.c: New file, from GNU gettext with slight
58253         modifications.
58254         * lib/lbrkprop.h: New file, from GNU gettext.
58255
58256 2003-04-03  Bruno Haible  <bruno@clisp.org>
58257
58258         * modules/utf8-ucs4: New file.
58259         * modules/utf16-ucs4: New file.
58260         * modules/ucs4-utf8: New file.
58261         * modules/ucs4-utf16: New file.
58262         * MODULES.html.sh (func_all_modules): Add them.
58263
58264 2003-04-03  Bruno Haible  <bruno@clisp.org>
58265
58266         * m4/utf-ucs4.m4: New file.
58267         * m4/ucs4-utf.m4: New file.
58268
58269 2003-04-03  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/utf8-ucs4.h: New file, from GNU gettext.
58272         * lib/utf16-ucs4.h: New file, from GNU gettext.
58273         * lib/ucs4-utf8.h: New file, from GNU gettext.
58274         * lib/ucs4-utf16.h: New file, from GNU gettext.
58275
58276 2003-04-02  Bruno Haible  <bruno@clisp.org>
58277
58278         * modules/binary-io: New file.
58279         * MODULES.html.sh (func_all_modules): Add it.
58280
58281 2003-04-02  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/binary-io.h: New file, from GNU gettext.
58284
58285 2003-04-01  Bruno Haible  <bruno@clisp.org>
58286
58287         * modules/pathname: New file.
58288         * MODULES.html.sh (func_all_modules): Add it.
58289
58290 2003-04-01  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/pathname.h: New file, from GNU gettext.
58293         * lib/concatpath.c: New file, from GNU gettext.
58294
58295 2003-03-30  Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58298
58299 2003-03-30  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58302         function chown() doesn't exist.
58303
58304 2003-03-28  Bruno Haible  <bruno@clisp.org>
58305
58306         * modules/copy-file: New file.
58307         * MODULES.html.sh (func_all_modules): Add it.
58308
58309 2003-03-28  Bruno Haible  <bruno@clisp.org>
58310
58311         * m4/copy-file.m4: New file.
58312
58313 2003-03-28  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/copy-file.h: New file, from GNU gettext.
58316         * lib/copy-file.c: New file, from GNU gettext.
58317
58318 2003-03-18  Jim Meyering  <jim@meyering.net>
58319
58320         * lib/quote.c (quote_n): Fix typo in comment.
58321
58322 2003-03-18  Bruno Haible  <bruno@clisp.org>
58323
58324         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58325         checking.
58326         * m4/onceonly_2_57.m4: Likewise.
58327
58328 2003-03-17  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58331         (m4_quote): Remove macro.
58332         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58333
58334 2003-03-14  Jim Meyering  <jim@meyering.net>
58335
58336         Merge changes from Coreutils.
58337         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58338         to be const, in order to avoid warnings.
58339         (obstack_room): Likewise.
58340         (obstack_empty_p): Likewise.
58341
58342 2003-03-14  Bruno Haible  <bruno@clisp.org>
58343
58344         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58345         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58346
58347 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58348
58349         Merge changes from Bison.
58350         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58351         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58352         when compiling Bison 1.875's `bitset bset = obstack_alloc
58353         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58354         * lib/hash.c: Include <stdbool.h> unconditionally.
58355
58356 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58357
58358         * m4/onceonly.m4 (m4_quote): New macro.
58359         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58360         Quote AC_FOREACH variable-expansions properly.
58361
58362 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58363
58364         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58365
58366 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58367
58368         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58369         Reported by Bruce Becker; see:
58370         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58371
58372 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58373             Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58376         Reported by John Hughes, see
58377         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58378
58379 2003-02-20  Bruno Haible  <bruno@clisp.org>
58380
58381         * MODULES.html.sh (func_all_modules): Add poll.
58382
58383 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58384
58385         * modules/poll: New file.
58386
58387 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58388
58389         * lib/poll_.h: New file.
58390         * lib/poll.c: New file.
58391
58392 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58393
58394         * m4/poll.m4: New file.
58395
58396 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58397
58398         * modules/mathl: New file.
58399
58400 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58401
58402         * lib/mathl.h: New file.
58403         * lib/acosl.c: New file.
58404         * lib/asinl.c: New file.
58405         * lib/atanl.c: New file.
58406         * lib/ceill.c: New file.
58407         * lib/cosl.c: New file.
58408         * lib/expl.c: New file.
58409         * lib/floorl.c: New file.
58410         * lib/frexpl.c: New file.
58411         * lib/ldexpl.c: New file.
58412         * lib/logl.c: New file.
58413         * lib/sincosl.c: New file.
58414         * lib/sinl.c: New file.
58415         * lib/sqrtl.c: New file.
58416         * lib/tanl.c: New file.
58417         * lib/trigl.c: New file.
58418         * lib/trigl.h: New file.
58419
58420 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58421
58422         * m4/mathl.m4: New file.
58423
58424 2003-02-18  Bruno Haible  <bruno@clisp.org>
58425
58426         * MODULES.html.sh (func_all_modules): Add mathl.
58427
58428 2003-02-17  Bruno Haible  <bruno@clisp.org>
58429
58430         * modules/mkdtemp: New module.
58431         * MODULES.html.sh (func_all_modules): Add it.
58432
58433 2003-02-17  Bruno Haible  <bruno@clisp.org>
58434
58435         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58436
58437 2003-02-17  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/mkdtemp.h: New file, from GNU gettext.
58440         * lib/mkdtemp.c: New file, from GNU gettext.
58441
58442 2003-02-02  Jim Meyering  <jim@meyering.net>
58443
58444         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58445         e.g. glibc-2.2.93.
58446
58447 2003-01-31  Bruno Haible  <bruno@clisp.org>
58448
58449         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58450         'rpl_rename'.
58451         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58452         'rpl_strnlen'.
58453         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58454         'rpl_strtod'.
58455         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58456         'rpl_utime'.
58457
58458 2003-01-31  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/rename.c: #undef rename before defining rpl_rename.
58461         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58462
58463 2003-01-30  Bruno Haible  <bruno@clisp.org>
58464
58465         * modules/vasnprintf, modules/vasprintf: New modules.
58466         * MODULES.html.sh (func_all_modules): Add them.
58467
58468 2003-01-30  Bruno Haible  <bruno@clisp.org>
58469
58470         * m4/signed.m4: New file, from GNU gettext.
58471         * m4/longdouble.m4: New file, from GNU gettext.
58472         * m4/wchar_t.m4: New file, from GNU gettext.
58473         * m4/wint_t.m4: New file, from GNU gettext.
58474         * m4/vasnprintf.m4: New file.
58475         * m4/vasprintf.m4: New file.
58476
58477 2003-01-30  Bruno Haible  <bruno@clisp.org>
58478
58479         * lib/printf-args.h: New file, from GNU gettext.
58480         * lib/printf-args.c: New file, from GNU gettext.
58481         * lib/printf-parse.h: New file, from GNU gettext.
58482         * lib/printf-parse.c: New file, from GNU gettext.
58483         * lib/vasnprintf.h: New file, from GNU gettext.
58484         * lib/vasnprintf.c: New file, from GNU gettext.
58485         * lib/asnprintf.c: New file, from GNU gettext.
58486         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58487         * lib/vasprintf.c: New file, from GNU gettext.
58488         * lib/asprintf.c: New file, from GNU gettext.
58489
58490 2003-01-29  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/stpncpy: New module.
58493         * MODULES.html.sh (func_all_modules): Add it.
58494
58495 2003-01-29  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/stpncpy.m4: New file.
58498
58499 2003-01-29  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58502         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58503
58504 2003-01-28  Bruno Haible  <bruno@clisp.org>
58505
58506         * modules/c-ctype: New module.
58507         * MODULES.html.sh (func_all_modules): Add it.
58508
58509 2003-01-28  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58512         Paul Eggert.
58513         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58514         Paul Eggert.
58515
58516 2003-01-27  Bruno Haible  <bruno@clisp.org>
58517
58518         * modules/xsetenv: New module.
58519         * MODULES.html.sh (func_all_modules): Add it.
58520
58521 2003-01-27  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/xsetenv.h: New file, from GNU gettext.
58524         * lib/xsetenv.c: New file, from GNU gettext.
58525
58526 2003-01-23  Jim Meyering  <jim@meyering.net>
58527
58528         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58529         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58530
58531 2003-01-23  Bruno Haible  <bruno@clisp.org>
58532
58533         * modules/minmax: New module.
58534         * MODULES.html.sh (func_all_modules): Add it.
58535
58536 2003-01-23  Bruno Haible  <bruno@clisp.org>
58537
58538         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58539         Eggert.
58540
58541 2003-01-22  Bruno Haible  <bruno@clisp.org>
58542
58543         * modules/exit: New module.
58544         * MODULES.html.sh (func_all_modules): Add it.
58545
58546 2003-01-22  Bruno Haible  <bruno@clisp.org>
58547
58548         * lib/exit.h: New file, from GNU gettext.
58549
58550 2003-01-19  Bruno Haible  <bruno@clisp.org>
58551
58552         * gnulib-tool: Recognize option --extract-maintainer.
58553         (func_get_maintainer): New function.
58554         * modules/*: Add Maintainer entry.
58555
58556 2003-01-16  Jim Meyering  <jim@meyering.net>
58557
58558         * m4/regex.m4: The `regex' struct is both input and output.
58559         Initialize it before each use.  Patch by Tim Waugh.
58560
58561 2003-01-16  Bruno Haible  <bruno@clisp.org>
58562
58563         * MODULES.html.sh: Add a table of contents. Add the module name as
58564         leftmost column. Add hyperlinks.
58565
58566 2003-01-15  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58569
58570 2003-01-15  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58573         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58574         suffix.
58575
58576 2003-01-15  Bruno Haible  <bruno@clisp.org>
58577
58578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58579
58580 2003-01-15  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58583         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58584
58585 2003-01-14  Jim Meyering  <jim@meyering.net>
58586
58587         * lib/same.c (same_name): Tweak a comment.
58588
58589 2003-01-14  Bruno Haible  <bruno@clisp.org>
58590
58591         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58592         when a string comparison is sufficient.
58593
58594 2003-01-14  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58597         'unsigned int'.
58598
58599 2003-01-14  Bruno Haible  <bruno@clisp.org>
58600
58601         * lib/hash-pjw.c: Add comment about low quality of this function.
58602
58603 2003-01-13  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/stpcpy: Distribute lib/stpcpy.h.
58606         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58607
58608 2003-01-13  Bruno Haible  <bruno@clisp.org>
58609
58610         * modules/*: Add a description.
58611         * modules/strpbrk: Fix Makefile.am snippet.
58612         * modules/strtoimax: Fix dependencies.
58613         * modules/strtoumax: Likewise.
58614
58615 2003-01-13  Bruno Haible  <bruno@clisp.org>
58616
58617         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58618         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58619         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58620
58621 2003-01-13  Bruno Haible  <bruno@clisp.org>
58622
58623         * gnulib-tool (func_create_testdir): Store config/* files in the main
58624         directory.
58625         * config.rpath: Move to ...
58626         * config/config.rpath: ... here.
58627         * modules/gettext: Contains config/config.rpath, not config.rpath.
58628         * modules/iconv: Likewise.
58629
58630 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58631
58632         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58633         to avoid collisions with libcurses and libreadline.
58634
58635         * m4/getstr.m4: Remove.
58636         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58637
58638 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58639
58640         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58641         to avoid collisions with libcurses and libreadline.
58642
58643         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58644         * lib/getstr.h, getstr.c: Remove.
58645         * lib/getline.c: Include "getline.h", to check interface.
58646         Move body of old getstr.c here: this defines MIN_CHUNK and
58647         declares getdelim2, which is renamed from getstr.
58648         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58649
58650         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58651         All uses changed.
58652         * lib/linebuffer.h: Likewise.
58653         (readline): Remove backward-compatibility macro.
58654
58655 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58656
58657         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58658         to avoid collisions with libcurses and libreadline.
58659         * getstr: Remove.
58660         * MODULES.html.sh: Remove getstr.
58661         * modules/getline: Depend on unlocked-io, not getstr.
58662
58663 2003-01-12  Jim Meyering  <jim@meyering.net>
58664
58665         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58666
58667 2003-01-10  Bruno Haible  <bruno@clisp.org>
58668
58669         * modules/alloca: Change Makefile.am requirements. Simplify Include
58670         requirements. Add lib/alloca_.h to file list.
58671
58672 2003-01-10  Bruno Haible  <bruno@clisp.org>
58673
58674         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58675
58676 2003-01-10  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/alloca_.h: New file.
58679         * lib/getdate.y: Unconditionally include alloca.h.
58680         * lib/makepath.c: Likewise.
58681         * lib/setenv.c: Likewise.
58682         * lib/userspec.c: Likewise.
58683
58684 2003-01-09  Karl Berry  <karl@gnu.org>
58685
58686         * MODULES.html.sh: include `dirname $0` in PATH, to find
58687         gnulib-tool.
58688
58689 2003-01-09  Bruno Haible  <bruno@clisp.org>
58690
58691         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58692         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58693
58694 2003-01-09  Bruno Haible  <bruno@clisp.org>
58695
58696         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58697
58698 2003-01-09  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/stdbool.h.in: New file.
58701
58702 2003-01-09  Bruno Haible  <bruno@clisp.org>
58703
58704         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58705         * MODULES.html.sh: Likewise.
58706
58707 2003-01-08  Jim Meyering  <jim@meyering.net>
58708
58709         * lib/full-write.c: Undefine and define-away `const' after inclusion
58710         of errno.h, not before.  Suggestion from Bruno Haible.
58711
58712 2003-01-08  Bruno Haible  <bruno@clisp.org>
58713
58714         * modules/full-read: Depend on full-write.
58715
58716 2003-01-08  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/safe-read.c: Include specification header first, to ensure its
58719         selfcontainedness.
58720         * lib/full-write.c: Likewise.
58721
58722 2003-01-07  Jim Meyering  <jim@meyering.net>
58723
58724         * lib/full-write.c: Rework so that it may serve to define full_read,
58725         too.
58726         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58727
58728 2003-01-07  Bruno Haible  <bruno@clisp.org>
58729
58730         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58731         <inttypes.h>.
58732         * lib/xstrtol.h: Likewise.
58733         * lib/xstrtoimax.c: Likewise.
58734         * lib/xstrtoumax.c: Likewise.
58735         * lib/human.h: Likewise.
58736
58737         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58738         on systems that have <inttypes.h> but not <stdint.h>.
58739
58740 2003-01-07  Bruno Haible  <bruno@clisp.org>
58741
58742         * MODULES.html.sh: Add copyright notice.
58743         (missed_files): Omit CVS directory entries.
58744         (func_module): Make it work with sed-3.02.
58745         * MODULES.txt: Remove file.
58746
58747 2003-01-06  Jim Meyering  <jim@meyering.net>
58748
58749         * lib/version-etc.c: Update year in translatable copyright string.
58750
58751 2003-01-03  Karl Berry  <karl@gnu.org>
58752
58753         * config/config.{guess,sub}: update from prep.
58754
58755 2003-01-02  Karl Berry  <karl@gnu.org>
58756
58757         * doc/COPYING.DOC: belatedly updated to 1.2.
58758
58759 2003-01-01  Karl Berry  <karl@gnu.org>
58760
58761         * gnulib-tool (func_verify_module): report module name $module in
58762         error message, not $1.
58763         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58764         be created, only if it doesn't exist.
58765         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58766
58767 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58768
58769         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58770
58771 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58772
58773         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58774         memcmp if strcoll doesn't work.
58775
58776 2002-12-31  Bruno Haible  <bruno@clisp.org>
58777
58778         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58779         nonempty.
58780
58781 2002-12-31  Bruno Haible  <bruno@clisp.org>
58782
58783         * lib/memcoll.c (STRCOLL): New macro.
58784         (memcoll): Use it.
58785
58786 2002-12-31  Bruno Haible  <bruno@clisp.org>
58787
58788         * lib/localcharset.h: New file.
58789         * lib/localcharset.c: Include it.
58790         * lib/unicodeio.c: Likewise.
58791
58792 2002-12-31  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58795         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58796
58797 2002-12-31  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/getline.h: Include <stddef.h>, for size_t.
58800
58801         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58802         * lib/unicodeio.c: Don't include <stddef.h>.
58803
58804 2002-12-31  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58807         HAVE_TM_ZONE.
58808
58809 2002-12-24  Karl Berry  <karl@gnu.org>
58810
58811         * config/config.guess: update from prep.
58812
58813 2002-12-24  Bruno Haible  <bruno@clisp.org>
58814
58815         General infrasructure.
58816         * m4/README: Rewritten.
58817         * m4/onceonly.m4: New file.
58818         * m4/onceonly_2_57.m4: New file.
58819
58820         Module atexit.
58821         * m4/atexit.m4: New file.
58822
58823         Module strtod.
58824         * m4/strtod.m4: New file.
58825
58826         Module strtol.
58827         * m4/strtol.m4: New file.
58828
58829         Module strtoul.
58830         * m4/strtoul.m4: New file.
58831
58832         Module memchr.
58833         * m4/memchr.m4: New file.
58834
58835         Module memcmp.
58836         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58837         (jm_FUNC_MEMCMP): Invoke it.
58838
58839         Module memcpy.
58840         * m4/memcpy.m4: New file.
58841
58842         Module memmove.
58843         * m4/memmove.m4: New file.
58844
58845         Module memset.
58846         * m4/memset.m4: New file.
58847
58848         Module strcspn.
58849         * m4/strcspn.m4: New file.
58850
58851         Module strpbrk.
58852         * m4/strpbrk.m4: New file.
58853
58854         Module strstr.
58855         * m4/strstr.m4: New file.
58856
58857         Module strerror.
58858         * m4/strerror.m4: New file.
58859
58860         Module mktime.
58861         * m4/mktime.m4: Renamed from jm-mktime.m4.
58862         (gl_PREREQ_MKTIME): New macro.
58863         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58864
58865         Module malloc.
58866         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58867         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58868         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58869
58870         Module realloc.
58871         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58872         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58873         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58874
58875         Module strftime.
58876         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58878         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58879         gl_TM_GMTOFF.
58880         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58881
58882         Module xalloc.
58883         * m4/xalloc.m4: New file.
58884
58885         Module alloca.
58886         * m4/alloca.m4: New file.
58887
58888         Module putenv.
58889         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58890         (jm_FUNC_PUTENV): Invoke it.
58891
58892         Module setenv.
58893         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58894         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58895         when invoked twice.
58896         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58897         gt_FUNC_SETENV.
58898
58899         Module memrchr.
58900         * m4/memrchr.m4: New file.
58901
58902         Module stpcpy.
58903         * m4/stpcpy.m4: New file.
58904
58905         Module strcase.
58906         * m4/strcase.m4: New file.
58907
58908         Module strdup.
58909         * m4/strdup.m4: New file.
58910
58911         Module strnlen.
58912         * m4/strnlen.m4: New file.
58913
58914         Module strndup.
58915         * m4/strndup.m4: New file.
58916
58917         Module xstrtod.
58918         * m4/xstrtod.m4: New file.
58919
58920         Module xstrtol.
58921         * m4/xstrtol.m4: New file.
58922
58923         Module getdate.
58924         * m4/getdate.m4: New file.
58925
58926         Module unlocked-io.
58927         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58928         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58929         * m4/jm-glibc-io.m4n: Remove file.
58930
58931         Module long-options.
58932         * m4/long-options.m4: New file.
58933
58934         Module md5.
58935         * m4/md5.m4: New file.
58936
58937         Module sha.
58938         * m4/sha.m4: New file.
58939
58940         Module getstr.
58941         * m4/getstr.m4: New file.
58942
58943         Module getline.
58944         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58945         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58946         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58947         simply getline. Infoke gl_PREREQ_GETLINE.
58948
58949         Module obstack.
58950         * m4/obstack.m4: New file.
58951
58952         Module hash.
58953         * m4/hash.m4: New file.
58954
58955         Module readtokens.
58956         * m4/readtokens.m4: New file.
58957
58958         Module strverscmp.
58959         * m4/strverscmp.m4: New file.
58960
58961         Module stdbool.
58962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58963         OSF/1.
58964
58965         Module strtoll.
58966         * m4/strtoll.m4: New file.
58967
58968         Module strtoull.
58969         * m4/strtoull.m4: New file.
58970
58971         Module strtoimax.
58972         * m4/strtoimax.m4: New file.
58973
58974         Module strtoumax.
58975         * m4/strtoumax.m4: New file.
58976
58977         Module xstrtoimax.
58978         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58979         jm_AC_PREREQ_XSTRTOIMAX.
58980         Moved the strtol prerequisites to strtol.m4.
58981         Moved the strtoll prerequisites to strtoll.m4.
58982         Moved the strtoimax prerequisites to strtoimax.m4.
58983
58984         Module xstrtoumax.
58985         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58986         jm_AC_PREREQ_XSTRTOUMAX.
58987         Moved the strtoul prerequisites to strtoul.m4.
58988         Moved the strtoull prerequisites to strtoull.m4.
58989         Moved the strtoumax prerequisites to strtoumax.m4.
58990
58991         Module chown.
58992         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58993         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58994
58995         Module dup2.
58996         * m4/dup2.m4: New file.
58997
58998         Module ftruncate.
58999         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59000         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59001
59002         Module getgroups.
59003         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59004         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59005
59006         Module gettimeofday.
59007         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59008         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59009         gl_PREREQ_GETTIMEOFDAY.
59010
59011         Module mkdir.
59012         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59013         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59014
59015         Module mkstemp.
59016         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59017         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59018         jm_AC_TYPE_UINTMAX_T.
59019         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59020
59021         Module stat.
59022         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59023         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59024
59025         Module lstat.
59026         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59027         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59028
59029         Module timespec.
59030         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59031         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59032         * m4/st_mtim.m4: Indentation.
59033
59034         Module nanosleep.
59035         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59036         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59037         gl_PREREQ_NANOSLEEP.
59038
59039         Module regex.
59040         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59041         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59042         (gl_REGEX): New macro.
59043
59044         Module rename.
59045         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59046         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59047
59048         Module rmdir.
59049         * m4/rmdir.m4: New file.
59050
59051         Module utime.
59052         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59053         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59054         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59055
59056         Module dirname.
59057         * m4/dirname.m4: New file.
59058
59059         Module getopt.
59060         * m4/getopt.m4: New file.
59061
59062         Module unistd-safer.
59063         * m4/unistd-safer.m4: New file.
59064
59065         Module fnmatch.
59066         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59067         declaration.
59068         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59069         (gl_FUNC_FNMATCH_POSIX): New macro.
59070         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59071         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59072         simply fnmatch.
59073
59074         Module exclude.
59075         * m4/exclude.m4: New file.
59076
59077         Module human.
59078         * m4/human.m4: New file.
59079
59080         Module acl.
59081         * m4/acl.m4: Nop.
59082
59083         Module backupfile.
59084         * m4/backupfile.m4: New file.
59085         * m4/d-ino.m4: Indentation.
59086
59087         Module fsusage.
59088         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59089         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59090         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59091
59092         Module dirfd.
59093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59094         requirements.
59095
59096         Module euidaccess.
59097         * m4/euidaccess.m4: New file.
59098
59099         Module file-type.
59100         * m4/file-type.m4: New file.
59101
59102         Module fileblocks.
59103         * m4/fileblocks.m4: New file.
59104
59105         Module filemode.
59106         * m4/filemode.m4: New file.
59107
59108         Module isdir.
59109         * m4/isdir.m4: New file.
59110
59111         Module lchown.
59112         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59113         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59114
59115         Module makepath.
59116         * m4/makepath.m4: New file.
59117
59118         Module modechange.
59119         * m4/modechange.m4: New file.
59120
59121         Module mountlist.
59122         * m4/mountlist.m4: New file.
59123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59124         Indentation.
59125
59126         Module path-concat.
59127         * m4/path-concat.m4: New file.
59128
59129         Module pathmax.
59130         * m4/pathmax.m4: New file.
59131
59132         Module same.
59133         * m4/same.m4: New file.
59134
59135         Module save-cwd.
59136         * m4/save-cwd.m4: New file.
59137
59138         Module savedir.
59139         * m4/savedir.m4: New file.
59140
59141         Module xgetcwd.
59142         * m4/xgetcwd.m4: New file.
59143         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59144
59145         Module xreadlink.
59146         * m4/xreadlink.m4: New file.
59147
59148         Module safe-read.
59149         * m4/safe-read.m4: New file.
59150
59151         Module safe-write.
59152         * m4/safe-write.m4: New file.
59153
59154         Module closeout.
59155         * m4/closeout.m4: New file.
59156
59157         Module stdio-safer.
59158         * m4/stdio-safer.m4: New file.
59159
59160         Module getpass.
59161         * m4/getpass.m4: New file.
59162
59163         Module getugroups.
59164         * m4/getugroups.m4: New file.
59165
59166         Module group-member.
59167         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59168         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59169
59170         Module idcache.
59171         * m4/idcache.m4: New file.
59172
59173         Module userspec.
59174         * m4/userspec.m4: New file.
59175
59176         Module gettime.
59177         * m4/clock_time.m4: New file.
59178         * m4/gettime.m4: New file.
59179
59180         Module settime.
59181         * m4/settime.m4: New file.
59182
59183         Module posixtm.
59184         * m4/posixtm.m4: New file.
59185
59186         Module gethostname.
59187         * m4/gethostname.m4: New file.
59188
59189         Module canon-host.
59190         * m4/canon-host.m4: New file.
59191
59192         Module gettext.
59193         * m4/codeset.m4: New file, from gettext-0.11.5.
59194         * m4/gettext.m4: New file, from gettext-0.11.5.
59195         * m4/glibc21.m4: New file, from gettext-0.11.5.
59196         * m4/iconv.m4: New file, from gettext-0.11.5.
59197         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59198         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59199         * m4/inttypes.m4: New file, from gettext-0.11.5.
59200         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59201         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59202         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59203         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59204         * m4/lib-link.m4: New file, from gettext-0.11.5.
59205         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59206         * m4/progtest.m4: New file, from gettext-0.11.5.
59207         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59208         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59209         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59210
59211         Module localcharset.
59212         * m4/localcharset.m4: New file.
59213
59214         Module hard-locale.
59215         * m4/hard-locale.m4: New file.
59216
59217         Module mbswidth.
59218         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59219         onceonly macros.
59220         * m4/mbrtowc.m4: Add comment.
59221
59222         Module memcasecmp.
59223         * m4/memcasecmp.m4: New file.
59224
59225         Module memcoll.
59226         * m4/memcoll.m4: New file.
59227
59228         Module unicodeio.
59229         * m4/unicodeio.m4: New file.
59230
59231         Module rpmatch.
59232         * m4/rpmatch.m4: New file.
59233
59234         Module yesno.
59235         * m4/yesno.m4: New file.
59236
59237         Module exitfail.
59238         * m4/exitfail.m4: New file.
59239
59240         Module c-stack.
59241         * m4/c-stack.m4 (gl_C_STACK): New macro.
59242         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59243
59244         Module error.
59245         * m4/error.m4 (gl_ERROR): New macro.
59246         (jm_PREREQ_ERROR): Use onceonly macros.
59247
59248         Module fatal.
59249         * m4/fatal.m4: New file.
59250
59251         Module getloadavg.
59252         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59253         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59254
59255         Module getpagesize.
59256         * m4/getpagesize.m4: New file.
59257
59258         Module getusershell.
59259         * m4/getusershell.m4: New file.
59260
59261         Module physmem.
59262         * m4/physmem.m4: New file.
59263
59264         Module posixver.
59265         * m4/posixver.m4: New file.
59266
59267         Module quotearg.
59268         * m4/quotearg.m4: New file.
59269
59270         Module quote.
59271         * m4/quote.m4: New file.
59272
59273         Module readutmp.
59274         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59275
59276         Module sig2str.
59277         * m4/sig2str.m4: New file.
59278
59279         Other.
59280         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59281         ulonglong.m4.
59282         * m4/intmax_t.m4: New file.
59283         * m4/d-type.m4: Indentation.
59284         * m4/jm-macros.m4: Update.
59285         * m4/prereq.m4 (jm_PREREQ): Update.
59286         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59287         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59288         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59289         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59290         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59291         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59292         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59293         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59294         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59295         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59296         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59297         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59298         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59299         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59300         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59301         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59302         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59303         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59304         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59305
59306 2002-12-24  Bruno Haible  <bruno@clisp.org>
59307
59308         * MODULES.txt: Update according to m4/ changes.
59309
59310         Module gettext.
59311         * config.rpath: New file, from gettext-0.11.5.
59312
59313         * modules/*: New module descriptions.
59314         * gnulib-tool: New file.
59315         * MODULES.html.sh: New file.
59316
59317 2002-12-21  Karl Berry  <karl@gnu.org>
59318
59319         * doc/fdl.texi: update to version 1.2.
59320
59321 2002-12-19  Karl Berry  <karl@gnu.org>
59322
59323         * config/config.guess: update from prep.
59324
59325 2002-12-18  Bruno Haible  <bruno@clisp.org>
59326
59327         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59328         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59329
59330 2002-12-17  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59333         stdlib.h, string.h.
59334
59335 2002-12-17  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/canon-host.c (strdup): Remove unused declaration.
59338
59339         * lib/fsusage.c: Include full_read.h.
59340         (get_fs_usage): Use full_read instead of safe_read.
59341
59342         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59343
59344 2002-12-12  Karl Berry  <karl@gnu.org>
59345
59346         * config/config.guess: update from prep.
59347
59348 2002-12-11  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/setenv.m4: New file, from gettext-0.11.5.
59351
59352 2002-12-11  Bruno Haible  <bruno@clisp.org>
59353
59354         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59355         not unsetenv().
59356         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59357         modifications:
59358
59359         2002-12-11  Bruno Haible  <bruno@clisp.org>
59360
59361                 * setenv.c (alloca): Fall back to malloc.
59362                 (freea): New macro.
59363                 (setenv): Use freea() to free memory allocated with alloca().
59364
59365         2002-11-13  Bruno Haible  <bruno@clisp.org>
59366
59367                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59368                 function declarations.
59369                 * unsetenv.c (unsetenv): Likewise.
59370
59371         2002-03-04  Bruno Haible  <bruno@clisp.org>
59372
59373                 Portability to AIX 4.3.3.
59374                 * unsetenv.c: New file, extracted from setenv.c.
59375                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59376
59377         2001-12-20  Bruno Haible  <bruno@clisp.org>
59378
59379                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59380                 use malloc instead. For SunOS 4.
59381
59382         2001-12-11  Bruno Haible  <bruno@clisp.org>
59383
59384                 * setenv.c: Declare alloca.
59385                 (compar_fn_t): New typedef.
59386                 (KNOWN_VALUE, STORE_VALUE): Use it.
59387
59388         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59389         setenv.h.
59390
59391 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59392
59393         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59394         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59395         Choose values that are less likely to collide with system fnmatch
59396         options.
59397         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59398         defined (e.g., a pure POSIX system).
59399         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59400         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59401
59402 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59403
59404         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59405         a pain in practice to deal with generated m4 files.  This change
59406         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59407
59408         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59409         and jm-glibc-io.m4, as they are no longer a special case.
59410         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59411         kludge and the auto-generation stuff.  Check only whether the
59412         functions are declared, not whether they exist, since older hosts
59413         that don't declare the functions can't use the optimization anyway.
59414
59415 2002-12-06  Jim Meyering  <jim@meyering.net>
59416
59417         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59418
59419         Merge in changes from libc's misc/error.c, in preparation
59420         for the merge of gnulib's changes back into libc.
59421
59422         * lib/error.c (_): Define only if not already defined.
59423         Move definition to follow all #include directives.
59424         Include unlocked-io.h only if !_LIBC.
59425         [_LIBC]: Include <libio/libioP.h>.
59426         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59427         (fflush): Tweak definition to use INTUSE.
59428         (putc): Define.
59429
59430 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59431
59432         * lib/alloca.c [defined emacs]: Include "lisp.h".
59433         (xalloc_die) [defined emacs]: New macro.
59434         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59435         [! defined emacs]: Include <xalloc.h>.
59436         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59437         (pointer): Typedef to POINTER_TYPE *.
59438         (malloc): Remove decl; we now always use xmalloc.
59439         (alloca): Use old-style definition, since Emacs needs this.
59440         Check for arithmetic overflow when computing combined size.
59441
59442 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59443
59444         Do not generate unlocked-io.h automatically, since it's easier to
59445         maintain it by hand.
59446
59447         * lib/unlocked-io.h: New file, from GNU diffutils,
59448         but with proper copyright notice and attribution.
59449         * lib/gen-uio: Remove.
59450         * lib/Makefile.am: Add copyright notice.
59451         (libfetish_a_SOURCES): Add unlocked-io.h.
59452         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59453         (DISTCLEANFILES, io_functions): Remove macros.
59454         (EXTRA_DIST): Remove gen_uio.
59455         (unlocked-io.h): Remove rule.
59456
59457 2002-12-04  Jim Meyering  <jim@meyering.net>
59458
59459         Reflect the fact that stat.c and lstat.c are no longer generated.
59460         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59461         (DISTCLEANFILES): Likewise.
59462         (EXTRA_DIST): Likewise.
59463         (all_local): Don't depend on stat.c or lstat.c.
59464         (stat.c, lstat.c): Remove rules.
59465         (EXTRA_DIST): Remove xstat.in.
59466
59467         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59468         * lib/stat.c: New file.  Contents mostly from xstat.in.
59469         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59470         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59471
59472         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59473         too.
59474         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59475
59476 2002-12-03  Jim Meyering  <jim@meyering.net>
59477
59478         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59479         but not semantics, to minimize the differences between these two files.
59480         (safe_read): Change comment to mention SAFE_READ_ERROR.
59481
59482         * lib/safe-read.c (IS_EINTR): Define.
59483         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59484
59485 2002-12-02  Jim Meyering  <jim@meyering.net>
59486
59487         * lib/safe-read.c (EINTR): Define.
59488         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59489         (INT_MAX): Provide fallback.
59490         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59491
59492         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59493
59494 2002-12-02  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59497         Define, taken from safe-read.c.
59498         (INT_MAX): Provide fallback.
59499         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59500         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59501
59502         * lib/safe-read.c (EINTR): Remove definition.
59503         (safe_read): Don't use EINTR if it is absent.
59504
59505 2002-12-01  Jim Meyering  <jim@meyering.net>
59506
59507         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59508         zero.
59509         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59510
59511 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59512
59513         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59514         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59515         with `if (! (value < limit)) abort ();', for readability.
59516
59517 2002-11-26  Karl Berry  <karl@gnu.org>
59518
59519         * lib/strdup.c: copy from libc again, with jim's ok.
59520         * lib/.cppi-disable: re-add strdup.c
59521
59522 2002-11-25  Karl Berry  <karl@gnu.org>
59523
59524         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59525         instead of "strtol.c".
59526
59527 2002-11-25  Karl Berry  <karl@gnu.org>
59528
59529         * config/install-sh: update from automake for variable quoting, $0 in
59530         error msgs, etc.
59531
59532         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59533         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59534         entry.
59535
59536 2002-11-25  Jim Meyering  <jim@meyering.net>
59537
59538         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59539
59540 2002-11-24  Karl Berry  <karl@gnu.org>
59541
59542         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59543         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59544
59545 2002-11-24  Jim Meyering  <jim@meyering.net>
59546
59547         Update from coreutils:
59548
59549         * lib/mktime.c: Merge in changes from libc.
59550
59551         Avoid a link-time failure on some Linux systems.
59552         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59553         (otherwise).
59554         (__mon_yday): Declare with the STATIC attribute.
59555         (__mktime_internal): Likewise.
59556         Based on a report from Greg Schafer.
59557
59558 2002-11-23  Jim Meyering  <jim@meyering.net>
59559
59560         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59561         Use `unsigned', not `int', as type of index.
59562
59563         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59564
59565         * lib/fsusage.c: Remove unneeded parentheses around operands of
59566         `defined'.
59567
59568 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59569
59570         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59571         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59572         so that we can be included first.
59573         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59574         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59575         No need to include stddef.h or sys/types.h any more.
59576         Surround local include files with "", not "<>".
59577         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59578         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59579         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59580         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59581         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59582         (ISPRINT): Remove; no longer needed now that we assume C89.
59583
59584         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59585         Preserve errno.
59586
59587         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59588         quotearg_char): Use SIZE_MAX rather than
59589         (size_t) -1 when we are talking about "infinity".
59590
59591         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59592
59593 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59594
59595         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59596         hint that one should use `if (! x) abort ();' rather than `assert
59597         (x);', and anyway it's one less thing to worry about configuring.
59598         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59599         hash_rehash, hash_insert): Use abort rather than assert.
59600
59601 2002-11-22  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/safe-read.h: Assume C89. Add comments.
59604         (safe_read): Change return type to size_t.
59605         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59606         byte counts > SSIZE_MAX correctly.
59607         * lib/safe-write.h: New file.
59608         * lib/safe-write.c: New file.
59609         * lib/full-read.h: New file.
59610         * lib/full-read.c: New file.
59611         * lib/full-write.h: Assume C89. Add comments.
59612         * lib/full-write.c: Include safe-write.h.
59613         (full_write): Rewritten to use safe_write.
59614         Suggested by Jim Meyering and Paul Eggert.
59615
59616 2002-11-21  Jim Meyering  <jim@meyering.net>
59617
59618         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59619
59620         Merge in changes from the coreutils.
59621
59622         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59623         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59624         <stdint.h>.
59625         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59626         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59627         int.  Work more efficiently if X is the same width as uintmax_t.
59628         Do not compare X to -1, to avoid bogus compiler warning.
59629         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59630         Don't assume that f_frsize and f_bsize are the same type.
59631
59632         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59633         warning on FreeBSD.
59634
59635         * lib/makepath.c (make_path): Restore umask *before* creating the final
59636         component.
59637         (make_path): Minor reformatting.
59638
59639         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59640         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59641         HAVE_MALLOC/HAVE_REALLOC.
59642
59643         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59644         dummy ones.  At least on GNU/Linux systems, `auto' means something
59645         else.
59646         From Michael Stone.
59647
59648 2002-11-21  Bruno Haible  <bruno@clisp.org>
59649
59650         Remove case insensitive option matching.
59651         * lib/argmatch.h (argcasematch): Remove declaration.
59652         (ARGCASEMATCH): Remove macro.
59653         (__xargmatch_internal): Remove case_sensitive argument.
59654         (XARGMATCH): Update.
59655         (XARGCASEMATCH): Remove macro.
59656         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59657         case_sensitive argument.
59658         (argcasematch): Remove function.
59659         (__xargmatch_internal): Remove case_sensitive argument.
59660         (main): Use XARGMATCH instead of XARGCASEMATCH.
59661
59662         * lib/xmalloc.c: Change compile-time error message. Add comment about
59663         required autoconf version.
59664
59665 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59666
59667         Merge argmatch cleanups from Bison.  Assume C89.
59668
59669         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59670         Include stdlib.h, for EXIT_FAILURE.
59671         Always include <string.h>, since we assume C89.
59672         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59673         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59674         Include <stddef.h> instead, since it's all we need for size_t.
59675         (PARAMS): Remove.  All uses removed.
59676         (ARRAY_CARDINALITY): Do not bother to #undef.
59677         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59678         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59679         Remove unnecessary parentheses.
59680         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59681         Insert necessary parentheses.
59682         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59683         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59684
59685 2002-11-19  Bruno Haible  <bruno@clisp.org>
59686
59687         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59688         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59689
59690         * lib/mbswidth.h (PARAMS): Remove macro.
59691         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59692         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59693
59694         * lib/gcd.h (PARAMS): Remove macro.
59695         (gcd): Use ANSI C function declarations.
59696         * lib/gcd.c (gcd): Likewise.
59697
59698 2002-11-15  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/strcspn.c: Include <stddef.h>.
59701         (strcspn): Use ANSI C function declaration. Change return type to
59702         size_t. Use NULL.
59703         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59704         (strpbrk): Use NULL.
59705         * lib/strpbrk.h (PARAMS): Remove macro.
59706         (strpbrk): Use ANSI C function declaration.
59707         * lib/strstr.c: Don't include <sys/types.h>.
59708         * lib/strstr.h (PARAMS): Remove macro.
59709         (strstr): Use ANSI C function declarations.
59710
59711 2002-11-14  Karl Berry  <karl@gnu.org>
59712
59713         * config/mkinstalldirs: `do' on separate line, instead of
59714         `for var; do'.
59715
59716 2002-11-06  Bruno Haible  <bruno@clisp.org>
59717
59718         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59719         * lib/gcd.c (gcd): Likewise.
59720
59721 2002-11-05  Bruno Haible  <bruno@clisp.org>
59722
59723         * lib/gcd.h: New file, from gettext-0.11.5.
59724         * lib/gcd.c: New file, from gettext-0.11.5.
59725
59726 2002-11-05  Bruno Haible  <bruno@clisp.org>
59727
59728         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59729         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59730         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59731         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59732
59733         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59734         <libintl.h>.
59735         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59736         <libintl.h>.
59737
59738         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59739         * lib/human.c: Include gettext.h instead of <libintl.h>.
59740         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59741         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59742         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59743         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59744         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59745         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59746         (textdomain): Remove definition.
59747         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59748
59749         * lib/long-options.c: Remove include of <libintl.h> and definition of
59750         _.
59751         * lib/same.c: Remove include of <libintl.h> and definition of _.
59752
59753 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59754
59755         * lib/config.charset: A few additions for Solaris.
59756
59757 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59758
59759         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59760         * lib/localcharset.c (locale_charset): Declare as extern "C".
59761
59762 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59763
59764         * lib/config.charset: msdos in uk_UA uses CP1125.
59765
59766 2002-11-04  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59769         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59770         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59771         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59772         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59773
59774 2002-11-04  Bruno Haible  <bruno@clisp.org>
59775
59776         * lib/localcharset.c (locale_charset): Don't return an empty string.
59777
59778 2002-11-04  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59781         aliases.
59782
59783 2002-11-04  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/config.charset: Update for newest glibc. Add canonical names
59786         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59787
59788 2002-11-04  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/config.charset: Add support for NetBSD.
59791
59792 2002-11-04  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59795
59796 2002-11-01  Bruno Haible  <bruno@clisp.org>
59797
59798         * configure.in: Add AC_CONFIG_AUX_DIR call.
59799         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59800         test/Makefile.
59801         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59802
59803 2002-09-28  Karl Berry  <karl@gnu.org>
59804
59805         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59806         installed automake until the next release, since changes have been
59807         made.
59808
59809 2002-09-25  Karl Berry  <karl@gnu.org>
59810
59811         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59812         * lib/getopt*: copy from libc/posix.
59813         * lib/gettext.h: copy from gettext.
59814         * lib/.cppi-disable: add strdup.c, gettext.h.
59815
59816 2002-09-25  Karl Berry  <karl@gnu.org>
59817
59818         * config/srclist.txt: enable gettext.h check.
59819         * config/config.{guess,sub}: update from prep.
59820         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59821                 from automake 1.6.3.
59822         See srclist*.
59823
59824 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59825
59826         * regex.c (PATFETCH): Remove the translating fetch.
59827         (PATFETCH_RAW): Rename to PATFETCH.
59828         (set_image_of_range): New fun.
59829         (SET_RANGE_TABLE_WORK_AREA): Use it.
59830         (regex_compile): Don't translate the pattern chars so eagerly.
59831         Only do it when inserting an `exactn' bytecode or when handling
59832         a char-range.
59833         (mutually_exclusive_p): Avoid empty statement.
59834
59835 2002-07-06  Jim Meyering  <meyering@lucent.com>
59836
59837         * m4/README: Don't mention Makefile.am.in.
59838         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59839
59840 2002-07-01  Jim Meyering  <meyering@lucent.com>
59841
59842         * lib/c-stack.c: Include sys/time.h.
59843         From Volker Borchert.
59844
59845 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59846
59847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59848
59849 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59850
59851         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59852         New macro.  Use it uniformly instead of
59853         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59854         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59855         reported by Vin Shelton.
59856
59857 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59858
59859         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59860         Do not assume SA_SIGINFO behavior.
59861         Bug reported by Jim Meyering on NetBSD 1.5.2.
59862
59863 2002-06-22  Jim Meyering  <meyering@lucent.com>
59864
59865         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59866         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59867
59868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59869         now that configure.ac uses AC_GNU_SOURCE.
59870         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59871         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59872
59873         Update to latest tools.  Suggestions from Paul Eggert.
59874         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59875         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59876         * m4/fnmatch.m4: Likewise.
59877         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59878         to AC_HEADER_STDBOOL
59879
59880 2002-06-22  Jim Meyering  <meyering@lucent.com>
59881
59882         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59883         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59884
59885 2002-06-22  Jim Meyering  <meyering@lucent.com>
59886
59887         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59888
59889         * lib/exitfail.c, exitfail.h: Likewise.
59890         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59891
59892         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59893         of fnmatch.h.
59894         (EXTRA_DIST): Add fnmatch_loop.c.
59895         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59896
59897         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59898         * lib/fnmatch.c: Update from diffutils-2.8.2.
59899         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59900         * lib/fnmatch.h: Remove file.
59901
59902 2002-06-21  Jim Meyering  <meyering@lucent.com>
59903
59904         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59905         * m4/mbrtowc.m4: Likewise.
59906
59907         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59908         * m4/mbswidth.m4: Reflect name change:
59909         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59910         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59911
59912         * m4/lib-link.m4: Update from gettext-0.11.2.
59913         * m4/gettext.m4: Likewise.
59914
59915         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59916         From Alfred M. Szmidt.
59917
59918 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59919
59920         * lib/file-type.h: Report an error if neither S_ISREG nor
59921         S_IFREG is defined, instead of using a test specific to glibc
59922         2.2.  This should be safe, since POSIX requires S_ISREG and
59923         Unix Version 7 had S_IFREG.  We don't need to check for
59924         <sys/types.h> since we don't use any symbols that it defines.
59925
59926 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59927
59928         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59929         $@-t, so that each temporary file name is unique and valid in the first
59930         8 characters, for operation under DOS.
59931
59932 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59933
59934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59935
59936 2002-06-15  Jim Meyering  <meyering@lucent.com>
59937
59938         Work even with DJGPP 2.03, which lacks support for symlinks.
59939         From Richard Dawe.
59940         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59941         is defined.
59942         * lib/lchown.c (S_ISLNK): Likewise.
59943
59944 2002-06-15  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59947         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59948         have been included before this file.
59949
59950 2002-06-14  Jim Meyering  <meyering@lucent.com>
59951
59952         * lib/file-type.h: Use the version from diffutils-2.8.2.
59953         * lib/file-type.c: Likewise.
59954
59955 2002-06-07  Jim Meyering  <meyering@lucent.com>
59956
59957         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59958         They're needed at least for NetBSD 1.5.2.
59959         ($statxfs_includes): Include those same headers.
59960         ($statxfs_includes): Include sys/vfs.h if available.
59961         ($statxfs_includes): Likewise for sys/statvfs.h.
59962         Check for the following members in both structs statfs and statvfs:
59963         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59964
59965 2002-06-01  Jim Meyering  <meyering@lucent.com>
59966
59967         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59968         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59969
59970 2002-05-28  Jim Meyering  <meyering@lucent.com>
59971
59972         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59973         Reported by Volker Borchert.
59974
59975 2002-05-27  Jim Meyering  <meyering@lucent.com>
59976
59977         Fix a problem seen only on nonconforming systems whereby ls.c's
59978         use of localtime, and then of gettimeofday would cause trouble:
59979         the localtime call used to initialize rpl_gettimeofday's save
59980         mechanism would clobber ls's current local time information so
59981         that in any long listing the first file would always be listed
59982         with date 1970-01-01.  Analysis by Volker Borchert.
59983
59984         * lib/gettimeofday.c (localtime): Undefine.
59985         (rpl_localtime): New function.
59986
59987 2002-05-27  Jim Meyering  <meyering@lucent.com>
59988
59989         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59990         localtime.
59991
59992         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59993         use the replacement function; it wouldn't resolve at link time.
59994         Reported by Volker Borchert.
59995
59996 2002-05-22  Jim Meyering  <meyering@lucent.com>
59997
59998         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59999         file-type.h.
60000         * lib/file-type.h: New file.
60001         * lib/file-type.c (file_type): New file/function.  Extracted from
60002         diffutils.
60003
60004 2002-04-30  Jim Meyering  <meyering@lucent.com>
60005
60006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60007
60008 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60009
60010         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60011
60012 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60013
60014         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60015         Do not check for alloca.h (no longer used) or stdbool.h (was never
60016         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60017
60018 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60019
60020         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60021
60022 2002-04-29  Jim Meyering  <meyering@lucent.com>
60023
60024         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60025         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60026         Use AC_FUNC_STRNLEN here instead.
60027
60028         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60029         With autoconf-2.53a, it's part of AC_PROG_CC.
60030
60031 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60032
60033         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60034         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60035
60036 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60037
60038         * lib/sig2str.h, lib/sig2str.c: New files.
60039         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60040
60041 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60042
60043         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60044         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60045         of 127, since 64 is the largest conceivable number for ancient
60046         nonstandard hosts.
60047         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60048
60049 2002-04-28  Jim Meyering  <meyering@lucent.com>
60050
60051         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60052
60053 2002-04-24  Jim Meyering  <meyering@lucent.com>
60054
60055         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60056         (jm_PREREQ): Use it.
60057
60058         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60059         mach/mach.h fcntl.h.
60060         Check for this function: setlocale.
60061
60062 2002-04-24  Jim Meyering  <meyering@lucent.com>
60063
60064         * lib/gettext.h: New file, from Gettext.
60065         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60066         (libfetish_a_SOURCES): Add gettext.h.
60067
60068 2002-04-16  Jim Meyering  <meyering@lucent.com>
60069
60070         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60071         ut_pid, ut_id, ut_exit.
60072
60073 2002-04-16  Jim Meyering  <meyering@lucent.com>
60074
60075         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60076         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60077         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60078
60079 2002-04-12  Jim Meyering  <meyering@lucent.com>
60080
60081         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60082         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60083         existence of the getmntinfo function.  Needed for Darwin 5.3.
60084
60085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60086         This is necessary at least on Darwin 5.3.
60087
60088         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60089         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60090         strnlen.o in the library, and that makes some versions of ranlib
60091         object.
60092
60093 2002-04-12  Jim Meyering  <meyering@lucent.com>
60094
60095         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60096
60097 2002-04-09  Jim Meyering  <meyering@lucent.com>
60098
60099         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60100         to be more precise.  Rather than saying we're checking whether the
60101         function `works', say what we're testing.
60102         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60103         Reported by Bruno Haible.
60104
60105 2002-03-10  Jim Meyering  <meyering@lucent.com>
60106
60107         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60108         Suggestion from Santiago Vila.
60109
60110 2002-03-08  Jim Meyering  <meyering@lucent.com>
60111
60112         * lib/rename.c: Mention that this wrapper is needed also on
60113         mips-dec-ultrix4.4 systems.
60114
60115 2002-03-02  Jim Meyering  <meyering@lucent.com>
60116
60117         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60118         not HAVE_CLOCK_SETTIME.
60119
60120 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60121
60122         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60123         Check for clock_settime.
60124
60125 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60126
60127         * lib/nanosleep.h: Rename to....
60128         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60129
60130         * lib/gettime.c: New file.
60131         * lib/settime.c: New file.
60132         * lib/stime.c: Remove.
60133
60134         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60135         timespec.h.  Remove nanosleep.h.
60136
60137 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60138
60139         * m4/acl.m4: New file.
60140         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60141         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60142
60143 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60144
60145         * lib/acl.c, lib/acl.h: New files.
60146         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60147
60148 2002-02-24  Jim Meyering  <meyering@lucent.com>
60149
60150         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60151         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60152         cause trouble.  Reported by Nelson Beebe.
60153
60154 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60155
60156         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60157         compilers that don't know that xalloc_die never returns.
60158
60159 2002-02-20  Jim Meyering  <meyering@lucent.com>
60160
60161         * lib/getdate.c: Regenerate using bison-1.33.
60162
60163 2002-02-17  Jim Meyering  <meyering@lucent.com>
60164
60165         * config/config.guess (main): Don't use `head -1'; it's no longer
60166         portable. Use `sed 1q' instead.
60167
60168 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60169
60170         * m4/codeset.m4: Upgrade to gettext-0.11.
60171         * m4/gettext.m4: Upgrade to gettext-0.11.
60172         * m4/glibc21.m4: Upgrade to gettext-0.11.
60173         * m4/iconv.m4: Upgrade to gettext-0.11.
60174         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60175         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60176         * m4/lib-ld.m4: New file, from gettext-0.11.
60177         * m4/lib-link.m4: New file, from gettext-0.11.
60178         * m4/lib-prefix.m4: New file, from gettext-0.11.
60179         * m4/progtest.m4: Upgrade to gettext-0.11.
60180
60181 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60182
60183         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60184         (jm_PREREQ): Use it.
60185
60186 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60187
60188         * lib/posixver.c, lib/posixver.h: New files.
60189         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60190
60191 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60192             Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60195         (fwrite_success_callback): New declaration.
60196         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60197         print_unicode_char. Call failure callback instead of error.
60198         (fwrite_success_callback): New function.
60199         (exit_failure_callback): New function.
60200         (fallback_failure_callback): New function.
60201         (print_unicode_char): Call unicode_to_mb.
60202
60203 2002-01-26  Jim Meyering  <meyering@lucent.com>
60204
60205         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60206         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60207
60208 2002-01-26  Jim Meyering  <meyering@lucent.com>
60209
60210         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60211
60212 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60213
60214         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60215
60216 2002-01-22  Jim Meyering  <meyering@lucent.com>
60217
60218         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60219         Otherwise, some versions of automake would omit the rule that makes
60220         Makefile from Makefile.in.
60221
60222 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60223
60224         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60225         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60226         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60227         (memcoll): Set errno to zero if there is no error.
60228
60229         * lib/quotearg.c (quotearg_buffer_restyled):
60230         Fix bug with quoting buffers containing NUL when backslashing escapes.
60231         This bug was exposed by the other changes in this patch.
60232         (quotearg_n_options): New arg ARGSIZE.
60233         All callers changed.
60234         (quoting_options_from_style): New function.
60235         (quotearg_n_style): Use it.
60236         (quotearg_n_style_mem): New function.
60237
60238         * lib/quotearg.h (quotearg_n_style_mem): New function.
60239
60240 2002-01-19  Jim Meyering  <meyering@lucent.com>
60241
60242         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60243         Remove useless quotes: DF_PROG="df".
60244         * m4/strnlen.m4: New file.
60245
60246 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60247
60248         * lib/backupfile.c (ISDIGIT): Comment fix.
60249         * lib/getdate.y (ISDIGIT): Likewise.
60250         * lib/posixtm.c (ISDIGIT, year): Likewise.
60251         * lib/strverscmp.c (ISDIGIT): Likewise.
60252         * lib/userspec.c (ISDIGIT): Likewise.
60253
60254 2002-01-16  Jim Meyering  <meyering@lucent.com>
60255
60256         * lib/getdate.y: Add three semicolons, each just before a closing
60257         brace. Bison (as of version 1.31) no longer papers over that mistake.
60258
60259 2002-01-05  Jim Meyering  <meyering@lucent.com>
60260
60261         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60262
60263 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60264
60265         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60266         not silently exit merely because the output buffer happens to
60267         have nothing pending.
60268
60269 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60270
60271         See the big note in ../ChangeLog.
60272         * lib/human.c (suffixes): Prefer K to k for 1024.
60273         (generate_suffix_backwards): New function.
60274         (human_readable_inexact): Use it.
60275         * lib/xstrtol.c (__xstrtol): If there is no number but there
60276         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60277         Accept 'K' as well as 'k'.
60278
60279 2001-12-15  Jim Meyering  <meyering@lucent.com>
60280
60281         * lib/regex.h (__restrict_arr): Update from libc.
60282
60283         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60284         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60285         (STREQ): Define.
60286
60287 2001-12-14  Jim Meyering  <meyering@lucent.com>
60288
60289         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60290         Suggestion from Bruno Haible.
60291
60292 2001-12-10  Jim Meyering  <meyering@lucent.com>
60293
60294         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60295         xrealloc, Instead, include "xalloc.h".
60296         (initbuffer): Don't cast xmalloc return value to char*.
60297         (readline): Reword comment.
60298         Don't cast xrealloc return value to char*
60299         Return NULL, not 0.
60300
60301 2001-12-09  Jim Meyering  <meyering@lucent.com>
60302
60303         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60304         about `signed and unsigned type in conditional expression'.
60305         * lib/posixtm.c (posix_time_parse): Likewise.
60306
60307         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60308
60309         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60310         to avoid a pedantic warning.
60311
60312         * lib/getstr.c: Don't include assert.h.
60313         (getstr): Remove warning-evoking assertions.
60314         Return -1 if offset parameter is out of bounds.
60315         Change the type of a local from int to size_t.
60316
60317         * lib/strftime.c (my_strftime_localtime_r): Include this function
60318         definition in the `#if ! HAVE_TM_GMTOFF' block.
60319
60320         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60321         Include xalloc.h instead.
60322
60323 2001-12-02  Jim Meyering  <meyering@lucent.com>
60324
60325         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60326         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60327         included.
60328
60329         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60330         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60331
60332 2001-11-30  Akim Demaille  <akim@epita.fr>
60333
60334         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60335         before being defined.
60336
60337 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60338
60339         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60340         First arg is int, not unsigned.
60341         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60342         (SIZE_MAX, UINT_MAX): New macros.
60343         (quotearg_n_options): Abort if N is negative.
60344         Avoid overflow check on hosts where size_t is 64 bits and int
60345         is 32 bits, as overflow is impossible there.
60346         Fix off-by-one typo that caused unnecessary reallocation.
60347
60348 2001-11-27  Jim Meyering  <meyering@lucent.com>
60349
60350         * lib/tempname.c: Merge with version from libc.
60351         * lib/regex.c: Likewise.
60352
60353         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60354         systems for which STDC_HEADERS is 0, it was not included, resulting in
60355         a warning about an integer-to-pointer conversion problem with getenv.
60356         Reported by Volker Borchert.
60357
60358 2001-11-26  Jim Meyering  <meyering@lucent.com>
60359
60360         * lib/gtod.h: Remove file.
60361         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60362         * lib/gettimeofday.c: Don't include gtod.h.
60363         (GTOD_init): Remove function.
60364         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60365         Suggestion from Volker Borchert.
60366
60367 2001-11-23  Jim Meyering  <meyering@lucent.com>
60368
60369         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60370         it.
60371         * lib/hash.c (struct hash_table): Define it here instead.
60372
60373 2001-11-22  Jim Meyering  <meyering@lucent.com>
60374
60375         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60376
60377 2001-11-20  Jim Meyering  <meyering@lucent.com>
60378
60379         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60380         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60381
60382 2001-11-19  Jim Meyering  <meyering@lucent.com>
60383
60384         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60385         directory.  Use "conftestXXXXXX" as the template.
60386         Suggestion from Paul Eggert.
60387
60388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60389         immediately, so the test doesn't mistakenly hit the max-open-files
60390         limit.
60391
60392 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60393
60394         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60395         (TEMPORARIES): New macro.
60396         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60397         removes an artificial limitation (e.g. HP-UX 10.20, where
60398         TMP_MAX is 17576).
60399
60400 2001-11-18  Jim Meyering  <meyering@lucent.com>
60401
60402         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60403
60404 2001-11-18  Jim Meyering  <meyering@lucent.com>
60405
60406         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60407         on SunOS 4.
60408
60409         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60410         files will be created before anything else.
60411
60412 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60413
60414         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60415         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60416
60417 2001-11-17  Jim Meyering  <meyering@lucent.com>
60418
60419         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60420         Prompted by a report from Bob Proulx.
60421
60422         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60423         Instead, require UTILS_FUNC_MKSTEMP.
60424
60425 2001-11-17  Jim Meyering  <meyering@lucent.com>
60426
60427         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60428         Now, that's done as part of AC_FUNC_STRTOD.
60429
60430 2001-11-17  Jim Meyering  <meyering@lucent.com>
60431
60432         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60433         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60434         rather than group writable.  Patch by Juan F. Codagnone.
60435
60436         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60437         xrealloc, Instead, include "xalloc.h".
60438
60439         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60440         Remove explicit declarations of xmalloc, xrealloc,
60441         and xstrdup.  Instead, include "xalloc.h".
60442
60443         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60444         unlocked-io.h.
60445         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60446         Likewise.
60447         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60448
60449         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60450         Reported by Padraig Brady.
60451
60452         * lib/mkstemp.c: #undef mkstemp.
60453         Include config.h.
60454         (rpl_mkstemp): Rename from mkstemp.
60455         Protoize.
60456
60457 2001-11-16  Jim Meyering  <meyering@lucent.com>
60458
60459         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60460         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60461         determine the amount of total physical memory, use pstat_getstatic.
60462         HPUX-11 doesn't define _SC_PHYS_PAGES.
60463         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60464         If sysconf couldn't be used to determine the amount of available
60465         physical memory, use both pstat_getstatic and pstat_getdynamic.
60466         Based on a patch from Bob Proulx.
60467
60468 2001-11-10  Jim Meyering  <meyering@lucent.com>
60469
60470         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60471         (jm_PREREQ): Use it.
60472
60473 2001-11-09  Jim Meyering  <meyering@lucent.com>
60474
60475         * m4/jm-macros.m4: Require autoconf-2.52f.
60476         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60477         Use these AC_-prefixed names, not the AM_-prefixed ones.
60478
60479         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60480
60481 2001-11-05  Jim Meyering  <meyering@lucent.com>
60482
60483         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60484
60485 2001-11-04  Jim Meyering  <meyering@lucent.com>
60486
60487         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60488         $DEFS.
60489
60490 2001-11-03  Jim Meyering  <meyering@lucent.com>
60491
60492         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60493         of AC_DEFUN.
60494
60495         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60496         know the name of the variable in the macro definition.
60497
60498 2001-11-03  Jim Meyering  <meyering@lucent.com>
60499
60500         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60501         in argmatch_to_argument call.
60502
60503         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60504         argument.
60505
60506         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60507         e.g., a fault due to an attempt to free a NULL pointer.
60508
60509 2001-11-01  Jim Meyering  <meyering@lucent.com>
60510
60511         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60512         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60513
60514 2001-11-01  Jim Meyering  <meyering@lucent.com>
60515
60516         * lib/dirfd.c, lib/dirfd.h: New files.
60517         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60518
60519         * lib/hash.c (hash_print) [TESTING]: Clean up.
60520
60521 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60522
60523         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60524         to avoid a warning if -Wall.
60525
60526 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60527
60528         * README: New file
60529         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60530         (per RMS's instructions, this is now the canonical source)
60531         * lgpl/, gpl/: New directories.
60532
60533 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60534
60535         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60536
60537 2001-10-21  Jim Meyering  <meyering@lucent.com>
60538
60539         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60540         this code would end up calling gettext even in packages built
60541         with --disable-nls.
60542         * lib/getopt.c (_): Likewise.
60543         * lib/regex.c (_): Likewise.
60544
60545 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60546
60547         * m4/error.m4 (jm_PREREQ_ERROR):
60548         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60549         AC_FUNC_STRERROR_R does that.
60550         Check for strerror declaration.
60551
60552         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60553         are supposed to have them these days.
60554         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60555         Merge changes from latest Autoconf CVS.
60556         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60557         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60558         POSIX decided to standardize on the int flavor of strerror_r.
60559
60560 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60561
60562         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60563         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60564         Use strerror_r that is only a macro, even if it is not a function.
60565         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60566         (private_strerror): Use prototypes, not old-style function definition.
60567         (print_errno_message): New function.
60568         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60569         char*-flavored one.
60570         (error_tail, error, error_at_line): Use it.
60571
60572 2001-10-11  Jim Meyering  <meyering@lucent.com>
60573
60574         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60575         and quote_n (1, ... to avoid clobbering a buffer.
60576
60577 2001-10-05  Jim Meyering  <meyering@lucent.com>
60578
60579         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60580         hash-pjw.h.
60581         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60582         * lib/hash-pjw.h: New file.
60583
60584 2001-09-30  Jim Meyering  <meyering@lucent.com>
60585
60586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60587         `struct fsstat' has the `f_fstypename' member.
60588         Use that to define FS_TYPE, which is now used to make
60589         the getfsstat link test tighter.
60590
60591 2001-09-30  Jim Meyering  <meyering@lucent.com>
60592
60593         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60594         Include <sys/ucred.h>, for Apple Darwin.
60595         Include sys/mount.h and sys/fs_types.h only if available.
60596         (FS_TYPE): Define.
60597         (read_filesystem_list): Use FS_TYPE.
60598
60599 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60600
60601         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60602         a boolean context.
60603
60604 2001-09-29  Jim Meyering  <meyering@lucent.com>
60605
60606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60607         [one-argument getmntent function]): Include stdio.h before mntent.h.
60608         SunOS 4.1.x needs it for the declaration of `FILE'.
60609         Patch by Volker Borchert.
60610
60611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60612         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60613         sys/fs_types.h, and make the link-test for getfsstat guard #include
60614         directives with appropriate #if HAVE_*_H tests so that we can
60615         detect getfsstat on Apple Darwin1.3.7 systems.
60616         Reported by Nelson Beebe.
60617         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60618
60619 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60620
60621         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60622         #defines strtoimax.  Also treat the other strto* functions
60623         like strtoimax.
60624
60625         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60626         Check for strtoul and strtoumax,
60627         as those declarations are made even in the signed case.
60628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60629         Likewise, for strtol and strtoimax.
60630
60631 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60632
60633         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60634         #defines strtoimax.  Also treat the other strto* functions
60635         like strtoimax.
60636
60637         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60638         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60639         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60640
60641 2001-09-26  Jim Meyering  <meyering@lucent.com>
60642
60643         Most macros in unlocked-io.h had the wrong number of arguments.
60644         * lib/gen-uio: New script.
60645         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60646         * lib/unlocked-io.hin: Remove file.
60647         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60648         rather than trying to embed it here.
60649         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60650         Reported by Padraig Brady.
60651
60652 2001-09-25  Volker Borchert  <bt@teknon.de>
60653
60654         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60655         `result'.
60656
60657 2001-09-24  Jim Meyering  <meyering@lucent.com>
60658
60659         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60660
60661 2001-09-23  Jim Meyering  <meyering@lucent.com>
60662
60663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60664         instead of the mere test for existence of mntent.h.  The latter
60665         would get a false-positive on AIX 3.4 systems.
60666         In the outer getmntent if-block, don't die if neither of the getmntent
60667         tests succeeds.  Instead, just fall through and continue with the
60668         remaining tests.
60669
60670 2001-09-23  Jim Meyering  <meyering@lucent.com>
60671
60672         * lib/mountlist.c: Remove useless parentheses in #if directives.
60673         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60674         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60675
60676 2001-09-22  Jim Meyering  <meyering@lucent.com>
60677
60678         * m4/gettext.m4: New file.  From gettext.
60679         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60680         * m4/progtest.m4: Likewise
60681         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60682         * m4/glibc21.m4: Likewise.
60683
60684         * m4/libintl.m4: Remove.  No longer used.
60685
60686 2001-09-22  Jim Meyering  <meyering@lucent.com>
60687
60688         * lib/localcharset.c: Update from latest gettext.
60689         * lib/config.charset: Likewise.
60690
60691 2001-09-20  Jim Meyering  <meyering@lucent.com>
60692
60693         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60694         strtoimax.
60695         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60696         strtoumax.
60697
60698 2001-09-20  Jim Meyering  <meyering@lucent.com>
60699
60700         * lib/xstrtol.c (strtoimax): Guard declaration with
60701         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60702         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60703         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60704         (strtoumax): Likewise, for completeness (it wasn't necessary).
60705
60706 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60707
60708         * lib/strtoimax.c (HAVE_LONG_LONG):
60709         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60710         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60711         to work around bug in IBM C compiler.
60712
60713 2001-09-17  Jim Meyering  <meyering@lucent.com>
60714
60715         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60716         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60717         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60718         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60719         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60720         whenever the right hand side need not be expanded by the shell.
60721
60722 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60723
60724         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60725         library.  It's not correct, as some older glibcs are buggy.
60726         fnmatch wasn't fixed until glibc 2.2.
60727
60728         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60729         special shell magic here.
60730
60731 2001-09-16  Jim Meyering  <meyering@lucent.com>
60732
60733         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60734         * m4/jm-macros.m4: Require it.
60735
60736 2001-09-16  Jim Meyering  <meyering@lucent.com>
60737
60738         * lib/mkdir.c: New file.
60739
60740 2001-09-15  Jim Meyering  <meyering@lucent.com>
60741
60742         * m4/jm-macros.m4: Check for help2man.
60743
60744 2001-09-11  Jim Meyering  <meyering@lucent.com>
60745
60746         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60747         The body, by Paul Eggert, was moved here from configure.in.
60748         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60749
60750 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60751
60752         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60753         (jm_PREREQ): Use it.
60754
60755 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60756
60757         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60758         Use ssize_t, not int, to store result of readlink.
60759         Check for ssize_t overflow as well as size_t overflow,
60760         as POSIX says the result of readlink is implementation-defined
60761         when ssize_t overflows.
60762         Remove unnecessary cast to char*.
60763         Use free+malloc instead of realloc, as the storage doesn't need
60764         to be preserved and it's clearer and can be more efficient that way.
60765         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60766         * lib/xreadlink.h (xreadlink): Update prototype.
60767
60768 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60769
60770         * lib/xgetcwd.c: Revert some of the previous change; intead,
60771         fix the HAVE_GETCWD_NULL code to behave more like the
60772         !HAVE_GETCWD_NULL code used to.
60773
60774         Include "xalloc.h".
60775         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60776         invoke xalloc_die.
60777
60778 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60779
60780         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60781         sys/param.h, as pathmax.h includes them.
60782
60783 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60784
60785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60786         (jm_PREREQ_XGETCWD): New macro.
60787
60788         * m4/getcwd.m4: New file.
60789
60790 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60791
60792         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60793         like the HAVE_GETCWD_NULL code.
60794         Include pathmax.h if not HAVE_GETCWD.
60795         Do not include xalloc.h.
60796         (INITIAL_BUFFER_SIZE): New symbol.
60797         Do not use xmalloc / xrealloc, since the caller is responsible for
60798         handling errors.  Preserve errno around `free' during failure.
60799         Do not overrun buffer when using getwd.
60800
60801 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60802
60803         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60804         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60805         getcwd (NULL, 0).
60806
60807 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60808
60809         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60810         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60811         spotted by Jim Meyering.
60812
60813 2001-09-03  Jim Meyering  <meyering@lucent.com>
60814
60815         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60816         failure.
60817
60818 2001-09-02  Jim Meyering  <meyering@lucent.com>
60819
60820         * lib/error.c: Update from GNU libc.
60821
60822 2001-09-01  Jim Meyering  <meyering@lucent.com>
60823
60824         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60825         Used by df.
60826
60827 2001-09-01  Jim Meyering  <meyering@lucent.com>
60828
60829         * lib/xreadlink.c: New file.
60830         * lib/xreadlink.h: New file.
60831         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60832         xreadlink.h.
60833
60834         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60835         doesn't conflict with sparc Solaris 7's definition in
60836         /usr/include/sys/int_types.h.
60837
60838         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60839         files.
60840         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60841         and strncasecmp as r-values.  Unixware didn't have declarations.
60842
60843 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60844
60845         * lib/xstrtol.h: Add copyright notice.
60846         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60847         LONGINT_INVALID_SUFFIX_CHAR.
60848
60849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60850
60851         * lib/xstrtol.c (strtoimax): New decl.
60852
60853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60854
60855         * lib/xgetcwd.c: Don't include pathmax.h.
60856         Include stdlib.h and unistd.h if available.
60857         Include xalloc.h.
60858         (xmalloc, xstrdup, free): Remove decls.
60859         (xgetcwd): Don't assume sizes fit in unsigned.
60860         Check for overflow when computing sizes.
60861         Simplify reallocation code.
60862
60863 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60864
60865         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60866         a directory's st_size can have an arbitrary value, so the old
60867         usage could waste an arbitrary amount of memory.  All uses
60868         changed.
60869         * lib/savedir.h: Update prototype.
60870
60871 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60872
60873         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60874
60875         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60876         old strtoimax.c.
60877
60878         Also, make the following further changes to make this file's
60879         configuration more similar to that of strtol.c:
60880         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60881         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60882         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60883         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60884         changed to signed values.
60885
60886         And make the following changes as well:
60887         Fix copyright notice, as 1999 was missing.
60888         (verify): New macro.
60889         (strtoimax): Check sizes at compile-time, not run-time.
60890         Prefer strtol to strtoll if both work.
60891         (main): Remove; it was not that useful and was a pain to maintain.
60892
60893         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60894
60895 2001-08-31  Jim Meyering  <meyering@lucent.com>
60896
60897         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60898         Use an initial, malloc'd, buffer of length 128 rather than
60899         a statically allocated one of length 1024.
60900
60901 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60902
60903         Simplify code, partly by assuming autoconf 2.52 semantics.
60904
60905         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60906
60907         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60908         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60909         All uses removed.
60910         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60911         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60912         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60913         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60914         jm_AC_HEADER_INTTYPES_H.
60915         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60916
60917         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60918
60919         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60920         Quote first arg of AC_DEFUN.
60921         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60922         since they are needed to parse the include file even if we need
60923         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60925         but with opposite signedness.
60926
60927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60928
60929         Merge 'exclude' changes from tar 1.13.22.
60930         This fixes one or two unlikely storage allocation overflow bugs,
60931         but doesn't change user-visible behavior otherwise.
60932
60933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60934
60935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60936         (jm_PREREQ_EXCLUDE): New macro.
60937
60938 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60939
60940         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60941         tm to be declared.
60942
60943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60944
60945         * lib/hash.c: Remove '2001' from copyright notice.
60946
60947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60948
60949         * lib/full-write.h: New file.
60950         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60951         * lib/full-write.c: Correct credits, as cccp.c no longer
60952         exists and anyway it was so heavily changed from the old cccp
60953         code as to be unrecognizable.  Include full-write.h.
60954         (full_write) Return size_t, with short writes meaning failure.
60955         All callers changed.  This fixes a bug with large buffers
60956         on 64-bit hosts.
60957         * lib/utime.c: Include full-write.h.
60958
60959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60960
60961         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60962         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60963         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60964         Include if available.
60965         (<xalloc.h>): Include
60966         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60967         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60968         collide with FNM macros.
60969         (struct patopts): New struct.
60970         (struct exclude): Use it, as exclude patterns now come with options.
60971         (new_exclude): Support above changes.
60972         (new_exclude, add_exclude_file):
60973         Initial size must now be a power of two to simplify overflow checking.
60974         (free_exclude, fnmatch_no_wildcards): New function.
60975         (excluded_filename): No longer requires options arg, as the options
60976         are determined by add_exclude.  Now returns bool, not int.
60977         (excluded_filename, add_exclude):
60978         Add support for the fancy new exclusion options.
60979         (add_exclude, add_exclude_file): Now takes int options arg.
60980         Check for arithmetic overflow when computing sizes.
60981         (add_exclude_file): xrealloc might modify errno, so don't
60982         realloc until after errno might be used.
60983
60984         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60985         New macros.
60986         (free_exclude): New decl.
60987         (add_exclude, add_exclude_file): Now takes int options arg.
60988         (excluded_filename): No longer requires options arg, as the options
60989         are determined by add_exclude.  Now returns bool, not int.
60990
60991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60992
60993         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60994
60995 2001-08-27  Jim Meyering  <meyering@lucent.com>
60996
60997         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60998
60999         * lib/version-etc.c (N_): Remove definition.
61000         Revert most of last change.
61001         Instead, simply don't mark the `Copyright...' string for translation.
61002         Based on advice from Paul Eggert.
61003
61004         * lib/strtoxmax.c: Tweak comment.
61005
61006 2001-08-26  Jim Meyering  <meyering@lucent.com>
61007
61008         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61009
61010         * m4/xstrtoimax.m4: New file.
61011         * m4/xstrtoumax.m4: Add comments explaining why we
61012         AC_REPLACE_FUNCS(strtol).
61013
61014 2001-08-26  Jim Meyering  <meyering@lucent.com>
61015
61016         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61017         of copyright with `%s' so translators don't get an untranslated
61018         message in 2002.
61019         (COPYRIGHT_YEAR): Define.
61020         (version_etc): Use fprintf rather than fputs.
61021         Suggestion from Ulrich Drepper.
61022
61023         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61024
61025         * lib/strtoll.c: New file, from GNU libc.
61026         * lib/xstrtoimax.c: New file.
61027
61028         * lib/xstrtol.h: Add xstrtoimax.
61029         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61030         * lib/strtoimax.c: New file.  Likewise, but first define
61031         STRTOUXMAX_SIGNED.
61032
61033         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61034         ...
61035         * lib/strtoxmax.c: ... then renamed to this.
61036
61037 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61038
61039         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61040         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61041         (jm_AC_TYPE_INTMAX_T): New macro.
61042         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61043
61044         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61045
61046         * m4/longlong.m4: Renamed from ulonglong.m4.
61047         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61048         * m4/uintmax_t.m4: Removed.
61049
61050 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61051
61052         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61053         Port to Solaris 8, where 'sed' requires a space after the 'r'
61054         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61055         Redirect output to $tmp just once.
61056
61057 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61058
61059         * lib/addext.c (<errno.h>): Include.
61060         (errno): Declare if not defined.
61061         (addext): Work correctly when pathconf returns -1 and leaves
61062         errno alone because there is no limit.  Also, work even if
61063         pathconf returns a value greater than SIZE_MAX.
61064
61065 2001-08-12  Jim Meyering  <meyering@lucent.com>
61066
61067         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61068         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61069         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61070         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61071         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61072         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61073         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61074         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61075         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61076         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61077         utime.m4, utimes.m4, xstrtoumax.m4:
61078         Quote the first argument in each use of AC_DEFUN.
61079
61080 2001-08-12  Jim Meyering  <meyering@lucent.com>
61081
61082         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61083         Simply `return getcwd (NULL, 0);'.
61084         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61085         Use 1300 as initial value for length, not PATH_MAX.
61086
61087         * lib/pathmax.h: Clean up cpp syntax.
61088
61089 2001-08-12  Jim Meyering  <meyering@lucent.com>
61090
61091         * lib/gettimeofday.c: New file.
61092         * lib/gtod.h: New file.
61093         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61094
61095 2001-08-05  Jim Meyering  <meyering@lucent.com>
61096
61097         * m4/jm-macros.m4: Require autoconf-2.52.
61098
61099 2001-08-04  Jim Meyering  <meyering@lucent.com>
61100
61101         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61102         stmt, to get in sync with glibc.
61103
61104 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61105
61106         The following changes are from gettext 0.10.39 as maintained by
61107         Bruno Haible.
61108
61109         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61110         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61111         with inverted sense.  All uses changed.
61112
61113         * lib/mbswidth.c: Don't include <limits.h>.
61114         Include <stdlib.h> and <string.h> unconditionally.
61115         (iswcntrl, mbsinit, ISCNTRL): New macros.
61116         (mbsnwidth): Use K&R style function declarations.
61117         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61118         can optimize it when MB_CUR_MAX == 1.
61119         The width of control characters is zero, not 1.
61120
61121 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61122
61123         The following changes are from gettext 0.10.39 as maintained by
61124         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61125
61126         * m4/codeset.m4: Upgrade to serial AM1.
61127         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61128         all uses changed.  Quote first arg of AC_DEFUN.
61129         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61130
61131         * m4/iconv.m4: Upgrade to serial AM2.
61132         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61133         Add --with-libconv-prefix.
61134         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61135         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61136         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61137         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61138         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61139
61140         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61141         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61142         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61143         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61144         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61145         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61146         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61147         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61148         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61149
61150         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61151         string.h any more.
61152
61153         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61154         not the default value.
61155
61156         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61157         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61158         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61159         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61160         Also check for iswcntrl, used for wcwidth fallback.
61161         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61162         to Autoconf 2.13.
61163
61164 2001-08-03  Jim Meyering  <meyering@lucent.com>
61165
61166         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61167         as it was in the original.  Reported by Paul Eggert.
61168
61169 2001-07-16  Jim Meyering  <meyering@lucent.com>
61170
61171         * m4/gettimeofday.m4: New file.
61172         Prompted by a report from Bernhard Baehr.
61173
61174 2001-07-15  Jim Meyering  <meyering@lucent.com>
61175
61176         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61177         stuff. Now it's in ../Makefile.cfg.
61178
61179 2001-07-15  Jim Meyering  <meyering@lucent.com>
61180
61181         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61182         (BUILT_SOURCES): Add unlocked-io.h.
61183         (io_functions): Define.
61184         (unlocked-io.h): New rule.
61185         (DISTCLEANFILES): Add unlocked-io.h.
61186         (all-local): Depend on unlocked-io.h, to ensure it is created.
61187
61188         * lib/unlocked-io.hin: New file
61189
61190         * lib/regex.c: Update from glibc.
61191
61192 2001-07-05  Jim Meyering  <meyering@lucent.com>
61193
61194         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61195         recommendation.
61196         (libfetish_a_SOURCES): Put all .h files here instead.
61197         Remove a thus-exposed (better checks in automake) duplicate and
61198         two unnecessary .h files.
61199
61200 2001-07-04  Jim Meyering  <meyering@lucent.com>
61201
61202         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61203         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61204         distcheck failure.
61205
61206 2001-07-02  Jim Meyering  <meyering@lucent.com>
61207
61208         The following changes were prompted by suggestions from Bruno Haible.
61209
61210         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61211         is now generated.
61212         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61213         definition of EXTRA_DIST.
61214         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61215         ensure that the generated file is created/updated whenever the list
61216         of $(unlocked_functions) is changed.
61217         (jm-glibc-io.m4): New rule.
61218         (unlocked-io.h): New rule -- currently unused.
61219
61220 2001-06-24  Jim Meyering  <meyering@lucent.com>
61221
61222         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61223         unmatched right bracket, rather than kludging it with an extra,
61224         falsely-matching quote in a comment.  Patch by Akim Demaille.
61225
61226 2001-06-11  Jim Meyering  <meyering@lucent.com>
61227
61228         * lib/regex.c: Update from GNU libc.
61229
61230 2001-05-27  Jim Meyering  <meyering@lucent.com>
61231
61232         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61233         Check for ut_type in struct utmp.
61234
61235 2001-05-27  Jim Meyering  <meyering@lucent.com>
61236
61237         * lib/readutmp.h (UT_TYPE): Define.
61238
61239 2001-05-24  Jim Meyering  <meyering@lucent.com>
61240
61241         * lib/argmatch.c: Include "quote.h".
61242         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61243         quote function.  Reported by Göran Uddeborg.
61244
61245 2001-05-22  Jim Meyering  <meyering@lucent.com>
61246
61247         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61248         now that we use the package-supplied version unconditionally.
61249         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61250
61251 2001-05-21  Jim Meyering  <meyering@lucent.com>
61252
61253         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61254         shell syntax errors.
61255
61256 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61257
61258         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61259
61260 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61261
61262         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61263         Don't bother to check library strftime, since
61264         we'll be using our own my_strftime function anyway.
61265         Define my_strftime instead of strftime.
61266
61267 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61268
61269         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61270         which is not yet declared.
61271
61272 2001-05-15  Jim Meyering  <meyering@lucent.com>
61273
61274         * m4/regex.m4: Use proper quoting so brackets appear in the test
61275         program.
61276         Reported by, and with help from, Bruno Haible.
61277
61278 2001-05-13  Jim Meyering  <meyering@lucent.com>
61279
61280         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61281         undefined.
61282
61283 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61284
61285         dirname code cleanup.  base_name now behaves more compatibly
61286         with POSIX basename when given file names that have trailing
61287         slashes, and similarly for dir_name.  Add new primitives
61288         base_len and dir_len.  Put the directory-name-related decls
61289         into dirname.h.
61290
61291         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61292         * lib/backupfile.c (base_name): Likewise.
61293         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61294         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61295         * lib/makepath.c (strip_trailing_slashes): Likewise.
61296         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61297         ISSLASH): Likewise.
61298         * lib/rename.c (strip_trailing_slashes): Likewise.
61299         * lib/same.c (base_name): Likewise.
61300         * lib/stripslash.c (ISSLASH): Likewise.
61301
61302         * lib/addext.c: Include <dirname.h> after size_t is defined.
61303         * lib/backupfile.c: Likewise.
61304
61305         * lib/addext.c (addext): Use base_len to trim redundant
61306         trailing slashes instead of doing it ourselves.
61307         But do not trim the last slash if it is not redundant.
61308
61309         * lib/backupfile.c (find_backup_file_name,
61310         max_backup_version): Use base_len instead of rolling it ourselves.
61311         Handle the case of "" and (on DOS) "C:" correctly.
61312
61313         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61314         needed. Include <string.h>, <dirname.h>.
61315         (base_name): Allow file names ending in slashes, other than names
61316         that are all slashes.  In this case, return the basename followed
61317         by the slashes.  This is more general, and can be used in places
61318         where the original base_name purposely had an assertion failure.
61319         (base_len): New function.
61320
61321         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61322         Do not include <assert.h>; no longer needed.
61323         Include xalloc.h.
61324         (memrchr): Remove decl.
61325         (dir_name_r): Remove.
61326         (dir_len): Renamed from dirlen.  All callers changed.
61327         Rewrite in terms of base_name, for simplicity and consistency.
61328         (dir_name): Never return NULL.  All callers changed.
61329         Do not include <stdlib.h> in test program; no longer needed.
61330         return 0; is fine for test program.
61331
61332         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61333         New macros.
61334         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61335
61336         * lib/path-concat.c (path_concat): Use base_len to compute
61337         base length, not strlen; this means we cannot rely on memcpy
61338         to null-terminate.
61339
61340         * lib/same.c (STREQ): Remove.
61341         (same_name): Handle the case where the basename ends in trailing '/'.
61342
61343         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61344         a slash was stripped.  Do not strip the last slash after a
61345         file system prefix.
61346
61347 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61348
61349         * lib/Makefile.am (libfetish_a_SOURCES):
61350         Add strftime.c, since we now compile it on all hosts.
61351
61352         * lib/strftime.c (my_strftime):
61353         Define to nstrftime if emacs, but only if my_strftime is not defined.
61354         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61355         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61356         Add one more extra argument: a nanoseconds value.
61357         All uses changed.
61358         (ns): New macro.
61359         (my_strftime function): Add %N format.
61360         (emacs_strftimeu): Renamed from emacs_strftime,
61361         with extra ut argument.
61362
61363 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61364
61365         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61366
61367 2001-04-21  Jim Meyering  <meyering@lucent.com>
61368
61369         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61370         doesn't interfere.
61371
61372 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61373
61374         * m4/ftruncate.m4: Check for chsize.
61375         Link with ftruncate.o unconditionally if ftruncate is missing.
61376         This was required when cross-compiling to i586-mingw32msvc.
61377
61378 2001-04-08  Jim Meyering  <meyering@lucent.com>
61379
61380         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61381         recomputed; that's necessary when the offset spans a DST transition.
61382         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61383
61384 2001-04-02  Jim Meyering  <meyering@lucent.com>
61385
61386         * lib/regex.h, regex.c: Update from GNU libc.
61387
61388 2001-03-24  Jim Meyering  <meyering@lucent.com>
61389
61390         * m4/jm-macros.m4: Require autoconf-2.49d.
61391
61392 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61393
61394         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61395
61396 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61397
61398         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61399
61400 2001-03-17  Jim Meyering  <meyering@lucent.com>
61401
61402         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61403         now that the version in autoconf is equivalent.
61404         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61405
61406         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61407         Suggestion from Akim Demaille.
61408
61409         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61410         (jm_PREREQ_TEMPNAME): New function.
61411
61412 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61413
61414         * lib/tempname.c (uint64_t): Define to uintmax_t if
61415         not defined, and if UINT64_MAX is not defined.
61416         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61417         Reported by John David Anglin.
61418
61419 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61420
61421         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61422         resolve alias if codeset is empty.
61423         * lib/config.charset (BeOS): Use wildcard syntax.
61424
61425 2001-03-13  Jim Meyering  <meyering@lucent.com>
61426
61427         * lib/path-concat.c (path_concat)
61428         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61429         concatenating e.g., `C:' and `foo'.
61430         From Bruno Haible.
61431
61432 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61433
61434         * lib/localcharset.c (locale_charset): Don't use
61435         setlocale(LC_CTYPE,NULL). Don't return NULL.
61436         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61437
61438 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61439
61440         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61441         support for DOS/DJGPP.
61442
61443 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61444
61445         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61446         lacks mkstemp.  Compile our own tempname.c if we compile our own
61447         mkstemp.c, as mkstemp relies on tempname.
61448
61449 2001-03-01  Jim Meyering  <meyering@lucent.com>
61450
61451         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61452         AH_VERBATIM really does output its argument verbatim.
61453
61454 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61455
61456         * lib/Makefile.am (libfetish_a_SOURCES):
61457         Add dup-safer.c, fopen-safer.c.
61458         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61459
61460         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61461         * lib/unistd-safer.h: New files.
61462
61463 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61464
61465         The mkstemp replacement is taken from glibc 2.2.2, with some
61466         portability fixes for use outside glibc, as follows:
61467
61468         * lib/tempname.c (struct_stat64): New macro.
61469         (direxists, __gen_tempname): Use it.
61470         This avoids a portability problem with Solaris 8.
61471
61472         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61473         (<stddef.h>, <stdint.h>, <string.h>):
61474         Include only if STDC_HEADERS || _LIBC.
61475         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61476         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61477         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61478         (__set_errno): Define this macro if <errno.h> doesn't.
61479         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61480         Define these macros if <stdio.h> doesn't.
61481         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61482         Define these macros if <sys/stat.h>
61483         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61484         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61485         __xstat64): Define if not _LIBC.
61486         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61487         (__gen_tempname): Invoke gettimeofday only if
61488         HAVE_GETTIMEOFDAY || _LIBC;
61489         otherwise, fall back on plain "time".
61490         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61491
61492         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61493
61494         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61495
61496 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61497
61498         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61499
61500 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61501
61502         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61503         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61504         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61506
61507 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61508
61509         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61510         Remove workaround macros for hosts that have mbrtowc but not
61511         mbstate_t, as we now insist on proper declarations for both
61512         before using mbrtowc.
61513
61514 2001-02-17  Jim Meyering  <meyering@lucent.com>
61515
61516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61517         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61518         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61519         UnixWare 7.1.1.
61520
61521         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61522         rather than AC_CACHE_VAL.
61523
61524 2001-02-17  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61527         around included file name.
61528
61529         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61530
61531         * lib/strftime.c: Update from GNU libc (the only changes were to
61532         comments).
61533
61534 2001-02-17  Jim Meyering  <meyering@lucent.com>
61535
61536         * lib/regex.c: Update from libc.
61537
61538 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61539
61540         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61541         clash.
61542
61543 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61544
61545         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61546         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61547         Reported by Mark Hounschell via Paul Eggert.
61548
61549 2001-02-07  Jim Meyering  <meyering@lucent.com>
61550
61551         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61552
61553 2001-02-05  Jim Meyering  <meyering@lucent.com>
61554
61555         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61556         it includes the patch required for `large file' support with at least
61557         HP-UX's 10.20 /bin/cc.
61558
61559 2001-02-03  Jim Meyering  <meyering@lucent.com>
61560
61561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61562         AS_IF, now that it works once again (mysteriously).
61563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61564
61565 2001-01-30  Jim Meyering  <meyering@lucent.com>
61566
61567         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61568         * m4/chown.m4: Rename conftestchown to conftest.chown.
61569         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61570         s/conftestdir2/conftest.d2/.
61571         * m4/utimes.m4: s/conftestdata/conftest.data/
61572         Inspired by Pavel Roskin's change in autoconf.
61573
61574 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61575
61576         * lib/config.charset: Update for FreeBSD 4.2.
61577
61578 2001-01-27  Jim Meyering  <meyering@lucent.com>
61579
61580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61581         a use of AS_IF.
61582         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61583
61584 2001-01-26  Jim Meyering  <meyering@lucent.com>
61585
61586         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61587         quotearg.c includes it.
61588
61589 2001-01-26  Jim Meyering  <meyering@lucent.com>
61590
61591         * lib/quotearg.c: Include stddef.h.
61592         * lib/quote.c: Include stddef.h.
61593         Reported by Axel Kittenberger.
61594
61595         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61596         line in double quotes so that it evokes a better diagnostic.
61597         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61598         Reported by Axel Kittenberger.
61599
61600 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61601
61602         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61603         as if it was a `charset'.
61604
61605 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61606
61607         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61608         has const.
61609
61610 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61611
61612         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61613         to avoid a warning.  Add back 'const' to inptr.
61614
61615 2001-01-20  Jim Meyering  <meyering@lucent.com>
61616
61617         Be sure that headers are checked before used in code compiled
61618         for the type checks.
61619         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61620         In place of that, invoke jm_CHECK_ALL_TYPES.
61621         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61622         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61623         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61624         The check for ssize_t was mistakenly run before the test for unistd.h.
61625
61626         The configure-time check for stdbool.h was missing.
61627         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61628         (jm_PREREQ_HASH): New function.
61629
61630 2001-01-17  Jim Meyering  <meyering@lucent.com>
61631
61632         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61633         for autoconf-2.49c.
61634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61635
61636 2001-01-16  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61639         From Bruno Haible.
61640
61641 2001-01-14  Jim Meyering  <meyering@lucent.com>
61642
61643         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61644         foo and bar.  Create conftestdir/ in the script, not in the C code.
61645         Remove directories in the script, not in the C code.
61646         Remove conftestdir{,2} before trying to create the directory.
61647         Make the entire configure script fail if the mkdir fails.
61648
61649 2001-01-14  Jim Meyering  <meyering@lucent.com>
61650
61651         * lib/rename.c: New file.  From Volker Borchert.
61652         Include stdlib.h, string.h or strings.h, and xalloc.h.
61653         Use strip_trailing_slashes rather than open-coding it.
61654
61655 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61656
61657         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61658
61659 2001-01-03  Jim Meyering  <meyering@lucent.com>
61660
61661         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61662         of local `inptr' to avoid warning with some system declarations of
61663         iconv.
61664
61665 2001-01-02  Volker Borchert  <bt@teknon.de>
61666
61667         * m4/rename.m4: New file.
61668         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61669
61670 2001-01-01  Jim Meyering  <meyering@lucent.com>
61671
61672         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61673         even on systems with utmpx.h.  It's necessary for the declaration of
61674         utmp's ut_user member.  Reported by Andreas Jaeger.
61675
61676         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61677         available. They are required for the declarations of getgrgid and
61678         getpwuid resp.
61679         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61680         Reported by Andreas Jaeger.
61681
61682 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61683
61684         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61685         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61686         so `make install' also works in VPATH builds.
61687
61688 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61689
61690         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61691         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61692         can be used in subdirectories.
61693
61694 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61695
61696         * lib/modechange.c: Do not assume that mode_t uses the
61697         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61698         the other-execute bit of FOO even if S_IXOTH != 1.
61699
61700         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61701         WOTH, XOTH, ALLM): New macros.
61702         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61703          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61704         Use them.
61705         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61706         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61707         (mode_compile):
61708         No need to use uintmax_t; unsigned long is long enough.
61709         Don't bother to get suffix since we don't use it.
61710
61711 2000-12-26  Jim Meyering  <meyering@lucent.com>
61712
61713         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61714         better with autoheader.
61715
61716 2000-12-24  Jim Meyering  <meyering@lucent.com>
61717
61718         * lib/hash.c (is_prime): Return explicit boolean values.
61719         (hash_get_first): Return NULL to appease Irix5.6's 89.
61720         Reported by Nelson Beebe.
61721
61722 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61723
61724         * lib/localcharset.c (locale_charset): Add support for Win32.
61725
61726 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61727
61728         * lib/physmem.h, lib/physmem.c: New files.
61729
61730         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61731         (noinst_HEADERS): Add physmem.h.
61732
61733         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61734         't' for compatibility with Solaris 8 sort.
61735
61736 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61737
61738         * lib/config.charset: Add support for BeOS.
61739
61740 2000-12-17  Jim Meyering  <meyering@lucent.com>
61741
61742         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61743         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61744
61745 2000-12-16  Jim Meyering  <meyering@lucent.com>
61746
61747         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61748         N and M) would have treated it like `chown N:N FILE'.
61749
61750         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61751
61752 2000-12-16  Jim Meyering  <meyering@lucent.com>
61753
61754         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61755         SHELLS_FILE to a file name that's useful on djgpp systems.
61756         Include stdlib.h.
61757         (ADDITIONAL_DEFAULT_SHELLS): Define.
61758         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61759         Based mostly on a patch from Prashant TR.
61760
61761 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61762
61763         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61764         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61765         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61766
61767 2000-12-08  Andreas Schwab  <schwab@suse.de>
61768
61769         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61770         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61771
61772 2000-12-07  Jim Meyering  <meyering@lucent.com>
61773
61774         * lib/stripslash.c (ISSLASH): Define.
61775         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61776         `/'.
61777         From Prashant TR.
61778
61779         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61780         (dir_name_r): Declare this function as static.
61781         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61782         manifest itself on a name containing a mix of slashes and
61783         backslashes.
61784         Make this function work with names starting with a DOS-style
61785         drive letter and colon prefix.
61786         (dir_name): Append `.' if necessary.
61787         Based mostly on patches from Prashant TR and Eli Zaretskii.
61788
61789         * lib/dirname.h (dir_name_r): Remove prototype.
61790
61791 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61792
61793         * m4/off_t-format.m4: Remove this file.
61794         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61795
61796 2000-12-06  Jim Meyering  <meyering@lucent.com>
61797
61798         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61799         replacement strtoull, we may well need the replacement strtoul, too.
61800         Check for declarations of strtoul and strtoull.
61801         Check for strtol.  Mainly as a cue to cause automake to include
61802         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61803         Check for limits.h -- strtol.c needs it.
61804
61805 2000-12-05  Jim Meyering  <meyering@lucent.com>
61806
61807         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61808
61809 2000-12-04  Jim Meyering  <meyering@lucent.com>
61810
61811         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61812         Also include memory.h, stdlib.h, unistd.h if appropriate.
61813         Reported by Andreas Jaeger (conflicting declaration of malloc).
61814
61815 2000-12-02  Jim Meyering  <meyering@lucent.com>
61816
61817         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61818         * m4/jm-macros.m4 (jm_MACROS): require it.
61819
61820 2000-12-02  Jim Meyering  <meyering@lucent.com>
61821
61822         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61823
61824 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61825
61826         * lib/memrchr.c: Include <config.h> before any system include file.
61827
61828 2000-11-30  Jim Meyering  <meyering@lucent.com>
61829
61830         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61831
61832 2000-11-30  Jim Meyering  <meyering@lucent.com>
61833
61834         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61835
61836 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61837
61838         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61839
61840 2000-11-26  Jim Meyering  <meyering@lucent.com>
61841
61842         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61843
61844 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61845
61846         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61847         size of (size_t) -1; it's not portable.
61848
61849 2000-11-17  Jim Meyering  <meyering@lucent.com>
61850
61851         * lib/strstr.c: Update from GNU libc.
61852
61853 2000-11-17  Akim Demaille  <akim@epita.fr>
61854
61855         * lib/obstack.h: Formatting changes.
61856         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61857         prevent type checking.
61858         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61859         cast the value to (void *): assigning a `foo *' to a `void *'
61860         variable is valid.
61861         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61862
61863 2000-11-16  Jim Meyering  <meyering@lucent.com>
61864
61865         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61866
61867 2000-11-11  Jim Meyering  <meyering@lucent.com>
61868
61869         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61870
61871 2000-11-10  Jim Meyering  <meyering@lucent.com>
61872
61873         * lib/obstack.h: Update from GNU libc.
61874         * lib/obstack.c: Likewise.
61875
61876 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61877
61878         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61879
61880 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61881
61882         * lib/getusershell.c (setusershell): Use rewind rather than
61883         fseek/fseeko, to avoid configuration hassles with fseeko.
61884         Don't bother opening SHELLS_FILE if shellstream is NULL;
61885         it's not necessary.
61886
61887 2000-11-05  Jim Meyering  <meyering@lucent.com>
61888
61889         * lib/makepath.h (make_dir): Declare.
61890         * lib/makepath.c (make_dir): Remove `static' attribute.
61891         Tweak a comment.
61892
61893 2000-11-04  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61896
61897 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61898
61899         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61900         last one in a bucket, advance to the next bucket.
61901
61902 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61903
61904         * lib/fnmatch.c: Do not comment out all the code if we are using
61905         the GNU C library, because in some cases we are replacing buggy
61906         code in the GNU C library itself.
61907
61908 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61909
61910         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61911         (regex_compile): Catch bogus \(\1\).
61912
61913 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61914
61915         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61916         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61917         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61918
61919 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61920
61921         * lib/error.h, getline.h, modechange.h:
61922         Remove "2000" from Copyright line, as the file hasn't been
61923         changed this year other than in the copyright notice.
61924
61925         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61926         was changed this year.
61927
61928 2000-10-29  Jim Meyering  <meyering@lucent.com>
61929
61930         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61931         renaming.
61932         * m4/ls-mntd-fs.m4: Likewise
61933
61934 2000-10-29  Jim Meyering  <meyering@lucent.com>
61935
61936         * lib/xstat.in: Fix grammar in comment.
61937
61938 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61939
61940         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61941         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61942         doesn't define __restrict_arr.
61943
61944 2000-10-28  Jim Meyering  <meyering@lucent.com>
61945
61946         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61947         (jm_PREREQ_MEMCHR): New function.
61948
61949 2000-10-28  Jim Meyering  <meyering@lucent.com>
61950
61951         * lib/memchr.c: Update from libc.
61952         Adjust for portability:
61953         [HAVE_STDLIB_H]: Include stdlib.h.
61954         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61955         Undef __memchr, too.
61956         [!weak_alias]: Define __memchr to memchr.
61957
61958         * lib/regex.c: Update from libc.
61959         * lib/regex.h: Likewise.
61960         * lib/getopt1.c: Likewise.
61961         * lib/memcmp.c: Likewise.
61962
61963         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61964         Avoid using fseek, when possible -- it's broken by design.
61965         Patch by Ulrich Drepper.
61966
61967 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61968
61969         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61970         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61971         Giving in to popular pressure to shut up the compiler with casts.
61972
61973 2000-10-26  Jim Meyering  <meyering@lucent.com>
61974
61975         * lib/strftime.c: Update from libc.
61976
61977 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61978
61979         * regex.c: More `unsigned char' -> `re_char' changes.
61980         Also change several `int' into `re_wchar_t'.
61981         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61982         (PUSH_FAILURE_POINTER): Don't cast any more.
61983         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61984         We want GCC to complain, since this piece of code makes
61985         re_match non-reentrant, which *should* be fixed.
61986         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61987         (EXTEND_BUFFER): Use RETALLOC.
61988         (SET_LIST_BIT): Don't cast.
61989         (re_wchar_t): New type.
61990         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61991         that those two functions will always properly return.
61992         (IMMEDIATE_QUIT_CHECK): Cast to void.
61993         (analyse_first): Use recursion rather than an explicit stack.
61994         (re_compile_fastmap): Can't fail anymore.
61995         (re_search_2): Don't check re_compile_fastmap for failure.
61996         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61997         Now also sets the new value (passed in a new argument).
61998         (re_match_2_internal): Use it.
61999         Also, use a new var `reg' of type size_t when looping through regs
62000         rather than reuse the inappropriate `mcnt'.
62001
62002 2000-10-25  Jim Meyering  <meyering@lucent.com>
62003
62004         * lib/obstack.c: Update from libc.
62005
62006 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62007
62008         * regex.c (regex_compile): Change the way of handling a range from
62009         a char less than 256 to a char not less than 256.
62010
62011 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62012
62013         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62014         NT-Emacs only.
62015         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62016         so that re_search functions only quit when callers expect them to.
62017
62018 2000-10-23  Jim Meyering  <meyering@lucent.com>
62019
62020         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62021         wrong.  That set_locale call must not have any side effects.
62022         From Paul Eggert.
62023
62024 2000-10-22  Jim Meyering  <meyering@lucent.com>
62025
62026         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62027         [CYCLIC]: Remove now-unused definition.
62028
62029         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62030         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62031         Suggestion from Ulrich Drepper.
62032
62033 2000-10-21  Jim Meyering  <meyering@lucent.com>
62034
62035         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62036         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62038
62039 2000-10-21  Jim Meyering  <meyering@lucent.com>
62040
62041         * lib/dirname.c (memrchr): Declare if necessary.
62042         (dir_name): Remove the restriction that there be no
62043         trailing slashes.  Now, this code skips past them, effectively
62044         ignoring them.
62045         [TEST_DIRNAME] (main): New unit tests.
62046
62047         * lib/memrchr.c: New file from GNU libc.
62048         Undef __memrchr, too.
62049         [!weak_alias]: Define __memrchr to memrchr.
62050         Guard weak_alias use with `#ifdef weak_alias'.
62051
62052 2000-10-21  Jim Meyering  <meyering@lucent.com>
62053
62054         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62055         (dir_name): Use dir_name_r.
62056         * lib/dirname.h (dir_name_r): Declare it.
62057
62058 2000-10-17  Jim Meyering  <meyering@lucent.com>
62059
62060         * lib/quote.h (PARAMS): Define and use.
62061         Reported by Akim Demaille.
62062
62063         * lib/getopt.c: Update from libc.
62064
62065 2000-10-16  Jim Meyering  <meyering@lucent.com>
62066
62067         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62068         setlocale.
62069         From Jan Fedak.
62070
62071 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62072
62073         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62074
62075 2000-09-25  Jim Meyering  <meyering@lucent.com>
62076
62077         * lib/md5.h (rol): Define (from GnuPG).
62078
62079         * lib/sha.c: Give credit (GnuPG) where due.
62080         (M): Use rol rather than open-coding it.
62081         Add a FIXME comment.
62082
62083 2000-09-21  Jim Meyering  <meyering@lucent.com>
62084
62085         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62086         Reported by Michael Stone.
62087
62088 2000-09-20  Jim Meyering  <meyering@lucent.com>
62089
62090         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62091         (noinst_HEADERS): Add sha.h.
62092         Based on code from Scott G. Miller and from GnuPG.
62093
62094 2000-09-18  Jim Meyering  <meyering@lucent.com>
62095
62096         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62097         LIBS. Otherwise, everyone ends up linking with -lelf for some
62098         configurations.
62099         Reported by Mike Stone.
62100
62101 2000-09-15  Jim Meyering  <meyering@lucent.com>
62102
62103         * lib/regex.c: Update from libc.
62104
62105 2000-09-10  Jim Meyering  <meyering@lucent.com>
62106
62107         * lib/getopt.c (_getopt_internal): Update from glibc.
62108
62109 2000-09-09  Jim Meyering  <meyering@lucent.com>
62110
62111         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62112         think it should be used as a general replacement for isascii.
62113         * lib/fnmatch.c: Likewise.
62114         * lib/mbswidth.c: Likewise
62115         * lib/regex.c: Likewise.
62116
62117         Don't use atoi.
62118         * lib/userspec.c: Include sys/param.h and limits.h.
62119         Include xstrtol.h.
62120         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62121         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62122         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62123         UID, GID.  Check range.
62124
62125 2000-09-06  Jim Meyering  <meyering@lucent.com>
62126
62127         * lib/getopt.c (_getopt_internal): Update from glibc.
62128
62129 2000-08-30  Jim Meyering  <meyering@lucent.com>
62130
62131         * lib/strftime.c: Merge in changes from GNU libc.
62132
62133 2000-08-26  Jim Meyering  <meyering@lucent.com>
62134
62135         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62136         * m4/fpending.m4: New file.
62137
62138 2000-08-26  Jim Meyering  <meyering@lucent.com>
62139
62140         * lib/closeout.c: Include "__fpending.h".
62141         (close_stdout_status): Return right away if there's nothing to flush.
62142
62143         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62144         * lib/__fpending.c: New file.
62145         * lib/__fpending.h: New file.
62146
62147 2000-08-20  Jim Meyering  <meyering@lucent.com>
62148
62149         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62150         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62151         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62152
62153 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62154
62155         Improve fileutils installation on systems where running
62156         programs (like install) can't be unlinked.
62157         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62158         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62159
62160 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62161
62162         Standardize on "memory exhausted" instead of "Memory exhausted"
62163         or "virtual memory exhausted".
62164         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62165         "virtual memory exhausted".
62166         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62167         our own message.
62168         * lib/userspec.c (parse_user_spec): Likewise.
62169         * lib/bumpalloc.h: comment fix
62170         * lib/same.c, userspec.c: Include xalloc.h.
62171
62172         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62173         not char *const and pointing to a constant array.
62174         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62175         (xrealloc): Comment fix.
62176
62177         * lib/userspec.c (parse_user_spec):
62178         Don't translate a message until just before returning,
62179         to avoid unnecessary translation.
62180
62181 2000-08-07  Jim Meyering  <meyering@lucent.com>
62182
62183         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62184         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62185         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62186         getgroups.c, gethostname.c, getopt.h, group-member.c,
62187         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62188         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62189         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62190         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62191         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62192         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62193         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62194         yesno.c: Back out Copyright date changes for each file with no change
62195         this year.  This eases coordination with other programs using the same
62196         source code modules.  From Paul Eggert.
62197
62198 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62199
62200         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62201         not char, for compatibility with glibc 2.1.3 strftime.c.
62202
62203 2000-08-03  Greg McGary  <greg@mcgary.org>
62204
62205         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62206         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62207         (EXTEND_BUFFER): Use them.
62208
62209 2000-08-01  Jim Meyering  <meyering@lucent.com>
62210
62211         * lib/dirname.c (ISSLASH): Define.
62212         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62213         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62214         both `\' and `/' may be use as path separators.
62215         Based on a patch from Prashant TR.
62216
62217 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62218
62219         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62220         slot vector a constant, since it might get modified.
62221
62222 2000-07-31  Jim Meyering  <meyering@lucent.com>
62223
62224         * lib/xmalloc.c: Use `virtual memory exhausted', not
62225         `Memory exhausted'.
62226         * lib/obstack.c (print_and_abort): Likewise.
62227
62228 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62229
62230         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62231         buffer, so that the caller can always quote one small
62232         component of a "memory exhausted" message in slot 0.
62233         From a suggestion by Jim Meyering.
62234
62235 2000-07-30  Jim Meyering  <meyering@lucent.com>
62236
62237         * lib/makepath.c (make_path): Quote the other instance, too.
62238
62239         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62240         (STATIC_BUF_SIZE): Define.
62241         (quotearg_n_options): Use only statically allocated storage when
62242         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62243         than STATIC_BUF_SIZE.
62244
62245 2000-07-29  Jim Meyering  <meyering@lucent.com>
62246
62247         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62248         * lib/dirname.c (dir_name): Likewise.
62249
62250         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62251         `/'.
62252
62253         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62254         (dir_name): Assert that there are no trailing slashes.
62255
62256 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62257
62258         * lib/mbswidth.h (mbswidth): Add a flags argument.
62259         (mbswidth): New declaration.
62260         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62261         * lib/mbswidth.c (mbswidth): Add a flags argument.
62262         (mbsnwidth): New function.
62263
62264 2000-07-24  Jim Meyering  <meyering@lucent.com>
62265
62266         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62267
62268 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62269
62270         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62271
62272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62273
62274         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62275         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62276         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62277         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62278         invoke multibyte primitives.
62279
62280 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62281
62282         * lib/quotearg.c:
62283         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62284         so that mbstate_t is always defined.
62285
62286         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62287         be 1 in at least one GCC installation, and this configuration
62288         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62289         performance on hosts that have mbrtowc but have only unibyte
62290         locales, but I assume these hosts are rare.
62291
62292 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62293
62294         * lib/mbswidth.c (_XOPEN_SOURCE):
62295         Don't define; this causes problems on Solaris 7.
62296         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62297
62298 2000-07-23  Jim Meyering  <meyering@lucent.com>
62299
62300         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62301         too: getgrgid, getpwuid, getuid.
62302
62303 2000-07-23  Jim Meyering  <meyering@lucent.com>
62304
62305         * lib/basename.c (base_name): Add an assertion.
62306
62307 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62308
62309         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62310         shadow its mbsinit function.
62311
62312 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62313
62314         * lib/mbswidth.h: New file.
62315         * lib/mbswidth.c: New file.
62316         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62317         (noinst_HEADERS): Add mbswidth.h.
62318
62319 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62320
62321         * lib/config.charset: Add support for FreeBSD. Improve support for
62322         HP-UX and IRIX 6.
62323
62324 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62325
62326         * m4/mbswidth.m4: New file.
62327         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62328
62329 2000-07-15  Jim Meyering  <meyering@lucent.com>
62330
62331         * lib/makepath.c: Include quote.h.
62332         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62333         corresponding argument in a `quote (...)' call.
62334         Give better diagnostics.
62335
62336         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62337         (noinst_HEADERS): Add quote.h.
62338
62339         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62340         from tar's src/misc.c.
62341         * lib/quote.h: New file.  Prototypes for same.
62342
62343 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62344
62345         From a suggestion by Bruno Haible.
62346         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62347         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62348         to decide whether to define the BeOS workaround macro;
62349         this adjusts to the change to AC_MBSTATE_T.
62350
62351 2000-07-14  Jim Meyering  <meyering@lucent.com>
62352
62353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62354         jm_AC_TYPE_UINTMAX_T.
62355
62356 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62357
62358         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62359
62360         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62361         quotearg_buffer_restyled): Add support for
62362         clocale_quoting_style.  Undo previous change to
62363         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62364         and "{RIGHT QUOTATION MARK}" msgids.
62365
62366 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62367
62368         From a suggestion by Bruno Haible.
62369         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62370         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62371         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62372         and mbstate_t, to a single-part test that simply defines mbstate_t.
62373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62374         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62375
62376 2000-07-10  Jim Meyering  <meyering@lucent.com>
62377
62378         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62379
62380         * m4/gnu-source.m4: Output to confdefs.h directly.
62381         Suggestion from Akim Demaille.
62382
62383 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62384
62385         The old behavior of quoting `like this' doesn't look good with
62386         newer, ISO-style fonts.  See:
62387         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62388
62389         Instead, quote "like this" by default.  Let the translator
62390         tailor the locale-specific quoting behavior by providing
62391         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62392
62393         * lib/quotearg.c (N_): New macro.
62394         (gettext_default): New function.
62395         (quotearg_buffer_restyled): Use
62396         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62397         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62398
62399 2000-07-09  Jim Meyering  <meyering@lucent.com>
62400
62401         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62402         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62403
62404         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62406
62407 2000-07-09  Jim Meyering  <meyering@lucent.com>
62408
62409         * lib/Most files: Update copyright dates to include 2000.
62410
62411 2000-07-08  Jim Meyering  <meyering@lucent.com>
62412
62413         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62414         if not defined.
62415         (xgethostname): Remove now-unnecessary #ifdef.
62416         Move declaration of `err' into loop where it's used.
62417
62418 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62419         and Bruno Haible  <haible@clisp.cons.org>
62420
62421         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62422         only if the test for an object-type mbstate_t fails.  This
62423         prevents us from mistakenly reporting that mbstate_t is a
62424         system object type after we "#define mbstate_t int" to work
62425         around its lack.
62426
62427 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62428         and Bruno Haible  <haible@clisp.cons.org>
62429
62430         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62431
62432 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62433
62434         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62435         to strerror_r.
62436         Include <ctype.h> for use of isalpha.
62437
62438 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62439
62440         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62441         by allocating a larger buffer. Test the gethostname return value for
62442         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62443         returns an error and ENAMETOOLONG isn't defined.
62444
62445 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62446
62447         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62448         dimension.
62449
62450 2000-07-04  Jim Meyering  <meyering@lucent.com>
62451
62452         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62453         of the deprecated AC_CHECKING.
62454
62455 2000-07-04  Jim Meyering  <meyering@lucent.com>
62456
62457         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62458         Reported by Bruno Haible.
62459
62460 2000-07-04  Jim Meyering  <meyering@lucent.com>
62461
62462         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62463         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62464         lacks mbrtowc.
62465
62466 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62467
62468         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62469         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62470
62471 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62472         and Bruno Haible  <haible@clisp.cons.org>
62473
62474         * lib/quotearg.c (mbrtowc):
62475         Assign to *pwc, and return 1 only if result is nonzero.
62476         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62477
62478 2000-07-03  Jim Meyering  <meyering@lucent.com>
62479
62480         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62481
62482 2000-07-03  Jim Meyering  <meyering@lucent.com>
62483
62484         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62485         This is necessary to get a definition of e.g., UTMP_FILE on
62486         HP-UX 10.20.
62487         From Bob Proulx.
62488
62489 2000-07-02  Jim Meyering  <meyering@lucent.com>
62490
62491         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62492
62493         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62494         AC_LIBOBJ(function_name).
62495         * m4/chown.m4: Likewise.
62496         * m4/fnmatch.m4: Likewise.
62497         * m4/ftruncate.m4: Likewise.
62498         * m4/getgroups.m4: Likewise.
62499         * m4/getline.m4: Likewise.
62500         * m4/group-member.m4: Likewise.
62501         * m4/jm-macros.m4: Likewise.
62502         * m4/lstat.m4: Likewise.
62503         * m4/malloc.m4: Likewise.
62504         * m4/memcmp.m4: Likewise.
62505         * m4/nanosleep.m4: Likewise.
62506         * m4/putenv.m4: Likewise.
62507         * m4/realloc.m4: Likewise.
62508         * m4/regex.m4: Likewise.
62509         * m4/stat.m4: Likewise.
62510         * m4/strftime.m4: Likewise.
62511
62512 2000-07-02  Jim Meyering  <meyering@lucent.com>
62513
62514         * lib/quotearg.c (mbstate_t): Don't define here.
62515
62516 2000-07-02  Jim Meyering  <meyering@lucent.com>
62517
62518         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62519
62520 2000-07-01  Jim Meyering  <meyering@lucent.com>
62521
62522         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62523
62524 2000-07-01  Jim Meyering  <meyering@lucent.com>
62525
62526         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62527         problem.
62528
62529 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62530
62531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62532         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62533
62534 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62535
62536         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62537         per change in ../m4/ls-mntd-fs.m4.
62538         (read_filesystem_list): Ignore symbolic links.
62539
62540 2000-06-29  Jim Meyering  <meyering@lucent.com>
62541
62542         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62543         for declaration of strcmp.
62544
62545         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62546
62547         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62548         Avoid warning by casting result to `char *' to remove `const'.
62549
62550 2000-06-28  Jim Meyering  <meyering@lucent.com>
62551
62552         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62553         included by quotearg.c, for which we perform this test.  From
62554         Bruno Haible.
62555
62556 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62557
62558         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62559         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62560         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62561
62562 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62563
62564         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62565
62566 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62567
62568         savedir now sets errno on failure and invokes xmalloc to get memory.
62569         Fix a couple of other minor bugs while we're at it.
62570
62571         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62572         (NAMLEN): Remove macro.
62573         (malloc, realloc): Remove decls.
62574         (stpcpy): Likewise.
62575         ("xalloc.h"): Include.
62576         (NAME_SIZE_DEFAULT): New macro.
62577         (savedir): Use xmalloc / xrealloc to allocate memory.
62578         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62579         Skip "" directory entries.
62580         Use strlen to calculate directory entry length, since the old method
62581         is rarely used these days and isn't worth supporting.
62582         Don't use a pointer after freeing it.
62583         Check for integer overflow when calculating allocation size.
62584         Use memcpy to copy entries, instead of stpcpy.
62585         Set errno properly when returning NULL.
62586         Check for readdir error.
62587
62588 2000-06-26  Jim Meyering  <meyering@lucent.com>
62589
62590         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62591
62592 2000-06-25  Jim Meyering  <meyering@lucent.com>
62593
62594         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62595         Linux header bug when _XOPEN_SOURCE is defined to 500.
62596
62597 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62598
62599         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62600         deficiency.
62601
62602 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62603
62604         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62605         Include xalloc.h.
62606         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62607
62608 2000-06-24  Jim Meyering  <meyering@lucent.com>
62609
62610         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62611         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62612         for which strerror does return char*, but which lacks a conveniently
62613         accessible declaration of the function.  If the compile-test says
62614         strerror_r doesn't work, then resort to a `run'-test that works on
62615         BeOS and segfaults on DEC Unix.
62616
62617 2000-06-24  Jim Meyering  <meyering@lucent.com>
62618
62619         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62620
62621 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62622
62623         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62625
62626 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62627
62628         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62629         (mbrtowc, mbstate_t): Define substitutes if
62630         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62631         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62632         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62633
62634 2000-06-23  Jim Meyering  <meyering@lucent.com>
62635
62636         * m4/afs.m4: Add missing AC_MSG_RESULT.
62637         Reported by Bruno Haible.
62638
62639         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62640         Suggestion from Bruno Haible.
62641
62642 2000-06-23  Jim Meyering  <meyering@lucent.com>
62643
62644         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62645
62646 2000-06-21  Jim Meyering  <meyering@lucent.com>
62647
62648         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62649
62650 2000-06-21  Jim Meyering  <meyering@lucent.com>
62651
62652         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62653         (noinst_HEADERS): Add getstr.h.
62654
62655         * lib/getline.c (getstr): Move into a separate file.
62656         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62657         the following changes: new parameter, delim2; both delim[12]
62658         parameters have type `int', not `char'.  The latter would lose
62659         with 8-bit delimiters.
62660         * lib/getstr.h: New file.
62661
62662 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62663
62664         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62665         than 1024, return a memory chunk of least possible size, instead
62666         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62667         Use free/xmalloc instead of xrealloc to avoid copying for very long
62668         paths.
62669
62670 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62671
62672         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62673         the empty string.
62674
62675 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62676
62677         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62678         address, not strdup.  Include <stdlib.h> and don't declare free().
62679
62680 2000-06-19  Jim Meyering  <meyering@lucent.com>
62681
62682         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62683
62684 2000-06-18  Jim Meyering  <meyering@lucent.com>
62685
62686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62687
62688         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62689         `checking whether...' message to be consistent with that of the
62690         lstat test.
62691
62692 2000-06-18  Jim Meyering  <meyering@lucent.com>
62693
62694         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62695         Besides, these days every porting target provides a mkdir function.
62696
62697         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62698         needed. (this snippet comes from src/system.h).
62699
62700 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62701
62702         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62703
62704 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62705
62706         * lib/human.c (adjust_value): New function.
62707         (human_readable_inexact): Apply rounding style even when
62708         printing approximate values.
62709
62710 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62711
62712         * lib/human.c (human_readable_inexact): Allow an input block
62713         size that is not a multiple of the output block size, and vice versa.
62714         Reported by Piergiorgio Sartor.
62715
62716 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62717
62718         * lib/getdate.y (get_date): Apply relative times after time
62719         zone indicator, not before.  Reported by Todd A. Jacobs.
62720
62721 2000-06-13  Jim Meyering  <meyering@lucent.com>
62722
62723         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62724
62725         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62726
62727 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62728
62729         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62730
62731 2000-06-12  Jim Meyering  <meyering@lucent.com>
62732
62733         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62734         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62735         optional argument.
62736         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62737         the optional argument, `lib'.
62738
62739 2000-06-08  Jim Meyering  <meyering@lucent.com>
62740
62741         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62742
62743 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62744
62745         Rewrite largefile configuration so that we don't need to run
62746         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62747         AC_CANONICAL_HOST in configure.in -- jmm]
62748
62749         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62750         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62751         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62752         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62753         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62754         All uses changed.
62755         Instead of inspecting the output of getconf, try to compile the
62756         test program without and with the macro definition.
62757         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62758         for getconf.  Instead, check for the needed flags by compiling
62759         test programs.
62760
62761 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62762
62763         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62764
62765 2000-06-04  Jim Meyering  <meyering@lucent.com>
62766
62767         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62768         SunOS 4.1.4 for which gid_t is an unsigned type.
62769
62770 2000-06-03  Jim Meyering  <meyering@lucent.com>
62771
62772         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62773         now that autoconf requires that.
62774
62775         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62776         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62777         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62778
62779 2000-06-03  Jim Meyering  <meyering@lucent.com>
62780
62781         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62782
62783 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62784
62785         * m4/glibc21.m4: New file.
62786         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62787
62788 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62789
62790         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62791         newer, don't install charset.alias.
62792         * lib/config.charset: Change the Linux/glibc rules so they become empty
62793         on glibc-2.1 or newer.
62794
62795 2000-06-02  Jim Meyering  <meyering@lucent.com>
62796
62797         * lib/mountlist.c: Back out last change.  Instead, do this...
62798         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62799         me_dummy member using the same `ignore'-testing code.
62800         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62801         fs_type strings.
62802         From Mark D. Roth.
62803
62804 2000-05-29  Jim Meyering  <meyering@lucent.com>
62805
62806         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62807         mounts with the `ignore' attribute.  Based on a patch from
62808         Mark D. Roth.
62809
62810 2000-05-28  Jim Meyering  <meyering@lucent.com>
62811
62812         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62813         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62814         * m4/stat.m4: Likewise.
62815         * m4/lstat.m4: Likewise.
62816         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62817
62818         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62819         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62820
62821 2000-05-26  Jim Meyering  <meyering@lucent.com>
62822
62823         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62824
62825 2000-05-24  Jim Meyering  <meyering@lucent.com>
62826
62827         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62828         autoconf requires that.
62829         * m4/lib-check.m4: Likewise.
62830         * m4/jm-macros.m4: Likewise.
62831         * m4/strftime.m4: Likewise.
62832
62833         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62834         AC_CHECK_DECLS, now that autoconf requires that.
62835
62836 2000-05-22  Jim Meyering  <meyering@lucent.com>
62837
62838         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62839         * m4/lstat.m4: Likewise.
62840
62841 2000-05-22  Jim Meyering  <meyering@lucent.com>
62842
62843         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62844
62845 2000-05-20  Jim Meyering  <meyering@lucent.com>
62846
62847         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62848         (jm_PREREQ): Use it.
62849
62850 2000-05-18  Jim Meyering  <meyering@lucent.com>
62851
62852         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62853         back, too, since it may have been modified by allocate_entry.
62854         (hash_delete): Rewrite to use neither the assignment operator
62855         nor the comma operator in an if-expression.
62856
62857 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62858
62859         * lib/closeout.c:
62860         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62861         Remove; no longer needed.
62862         "quotearg.h": Add include.
62863         (file_name): Do not bother to explicitly initialize to NULL; it's less
62864         efficient on some hosts.
62865         (close_stdout_status): Remove test as to whether stdout was already
62866         closed; it breaks for the case "echo x | sort >&-".
62867         Quote file name colons.
62868         Do not assume that _("write error") lacks format strings.
62869
62870 2000-05-15  Jim Meyering  <meyering@lucent.com>
62871
62872         * lib/version-etc.c (version_etc_copyright): Update the copyright
62873         string used in all --version output.
62874
62875 2000-05-14  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/closeout.c (close_stdout_set_file_name): New function.
62878         (close_stdout_status): Use new file-scoped global.
62879         Return right away if fstat says the stdout file descriptor is invalid.
62880         * lib/closeout.h (close_stdout_set_file_name): Declare.
62881
62882 2000-05-10  Jim Meyering  <meyering@lucent.com>
62883
62884         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62885         (close_stdout_set_status): New function.
62886         * lib/closeout.h (close_stdout_set_status): Declare.
62887
62888 2000-05-09  Jim Meyering  <meyering@lucent.com>
62889
62890         * m4/gettext.m4: Rename this...
62891         * m4/libintl.m4: ...to this.
62892
62893 2000-05-08  Jim Meyering  <meyering@lucent.com>
62894
62895         * lib/long-options.c: Don't include closeout.h.
62896         (parse_long_options): Don't call close_stdout for --version.
62897
62898 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62899
62900         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62901         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62902         2.1.3 bug.  This avoids a clash when files like regex.c define
62903         _GNU_SOURCE.
62904
62905 2000-05-06  Jim Meyering  <meyering@lucent.com>
62906
62907         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62908         (AC_REPLACE_FUNCS): Add strnlen.
62909
62910         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62911         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62912
62913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62914         AC_SEARCH_LIBS call for nanosleep.
62915         (LIB_NANOSLEEP): Set and AC_SUBST.
62916
62917 2000-05-06  Jim Meyering  <meyering@lucent.com>
62918
62919         * lib/strnlen.c: Undefine __strnlen and strnlen.
62920         [!weak_alias]: Define __strnlen to strnlen.
62921
62922         * lib/atexit.c: New file, from libiberty.
62923
62924 2000-05-06  Jim Meyering  <meyering@lucent.com>
62925
62926         * lib/closeout.c (close_stdout_status): Also check for errors on the
62927         stderr stream.
62928
62929 2000-05-05  Jim Meyering  <meyering@lucent.com>
62930
62931         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62932         AC_SEARCH_LIBS call for clock_gettime.
62933         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62934
62935         * m4/search-libs.m4: Update from autoconf.
62936
62937         su doesn't work on Solaris 2.6.
62938         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62939         <shadow.h>.  Reported by Dragos Harabor.
62940
62941 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62942
62943         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62944         memcpy instead of xmalloc, xrealloc, path_concat.
62945         (locale_charset): Treat empty environment variables as absent.
62946         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62947
62948 2000-05-04  Jim Meyering  <meyering@lucent.com>
62949
62950         * lib/getopt.c: Update from glibc.
62951         * lib/obstack.c: Likewise.
62952         * lib/obstack.h: Likewise.
62953         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62954         file
62955
62956         * lib/regex.h: Likewise.
62957         * lib/strndup.c: Likewise.
62958         * lib/strnlen.c: New file, from glibc.
62959
62960 2000-05-03  Jim Meyering  <meyering@lucent.com>
62961
62962         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62963
62964 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62965
62966         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62967         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62968         compile-time test, rather than inspecting host and OS, to
62969         decide whether to define _LARGEFILE_SOURCE.
62970
62971 2000-05-01  Jim Meyering  <meyering@lucent.com>
62972
62973         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62974
62975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62976         Based on a patch from Bruno Haible.
62977
62978 2000-05-01  Jim Meyering  <meyering@lucent.com>
62979
62980         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62981
62982 2000-04-29  Jim Meyering  <meyering@lucent.com>
62983
62984         * lib/path-concat.c: Declare strdup only if it's not defined.
62985         * lib/canon-host.c: Likewise.
62986
62987 2000-04-28  Jim Meyering  <meyering@lucent.com>
62988
62989         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62990         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62991         is included first, then limits.h is included by locale.h by libintl.h.
62992         From John David Anglin.
62993
62994 2000-04-25  Jim Meyering  <meyering@lucent.com>
62995
62996         * lib/makepath.c (S_IRWXUGO): Define.
62997         (make_path): Always perform explicit chmod if MODE specifies any
62998         of the `special' permission bits.  Prompted by a bug report against
62999         install from Mate Wierdl and Joost van Baal.
63000
63001 2000-04-18  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63004         (jm_PREREQ): Use it.
63005
63006 2000-04-18  Jim Meyering  <meyering@lucent.com>
63007
63008         * lib/README: New file.
63009
63010         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63011         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63012
63013 2000-04-17  Jim Meyering  <meyering@lucent.com>
63014
63015         Get it right :-)
63016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63017         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63018         Suggestion from Akim Demaille.
63019
63020 2000-04-17  Jim Meyering  <meyering@lucent.com>
63021
63022         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63023         the definition of it to rpl_strftime also defined-away the system's
63024         declaration.
63025
63026 2000-04-15  Jim Meyering  <meyering@lucent.com>
63027
63028         Use `C' to denote so-called `contiguous' files, the same way
63029         that tar does.
63030         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63031         (ftypelet): Use S_ISCTG.
63032         From Michael Deutschmann.
63033
63034 2000-04-14  Jim Meyering  <meyering@lucent.com>
63035
63036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63037         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63038         clobbered.
63039
63040 2000-04-14  Jim Meyering  <meyering@lucent.com>
63041
63042         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63043
63044 2000-04-13  Jim Meyering  <meyering@lucent.com>
63045
63046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63047         AH_VERBATIM to insert required #ifndef into config.h.in.
63048         Suggestion from Akim Demaille.
63049
63050 2000-04-12  Jim Meyering  <meyering@lucent.com>
63051
63052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63053         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63054         Christian Krackowizer.
63055
63056         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63057         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63058         (AC_SYS_LARGEFILE): Require.
63059         (AM_C_PROTOTYPES): Require.
63060
63061 2000-04-08  Jim Meyering  <meyering@lucent.com>
63062
63063         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63064         names don't conflict.  Reported by Eli Zaretskii.
63065
63066 2000-04-07  Jim Meyering  <meyering@lucent.com>
63067
63068         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63069         sys/types.h, to work around system header problems on AIX 3.2.5.
63070         From Bruno Haible.
63071
63072 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63073
63074         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63075         bug.  Deal with the different error behavior of Irix iconv.
63076
63077 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63078
63079         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63080         IRIX if the installer said otherwise.
63081
63082 2000-04-05  Jim Meyering  <meyering@lucent.com>
63083
63084         Portability tweaks required for ultrix4.3.
63085         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63086         (jm_CHECK_DECLS): Add getutent to the list of functions.
63087         (_jm_DECL_HEADERS): Add utmpx.h.
63088         From John David Anglin.
63089
63090         * m4/strftime.m4: Back out the 2000-04-02 change.
63091         Instead of that change, simply undefine putenv in the test program.
63092
63093 2000-04-05  Jim Meyering  <meyering@lucent.com>
63094
63095         Portability tweaks required for ultrix4.3.
63096         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63097         getutent.
63098         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63099         * lib/canon-host.c: Declare strdup.
63100         * lib/path-concat.c: Likewise.
63101         From John David Anglin.
63102
63103 2000-04-04  Jim Meyering  <meyering@lucent.com>
63104
63105         Be more DOS 8.3-friendly.
63106         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63107         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63108         * lib/Makefile.am: Reflect renaming.
63109         Reported by Eli Zaretskii.
63110
63111         Use a temporary file name that won't clash with `charset.alias'
63112         in the DOS 8.3 name space.
63113         * lib/Makefile.am (charset_tmp): Define.
63114         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63115         (uninstall-local): Likewise.
63116         Reported by Eli Zaretskii.
63117
63118 2000-04-03  Jim Meyering  <meyering@lucent.com>
63119
63120         * m4/gettext.m4: Fix typo in comment.
63121
63122         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63123         textutils/configure.in).  Suggestion from Paul Eggert.
63124         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63125
63126 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63127
63128         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63129         variable in the shell rather than using putenv, which isn't
63130         portable.  This avoids the configure-time inter-test dependency
63131         on the potentially-renamed putenv function.
63132
63133 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63134
63135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63136         before checking struct stat.st_blksize, so that
63137         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63138
63139 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63140
63141         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63142         since strftime.c uses HAVE_STRFTIME to decide whether to use
63143         the underlying strftime.
63144
63145 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63146
63147         * lib/time/strftime.c (my_strftime): Make sure we call the system
63148         strftime, not ourselves, when invoking the underlying strftime.
63149
63150 2000-03-24  Jim Meyering  <meyering@lucent.com>
63151
63152         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63153         (charset_alias): Define.
63154         (install-exec-local): Factor out common code.
63155         (uninstall-local): Split lines longer than 80.
63156         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63157         (SUFFIXES): Define.
63158         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63159         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63160
63161 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63162
63163         * lib/config.charset: Output a line containing "Packages using this
63164         file".
63165         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63166         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63167         ref-del.sed): New rules.
63168
63169 2000-03-17  Jim Meyering  <meyering@lucent.com>
63170
63171         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63172         Otherwise, include <strings.h>
63173
63174 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63175
63176         * lib/unicodeio.c (utf8_wctomb): New function.
63177         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63178         format instead of in UCS-4 with platform dependent endianness.
63179
63180 2000-03-10  Jim Meyering  <meyering@lucent.com>
63181
63182         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63183         From Marco Franzen.
63184
63185 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63186
63187         * lib/savedir.c (savedir): Work even if directory size is
63188         negative; this can happen with some screwy NFS configurations.
63189
63190 2000-03-06  Jim Meyering  <meyering@lucent.com>
63191
63192         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63193         if it's NULL (because we ran out of memory).  From Bruno Haible.
63194
63195 2000-03-05  Jim Meyering  <meyering@lucent.com>
63196
63197         * lib/localcharset.c ("path-concat.h"): Include.
63198         (get_charset_aliases): Use path_concat instead of ANSI string
63199         concatenation.
63200
63201         * lib/unicodeio.h (PARAMS): Define.
63202         Use it to guard prototype.
63203
63204 2000-03-04  Jim Meyering  <meyering@lucent.com>
63205
63206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63207         for lib/localcharset.c.
63208
63209 2000-03-04  Jim Meyering  <meyering@lucent.com>
63210
63211         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63212         installing into it.
63213         (uninstall-local): Uncomment this rule so `make distcheck' works
63214         once again.
63215
63216         * lib/unicodeio.c (<errno.h>): Include it.
63217         (errno): Declare if not defined.
63218
63219         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63220
63221         * lib/config.charset: New version, incorporating remarks from a linux
63222         i18n mailing list.  From Bruno Haible.
63223
63224 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63225
63226         * m4/codeset.m4: New file.
63227         * m4/iconv.m4: New file.
63228         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63229
63230 2000-03-03  Jim Meyering  <meyering@lucent.com>
63231
63232         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63233
63234 2000-03-02  Jim Meyering  <meyering@lucent.com>
63235
63236         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63237         the messages come out on separate lines.
63238
63239         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63240         rather than jm_CHECK_DECLARATIONS.
63241         * m4/decl.m4: Remove now-unused file.
63242
63243         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63244         geteuid.
63245
63246 2000-03-02  Jim Meyering  <meyering@lucent.com>
63247
63248         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63249
63250 2000-03-01  Jim Meyering  <meyering@lucent.com>
63251
63252         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63253         * lib/unicodeio.c: Likewise.
63254
63255 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63256
63257         * lib/config.charset: New file.
63258         * lib/localcharset.c: New file.
63259         * lib/unicodeio.h, lib/unicodeio.c: New files.
63260         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63261         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63262         (noinst_HEADERS): Add unicodeio.h.
63263         (all-local, install-exec-local, charset.alias): New targets.
63264
63265 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63266
63267         * lib/quotearg.c (ALERT_CHAR): New macro.
63268         (quotearg_buffer_restyled): Use it.
63269
63270 2000-02-27  Jim Meyering  <meyering@lucent.com>
63271
63272         * m4/check-decl.m4: Add getenv to the list.
63273
63274 2000-02-27  Jim Meyering  <meyering@lucent.com>
63275
63276         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63277         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63278
63279         * lib/backupfile.c: Guard inclusion of stdlib.h with
63280         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63281         Declare malloc if needed.
63282
63283         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63284         `#ifndef HAVE_DECL..'
63285         now that autoconf always defines the HAVE_DECL_ symbols.
63286         * lib/human.c: Likewise.
63287         * lib/same.c: Likewise.
63288         * lib/strtoumax.c: Likewise.
63289
63290         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63291         declaration check was not run.
63292         * lib/hash.c: Likewise.
63293         * lib/human.c: Likewise.
63294         * lib/same.c: Likewise.
63295         * lib/strtoumax.c: Likewise.
63296
63297         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63298         `.', then first look up the entire `.'-containing string as a login
63299         name.
63300
63301 2000-02-23  Jim Meyering  <meyering@lucent.com>
63302
63303         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63304         in place of my hack.
63305
63306 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63307
63308         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63309         (textint): New typedef.
63310         (parser_control): Member year changed from int to textint.
63311         All uses changed.
63312         (YYSTYPE): Removed; replaced by %union with int and textint members.
63313         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63314         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63315         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63316         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63317         (date, number, to_year): Use width of number in digits, not its value,
63318         to determine whether it's a 2-digit year, or a 2-digit time.
63319         (yylex): Store number of digits of numeric tokens.
63320         Reported by John Kendall.
63321
63322         (parser_control): Changed from struct parser_control to typedef (for
63323         consistency).  All uses changed.
63324
63325         (tID): Removed; not used.
63326         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63327
63328 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63329
63330         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63331         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63332
63333 2000-02-12  Jim Meyering  <meyering@lucent.com>
63334
63335         * lib/userspec.c (ISDIGIT): Define it.
63336         (isdigit): Remove definition.
63337         (is_number): Use ISDIGIT, not isdigit.
63338         <libintl.h>: Include.
63339         (_ and N_): Define.
63340         (parse_user_spec): Mark translatable strings.
63341
63342 2000-02-10  Jim Meyering  <meyering@lucent.com>
63343
63344         With these changes, nanosleep.[ch] are finally enough like the other
63345         lib/* replacement files to compile on a few more losing systems.
63346
63347         * lib/nanosleep.h: Don't include config.h.
63348         Remove prototype from declaration of nanosleep.
63349         (PARAMS): Remove now-unneeded definition.
63350         * lib/nanosleep.c: #undef nanosleep.
63351         (rpl_nanosleep): Rename from nanosleep.
63352
63353 2000-02-10  Jim Meyering  <meyering@lucent.com>
63354
63355         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63356         gnu_nanosleep to rpl_nanosleep.
63357
63358 2000-02-09  Jim Meyering  <meyering@lucent.com>
63359
63360         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63361         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63362
63363 2000-02-08  Akim Demaille  <akim@epita.fr>
63364
63365         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63366         `[' and `]' and remove uses of `changequote'.
63367         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63368         (AC_SYS_LARGEFILE): Likewise.
63369         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63370         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63371         of changequote.
63372         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63373         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63374         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63375         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63376
63377 2000-02-05  Jim Meyering  <meyering@lucent.com>
63378
63379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63380         Remove explicit use of AC_HEADER_TIME.  It is required by
63381         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63382         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63383         in autoconf whereby the expansion of the latter ended up preceding
63384         the expansion of its prerequisite, AC_HEADER_TIME.
63385         Reported by Volker Borchert.
63386
63387 2000-02-03  Jim Meyering  <meyering@lucent.com>
63388
63389         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63390
63391 2000-02-03  Jim Meyering  <meyering@lucent.com>
63392
63393         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63394         rather than with `#if HAVE_UTMPNAME'.
63395
63396 2000-02-02  Jim Meyering  <meyering@lucent.com>
63397
63398         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63399         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63400         Reported by Eli Zaretskii.
63401
63402 2000-02-01  Jim Meyering  <meyering@lucent.com>
63403
63404         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63405
63406 2000-01-31  Jim Meyering  <meyering@lucent.com>
63407
63408         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63409         functions.  Add the time.h and sys/time.h headers along with the
63410         AC_REQUIRE'ment of AC_HEADER_TIME.
63411
63412 2000-01-31  Jim Meyering  <meyering@lucent.com>
63413
63414         * lib/nanosleep.h (nanosleep): Guard declaration with
63415         `#if ! HAVE_DECL_NANOSLEEP'.
63416         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63417         the declaration in that vendor's sys/timers.h.
63418         Reported by Christian Krackowizer.
63419
63420         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63421         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63422         (ISPRINT): Likewise.
63423         Reported by Tom Tromey.
63424
63425 2000-01-30  Jim Meyering  <meyering@lucent.com>
63426
63427         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63428
63429         * m4/prereq.m4 (utmp_includes): Define.
63430         Check for ut_user and ut_name members in both struct utmpx
63431         and struct utmp.
63432
63433 2000-01-30  Jim Meyering  <meyering@lucent.com>
63434
63435         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63436         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63437         header files where only utmpx.ut_user is declared.
63438
63439         * lib/readutmp.h (UT_USER): Define.
63440
63441 2000-01-29  Jim Meyering  <meyering@lucent.com>
63442
63443         * m4/lib-check.m4: New file containing library-related checks from
63444         fileutils and sh-utils (textutils had none).
63445
63446 2000-01-28  Jim Meyering  <meyering@lucent.com>
63447
63448         * m4/perl.m4: Change format of warning message to look more like that
63449         from the missing script.  Suggestion from François Pinard.
63450
63451 2000-01-25  Jim Meyering  <meyering@lucent.com>
63452
63453         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63454         well as time.h in the compile check.
63455         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63456         Fix typo in cross-compiling case: s/yes/no/.
63457
63458 2000-01-23  Jim Meyering  <meyering@lucent.com>
63459
63460         * m4/jm-macros.m4: Move df-related tests here from
63461         fileutils/configure.in
63462
63463         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63464         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63465
63466         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63467         s/space/ac_fsusage_space/.
63468         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63469
63470         * m4/ftruncate.m4: New file (derived from part of
63471         fileutils/configure.in).
63472         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63473         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63474
63475         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63476         AC_SUBST these here, rather than just in sh-util/configure.in, so
63477         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63478         all the same.
63479         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63480         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63481         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63482         (AC_SUBST(POW_LIBM)): Likewise.
63483         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63484
63485 2000-01-23  Jim Meyering  <meyering@lucent.com>
63486
63487         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63488         obstack.c.
63489
63490 2000-01-22  Jim Meyering  <meyering@lucent.com>
63491
63492         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63493
63494         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63495
63496         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63497         configure.in
63498         (AC_CHECK_HEADERS): Likewise for sh-utils.
63499         (AC_CHECK_HEADERS): Likewise for textutils.
63500         Merge the three lists of headers.
63501
63502         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63503         from fileutils' configure.in.
63504
63505         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63506         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63507         check-decl.m4.
63508
63509         * m4/check-decl.m4: Use #if rather than #ifdef.
63510         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63511         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63512         (_jm_DECL_HEADERS): Define new function.
63513         (jm_CHECK_DECLARATIONS): Require it.
63514
63515 2000-01-22  Jim Meyering  <meyering@lucent.com>
63516
63517         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63518         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63519         Required for some AIX systems.  Reported by Christian Krackowizer.
63520         [TESTING] (main): New function.
63521
63522         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63523         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63524         letters.
63525
63526         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63527         iswprint.
63528
63529         * lib/strverscmp.c (ISDIGIT): Define.
63530         (strverscmp): Use ISDIGIT, not isdigit.
63531
63532 2000-01-19  Jim Meyering  <meyering@lucent.com>
63533
63534         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63535         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63536         defines `struct timespec' in <sys/time.h>
63537
63538         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63539         Thanks to Akim for explaining.
63540
63541 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63542
63543         * lib/nanosleep.c (nanosleep):
63544         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63545         POSIX.1 doesn't require SA_INTERRUPT and some systems
63546         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63547         it's been part of POSIX.1 since day 1 (in 1988).
63548
63549 2000-01-17  Jim Meyering  <meyering@lucent.com>
63550
63551         * lib/interlock: Remove unused file.  Reported by François Pinard.
63552
63553 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63554
63555         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63556         alert, backslash, formfeed, and vertical tab unnecessarily in
63557         shell quoting style.
63558
63559 2000-01-16  Jim Meyering  <meyering@lucent.com>
63560
63561         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63562         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63563         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63564         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63565
63566 2000-01-16  Jim Meyering  <meyering@lucent.com>
63567
63568         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63569         because the latter didn't work.
63570
63571 2000-01-15  Jim Meyering  <meyering@lucent.com>
63572
63573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63574         (AC_REPLACE_FUNCS): Add memcpy and memset.
63575         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63576         Add strpbrk.
63577         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63578
63579 2000-01-12  Jim Meyering  <meyering@lucent.com>
63580
63581         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63582         (jm_PREREQ): Use it.
63583         (jm_PREREQ_READUTMP): New macro.
63584         (jm_PREREQ): Use it.
63585
63586 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63587
63588         Quote multibyte characters correctly.
63589         * m4/c-bs-a.m4: New file.
63590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63591         (jm_PREREQ): Use it.
63592
63593 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63594
63595         * m4/uintmax_t.m4: Port to autoconf 2.13.
63596
63597 2000-01-08  Jim Meyering  <meyering@ascend.com>
63598
63599         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63600         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63601
63602 2000-01-04  Jim Meyering  <meyering@ascend.com>
63603
63604         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63605         jm_STRUCT_DIRENT_D_TYPE.
63606         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63607         jm_STRUCT_DIRENT_D_INO.
63608         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63609         jm_STRUCT_UTIMBUF.
63610         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63611         renamings.
63612         * m4/utime.m4: Likewise.
63613
63614         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63615         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63616
63617 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63618
63619         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63620         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63621
63622 2000-01-02  Jim Meyering  <meyering@ascend.com>
63623
63624         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63625         remember if this is necessary.
63626
63627 1999-12-26  Jim Meyering  <meyering@ascend.com>
63628
63629         * m4/jm-macros.m4: Use it here.
63630         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63631
63632 1999-12-23  Jim Meyering  <meyering@ascend.com>
63633
63634         * m4/jm-macros.m4: Check for clock_gettime (moved from
63635         fileutils/configure.in)
63636         Check for gettimeofday.
63637
63638 1999-12-20  Jim Meyering  <meyering@ascend.com>
63639
63640         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63641         autoconf-2.14a-1999-12-20.
63642
63643 1999-12-19  Jim Meyering  <meyering@ascend.com>
63644
63645         * m4/lstat-slash.m4: New file.
63646         * m4/jm-macros.m4: Use the new macro:
63647         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63648
63649 1999-12-07  Jim Meyering  <meyering@ascend.com>
63650
63651         * m4/perl.m4: Require that File::Compare be available, too.
63652         Too many systems seem to lack it.
63653
63654         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63655         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63656
63657 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63658
63659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63660         problem with the QNX 4.25 shell, which doesn't propagate exit
63661         status of failed commands inside shell assignments.
63662
63663 1999-11-17  Jim Meyering  <meyering@ascend.com>
63664
63665         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63666
63667 1999-11-07  Jim Meyering  <meyering@ascend.com>
63668
63669         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63670
63671 1999-11-06  Jim Meyering  <meyering@ascend.com>
63672
63673         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63674         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63675
63676 1999-11-05  Jim Meyering  <meyering@ascend.com>
63677
63678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63679         configure.in of textutils, fileutils, and sh-utils into this one
63680         (shared between those packages) file.
63681         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63682         AC_STRUCT_ST_BLKSIZE.
63683
63684 1999-11-03  Jim Meyering  <meyering@ascend.com>
63685
63686         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63687         of AC_CHECK_TYPE checks includes unistd.h.
63688         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63689         Suggestion from Akim Demaille.
63690
63691 1999-10-30  Jim Meyering  <meyering@ascend.com>
63692
63693         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63694         m4-quoted string.
63695         * m4/ls-mntd-fs.m4: Likewise.
63696         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63697         * m4/jm-winsz1.m4: Likewise.
63698
63699         * m4/const.m4: Remove file, since the fix made it into the experimental
63700         version of autoconf.
63701         * m4/mktime.m4: Likewise.
63702
63703         * m4/check-type.m4: Remove file, now that the latest version of
63704         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63705
63706         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63707         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63708         AC_CHECK_TYPE.
63709
63710 1999-10-04  Jim Meyering  <meyering@ascend.com>
63711
63712         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63713
63714 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63715
63716         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63717         2.95.1 bug with HP-UX 10.20.
63718
63719 1999-09-17  Jim Meyering  <meyering@ascend.com>
63720
63721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63722         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63723         due to missing strdup (against sh-utils-2.0).
63724
63725 1999-08-29  Jim Meyering  <meyering@ascend.com>
63726
63727         * m4/jm-macros.m4: Require jm_BISON.
63728         * m4/bison.m4: New file.
63729
63730 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63731
63732         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63733         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63734
63735 1999-08-05  Jim Meyering  <meyering@ascend.com>
63736
63737         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63738         to avoid conflicts with `conftest' on 8+3 filesystems.
63739         Suggestion from Eli Zaretskii.
63740
63741 1999-08-04  Jim Meyering  <meyering@ascend.com>
63742
63743         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63744         fileutils and sh-utils (textutils's getline test was inadequate).
63745         (AM_FUNC_GETLINE): Run this test.
63746         (AC_CHECK_FUNCS): Check for getdelim.
63747         Reported by Bob Proulx.
63748
63749 1999-08-02  Jim Meyering  <meyering@ascend.com>
63750
63751         * m4/jm-macros.m4: Add a comment.
63752
63753 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63754
63755         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63756         <inttypes.h> defines strtoumax as a macro (and not as a
63757         function).
63758
63759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63760
63761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63762         that we can shift, multiply and divide unsigned long long
63763         values; Ultrix cc can't do it.
63764
63765 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63766
63767         * m4/mktime.m4: New file, which is a preview of what should appear
63768         in the next public autoconf release.
63769
63770 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63771
63772         * m4/lfs.m4: Remove this file.
63773         * m4/largefile.m4: New file.  It contains the old contents of
63774         lfs.m4, except that all names with prefix AC_LFS have been
63775         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63776         compatible with future autoconf versions.  Also, some minor m4
63777         quoting problems have been fixed.
63778
63779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63780
63781         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63782         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63783         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63784         and simplify the shell code.
63785
63786 1999-08-01  Jim Meyering  <meyering@ascend.com>
63787
63788         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63789         m4.
63790
63791 1999-07-20  Jim Meyering  <meyering@ascend.com>
63792
63793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63794
63795 1999-07-15  Jim Meyering  <meyering@ascend.com>
63796
63797         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63798
63799 1999-05-22  Jim Meyering  <meyering@ascend.com>
63800
63801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63802
63803 1999-05-20  Jim Meyering  <meyering@ascend.com>
63804
63805         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63806         Add a colon after each `then' in case $4 is empty.
63807
63808 1999-05-16  Jim Meyering  <meyering@ascend.com>
63809
63810         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63811
63812 1999-05-10  Jim Meyering  <meyering@ascend.com>
63813
63814         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63815
63816         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63817         AC_FUNC_MKTIME.
63818
63819 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63820
63821         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63822
63823 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63824
63825         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63826         not CPPFLAGS, so that linking works correctly in IRIX.
63827
63828 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63829
63830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63831
63832 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63833
63834         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63835         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63837         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63838         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63839
63840         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63841
63842 1999-04-20  Jim Meyering  <meyering@ascend.com>
63843
63844         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63845         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63846         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63847
63848 1999-04-18  Jim Meyering  <meyering@ascend.com>
63849
63850         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63851         * m4/jm-macros.m4: Use it.
63852
63853 1999-04-06  Jim Meyering  <meyering@ascend.com>
63854
63855         * m4/strftime.m4: Remove test for %f.
63856
63857 1999-03-29  Jim Meyering  <meyering@ascend.com>
63858
63859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63860         superset of the AC_TYPE_* checks in the textutils, fileutils,
63861         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63862         AC_TYPE_PID_T.
63863
63864 1999-03-28  Jim Meyering  <meyering@ascend.com>
63865
63866         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63867         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63868         replaced e.g., in the *.sh files of the sh-utils.
63869
63870 1999-03-20  Jim Meyering  <meyering@ascend.com>
63871
63872         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63873         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63874         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63875
63876 1999-03-19  Jim Meyering  <meyering@ascend.com>
63877
63878         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63879
63880 1999-03-12  Jim Meyering  <meyering@ascend.com>
63881
63882         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63883
63884 1999-03-07  Jim Meyering  <meyering@ascend.com>
63885
63886         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63887         declared.
63888
63889 1999-02-17  Jim Meyering  <meyering@ascend.com>
63890
63891         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63892         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63893
63894 1999-02-07  Jim Meyering  <meyering@ascend.com>
63895
63896         * m4/group-member.m4: New file -- extracted from sh-utils'
63897         configure.in.
63898
63899         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63900         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63901
63902 1999-02-06  Jim Meyering  <meyering@ascend.com>
63903
63904         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63905         * m4/fnmatch.m4: Likewise.
63906         * m4/getgroups.m4: Likewise.
63907         * m4/lstat.m4: Likewise.
63908         * m4/malloc.m4: Likewise.
63909         * m4/putenv.m4: Likewise.
63910         * m4/realloc.m4: Likewise.
63911         * m4/regex.m4: Likewise.
63912         * m4/stat.m4: Likewise.
63913         * m4/strftime.m4: Likewise.
63914         Suggestion from Alain Magloire.
63915
63916         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63917         * m4/fnmatch.m4: Likewise.
63918         * m4/getgroups.m4: Likewise.
63919         * m4/getline.m4: Likewise.
63920         * m4/lstat.m4: Likewise.
63921         * m4/malloc.m4: Likewise.
63922         * m4/memcmp.m4: Likewise.
63923         * m4/putenv.m4: Likewise.
63924         * m4/realloc.m4: Likewise.
63925         * m4/regex.m4: Likewise.
63926         * m4/stat.m4: Likewise.
63927         * m4/strftime.m4: Likewise.
63928         Suggestion from Alain Magloire.
63929
63930         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63931         an argument.
63932
63933         * m4/regex.m4: Add a run-time Test for proper operation of
63934         re_compile_pattern.
63935
63936 1999-01-31  Jim Meyering  <meyering@ascend.com>
63937
63938         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63939
63940 1999-01-30  Jim Meyering  <meyering@ascend.com>
63941
63942         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63943
63944         * m4/jm-mktime.m4: Make this a wrapper around the official
63945         AM_FUNC_MKTIME rather than my private copy, now that the official one
63946         is up to date.
63947         * m4/mktime.m4: Remove file.
63948
63949         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63950         * m4/uptime.m4: Likewise.
63951         * m4/uintmax_t.m4: Likewise.
63952
63953 1999-01-28  Jim Meyering  <meyering@ascend.com>
63954
63955         * m4/jm-macros.m4: Use jm_AFS.
63956         * m4/afs.m4: New file (from fileutils' configure.in).
63957
63958         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63959         * m4/chown.m4: Likewise.
63960         * m4/d-ino.m4: Likewise.
63961         * m4/d-type.m4: Likewise.
63962         * m4/fnmatch.m4: Likewise.
63963         * m4/getgroups.m4: Likewise.
63964         * m4/gettext.m4: Likewise.
63965         * m4/jm-mktime.m4: Likewise.
63966         * m4/jm-winsz2.m4: Likewise.
63967         * m4/lcmessage.m4: Likewise.
63968         * m4/ls-mntd-fs.m4: Likewise.
63969         * m4/malloc.m4: Likewise.
63970         * m4/memcmp.m4: Likewise.
63971         * m4/putenv.m4: Likewise.
63972         * m4/realloc.m4: Likewise.
63973         * m4/st_mtim.m4: Likewise.
63974         * m4/strftime.m4: Likewise.
63975
63976 1999-01-16  Jim Meyering  <meyering@ascend.com>
63977
63978         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63979         (ARGMATCH_DIE_DECL): Define.
63980
63981 1999-01-12  Jim Meyering  <meyering@ascend.com>
63982
63983         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63984         Reported by Lars Hecking.
63985
63986 1999-01-10  Jim Meyering  <meyering@ascend.com>
63987
63988         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63989         gross kludge.
63990         * m4/inttypes_h.m4: Likewise.
63991         * m4/lstat.m4: Likewise.
63992         * m4/malloc.m4: Likewise.
63993         * m4/readdir.m4: Likewise.
63994         * m4/realloc.m4: Likewise.
63995         * m4/st_dm_mode.m4: Likewise.
63996         * m4/stat.m4: Likewise.
63997         * m4/utimbuf.m4: Likewise.
63998         * m4/utimes.m4: Likewise.
63999
64000         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64001         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64002         comments in config.h.in are meaningful.
64003
64004         * m4/jm-macros.m4: Require autoconf-2.13 here.
64005
64006         * m4/regex.m4: By default, don't use the included regex.c on systems
64007         with glibc 2.  Suggestion from Uli Drepper.
64008
64009 1999-01-02  Jim Meyering  <meyering@ascend.com>
64010
64011         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64012
64013 1998-12-18  Jim Meyering  <meyering@ascend.com>
64014
64015         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64016         Based on a suggestion from Lars Hecking.
64017
64018 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64019
64020         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64021
64022 1998-11-16  Jim Meyering  <meyering@ascend.com>
64023
64024         * m4/lfs.m4: Double-quote the `uname...` expression.
64025
64026 1998-11-14  Jim Meyering  <meyering@ascend.com>
64027
64028         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64029         * m4/stat.m4: Likewise.
64030
64031 1998-11-03  Jim Meyering  <meyering@ascend.com>
64032
64033         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64034         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64035
64036 1998-10-18  Jim Meyering  <meyering@ascend.com>
64037
64038         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64039
64040 1998-10-17  Jim Meyering  <meyering@ascend.com>
64041
64042         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64043         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64044         calls for those previously hard-coded headers.  Instead, take a new
64045         parameter.
64046         (jm_CHECK_DECLARATIONS): Reflect interface change.
64047         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64048         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64049
64050         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64051
64052 1998-10-14  Jim Meyering  <meyering@ascend.com>
64053
64054         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64055         instead of "TZ=America/Vancouver".  From Paul Eggert.
64056
64057 1998-10-11  Jim Meyering  <meyering@ascend.com>
64058
64059         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64060         This adds a test for a recently added compatibility fix for mktime.c.
64061         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64062
64063 1998-09-27  Jim Meyering  <meyering@ascend.com>
64064
64065         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64066
64067         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64068         ../configure.in, including a change from Gordon Matzigkeit to allow
64069         cross-compiling for the Hurd.
64070
64071         * m4/glibc.m4: New file/macro to test for the GNU C Library
64072         versions 1 and 2.  From Gordon Matzigkeit.
64073         Indent.
64074
64075 1998-09-21  Jim Meyering  <meyering@ascend.com>
64076
64077         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64078
64079 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64080
64081         Port nanosecond-resolution times to UnixWare 2.1.2 and
64082         pedantic Solaris 2.6.
64083
64084         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64085         AC_STRUCT_ST_MTIM.
64086         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64087         Generate name of ns member, instead of just 1 or undef.
64088         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64089
64090 1998-08-15  Jim Meyering  <meyering@ascend.com>
64091
64092         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64093         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64094         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64095         instead of jm_TYPE_SSIZE_T.
64096
64097 1998-08-12  Jim Meyering  <meyering@ascend.com>
64098
64099         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64100
64101 1998-08-02  Jim Meyering  <meyering@ascend.com>
64102
64103         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64104         in acconfig.h manually.
64105
64106 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64107
64108         * m4/st_mtim.m4: New file.
64109
64110 1998-07-28  Jim Meyering  <meyering@ascend.com>
64111
64112         * m4/utimes.m4: Undef stat.
64113
64114 1998-07-25  Jim Meyering  <meyering@ascend.com>
64115
64116         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64117         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64118
64119 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64120
64121         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64122         uid and gid actually remain unchanged.
64123
64124 1998-07-07  Jim Meyering  <meyering@ascend.com>
64125
64126         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64127
64128 1998-07-04  Jim Meyering  <meyering@ascend.com>
64129
64130         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64131         to prove that this macro can be used in packages without regex.c.
64132
64133 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64134
64135         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64136         is to be used.
64137
64138 1998-07-03  Jim Meyering  <meyering@ascend.com>
64139
64140         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64141
64142         * m4/gettext.m4: New file -- from gettext-0.10.35.
64143         * m4/lcmessage.m4: Likewise.
64144         * m4/progtest.m4: Likewise.
64145
64146         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64147         * m4/jm-macros.m4: Require the new macro.
64148
64149 1998-06-29  Jim Meyering  <meyering@ascend.com>
64150
64151         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64152         for the definition of NGROUPS (used in a system header included
64153         by sys/mount.h).
64154
64155 1998-06-28  Jim Meyering  <meyering@ascend.com>
64156
64157         * m4/ls-mntd-fs.m4: New file.
64158         * m4/fstypename.m4: New file.
64159
64160         * m4/jm-macros.m4: Require the new macro.
64161         * m4/jm-glibc-io.m4: New file.
64162
64163 1998-05-19  Jim Meyering  <meyering@ascend.com>
64164
64165         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64166         * m4/lchown.m4: New file.
64167
64168         * m4/Makefile.am.in: New file.
64169         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64170
64171 1998-05-14  Jim Meyering  <meyering@ascend.com>
64172
64173         * m4/Makefile.am (EXTRA_DIST): Add them.
64174         * m4/jm-macros.m4: New file.
64175         * m4/utimbuf.m4: New file.
64176
64177 1998-05-12  Jim Meyering  <meyering@ascend.com>
64178
64179         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64180
64181 1998-05-11  Jim Meyering  <meyering@ascend.com>
64182
64183         * m4/isc-posix.m4: New file.
64184
64185 1998-05-10  Jim Meyering  <meyering@ascend.com>
64186
64187         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64188
64189 1998-05-09  Jim Meyering  <meyering@ascend.com>
64190
64191         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64192         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64193         with automake.
64194
64195         * m4/ssize_t.m4: New file.
64196         * m4/mktime.m4: Remove file -- the new automake has this now.
64197
64198 1998-04-26  Jim Meyering  <meyering@ascend.com>
64199
64200         * m4/assert.m4: New file.
64201         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64202
64203 1998-04-05  Jim Meyering  <meyering@ascend.com>
64204
64205         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64206         (jm_PREREQ): Use it here.
64207
64208 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64209
64210         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64211         in acconfig.h.
64212
64213 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64214
64215         * m4/prereq.m4: New file.
64216         * m4/error.m4: New file.
64217         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64218
64219 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64220
64221         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64222         cache-check for the same variable -- that defeated the purpose of
64223         the test; the test program was never run.  This was a problem only
64224         on systems with losing getline functions -- HP-UX 10.20 is one.
64225         Reported by Bjorn Helgaas.
64226
64227 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64228
64229         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64230
64231 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64232
64233         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64234
64235         * m4/const.m4: New file.  Use an initializer in this declaration
64236         typedef int charset[2]; const charset x;
64237         Reported by Bob Glickstein.
64238
64239 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64240
64241         * m4/chown.m4: Fix reversed types on -1 args to chown.
64242         From Kaveh Ghazi.
64243
64244 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64245
64246         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64247         Add lseek and memchr.
64248
64249         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64250         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64251         have a 20-character limit on names.
64252
64253 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64254
64255         * m4/inttypes_h.m4: New file.
64256         * m4/uintmax_t.m4: New file.
64257         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64258
64259
64260         -----
64261
64262         Local Variables:
64263         coding: utf-8
64264         End:
64265
64266         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64267
64268         Copying and distribution of this file, with or without
64269         modification, are permitted provided the copyright notice
64270         and this notice are preserved.